/* ==========================================================================
   GenXEcon — marketing site
   Standalone: no build step, no external dependencies, no web fonts.
   ========================================================================== */

:root {
  --ink:        #0b1220;
  --ink-soft:   #33415c;
  --muted:      #64748b;
  --line:       #e2e8f0;
  --bg:         #ffffff;
  --bg-alt:     #f8fafc;
  --bg-dark:    #0b1220;

  --accent:     #0ea5e9;
  --accent-dk:  #0284c7;
  --accent-lt:  #e0f2fe;
  --teal:       #14b8a6;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(11,18,32,.04), 0 8px 24px rgba(11,18,32,.06);
  --shadow-lg:  0 2px 4px rgba(11,18,32,.05), 0 20px 50px rgba(11,18,32,.12);

  --wrap:       1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 { line-height: 1.15; margin: 0; letter-spacing: -.021em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ───────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .68rem 1.15rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: .935rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease,
              border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(2,132,199,.25), 0 8px 20px rgba(2,132,199,.22);
}
.btn-primary:hover { background: var(--accent-dk); }

.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dk); }

.btn-outline-light {
  border-color: rgba(255,255,255,.35); color: #fff; background: transparent;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }

.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-top: auto; }

/* ────────────────────────────── nav ────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(11,18,32,.05); }

.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.08rem; letter-spacing: -.03em;
}
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff; font-size: 1rem; font-weight: 700;
}
.brand-accent { color: var(--accent); }

.nav-menu {
  display: flex; align-items: center; gap: 1.5rem; flex: 1;
}

.nav-links {
  display: flex; gap: 1.65rem; margin-inline: auto;
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
}
.nav-links a { position: relative; padding: .25rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent); transition: right .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────── hero ────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 15% -8%, #12315a 0%, transparent 62%),
    radial-gradient(900px 480px at 88% 4%, #0d4a52 0%, transparent 58%),
    var(--bg-dark);
  color: #fff;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: #7dd3fc;
  border: 1px solid rgba(125,211,252,.28);
  background: rgba(125,211,252,.08);
  padding: .38rem .9rem; border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.15rem);
  font-weight: 800; letter-spacing: -.035em;
  margin-bottom: 1.35rem;
}
.grad {
  background: linear-gradient(100deg, #38bdf8 5%, #5eead4 55%, #a5b4fc 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede {
  max-width: 43rem; margin: 0 auto;
  font-size: clamp(1.03rem, 1.9vw, 1.19rem);
  color: #c3cfe0;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin: 2.1rem 0 0;
}

.principle {
  max-width: 41rem; margin: 2.6rem auto 0;
  padding: 1.05rem 1.3rem;
  font-size: .945rem; color: #b6c4d8;
  border-left: 3px solid var(--teal);
  background: rgba(255,255,255,.035);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
}
.principle strong { color: #fff; font-weight: 650; }

.stats {
  display: grid; gap: 1.5rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 3.2rem auto 0; max-width: 44rem;
  padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.1);
}
.stats dt {
  font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 750;
  letter-spacing: -.035em;
  background: linear-gradient(160deg, #fff, #9fb6d0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats dd {
  margin: .2rem 0 0; font-size: .83rem; color: #93a4bd; line-height: 1.4;
}

/* ──────────────────────────── sections ─────────────────────────── */

