:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-2: #09111f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --ink: #f8fafc;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.16);
  --acid: #b9ff4d;
  --cyan: #47e5ff;
  --orange: #ff9f43;
  --blue: #5c7cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(71, 229, 255, 0.16), transparent 28%),
    radial-gradient(circle at 92% 2%, rgba(185, 255, 77, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg), #080b13 42%, #06131a);
  color: var(--ink);
  font-family: "Space Grotesk", "Sora", ui-sans-serif, system-ui, sans-serif;
}

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

code,
pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.header-actions,
.hero-actions,
.feature-row,
.footer-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #06111f;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  box-shadow: 0 0 36px rgba(71, 229, 255, 0.28);
}

.site-header nav {
  gap: clamp(10px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--ink);
}

.header-actions,
.hero-actions,
.footer-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.header-action,
.button,
.plan-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(185, 255, 77, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  color: #06111f;
  font-weight: 900;
}

.header-action.secondary,
.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero,
.section,
.page-main {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: 88vh;
  display: grid;
  align-items: center;
}

.hero-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h3 {
  font-size: 1.25rem;
}

.hero-copy,
.section-heading p,
.page-hero p,
.split-section p,
.install-card p,
.doc-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy {
  max-width: 760px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-stats div,
.glass-panel,
.terminal-card,
.plan,
.steps-grid article,
.install-card,
.doc-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 16px;
  border-radius: 20px;
}

.hero-stats dt {
  font-size: 1.4rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.terminal-card,
.glass-panel,
.install-card,
.doc-card {
  border-radius: 28px;
}

.terminal-card {
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.terminal-header span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: var(--orange);
}

.terminal-header span:nth-child(2) {
  background: var(--acid);
}

.terminal-header span:nth-child(3) {
  background: var(--cyan);
}

.terminal-header strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #d7faff;
  font-size: 0.9rem;
  line-height: 1.65;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 26px;
}

.plans,
.steps-grid,
.command-grid,
.docs-grid {
  display: grid;
  gap: 16px;
}

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

.plan {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
}

.plan.featured {
  background: linear-gradient(135deg, rgba(185, 255, 77, 0.18), rgba(71, 229, 255, 0.12));
}

.subscription-plan {
  grid-column: span 2;
}

.plan-name {
  margin: 0;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.plan h3 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: -0.07em;
}

.credit {
  color: var(--muted);
}

.workflow-section {
  background: rgba(255, 255, 255, 0.03);
}

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

.steps-grid article {
  padding: 22px;
  border-radius: 24px;
}

.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  color: #06111f;
  font-weight: 950;
}

.feature-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.feature-row span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.glass-panel {
  padding: 28px;
}

.glass-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.page-main {
  min-height: 80vh;
}

.page-hero {
  max-width: 980px;
  margin-bottom: 28px;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

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

.install-card,
.doc-card {
  padding: 24px;
}

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

.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.prospectus-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -52px clamp(18px, 5vw, 72px) 44px;
}

.prospectus-band article,
.docs-toc,
.doc-section,
.doc-callout,
.component-list div {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.prospectus-band article {
  padding: 18px;
  border-radius: 24px;
}

.prospectus-band span,
.docs-toc strong {
  display: block;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prospectus-band strong {
  display: block;
  margin: 8px 0;
  font-size: 1.35rem;
}

.prospectus-band p,
.doc-section p,
.doc-steps,
.doc-table {
  color: var(--muted);
  line-height: 1.75;
}

.docs-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 10px;
  border-radius: 26px;
  padding: 18px;
}

.docs-toc a {
  color: var(--muted);
}

.docs-toc a:hover {
  color: var(--ink);
}

.docs-content {
  display: grid;
  gap: 18px;
}

.doc-section {
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
}

.doc-section h2 {
  margin-bottom: 16px;
}

.component-list {
  display: grid;
  gap: 12px;
}

.component-list div {
  display: grid;
  gap: 5px;
  border-radius: 18px;
  padding: 16px;
}

.component-list span {
  color: var(--muted);
  line-height: 1.6;
}

.doc-steps {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.doc-callout {
  margin-top: 18px;
  border-radius: 22px;
  padding: 18px;
  color: var(--muted);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.doc-table th,
.doc-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-section,
  .command-grid,
  .docs-grid,
  .prospectus-band,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
  }

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header nav,
  .hero-stats,
  .plans,
  .steps-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header nav,
  .site-footer {
    display: grid;
  }

  .subscription-plan {
    grid-column: auto;
  }

  .button,
  .header-action,
  .plan-action {
    width: 100%;
  }
}
