:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --border: #222225;
  --text: #e8e8ec;
  --text-muted: #7a7a85;
  --accent: #c8ff3e;
  --accent-dim: #a3d632;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ---- Layout ---- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
}

/* ---- Typography ---- */

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.accent { color: var(--accent); }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* ---- Nav ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

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

.nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.85; }

/* ---- Hero ---- */

.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero p {
  max-width: 540px;
  margin: 0 auto 48px;
  font-size: 1.2rem;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.launch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover { border-color: var(--text-muted); }

/* ---- Hero video ---- */

.hero-video-wrap {
  margin-top: 64px;
  position: relative;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 0 80px rgba(200, 255, 62, 0.06), 0 24px 64px rgba(0, 0, 0, 0.4);
}

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

.unmute-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unmute-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(10, 10, 11, 0.95);
}

.unmute-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}

.unmute-btn svg {
  flex-shrink: 0;
}

/* ---- How it works ---- */

.how-section { background: var(--bg-elevated); }

/* Flow diagram */

.flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 72px;
  padding: 0 16px;
}

.flow-node {
  flex: 0 0 130px;
  text-align: center;
}

.flow-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(200, 255, 62, 0.06);
}

.flow-ico {
  width: 36px;
  height: 36px;
}

.flow-node h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.flow-node p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Connectors */

.flow-conn {
  flex: 1;
  max-width: 90px;
  height: 2px;
  background: var(--border);
  margin-top: 35px;
  position: relative;
  overflow: hidden;
}

.flow-particle {
  position: absolute;
  top: -3px;
  left: -14px;
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  filter: blur(3px);
  opacity: 0;
  animation: flow-travel 2.8s ease-in-out infinite;
}

.flow-particle.p2 { animation-delay: 0.35s; }
.flow-particle.p3 { animation-delay: 0.7s; }

@keyframes flow-travel {
  0%   { left: -14px; opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% + 14px); opacity: 0; }
}

/* "simultaneous" label on first connector */

.flow-simul {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.7;
}

/* Key cap bounce animation */

.key-cap {
  animation: key-press 2.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes key-press {
  0%, 80%, 100% { transform: translateY(0); }
  8%  { transform: translateY(2.5px); }
  20% { transform: translateY(0); }
}

/* Waveform scroll animation */

.wave-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 0;
  animation: wave-scroll 1.2s linear infinite;
}

@keyframes wave-scroll {
  to { stroke-dashoffset: -48; }
}

/* Hard bar pulse */

.bar-hard {
  animation: bar-pulse 2.8s ease-in-out infinite;
}

@keyframes bar-pulse {
  0%, 70%, 100% { opacity: 0.85; }
  40% { opacity: 1; filter: drop-shadow(0 0 4px var(--accent)); }
}

/* Sound arc pulse */

.snd-arc {
  opacity: 0;
  animation: snd-pulse 2.8s ease-in-out infinite;
}

.snd-arc.s1 { animation-delay: 0.9s; }
.snd-arc.s2 { animation-delay: 1.1s; }

@keyframes snd-pulse {
  0%, 55%  { opacity: 0; }
  65%      { opacity: 0.9; }
  80%      { opacity: 0.5; }
  95%, 100% { opacity: 0; }
}

/* Credit line */

.flow-credit {
  text-align: center;
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Tech section */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.tech-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tech-value {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.tech-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Comparison ---- */

.compare-section .section-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.compare-section h2 { text-align: center; margin-bottom: 64px; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.compare-card.haptyk { border-color: var(--accent); }

.compare-card .label {
  font-size: 0.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.compare-card.others .label { color: var(--text-muted); }
.compare-card.haptyk .label { color: var(--accent); }

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.compare-card.haptyk .compare-list li { color: var(--text); }

.compare-list .icon { flex-shrink: 0; font-size: 1rem; line-height: 1.5; }

/* ---- Sound Packs ---- */

.packs-section .section-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.packs-section h2 { text-align: center; margin-bottom: 16px; }
.packs-section > .container > p { text-align: center; max-width: 540px; margin: 0 auto 48px; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  .packs-grid { grid-template-columns: repeat(3, 1fr); }
}

.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s;
  cursor: default;
}

.pack-card:hover { border-color: var(--text-muted); }

.pack-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.pack-card .pack-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.pack-card .pack-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.65rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(200, 255, 62, 0.1);
  color: var(--accent);
}

.pack-card .pack-badge.free {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

/* ---- Pricing ---- */

.pricing-section {
  background: var(--bg-elevated);
}

.pricing-section .section-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.pricing-section h2 { text-align: center; margin-bottom: 16px; }
.pricing-section > .container > p { text-align: center; max-width: 500px; margin: 0 auto 64px; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.pricing-card.pro {
  border-color: var(--accent);
  position: relative;
}

.pricing-card.pro::before {
  content: 'Early adopter';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
}

.pricing-card .plan-name {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card .price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features .check { color: var(--accent); font-size: 1rem; }
.pricing-features .x { color: #444; font-size: 1rem; }

.pricing-card .btn-primary { text-align: center; justify-content: center; width: 100%; }
.pricing-card .btn-secondary { text-align: center; justify-content: center; width: 100%; }

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer .footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer .footer-links a:hover { color: var(--white); }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  section { padding: 80px 0; }

  .flow { flex-direction: column; align-items: center; gap: 0; }
  .flow-node { flex: none; }
  .flow-conn {
    width: 2px;
    height: 40px;
    max-width: none;
    margin-top: 0;
  }
  .flow-particle {
    top: -14px;
    left: -3px !important;
    width: 8px;
    height: 14px;
    animation-name: flow-travel-v;
  }
  .flow-simul {
    top: 50%;
    left: auto;
    right: -60px;
    transform: translateY(-50%) translateX(0);
  }

  @keyframes flow-travel-v {
    0%   { top: -14px; opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 1; }
    100% { top: calc(100% + 14px); opacity: 0; }
  }
  .tech-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .nav-links { display: none; }

  .hero { padding-top: 140px; }

  footer .container { flex-direction: column; gap: 16px; text-align: center; }
}
