:root {
  --bg: #081018;
  --bg-elevated: rgba(15, 23, 34, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --panel: rgba(11, 17, 26, 0.92);
  --line: rgba(143, 211, 255, 0.16);
  --line-strong: rgba(143, 211, 255, 0.35);
  --text: #f4f7fb;
  --text-muted: #96a7bb;
  --brand: #7dd3fc;
  --brand-strong: #38bdf8;
  --accent: #f59e0b;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-width: 1180px;
  --font-sans: "IBM Plex Sans SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 26%),
    linear-gradient(180deg, #071018 0%, #09131d 55%, #071018 100%);
  min-height: 100vh;
}

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

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

button {
  font: inherit;
}

.shell {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 16, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(125, 211, 252, 0.24)),
    #0d1722;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #f4f7fb;
}

.brand__mark::before {
  width: 22px;
  height: 3px;
  top: 14px;
  left: 11px;
}

.brand__mark::after {
  width: 14px;
  height: 3px;
  top: 26px;
  left: 11px;
}

.brand__text strong,
.brand__text span {
  display: block;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand__text span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 46px;
  height: 46px;
}

.page-hero,
.page-section {
  padding: 80px 0;
}

.page-hero {
  padding-top: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand);
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.14);
  font-size: 0.92rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(125, 211, 252, 0.6);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: center;
}

.how-heading {
  max-width: 560px;
  margin-bottom: 28px;
}

.how-cards .rich-card {
  min-height: 164px;
}

.how-examples {
  margin-top: 18px;
  align-items: start;
}

.how-code {
  width: 100%;
  padding: 20px 24px;
}

.how-code pre {
  font-size: 0.88rem;
  line-height: 1.6;
}

#how .section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

#how .section-heading p {
  max-width: 320px;
}

#how .how-examples .inline-code:first-child {
  min-height: 176px;
}

#how .rich-card strong {
  font-size: 1.2rem;
}

#how .rich-card p {
  margin: 0;
}

.hero-copy h1,
.section-heading h2,
.subhero h1 {
  margin: 18px 0 16px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1,
.subhero h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.hero-copy p,
.section-heading p,
.subhero p,
.rich-card p,
.download-card p,
.doc-card p,
.audience-card p,
.value-card p,
.matrix-card p,
.scenario-card p,
.flow-card p {
  color: var(--text-muted);
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #05111b;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.hero-panel,
.rich-card,
.download-card,
.doc-card,
.value-card,
.matrix-card,
.scenario-card,
.audience-card,
.flow-card,
.inline-code,
.note-card {
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 72%);
  pointer-events: none;
}

.panel-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.stack-list,
.dot-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li,
.download-meta li,
.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.stack-list li:last-child,
.download-meta li:last-child,
.plain-list li:last-child {
  border-bottom: 0;
}

.stack-list strong,
.matrix-card strong,
.scenario-card strong,
.value-card strong,
.doc-card strong,
.download-card strong,
.audience-card strong,
.flow-card strong {
  display: block;
  margin-bottom: 6px;
}

.hero-caption {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-caption span,
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

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

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

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

.value-card,
.matrix-card,
.scenario-card,
.download-card,
.doc-card,
.audience-card,
.flow-card,
.rich-card,
.note-card {
  padding: 24px;
}

.card-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.08);
  color: var(--brand);
  font-size: 0.85rem;
}

.value-card__icon,
.matrix-card__icon,
.scenario-card__icon,
.download-card__icon,
.doc-card__icon,
.audience-card__icon,
.flow-card__index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.data-strip .metric {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.flow {
  display: grid;
  gap: 18px;
}

.flow-card {
  position: relative;
}

.flow-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: -18px;
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.5));
}

.flow-card:first-child::before {
  display: none;
}

.inline-code {
  padding: 24px;
  overflow: auto;
}

pre,
code {
  font-family: var(--font-mono);
}

pre {
  margin: 0;
  color: #d7e8ff;
  line-height: 1.8;
  font-size: 0.92rem;
}

.subhero {
  padding: 72px 0 32px;
}

.subhero__panel {
  padding: 36px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(245, 158, 11, 0.04)),
    rgba(9, 15, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.subhero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.download-meta,
.doc-links {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.download-meta li strong,
.doc-links li strong {
  display: inline;
  margin: 0;
}

.site-footer {
  padding: 36px 0 48px;
  color: var(--text-muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.variant-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.variant-switch button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms ease forwards;
}

.fade-up[data-delay="1"] {
  animation-delay: 120ms;
}

.fade-up[data-delay="2"] {
  animation-delay: 240ms;
}

.fade-up[data-delay="3"] {
  animation-delay: 360ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .data-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 14px;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .data-strip {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .page-section,
  .subhero {
    padding: 56px 0;
  }

  .hero-panel,
  .subhero__panel,
  .value-card,
  .matrix-card,
  .scenario-card,
  .download-card,
  .doc-card,
  .audience-card,
  .flow-card,
  .rich-card,
  .inline-code,
  .note-card {
    padding: 22px;
  }
}
