:root {
  --bg: #f7f8fb;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, .1);
  --navy: #07111f;
  --navy-2: #101827;
  --teal: #14b8a6;
  --sky: #38bdf8;
  --gold: #f5b942;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, .14);
  --radius: 8px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.glass-nav {
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
}

.navbar { --bs-navbar-toggler-border-color: transparent; }
.navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(20, 184, 166, .25); }

.brand-mark {
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy);
}

.brand-mark span {
  color: var(--teal);
}

.nav-link {
  font-weight: 650;
  color: rgba(17, 24, 39, .72);
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.btn {
  border-radius: var(--radius);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-premium {
  color: var(--navy);
  background: linear-gradient(135deg, #f8d77b, var(--gold) 55%, #f59e0b);
  border: 0;
  box-shadow: 0 16px 34px rgba(245, 185, 66, .28);
}

.btn-premium:hover {
  color: var(--navy);
  box-shadow: 0 20px 45px rgba(245, 185, 66, .38);
}

.section-pad {
  padding: 118px 0;
}

.section-pad.compact {
  padding: 92px 0;
}

.hero,
.page-hero {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(56, 189, 248, .34), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(20, 184, 166, .26), transparent 33%),
    linear-gradient(135deg, #07111f 0%, #111827 56%, #172033 100%);
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 86px;
  overflow: hidden;
}

.page-hero {
  min-height: 78vh;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.65rem, 6vw, 5.9rem);
  line-height: 1.02;
  font-weight: 850;
  margin-bottom: 1.5rem;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.65rem);
}

.lead {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin-bottom: 2rem;
}

.eyebrow {
  color: var(--teal);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  margin-bottom: .85rem;
}

.hero-img,
.content-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-img {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 18px;
}

.hero-stats strong {
  display: block;
  color: var(--white);
  font-size: 1.25rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, .64);
  font-size: .9rem;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2,
.surface h2,
.cta-inner h2,
.prose h2,
.prompt-panel h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.section-head p,
.surface p,
.cta-inner p {
  color: var(--muted);
}

.feature-card,
.route-card,
.number-card,
.scenario,
.prompt-panel,
.sticky-note,
.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.feature-card,
.route-card,
.number-card {
  height: 100%;
  padding: 32px;
}

.feature-card i,
.route-card span,
.scenario i,
.insight-box i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--navy);
  background: linear-gradient(135deg, rgba(56, 189, 248, .22), rgba(20, 184, 166, .24));
  font-size: 1.45rem;
  margin-bottom: 22px;
}

.feature-card h3,
.route-card h3,
.scenario h3,
.timeline-item h3,
.number-card h2 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: .7rem;
}

.feature-card p,
.route-card p,
.number-card p,
.scenario p,
.timeline-item p,
.prose p {
  color: var(--muted);
  margin-bottom: 0;
}

.feature-card.tall {
  min-height: 315px;
}

.feature-card.highlighted {
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.feature-card.highlighted p { color: rgba(255, 255, 255, .76); }

.surface {
  background: var(--white);
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.premium-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: #344054;
  margin-bottom: .85rem;
}

.premium-list i {
  color: var(--teal);
}

.route-card {
  display: block;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.route-card:hover {
  transform: translateY(-7px);
  border-color: rgba(20, 184, 166, .45);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .12);
}

.cta-band {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 185, 66, .28), transparent 32%),
    linear-gradient(135deg, #07111f, #111827);
}

.cta-inner {
  max-width: 850px;
}

.cta-inner p {
  color: rgba(255, 255, 255, .7);
  font-size: 1.12rem;
}

.footer {
  background: #07111f;
  color: rgba(255, 255, 255, .62);
  padding: 34px 0;
}

.footer p {
  margin: 0;
}

.footer a {
  margin-left: 22px;
  color: rgba(255, 255, 255, .72);
}

.footer a:hover {
  color: var(--white);
}

.article-layout {
  background: linear-gradient(180deg, #f7f8fb, #ffffff);
}

.sticky-note {
  position: sticky;
  top: 106px;
  padding: 28px;
}

.sticky-note h2 {
  font-size: 1.2rem;
  font-weight: 820;
  margin-bottom: 1rem;
}

.sticky-note a {
  display: block;
  color: var(--muted);
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}

.sticky-note a:hover {
  color: var(--teal);
}

.prose {
  padding: 42px;
  margin-bottom: 28px;
}

.prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.insight-box {
  display: flex;
  gap: 18px;
  padding: 22px;
  margin-top: 24px;
  border-radius: var(--radius);
  background: #f3fbfa;
}

.insight-box i {
  flex: 0 0 auto;
  margin: 0;
}

.number-card span {
  display: inline-flex;
  color: var(--gold);
  font-size: 2.4rem;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.scenario {
  height: 100%;
  padding: 28px;
  display: flex;
  gap: 20px;
}

.scenario i {
  flex: 0 0 auto;
  margin: 0;
}

.prompt-panel {
  padding: 42px;
  background: linear-gradient(135deg, #ffffff, #f4fbfb);
}

.prompt-panel pre {
  margin: 1.4rem 0 0;
  padding: 24px;
  color: #dbeafe;
  background: #07111f;
  border-radius: var(--radius);
  white-space: pre-wrap;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--gold));
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.timeline-item span {
  z-index: 1;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  z-index: 1030;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

@media (max-width: 991.98px) {
  .section-pad,
  .section-pad.compact {
    padding: 76px 0;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding-top: 124px;
  }

  .hero-img {
    transform: none;
  }

  .navbar-collapse {
    padding: 18px 0 10px;
  }

  .sticky-note {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .route-card,
  .number-card,
  .prose,
  .prompt-panel {
    padding: 24px;
  }

  .scenario {
    flex-direction: column;
  }

  .footer a {
    margin-left: 0;
    margin-right: 16px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
  }
}