.section { padding: clamp(3.75rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-head { max-width: 44rem; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-dk); margin-bottom: .7rem;
}
.kicker-light { color: #5eead4; }
.section-head h2 {
  font-size: clamp(1.72rem, 3.9vw, 2.6rem); font-weight: 750;
  letter-spacing: -.03em;
}
.sub { margin-top: .95rem; color: var(--muted); font-size: 1.03rem; }
.sub-light { color: #a9bad0; }
.section-head-light h2 { color: #fff; }

/* ──────────────────────────── pipeline ─────────────────────────── */

.pipeline {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  counter-reset: step;
}
.pipeline li {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.35rem 1.45rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pipeline li:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.step {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-lt); color: var(--accent-dk);
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  margin-bottom: .95rem;
}
.pipeline h3 { font-size: 1.06rem; font-weight: 680; margin-bottom: .5rem; }
.pipeline p { font-size: .915rem; color: var(--muted); }

.pipeline-note {
  margin-top: 1.6rem; text-align: center;
  font-size: .93rem; color: var(--muted);
}

/* ───────────────────────────── cards ───────────────────────────── */

.cards {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.45rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.card-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent-lt), #ccfbf1);
  color: var(--accent-dk); font-size: 1.15rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; font-weight: 680; margin-bottom: .5rem; }
.card p { font-size: .915rem; color: var(--muted); }

/* ───────────────────────────── split ───────────────────────────── */

.split {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
}
.split-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.55rem;
}
.split-item h3 {
  display: flex; align-items: center; gap: .65rem;
  font-size: 1.12rem; font-weight: 700; margin-bottom: .7rem;
}
.num {
  display: grid; place-items: center;
  width: 27px; height: 27px; border-radius: 8px; flex: none;
  background: var(--ink); color: #fff;
  font-size: .82rem; font-weight: 700;
}
.split-item > p { font-size: .92rem; color: var(--muted); margin-bottom: 1.15rem; }

.ticks { display: grid; gap: .55rem; }
.ticks li {
  position: relative; padding-left: 1.6rem;
  font-size: .9rem; color: var(--ink-soft);
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -.05em;
  color: var(--teal); font-weight: 700; font-size: .92rem;
}

/* ───────────────────────────── rigor ───────────────────────────── */

.quotes {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  margin-bottom: 2.75rem;
}
.quotes blockquote {
  margin: 0; padding: 1.45rem 1.35rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
}
.quotes p {
  font-size: .975rem; color: #dbe6f3; font-style: italic;
  margin-bottom: .85rem;
}
.quotes cite {
  font-size: .78rem; font-style: normal; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: #5eead4;
}

.rigor-points {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  padding-top: 2.25rem; border-top: 1px solid rgba(255,255,255,.1);
}
.rigor-points h4 { font-size: 1.02rem; font-weight: 680; margin-bottom: .55rem; color: #fff; }
.rigor-points p { font-size: .92rem; color: #a9bad0; }

/* ───────────────────────────── pricing ─────────────────────────── */

.plans {
  display: grid; gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.plan-featured {
  position: relative;
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px; white-space: nowrap;
}

.plan h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .85rem; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .35rem; }
.amount { font-size: 2.35rem; font-weight: 780; letter-spacing: -.04em; }
.per { color: var(--muted); font-size: .95rem; }
.plan-note { font-size: .875rem; color: var(--muted); margin-bottom: 1.4rem; }
.plan .ticks { margin-bottom: 1.75rem; }

.plan-footnote {
  margin-top: 1.9rem; text-align: center;
  font-size: .89rem; color: var(--muted);
}

/* ────────────────────────────── FAQ ────────────────────────────── */

.faq { display: grid; gap: .7rem; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .18s ease;
}
.faq details[open] { border-color: #cbd5e1; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 620; font-size: 1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--accent-dk);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq details p {
  padding: 0 1.3rem 1.25rem; font-size: .935rem; color: var(--muted);
}

/* ────────────────────────────── CTA ────────────────────────────── */

.cta {
  background: linear-gradient(125deg, #0b1220 0%, #123452 55%, #0f3f47 100%);
  color: #fff; padding: clamp(3.25rem, 7vw, 5rem) 0;
  text-align: center;
}
.cta-inner { max-width: 46rem; margin-inline: auto; }
.cta h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 750;
  letter-spacing: -.03em; margin-bottom: .8rem;
}
.cta p { color: #b6c4d8; font-size: 1.03rem; }
.cta .hero-actions { margin-top: 1.9rem; }

/* ───────────────────────────── footer ──────────────────────────── */

.footer { background: #070d18; color: #93a4bd; padding: 3.25rem 0 1.6rem; }
.footer-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(220px, 1.2fr) 2fr;
  padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .9rem; max-width: 22rem; }

.footer-cols {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.footer-cols h5 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #dbe6f3; margin-bottom: .8rem;
}
.footer-cols div { display: flex; flex-direction: column; gap: .5rem; }
.footer-cols a { font-size: .9rem; transition: color .15s ease; }
.footer-cols a:hover { color: #fff; }

.footer-base {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.6rem; font-size: .84rem;
}
.footer-note { color: #64748b; }

/* ──────────────────────────── responsive ───────────────────────── */

@media (max-width: 880px) {
  /* the whole menu — links AND the call to action — becomes one dropdown,
     so the primary action is still reachable on a phone */
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; flex: none;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 26rem; }

  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { padding: .95rem 1.25rem; border-bottom: 1px solid var(--bg-alt); }
  .nav-links a::after { display: none; }

  .nav-cta {
    flex-direction: column; align-items: stretch; gap: .6rem;
    padding: 1rem 1.25rem 1.25rem;
  }
  .nav-cta .btn { width: 100%; }
  .nav-cta .btn-ghost { border-color: var(--line); }

  .nav-toggle { display: flex; margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* keep long content usable when printed */
@media print {
  .nav, .cta, .nav-toggle { display: none; }
  .hero, .section-dark, .footer { background: #fff !important; color: #000 !important; }
}
