/* ═══════════════════════════════════════
   GanakAI — Shared Stylesheet
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #07111F;
  --navy-mid:   #0C1A2E;
  --navy-card:  #0F2040;
  --steel:      #163258;
  --teal:       #00C2A8;
  --teal-dim:   #009D87;
  --teal-glow:  rgba(0,194,168,.14);
  --gold:       #E8A94A;
  --gold-glow:  rgba(232,169,74,.12);
  --white:      #E8F1FF;
  --muted:      #6A8FAF;
  --border:     rgba(255,255,255,.07);
  --border-hi:  rgba(0,194,168,.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 1.1; letter-spacing: -.025em; margin-bottom: 1.4rem;
}
h1 em { font-style: italic; color: var(--teal); }
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2; letter-spacing: -.02em; margin-bottom: .9rem; max-width: 640px;
}
h2 em { font-style: italic; color: var(--teal); }
h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.25; letter-spacing: -.015em; margin-bottom: .7rem;
}
h4 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }

.section-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .8rem;
  display: block;
}
.section-sub {
  color: var(--muted); font-size: .98rem;
  max-width: 520px; margin-bottom: 3rem; line-height: 1.82;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(7,17,31,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem; letter-spacing: -.4px;
  color: var(--white); text-decoration: none; flex-shrink: 0;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex; gap: 0; list-style: none;
  height: 100%; align-items: stretch;
}
.nav-links li { display: flex; align-items: stretch; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .875rem; padding: 0 1.2rem;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--navy);
  padding: .52rem 1.4rem; border-radius: 4px;
  font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: background .2s, transform .15s;
  white-space: nowrap; display: flex; align-items: center;
}
.nav-cta:hover { background: var(--teal-dim); transform: translateY(-1px); }

/* HAMBURGER */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
}
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 499;
  background: rgba(7,17,31,.97); border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%; flex-direction: column; gap: .5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: .75rem 0; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--teal); }

/* HERO GRID BACKGROUND */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 58px 58px;
  pointer-events: none;
}

/* BUTTONS */
.btn-primary {
  background: var(--teal); color: var(--navy);
  padding: .85rem 2.2rem; border-radius: 5px;
  font-size: .95rem; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
  transition: background .2s, transform .15s; white-space: nowrap;
}
.btn-primary:hover { background: var(--teal-dim); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,.2); color: var(--white);
  padding: .85rem 2.2rem; border-radius: 5px; font-size: .95rem; font-weight: 400;
  text-decoration: none; display: inline-flex; align-items: center; gap: .45rem;
  transition: border-color .2s, color .2s; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* EYEBROW PILL */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(0,194,168,.08); border: 1px solid rgba(0,194,168,.22);
  color: var(--teal); font-size: .73rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  padding: .38rem .95rem; border-radius: 30px; margin-bottom: 1.8rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: blink 2s infinite;
}
.eyebrow-pill.gold {
  background: rgba(232,169,74,.08); border-color: rgba(232,169,74,.22); color: var(--gold);
}
.eyebrow-pill.gold .eyebrow-dot { background: var(--gold); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* STATS BAR */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--navy-mid);
}
.stat-item {
  padding: 2.2rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--teal); margin-bottom: .2rem;
}
.stat-label { font-size: .73rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; }

/* SECTIONS */
section { padding: 7rem 5%; }

/* CARD GRIDS */
.card-grid-3 {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.card-grid-2 {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.g-card { background: var(--navy-card); padding: 2.2rem 2rem; transition: background .22s; }
.g-card:hover { background: var(--steel); }
.g-card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.1rem;
  background: var(--teal-glow); border: 1px solid var(--border-hi);
}
.g-card-icon.gold { background: var(--gold-glow); border-color: rgba(232,169,74,.25); }
.g-card-name { font-weight: 600; font-size: .97rem; margin-bottom: .5rem; }
.g-card-desc { color: var(--muted); font-size: .875rem; line-height: 1.72; }

/* QUOTE STRIP */
.quote-strip {
  background: var(--teal); padding: 4rem 5%;
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.quote-mark {
  font-family: 'DM Serif Display', serif; font-size: 7rem;
  color: var(--navy); opacity: .18; line-height: .5; flex-shrink: 0;
}
.quote-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem); color: var(--navy);
  max-width: 700px; line-height: 1.45;
}
.quote-attr { font-size: .82rem; color: var(--navy); opacity: .55; margin-top: .65rem; font-weight: 500; }

/* FOOTER */
footer {
  background: var(--navy); border-top: 1px solid var(--border);
  padding: 3rem 5% 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  font-family: 'DM Serif Display', serif; font-size: 1.3rem;
  color: var(--white); text-decoration: none; display: block; margin-bottom: .9rem;
}
.footer-brand .footer-logo span { color: var(--teal); }
.footer-brand p { color: var(--muted); font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white); margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: .85rem; margin-bottom: .55rem; transition: color .2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { color: var(--muted); font-size: .78rem; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* RESPONSIVE */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 5rem 5%; }
}
