:root {
  --bg: #f6f2eb;
  --bg-deep: #efe6d8;
  --paper: rgba(255, 253, 249, 0.82);
  --ink: #17233a;
  --muted: #617089;
  --line: rgba(23, 35, 58, 0.1);
  --accent: #ff8f3f;
  --accent-2: #0f6fff;
  --accent-3: #ffd76a;
  --shadow: 0 26px 60px rgba(18, 28, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top center, rgba(255, 215, 106, 0.45), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(15, 111, 255, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, #faf7f1 42%, var(--bg-deep) 100%);
}

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

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

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 236, 0.72);
  border-bottom: 1px solid rgba(23, 35, 58, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand-wordmark {
  display: inline-block;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.075em;
  padding-right: 0.08em;
  padding-bottom: 0.04em;
  background: linear-gradient(90deg, #fc8d4d 0%, #ffcf5a 30%, #3d7bff 68%, #132b7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-rendering: geometricPrecision;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--muted);
  font-size: 0.96rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.92rem 1.28rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ffc553 52%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 16px 36px rgba(255, 143, 63, 0.24);
}

.pill-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.hero {
  padding: 52px 0 88px;
}

.hero-shell {
  text-align: center;
  padding: 28px 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.54rem 0.88rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 35, 58, 0.08);
  color: #395076;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  width: min(980px, 100%);
  margin: 22px auto 18px;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-lead {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: 1.18rem;
  line-height: 1.8;
  color: #41516f;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  margin: 56px auto 0;
}

.hero-stage-orbit {
  position: absolute;
  inset: -26px 10% auto;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 111, 255, 0.1), rgba(255, 215, 106, 0.06), transparent 70%);
  filter: blur(16px);
  z-index: 0;
}

.hero-stage-panel,
.feature-card,
.timeline-card,
.docs-callout,
.footer-card,
.cli-card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero-stage-panel {
  min-height: 168px;
  padding: 28px 24px;
  text-align: left;
}

.hero-stage-link {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-stage-link:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 123, 255, 0.28);
  box-shadow: 0 30px 68px rgba(18, 28, 52, 0.14);
}

.hero-stage-panel span,
.card-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 0.44rem 0.74rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #425170;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 35, 58, 0.08);
}

.hero-stage-panel strong {
  display: block;
  font-size: 1.56rem;
  letter-spacing: -0.03em;
}

.hero-stage-panel small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.subpage-hero {
  padding-bottom: 30px;
}

.subpage-lead {
  width: min(760px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.cli-band {
  padding: 8px 0 62px;
}

.cli-card {
  padding: 42px;
  text-align: center;
}

.cli-card h2,
.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.cli-card p,
.section-heading p,
.feature-card p,
.timeline-card p,
.docs-callout p,
.footer-card p {
  color: var(--muted);
  line-height: 1.8;
}

.cli-card p {
  width: min(720px, 100%);
  margin: 0 auto;
}

.cli-placeholder {
  width: min(720px, 100%);
  margin: 28px auto 0;
  padding: 22px 24px;
  text-align: left;
  border-radius: 26px;
  background: #16223a;
  color: #f9f5ef;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section {
  padding: 24px 0 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2:only-child {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 44ch;
  margin: 0;
}

.feature-grid,
.timeline-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.feature-grid,
.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.timeline-card,
.docs-callout,
.footer-card {
  padding: 28px;
}

.story-card {
  padding: 30px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 242, 233, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.feature-card h3,
.story-card h3,
.timeline-card h3,
.docs-callout h3,
.footer-card h3 {
  margin: 0 0 10px;
  font-size: 1.36rem;
}

.story-card p {
  color: var(--muted);
  line-height: 1.8;
}

.footer {
  padding: 26px 0 42px;
}

.copyright-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 35, 58, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

.copyright-bar a {
  color: #34476b;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .hero-stage,
  .feature-grid,
  .story-grid,
  .timeline-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 26px, 1180px);
  }

  .topbar-inner {
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 36px 0 64px;
  }

  .hero-shell {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-stage-panel,
  .feature-card,
  .story-card,
  .timeline-card,
  .footer-card,
  .cli-card {
    padding: 22px;
    border-radius: 24px;
  }

  .copyright-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
