:root {
  color-scheme: dark light;
  --bg: #07111c;
  --bg-soft: rgba(12, 23, 37, 0.88);
  --panel: rgba(11, 20, 32, 0.82);
  --panel-strong: rgba(9, 17, 28, 0.95);
  --text: #eef7ff;
  --muted: #9fb4c7;
  --line: rgba(156, 179, 199, 0.18);
  --accent: #4dd4c6;
  --accent-strong: #77e6d8;
  --accent-warm: #ffd166;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(77, 212, 198, 0.18), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(255, 209, 102, 0.16), transparent 28%),
    linear-gradient(180deg, #08121d 0%, #07111c 100%);
  color: var(--text);
}

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

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

.page-shell {
  position: relative;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(77, 212, 198, 0.95), rgba(90, 159, 255, 0.9));
  color: #051018;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 45px rgba(77, 212, 198, 0.35);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small,
.hero-text,
.section-copy p,
.feature-grid p,
.timeline p,
.compat-grid li,
.faq-list p,
.footer p,
.proof-strip p {
  color: var(--muted);
  line-height: 1.65;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.72);
}

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

.topnav a:hover,
.topnav a:focus-visible,
.nav-cta {
  color: var(--text);
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(77, 212, 198, 0.22), rgba(90, 159, 255, 0.22));
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  min-height: calc(100vh - 110px);
  align-items: center;
  padding: 48px 0 24px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.hero h1,
.section h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button-primary,
.copy-button {
  background: linear-gradient(135deg, var(--accent) 0%, #7fceff 100%);
  color: #031117;
  box-shadow: 0 18px 45px rgba(77, 212, 198, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span,
.tags span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(8, 17, 28, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mesh {
  position: absolute;
  inset: auto;
  filter: blur(24px);
  opacity: 0.65;
}

.mesh-a {
  top: 9%;
  right: 12%;
  width: 180px;
  height: 180px;
  background: rgba(77, 212, 198, 0.24);
}

.mesh-b {
  bottom: 8%;
  left: 8%;
  width: 160px;
  height: 160px;
  background: rgba(255, 209, 102, 0.22);
}

.visual-card {
  position: absolute;
  width: 250px;
  padding: 18px;
  border: 1px solid rgba(146, 174, 196, 0.15);
  border-radius: 22px;
  background: rgba(10, 18, 30, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.visual-card-main {
  top: 62px;
  left: 155px;
  box-shadow: 0 0 0 1px rgba(77, 212, 198, 0.18), 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 42px rgba(77, 212, 198, 0.2);
}

.visual-card-left {
  bottom: 70px;
  left: 38px;
}

.visual-card-right {
  right: 32px;
  bottom: 58px;
  box-shadow: 0 0 0 1px rgba(127, 206, 255, 0.16), 0 28px 80px rgba(0, 0, 0, 0.28), 0 0 42px rgba(127, 206, 255, 0.18);
}

.visual-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-card small {
  color: var(--muted);
}

.visual-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.status-live {
  background: var(--accent);
}

.status-ready {
  background: var(--accent-warm);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(133, 164, 255, 0.6);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(77, 212, 198, 0.18));
}

.proof-strip,
.section,
.footer {
  margin-top: 42px;
}

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

.proof-strip article,
.feature-grid article,
.install-steps article,
.compat-grid article,
.faq-list article,
.contribute-card,
.terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.proof-strip article,
.feature-grid article,
.install-steps article,
.compat-grid article,
.faq-list article {
  padding: 22px;
}

.proof-strip strong,
.feature-grid h3,
.install-steps h3,
.timeline h3,
.compat-grid h3,
.faq-list h3 {
  font-size: 1.08rem;
}

.section {
  padding-top: 48px;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.terminal {
  position: relative;
  margin-top: 26px;
  padding: 18px;
}

.terminal-bar {
  display: inline-flex;
  gap: 8px;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.terminal pre {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(1, 7, 14, 0.86);
}

.terminal code {
  font-family: "IBM Plex Mono", monospace;
  color: #dbfff8;
  line-height: 1.7;
}

.copy-button {
  margin-top: 16px;
}

.install-steps,
.feature-grid,
.compat-grid,
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

.install-steps span,
.timeline-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(77, 212, 198, 0.2), rgba(127, 206, 255, 0.22));
  color: var(--accent-strong);
  font-family: "IBM Plex Mono", monospace;
}

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

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline article:last-child {
  border-bottom: 0;
}

.compat-grid ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.compat-grid li + li {
  margin-top: 10px;
}

.contribute-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 28px;
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 20px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6ef;
    --bg-soft: rgba(255, 253, 247, 0.88);
    --panel: rgba(255, 252, 246, 0.82);
    --panel-strong: rgba(255, 250, 244, 0.95);
    --text: #14212c;
    --muted: #506473;
    --line: rgba(20, 33, 44, 0.12);
    --shadow: 0 24px 60px rgba(32, 42, 52, 0.12);
  }

  body {
    background:
      radial-gradient(circle at 15% 15%, rgba(77, 212, 198, 0.2), transparent 26%),
      radial-gradient(circle at 85% 12%, rgba(255, 209, 102, 0.22), transparent 30%),
      linear-gradient(180deg, #fbf8f2 0%, #f2efe8 100%);
  }

  .topnav,
  .button-secondary {
    background: rgba(255, 255, 255, 0.62);
  }

  .visual-stage,
  .visual-card,
  .proof-strip article,
  .feature-grid article,
  .install-steps article,
  .compat-grid article,
  .faq-list article,
  .contribute-card,
  .terminal {
    background: rgba(255, 252, 247, 0.88);
  }

  .terminal pre {
    background: #10202b;
  }

  .visual-card p,
  .visual-card small,
  .topnav a,
  .hero-proof span,
  .tags span {
    color: #5a6d7c;
  }
}

@media (max-width: 1024px) {
  .hero,
  .contribute-card,
  .proof-strip,
  .install-steps,
  .feature-grid,
  .compat-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-visual {
    order: -1;
  }
}

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

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero h1,
  .section h2 {
    letter-spacing: -0.04em;
  }

  .visual-stage {
    aspect-ratio: 0.92 / 1;
  }

  .visual-card {
    width: 220px;
    padding: 14px;
  }

  .visual-card-main {
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
  }

  .visual-card-left {
    left: 12px;
    bottom: 36px;
  }

  .visual-card-right {
    right: 12px;
    bottom: 34px;
  }

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