/* ============================================================
   MathsGyan v2 — Premium, interactive, less animation.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #fbfaf6;   /* warm off-white */
  --bg-soft:      #f3f1ea;   /* slightly darker section */
  --bg-card:      #ffffff;
  --bg-dark:      #0a1024;   /* deep midnight navy */
  --bg-dark-2:    #060a1a;

  /* Ink */
  --ink-900: #0c1530;
  --ink-700: #2b3559;
  --ink-500: #5b6786;
  --ink-400: #8b94ad;
  --ink-300: #b6bdd0;
  --line:    #e6e2d7;
  --line-2:  #d8d3c2;

  /* Brand */
  --blue-700: #2444b7;
  --blue-600: #3b5bdb;
  --blue-500: #5174f0;
  --blue-100: #e2e8ff;
  --indigo:   #4338ca;

  --gold-500: #c89b3c;
  --gold-300: #e9c46a;
  --gold-50:  #fbf3df;

  /* On-dark */
  --d-text:   #cdd6e6;
  --d-mute:   #8d97b1;
  --d-line:   rgba(255, 255, 255, 0.10);
  --d-card:   rgba(255, 255, 255, 0.04);

  /* Sizing */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 16, 36, .06), 0 1px 1px rgba(11, 16, 36, .04);
  --shadow:    0 16px 40px -18px rgba(11, 16, 36, .22);
  --shadow-lg: 0 28px 70px -22px rgba(11, 16, 36, .30);

  --container: 1180px;
  --header-h:  72px;

  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-glyph: ui-serif, 'Iowan Old Style', 'Apple Garamond', Georgia, 'Times New Roman', serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --t-base: 260ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 460ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--ink-900); }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.022em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
em { font-style: normal; font-weight: 700; color: var(--blue-700); }
.section-dark em { color: var(--gold-300); }
p  { margin: 0 0 1em; color: var(--ink-700); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  position: relative;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink-900); color: #fff; padding: 8px 12px; border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

/* ---------- Reusable ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1em;
}
.eyebrow.light { color: var(--gold-300); }

.text-gradient {
  background: linear-gradient(95deg, var(--blue-600) 0%, var(--indigo) 50%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #1f9c54;
  box-shadow: 0 0 0 4px rgba(31, 156, 84, .15);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .9rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-base), color var(--t-base),
              box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue-100); outline-offset: 2px; }

.btn-primary {
  background: var(--ink-900);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(12, 21, 48, .55);
}
.btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(59, 91, 219, .6);
}
.btn-primary svg { transition: transform var(--t-base); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--blue-600); }

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line-2);
}
.btn-outline:hover { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }

.btn-block { width: 100%; }

/* Sections */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-compact { padding: clamp(56px, 7vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(81, 116, 240, .25), transparent 60%),
    radial-gradient(700px 400px at -5% 110%, rgba(217, 164, 65, .18), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--d-text);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--d-mute); }
.section-dark .check-list li { color: var(--d-text); }

.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-sub {
  color: var(--ink-500);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-top: .65em;
}
.section-dark .section-sub { color: var(--d-mute); }

.two-col {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(12, 21, 48, .3);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink-900); font-weight: 800; font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -0.025em;
}
.brand:hover { color: var(--ink-900); }
.brand-text { font-style: normal; }
.brand-accent { color: var(--blue-600); font-style: normal; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 1.75rem; }
.primary-nav a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: .94rem;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:hover { color: var(--ink-900); }
.primary-nav a.active { color: var(--ink-900); }
.primary-nav a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-500));
}
.header-cta { padding: .65rem 1.1rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink-900);
  margin: 4px 0; transition: transform var(--t-base), opacity var(--t-base);
  border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 1rem 20px 1.25rem; display: grid; gap: .25rem; }
.mobile-nav a {
  display: block; padding: .75rem .25rem;
  color: var(--ink-900); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.btn { border-bottom: 0; margin-top: .65rem; }

@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
}

