:root {
  --bg: #111214;
  --surface: #181a1e;
  --surface-hover: #1f2228;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f7;
  --text-muted: #9298a3;
  --accent: #147ce5;
  --accent-glow: rgba(20, 124, 229, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 18, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--surface-hover);
}

/* Hero */
.hero {
  padding: 104px 0 88px;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 28px;
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 3px var(--accent);
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  margin: 0 auto 36px;
  max-width: 600px;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-showcase {
  margin-top: 56px;
}

.screenshot-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.window-bar {
  height: 36px;
  background: #1c1e22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 14px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #1b88f5;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.section-desc {
  margin: 12px 0 0;
  max-width: 560px;
  color: var(--text-muted);
}

/* 3-Piece Setup */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.setup-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
}

.setup-step {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.setup-icon {
  width: 36px;
  height: 36px;
  color: var(--text);
  margin-bottom: 20px;
}

.setup-icon svg {
  width: 100%;
  height: 100%;
}

.setup-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.setup-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Two Modes */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mode-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mode-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.mode-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mode-card p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.mode-example {
  margin-top: auto;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  overflow-x: auto;
}

/* Interactive Rig Panel */
.rig-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rig-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  appearance: none;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.pill.active {
  background: rgba(20, 124, 229, 0.14);
  color: #ffffff;
  border-color: var(--accent);
}

.signal-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.chain-node {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.node-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.node-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
}

.node-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chain-arrow {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1rem;
  text-align: center;
}

/* Specs */
.specs-section {
  padding: 56px 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-num {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.spec-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  padding: 96px 0;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cta-inner p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.cta-note {
  margin-top: 16px !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sep {
  color: var(--text-muted);
}

.footer-right a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-right a:hover {
  color: var(--text);
}

/* Legal Pages (Privacy & Terms) */
.legal-page {
  padding: 72px 0 96px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.legal-back:hover {
  color: var(--text);
}

.legal-inner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 500;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

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

  .signal-chain {
    grid-template-columns: 1fr;
  }

  .chain-arrow {
    transform: rotate(90deg);
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-title br {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-showcase {
    margin-top: 36px !important;
  }

  .screenshot-frame {
    border-radius: 10px;
  }

  .window-bar {
    height: 28px;
    padding: 0 10px;
  }

  .window-dots {
    gap: 6px;
  }

  .dot {
    width: 9px;
    height: 9px;
  }

  .window-title {
    font-size: 0.7rem;
  }

  .section {
    padding: 56px 0;
  }

  .setup-card,
  .mode-card,
  .rig-panel {
    padding: 20px;
  }

  .pill {
    width: 100%;
    text-align: left;
  }

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