:root {
  --bg: #0a0b10;
  --bg-elevated: #12141c;
  --bg-card: #161922;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f5f7;
  --text-muted: #9aa3b2;
  --accent: #7c6cff;
  --accent-2: #5eead4;
  --accent-gradient: linear-gradient(135deg, #7c6cff 0%, #5eead4 100%);
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --header-h: 64px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 11, 16, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: #0a0b10;
  box-shadow: 0 10px 30px rgba(124, 108, 255, 0.35);
}

.btn-primary:hover {
  color: #0a0b10;
  box-shadow: 0 14px 36px rgba(94, 234, 212, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

.btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 108, 255, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 0%, rgba(94, 234, 212, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.compare-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.mock-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f1118;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #1a1d27;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dots {
  display: flex;
  gap: 0.35rem;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b4150;
}

.mock-body {
  padding: 1rem;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.deck-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: rgba(124, 108, 255, 0.12);
  border: 1px solid rgba(124, 108, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  gap: 0.2rem;
}

.deck-btn strong {
  color: var(--text);
  font-size: 0.72rem;
}

.deck-btn.hot {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.35);
}

section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

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

.feature-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.pricing {
  background: linear-gradient(180deg, rgba(124, 108, 255, 0.06), transparent);
  border-block: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(124, 108, 255, 0.45);
  box-shadow: 0 20px 60px rgba(124, 108, 255, 0.12);
}

.price-card h3 {
  margin: 0;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.35rem 0 0.25rem;
  letter-spacing: -0.03em;
}

.price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.price-card li {
  margin-bottom: 0.35rem;
}

.hardware-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

.demo-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 9;
}

.demo-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  color: var(--text-muted);
  font-weight: 400;
}

.faq-item.is-open .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.download-card h3 {
  margin: 0 0 0.35rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-grid h4 {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  margin-top: 0;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.placeholder-legal {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #fecaca;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .pricing-grid,
  .download-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(10, 11, 16, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