/* ---------- Page glow (mesh background) ---------- */
.page-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 80% 5%,  rgba(81, 116, 240, .14), transparent 60%),
    radial-gradient(700px 480px at 12% 20%, rgba(217, 164, 65, .12), transparent 60%),
    radial-gradient(500px 380px at 60% 60%, rgba(139, 92, 246, .08), transparent 65%);
  filter: blur(.5px);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero-centered {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero h1 {
  margin: 1.1rem 0 1rem;
}
.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue-700);
}
.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 60ch;
}
.lede strong { color: var(--ink-900); font-weight: 600; }
.hero-cta {
  display: flex; gap: .65rem; flex-wrap: wrap;
  margin: 1.75rem 0 1.75rem;
  justify-content: center;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  justify-content: center;
  padding-top: 1.6rem;
  margin-top: .4rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-500);
  font-size: .92rem;
}
.hero-meta li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-600), var(--gold-500));
}

/* Floating glyphs (parallax) */
.glyphs {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.glyphs .g {
  position: absolute;
  font-family: var(--font-glyph);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(64px, 9vw, 130px);
  color: var(--ink-900);
  opacity: .045;
  user-select: none;
  transition: transform 400ms ease-out;
  will-change: transform;
}
.glyphs .g1 { top:  6%; left:  4%; }
.glyphs .g2 { top: 14%; right:  6%; }
.glyphs .g3 { bottom: 12%; left: 10%; }
.glyphs .g4 { top: 48%; left: 46%; opacity: .04; }
.glyphs .g5 { bottom: 6%; right: 12%; }
.glyphs .g6 { top:  4%; right: 36%; opacity: .04; }

/* Math notation (still used in the compare card) */
.math {
  font-family: 'Cambria Math', Cambria, var(--font-glyph);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-900);
}

/* ---------- About / compare card ---------- */
.about-copy h2 { margin-bottom: .65em; }
.about-copy p {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 52ch;
}
.h2-tight {
  font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

.check-list {
  margin-top: 1.1rem;
  display: grid; gap: .55rem;
}
.check-list li {
  position: relative; padding-left: 1.75rem;
  color: var(--ink-700);
  font-size: .96rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px;
  display: inline-grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700);
  border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.check-list-tight { gap: .45rem; }
.check-list-tight li { font-size: .94rem; }

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .75rem;
}
.compare-row {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.compare-bad  { background: #fbf7f5; border-color: #f1e2dc; }
.compare-good { background: #f0f6ff; border-color: #d3def8; }
.compare-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}
.compare-bad  .compare-label { background: #f7e2dc; color: #88241c; }
.compare-good .compare-label { background: #d3def8; color: var(--blue-700); }
.compare-line {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 .35rem;
  line-height: 1.45;
}
.compare-note { margin: 0; color: var(--ink-500); font-size: .88rem; line-height: 1.5; }
.compare-divider {
  text-align: center;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ---------- Bento (Why Us) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.bento-card {
  background: var(--d-card);
  border: 1px solid var(--d-line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 200px;
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.06);
}
.bento-card h3 {
  color: #fff;
  margin-bottom: .4em;
  font-size: 1.1rem;
  line-height: 1.25;
}
.bento-card p {
  color: var(--d-mute);
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
}
.bento-icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--d-line);
  color: #fff;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1rem;
}

/* Layout assignments — bento (uniform 3×2) */
.b-1, .b-2, .b-3, .b-4, .b-5, .b-6 { grid-column: span 1; }

@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
}

/* Bento visual — concept arrow */
.bento-visual {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: auto;
  padding: .45rem .8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--d-line);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gold-300);
  align-self: flex-start;
}
.bento-visual span:nth-child(odd) { color: #fff; font-weight: 600; }

/* Clock (12h SLA) — inline within the card */
.clock {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--gold-300);
  font-family: var(--font-sans);
  font-weight: 600;
}
.clock-face {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-300);
}
.clock-tick {
  position: absolute; left: 50%; top: 50%;
  width: 1.5px; height: 5px;
  background: var(--gold-300);
  transform-origin: 50% 0%;
}
.clock-tick.t1 { transform: translate(-50%, -100%) rotate(0deg)   translateY(-14px); }
.clock-tick.t2 { transform: translate(-50%, -100%) rotate(120deg) translateY(-14px); }
.clock-tick.t3 { transform: translate(-50%, -100%) rotate(240deg) translateY(-14px); }
.clock-hand {
  position: absolute; left: 50%; top: 50%;
  width: 2px; height: 14px;
  background: var(--gold-300);
  transform-origin: 50% 0%;
  transform: translate(-50%, 0) rotate(-30deg);
  border-radius: 2px;
}
.clock-center {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--gold-300);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}
.clock-label { font-size: .88rem; letter-spacing: .02em; }

