:root {
  --bg: #090a0d;
  --surface: #0f1116;
  --panel: #13161d;
  --hairline: rgba(255, 255, 255, 0.075);
  --hairline-strong: rgba(255, 255, 255, 0.14);
  --light-band: #f4f5f7;
  --light-card: #ffffff;
  --light-line: #e2e5ec;
  --ink: #0b0d12;
  --ink-muted: #525866;
  --text: #f8fafc;
  --muted: #8e96a4;
  --dim: #5e6675;
  --blue: #1e88e5;
  --accent: #4f9cf9;
  --orange: #ff6b35;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--blue);
  z-index: 80;
  transition: width 0.08s linear;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.stage-dark {
  position: relative;
  background: radial-gradient(
      920px 420px at 50% -140px,
      rgba(30, 136, 229, 0.09),
      transparent 70%
    ),
    var(--bg);
  color: var(--text);
}

.bg-dot-grid {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.065) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

.stage-light {
  position: relative;
  background: var(--light-band);
  color: var(--ink);
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 10, 13, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.brand-dot {
  color: var(--orange);
}

.studio-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 500;
  transition: color 0.16s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: #ffffff;
}

.btn-orange:hover {
  background: #eb5e28;
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
}

.btn-blue:hover {
  background: #1976d2;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--hairline-strong);
}

.btn-ghost:hover {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.24);
}

.icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .idx {
  color: var(--accent);
}

.stage-light .eyebrow {
  color: var(--ink-muted);
}

.stage-light .eyebrow .idx {
  color: var(--blue);
}

.hero {
  position: relative;
  padding: 86px 0 96px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
}

.hero-head {
  max-width: 880px;
  margin-bottom: 46px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 16px 0 22px;
  color: var(--text);
}

.text-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 8px 7px 15px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: #dce2ec;
}

.install-pill .prompt {
  color: var(--accent);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 5px;
  border: 1px solid var(--hairline-strong);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.copy-chip:hover {
  border-color: var(--accent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.stat-cell b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-cell span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.section-pad {
  padding: 108px 0;
}

.sec-intro {
  max-width: 720px;
  margin-bottom: 52px;
}

.sec-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 12px 0 14px;
}

.sec-intro p {
  font-size: 1.04rem;
  color: var(--ink-muted);
}

.stage-dark .sec-intro p {
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-links,
  .studio-tag {
    display: none;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    padding: 0 20px;
  }
  .hero {
    padding: 54px 0 68px;
  }
  .section-pad {
    padding: 74px 0;
  }
}
