:root {
  --bg: #091018;
  --bg-soft: #0f1722;
  --bg-elevated: rgba(18, 27, 40, 0.82);
  --panel: rgba(12, 20, 31, 0.72);
  --panel-strong: rgba(20, 31, 46, 0.92);
  --line: rgba(143, 199, 255, 0.16);
  --line-strong: rgba(143, 199, 255, 0.3);
  --ink: #eef6ff;
  --muted: #97a8bc;
  --accent: #6ee7d8;
  --accent-strong: #85f0ff;
  --violet: #7a8cff;
  --gold: #f4c889;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(122, 140, 255, 0.2), transparent 24%),
    radial-gradient(circle at 85% 20%, rgba(110, 231, 216, 0.16), transparent 28%),
    radial-gradient(circle at 55% 80%, rgba(244, 200, 137, 0.12), transparent 22%),
    linear-gradient(180deg, #070d15 0%, #091018 40%, #0c121b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 88%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0.6px, transparent 0.7px);
  background-size: 18px 18px;
}

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

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

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 88px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(122, 140, 255, 0.32), rgba(110, 231, 216, 0.18));
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.nav-cta,
.button,
.hero-card,
.feature-card,
.entry-card,
.footer-panel,
.timeline-list article,
.hero-copy,
.manifesto,
.hero-rail .hero-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 56px;
}

.hero-copy {
  padding: 44px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% 28%;
  height: 220px;
  background: radial-gradient(circle, rgba(110, 231, 216, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-rail {
  display: grid;
  grid-template-rows: 1.15fr 0.92fr 0.75fr;
  gap: 18px;
}

.hero-card {
  padding: 24px;
  border-radius: 28px;
}

.lead-card {
  background:
    linear-gradient(180deg, rgba(122, 140, 255, 0.18), rgba(11, 17, 26, 0.78)),
    var(--panel-strong);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-mark,
.card-index,
.step-index {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "IBM Plex Serif", "Source Han Serif SC", serif;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.95;
  max-width: 10.3ch;
  margin-bottom: 18px;
}

.hero-text,
.section-note,
.feature-card p,
.timeline-list p,
.footer-panel p,
.hero-card p,
.entry-card p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-text {
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, rgba(110, 231, 216, 0.28), rgba(122, 140, 255, 0.28));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.03);
}

.card-label,
.api-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-card code,
.entry-card code,
.entry-card a {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.hero-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.quote-mark {
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
}

.section {
  margin-bottom: 54px;
}

.manifesto {
  padding: 28px 32px;
  border-radius: 30px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: end;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.06;
  max-width: 13ch;
}

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

.feature-card,
.entry-card,
.footer-panel,
.timeline-list article {
  padding: 24px;
  border-radius: 28px;
}

.feature-card.large {
  grid-column: span 3;
  min-height: 236px;
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-card:not(.large):not(.wide) {
  grid-column: span 1;
}

.card-index {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
}

.feature-card h3,
.timeline-list h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(110, 231, 216, 0.16), rgba(122, 140, 255, 0.18));
  color: var(--accent-strong);
  font-weight: 700;
}

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

.entry-card.accent {
  background:
    linear-gradient(135deg, rgba(122, 140, 255, 0.18), rgba(244, 200, 137, 0.08)),
    var(--panel-strong);
}

.footer-panel {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(122, 140, 255, 0.08)),
    var(--panel);
}

.footer-panel h2 {
  margin-bottom: 14px;
  max-width: 18ch;
}

@media (max-width: 1024px) {
  .topbar,
  .hero,
  .section-heading.split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    gap: 18px;
  }

  .topnav {
    flex-wrap: wrap;
  }

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

  .feature-card.large,
  .feature-card.wide,
  .feature-card:not(.large):not(.wide),
  .entry-grid {
    grid-column: auto;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1240px);
  }

  .hero-copy,
  .hero-card,
  .feature-card,
  .entry-card,
  .footer-panel,
  .timeline-list article,
  .manifesto {
    padding: 20px;
    border-radius: 24px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
  }
}