/* ---------- Tabs (Courses) ---------- */
.tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem;
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem;
  width: fit-content;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.tab {
  border: 0;
  background: transparent;
  padding: .65rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-500);
  font-size: .9rem;
  display: inline-flex; flex-direction: column; align-items: center;
  line-height: 1.15;
  transition: background var(--t-fast), color var(--t-fast);
}
.tab:hover { color: var(--ink-900); }
.tab.is-active {
  background: var(--ink-900);
  color: #fff;
}
.tab.is-active .tab-sub { color: rgba(255, 255, 255, 0.65); }
.tab-sub {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-400);
  margin-top: 2px;
}

.panels { position: relative; }
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow);
  animation: fadeIn 300ms ease both;
}
.panel[hidden] { display: none; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.panel-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }

.panel-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--blue-100);
  color: var(--blue-700);
  padding: .25rem .65rem; border-radius: 999px;
  margin-bottom: .9rem;
}
.panel-tag.highlight { background: var(--gold-50); color: var(--gold-500); }
.panel h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: .4em; }

.panel-modules {
  display: grid; gap: .5rem;
  background: var(--bg-soft);
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.panel-modules li {
  display: grid; grid-template-columns: 40px 1fr; align-items: center;
  padding: .6rem .55rem;
  font-size: .96rem; color: var(--ink-700);
  border-bottom: 1px dashed var(--line);
}
.panel-modules li:last-child { border-bottom: 0; }
.panel-modules li span {
  font-family: var(--font-mono);
  color: var(--blue-600); font-weight: 500;
  font-size: .82rem;
}

/* ---------- Founding cohort promise ---------- */
.promise-card {
  background:
    linear-gradient(135deg, rgba(81, 116, 240, .06), rgba(217, 164, 65, .06)),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .promise-card { grid-template-columns: 1fr; } }
.promise-list {
  display: grid; gap: 1.25rem;
}
.promise-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-base), border-color var(--t-base);
}
.promise-list li:hover { transform: translateY(-2px); border-color: var(--line-2); }
.promise-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--ink-900); color: #fff;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: .85rem; font-weight: 600;
}
.promise-list h4 { margin: 0 0 .2em; }
.promise-list p { margin: 0; color: var(--ink-500); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq { display: grid; gap: .75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink-900);
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 22px; height: 22px;
  flex: none;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  background: var(--ink-700);
  border-radius: 2px;
  transition: transform var(--t-base);
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-700);
  animation: fadeIn 220ms ease both;
}
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact-copy p { color: var(--d-mute); max-width: 48ch; }

.contact-form {
  background: var(--bg-card);
  color: var(--ink-900);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  display: grid; gap: 1rem;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-900); }
.optional { color: var(--ink-400); font-weight: 400; }

.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink-900);
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #a4adc1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(81, 116, 240, .15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #d8443a;
  box-shadow: 0 0 0 4px rgba(216, 68, 58, .12);
}
.error { color: #d8443a; font-size: .8rem; min-height: 1em; }

.checkbox {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  align-items: start; color: var(--ink-700); font-size: .9rem;
}
.checkbox input {
  margin-top: .25rem;
  width: 18px; height: 18px;
  accent-color: var(--blue-600);
}
.checkbox .error { grid-column: 1 / -1; }

.form-status {
  margin: .25rem 0 0;
  font-size: .92rem;
  min-height: 1.2em;
}
.form-status.success { color: #1f8a3b; }
.form-status.error { color: #d8443a; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06091a;
  color: var(--d-mute);
  padding: clamp(50px, 7vw, 80px) 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-accent { color: var(--gold-300); }
.site-footer .muted { color: var(--d-mute); max-width: 38ch; margin-top: .75rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer ul li { padding: .25rem 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding-top: 1rem; color: #6f7c98; flex-wrap: wrap;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .glyphs .g { transform: none !important; }
}
