:root {
  --bg: #07090d;
  --bg-soft: #0c1016;
  --panel: rgba(16, 20, 27, 0.9);
  --panel-strong: rgba(19, 24, 33, 0.95);
  --line: rgba(129, 189, 255, 0.18);
  --line-strong: rgba(129, 189, 255, 0.36);
  --text: #f5f7fb;
  --muted: #98a1b2;
  --accent: #86cbff;
  --accent-strong: #d7eeff;
  --accent-dim: rgba(134, 203, 255, 0.1);
  --shadow: 0 32px 96px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.3);
  --inner: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(134, 203, 255, 0.16), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(134, 203, 255, 0.1), transparent 16%),
    linear-gradient(180deg, #10141c 0%, #090c12 46%, #06080c 100%);
  font-family: "Trebuchet MS", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

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

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 26px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, rgba(134, 203, 255, 1), rgba(134, 203, 255, 0.28));
  box-shadow: 0 0 0 1px rgba(134, 203, 255, 0.28);
}

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

.brand-text strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-nav {
  display: inline-flex;
  gap: 18px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.top-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 0.96fr;
  gap: 30px;
  align-items: start;
  padding: 30px 0 26px;
}

.hero-copy {
  padding-top: 20px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow,
.section-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.narrative-copy h2,
.install-intro h2,
.stack-card h3,
.rail-card h3,
.detail-panel h3 {
  margin: 0;
  font-weight: 600;
}

.hero h1 {
  max-width: 8.5ch;
  margin-top: 18px;
  font-family: "Georgia", "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 60ch;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.76;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.hero-stats div {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats span,
.stage-topline span,
.stage-meta span,
.metric-index {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stats strong,
.stage-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 0.94rem;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.button-primary {
  background: linear-gradient(180deg, rgba(134, 203, 255, 0.22), rgba(134, 203, 255, 0.08));
  box-shadow: 0 10px 26px rgba(134, 203, 255, 0.12);
}

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

.button-small {
  min-height: 42px;
  padding: 0 16px;
}

.pixel-panel,
.download-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--inner);
}

.pixel-panel::before,
.download-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1px solid rgba(134, 203, 255, 0.12);
  clip-path: polygon(
    0 12px, 12px 12px, 12px 0, calc(100% - 12px) 0, calc(100% - 12px) 12px, 100% 12px,
    100% calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) 100%,
    12px 100%, 12px calc(100% - 12px), 0 calc(100% - 12px)
  );
}

.hero-stage {
  position: relative;
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow: visible;
  transform-style: preserve-3d;
}

.floating-note {
  position: absolute;
  width: 220px;
  padding: 14px 16px;
  background: rgba(9, 12, 17, 0.84);
  border: 1px solid rgba(134, 203, 255, 0.18);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.floating-note span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.4;
}

.floating-note-a {
  top: -18px;
  right: 26px;
}

.floating-note-b {
  bottom: 28px;
  left: -26px;
}

.stage-topline,
.stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.hero-console {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.console-header {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.console-header span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.terminal-preview,
.command-block code {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--accent-strong);
  font: 0.95rem/1.62 "Consolas", "Lucida Console", monospace;
}

.ticker-band {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  gap: 38px;
  width: max-content;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: ticker 24s linear infinite;
}

.narrative-grid,
.feature-rail,
.detail-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.narrative-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0 0;
}

.narrative-copy h2 {
  max-width: 11ch;
  margin-top: 12px;
  font-family: "Georgia", "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.narrative-copy p:last-child {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1rem;
}

.narrative-stack {
  display: grid;
  gap: 16px;
}

.stack-card,
.rail-card,
.detail-panel,
.install-section {
  padding: 26px;
}

.stack-card h3,
.rail-card h3,
.detail-panel h3 {
  margin-top: 10px;
  font-size: 1.28rem;
}

.stack-card p,
.rail-card p,
.detail-panel li,
.install-intro p,
.install-steps p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-rail {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  margin-top: 18px;
}

.rail-card {
  min-height: 230px;
}

.rail-card-large {
  min-height: 260px;
}

.install-section {
  margin-top: 18px;
}

.install-intro {
  display: grid;
  gap: 12px;
}

.install-intro h2 {
  max-width: 10ch;
  font-family: "Georgia", "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.install-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
}

.command-block {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.install-steps {
  display: grid;
  gap: 12px;
}

.step-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.024);
}

.step-line span {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step-line p {
  margin: 0;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.download-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
}

.download-card strong {
  font-size: 1rem;
}

.download-card span {
  color: var(--muted);
  line-height: 1.62;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.detail-panel ul {
  padding-left: 18px;
  margin: 14px 0 0;
}

.detail-panel li + li {
  margin-top: 8px;
}

code {
  font-family: "Consolas", "Lucida Console", monospace;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33%);
  }
}

@media (max-width: 1080px) {
  .hero,
  .narrative-grid,
  .feature-rail,
  .install-layout,
  .detail-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .floating-note-b {
    left: auto;
    right: 22px;
    bottom: -18px;
  }
}

@media (max-width: 860px) {
  .site-head,
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .command-block {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 10px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero h1,
  .narrative-copy h2,
  .install-intro h2 {
    font-size: 2.9rem;
  }

  .hero-stage,
  .stack-card,
  .rail-card,
  .detail-panel,
  .install-section {
    padding: 18px;
  }

  .floating-note {
    position: relative;
    inset: auto;
    width: auto;
  }
}
