/* ============================================
   MERIDIAN SYSTEMS — style.css
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #0A0F1E;
  --navy-2:    #111827;
  --blue:      #4361EE;
  --blue-dim:  rgba(67, 97, 238, 0.15);
  --blue-dim2: rgba(67, 97, 238, 0.08);
  --ice:       #F0F4FF;
  --white:     #FFFFFF;
  --gray:      #7B8FA1;
  --gray-2:    #3A4A5C;
  --border:    rgba(255,255,255,0.08);
  --border-light: rgba(67, 97, 238, 0.2);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- TYPOGRAPHY --- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.accent {
  color: var(--blue);
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover {
  background: #5372f0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(67, 97, 238, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--ghost {
  background: transparent;
  color: var(--gray);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover {
  color: var(--white);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* --- SECTION HEAD --- */
.section-head {
  margin-bottom: 3.5rem;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.25rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.nav::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-right: auto;
}
.nav__logo span {
  color: var(--blue);
}

.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.875rem;
  color: var(--gray);
  transition: color var(--transition);
}
.nav__links a:hover {
  color: var(--white);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__desc {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.4;
}

/* DIAGRAM */
.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram {
  position: relative;
  width: 380px;
  height: 380px;
}

.diagram__lines {
  position: absolute;
  inset: 0;
  animation: rotate 24s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.diagram__node--core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 0 40px rgba(67, 97, 238, 0.5);
}

.diagram__orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  z-index: 3;
}

.diagram__pill {
  background: var(--navy-2);
  border: 1px solid var(--border-light);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* Orbit positions (6 pills evenly around two rings) */
.diagram__orbit--1 { transform: translate(calc(80px * cos(0deg)),   calc(80px * sin(0deg)));   }
.diagram__orbit--2 { transform: translate(calc(80px * cos(60deg)),  calc(80px * sin(60deg)));  }
.diagram__orbit--3 { transform: translate(calc(80px * cos(120deg)), calc(80px * sin(120deg))); }
.diagram__orbit--4 { transform: translate(calc(80px * cos(180deg)), calc(80px * sin(180deg))); }
.diagram__orbit--5 { transform: translate(calc(80px * cos(240deg)), calc(80px * sin(240deg))); }
.diagram__orbit--6 { transform: translate(calc(80px * cos(300deg)), calc(80px * sin(300deg))); }

/* Fallback with hardcoded positions */
.diagram__orbit--1 { top: 14%;  left: 50%; }
.diagram__orbit--2 { top: 30%;  left: 88%; }
.diagram__orbit--3 { top: 70%;  left: 88%; }
.diagram__orbit--4 { top: 86%;  left: 50%; }
.diagram__orbit--5 { top: 70%;  left: 12%; }
.diagram__orbit--6 { top: 30%;  left: 12%; }

/* ============================================
   TICKER
   ============================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: var(--navy-2);
}

.ticker__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker__track span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-2);
  white-space: nowrap;
}

.ticker__track span:nth-child(even) {
  color: var(--blue);
  opacity: 0.5;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 7rem 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--navy);
  padding: 2.5rem;
  transition: background var(--transition);
}
.service-card:hover {
  background: var(--navy-2);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-card__tags span {
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--blue-dim);
  color: #8DA4F8;
  border: 1px solid var(--border-light);
}

.service-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  background: var(--blue-dim2);
}
.service-card--cta p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray);
}

/* ============================================
   CASES
   ============================================ */
.cases {
  padding: 7rem 0;
  background: var(--navy-2);
}

.cases__list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.case {
  background: var(--navy-2);
  padding: 3rem;
  transition: background var(--transition);
}
.case:hover {
  background: #161d30;
}

.case__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.case__industry {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blue-dim);
  color: #8DA4F8;
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
}

.case__year {
  font-size: 0.8rem;
  color: var(--gray);
}

.case__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.case__desc {
  font-size: 0.925rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 2rem;
}

.case__results {
  display: flex;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.case__result-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.case__result-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 7rem 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about__text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about__left .btn {
  margin-top: 1rem;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.value {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.value__mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.value__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.value__desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 7rem 0;
  background: var(--navy-2);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color var(--transition);
}
.testimonial:hover {
  border-color: var(--border-light);
}

.testimonial__quote {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial__author {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-dim);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: #8DA4F8;
  flex-shrink: 0;
}

.testimonial__name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial__role {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 7rem 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: start;
}

.contact__desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 1.5rem 0 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact__detail-label {
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.contact__detail a,
.contact__detail span {
  font-size: 0.925rem;
  color: var(--gray);
  transition: color var(--transition);
}
.contact__detail a:hover {
  color: var(--white);
}

/* FORM */
.contact__form {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-note {
  font-size: 0.78rem;
  color: var(--gray-2);
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer__brand .nav__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--gray);
  transition: color var(--transition);
}
.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p,
.footer__bottom a {
  font-size: 0.8rem;
  color: var(--gray-2);
}
.footer__bottom a:hover {
  color: var(--gray);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }
  .hero__right {
    display: none;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav .btn--outline { display: none; }
  .nav__burger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .case__results {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__links {
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diagram__lines { animation: none; }
  .ticker__track  { animation: none; }
}
