/* ═══════════════════════════════════════════════════════════
   claude-code-voice — Landing Page Styles
   Design: Electric purple space — dark, dynamic, in-motion
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────
   Design Tokens
───────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:        #08060e;
  --bg-surface:     #0e0a1a;
  --bg-raised:      #150f25;
  --bg-glass:       rgba(14, 10, 26, 0.65);
  --bg-glass-hover: rgba(21, 15, 37, 0.88);
  --bg-border:      rgba(168, 85, 247, 0.14);
  --bg-border-hover:rgba(168, 85, 247, 0.32);

  /* Primary palette */
  --purple:      #a855f7;
  --purple-dim:  rgba(168, 85, 247, 0.14);
  --purple-glow: rgba(168, 85, 247, 0.08);
  --blue:        #3b82f6;
  --blue-dim:    rgba(59, 130, 246, 0.14);
  --cyan:        #06b6d4;
  --cyan-dim:    rgba(6, 182, 212, 0.14);

  /* Text */
  --text-primary:   #f0eaff;
  --text-secondary: #9b8fbe;
  --text-muted:     #4e4370;
  --text-code:      #c084fc;

  /* Gradient */
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
  --grad-accent:  linear-gradient(90deg, #a855f7, #06b6d4);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─────────────────────────────────
   Reset
───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ─────────────────────────────────
   Layout Utilities
───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s var(--ease-out), background 0.3s;
}
.glass-card:hover {
  border-color: var(--bg-border-hover);
  background: var(--bg-glass-hover);
}

/* ─────────────────────────────────
   Buttons
───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-snap), box-shadow 0.2s;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 32px rgba(168,85,247,.35), 0 4px 16px rgba(168,85,247,.2);
}
.btn--primary:hover {
  box-shadow: 0 0 48px rgba(168,85,247,.5), 0 8px 32px rgba(59,130,246,.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-border);
}
.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 16px rgba(168,85,247,.12);
}

/* ─────────────────────────────────
   Badges
───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge--purple  { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(168,85,247,.25); }
.badge--blue    { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(59,130,246,.25); }
.badge--cyan    { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(6,182,212,.25); }
.badge--muted   { background: rgba(78,67,112,.2); color: var(--text-secondary); border: 1px solid rgba(78,67,112,.3); }
.badge--gradient {
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(59,130,246,.15));
  color: #c084fc;
  border: 1px solid rgba(168,85,247,.3);
}

/* ─────────────────────────────────
   Code Blocks
───────────────────────────────── */
.code-block {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(8,6,14,.9);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  overflow: hidden;
}
.code-block__code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple);
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.code-block__code::-webkit-scrollbar { display: none; }
.code-block--sm .code-block__code { font-size: 13px; }

.code-block__copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: var(--radius-sm);
  color: var(--purple);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, transform .15s var(--ease-snap);
}
.code-block__copy:hover  { background: rgba(168,85,247,.2); transform: scale(1.04); }
.code-block__copy:active { transform: scale(.97); }
.code-block__copy.copied { background: rgba(168,85,247,.25); color: #fff; }

/* ─────────────────────────────────
   Section Scaffold
───────────────────────────────── */
.section { padding: var(--space-24) 0; position: relative; }

.section__header { text-align: center; margin-bottom: var(--space-16); }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.section__subtitle {
  margin-top: var(--space-4);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
  text-wrap: pretty;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────
   Navigation
───────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: 64px;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(8,6,14,.93);
  border-bottom: 1px solid var(--bg-border);
  box-shadow: 0 4px 32px rgba(0,0,0,.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  display: flex; align-items: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}

.nav__back {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .04em;
  flex-shrink: 0;
  transition: color .2s;
}
.nav__back:hover { color: var(--purple); }

.nav__logo {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: color .2s;
}
.nav__logo:hover { color: var(--purple); }
.nav__logo-icon { font-size: 20px; }
.nav__logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex; align-items: center; gap: var(--space-6);
  margin-left: auto;
}
.nav__link {
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--grad-primary);
  transition: width .25s var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__github {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.nav__github:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-dim);
}

.nav__hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  padding: 4px; margin-left: auto;
}
.nav__hamburger span {
  display: block; height: 1.5px;
  background: var(--text-secondary); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s, width .3s;
}
.nav__hamburger span:nth-child(3) { width: 60%; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { width: 100%; transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────
   Hero
───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-6) var(--space-24);
  overflow: hidden;
}

/* Background layers */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4;
  mix-blend-mode: overlay;
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(168,85,247,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 20%, transparent 75%);
}

.hero__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--purple {
  width: 700px; height: 500px;
  top: -15%; left: 45%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168,85,247,.16) 0%, transparent 70%);
  animation-duration: 14s;
}
.hero__orb--blue {
  width: 500px; height: 400px;
  top: 30%; left: 70%;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  animation-duration: 10s;
  animation-delay: -3s;
}
.hero__orb--cyan {
  width: 400px; height: 350px;
  top: 50%; left: 15%;
  background: radial-gradient(circle, rgba(6,182,212,.08) 0%, transparent 70%);
  animation-duration: 16s;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px); }
  33% { transform: translateY(-30px); }
  66% { transform: translateY(20px); }
}

/* Decorative rings */
.hero__ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,.06);
  transform: translate(-50%, -50%);
  animation: ringExpand 8s ease-in-out infinite;
}
.hero__ring--1 { width: 500px; height: 500px; animation-delay: 0s; }
.hero__ring--2 { width: 800px; height: 800px; animation-delay: -2.5s; opacity: .6; }
.hero__ring--3 { width: 1100px; height: 1100px; animation-delay: -5s; opacity: .3; }

@keyframes ringExpand {
  0%, 100% { opacity: .08; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .16; transform: translate(-50%, -50%) scale(1.04); }
}

/* Content */
.hero__content {
  position: relative; z-index: 1;
  max-width: 860px; width: 100%;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-6);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(168,85,247,.07);
  border: 1px solid rgba(168,85,247,.22);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 13px; color: var(--purple);
  animation: fadeDown .7s var(--ease-out) both;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  animation: pulsePurple 2s ease-in-out infinite;
}

@keyframes pulsePurple {
  0%,100% { box-shadow: 0 0 6px var(--purple); }
  50% { box-shadow: 0 0 16px var(--purple), 0 0 28px rgba(168,85,247,.4); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 0 .35em;
  justify-content: center;
  animation: fadeDown .7s var(--ease-out) .12s both;
}
.hero__phrase { white-space: nowrap; }

.hero__gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  animation: fadeDown .7s var(--ease-out) .22s both;
}

/* Speed stat */
.hero__speed {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-8);
  background: rgba(14,10,26,.7);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  animation: fadeDown .7s var(--ease-out) .3s both;
}

.hero__speed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__speed-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text-secondary);
}
.hero__speed-num--voice {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__speed-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .1em;
}

.hero__speed-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__speed-vs {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .08em;
}

.hero__speed-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-3) var(--space-5);
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(59,130,246,.1));
  border: 1px solid rgba(168,85,247,.28);
  border-radius: var(--radius-md);
}

.hero__speed-mult {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero__speed-faster {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 72px;
  animation: fadeDown .8s var(--ease-out) .4s both;
}

.waveform__bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(168,85,247,.4), rgba(59,130,246,.8));
  animation: waveAnim 1.2s ease-in-out infinite;
  transform-origin: bottom;
}

/* Staggered heights and delays for natural waveform look */
.waveform__bar:nth-child(1)  { height: 18px; animation-delay: .0s; }
.waveform__bar:nth-child(2)  { height: 28px; animation-delay: .08s; }
.waveform__bar:nth-child(3)  { height: 22px; animation-delay: .16s; }
.waveform__bar:nth-child(4)  { height: 38px; animation-delay: .24s; }
.waveform__bar:nth-child(5)  { height: 30px; animation-delay: .32s; }
.waveform__bar:nth-child(6)  { height: 46px; animation-delay: .40s; }
.waveform__bar:nth-child(7)  { height: 36px; animation-delay: .48s; }
.waveform__bar:nth-child(8)  { height: 56px; animation-delay: .56s; }
.waveform__bar:nth-child(9)  { height: 44px; animation-delay: .64s; }
.waveform__bar:nth-child(10) { height: 62px; animation-delay: .72s; }
.waveform__bar:nth-child(11) { height: 52px; animation-delay: .64s; }
.waveform__bar:nth-child(12) { height: 64px; animation-delay: .56s; }
.waveform__bar:nth-child(13) { height: 48px; animation-delay: .48s; }
.waveform__bar:nth-child(14) { height: 58px; animation-delay: .40s; }
.waveform__bar:nth-child(15) { height: 38px; animation-delay: .32s; }
.waveform__bar:nth-child(16) { height: 50px; animation-delay: .24s; }
.waveform__bar:nth-child(17) { height: 30px; animation-delay: .16s; }
.waveform__bar:nth-child(18) { height: 40px; animation-delay: .08s; }
.waveform__bar:nth-child(19) { height: 22px; animation-delay: .0s; }
.waveform__bar:nth-child(20) { height: 28px; animation-delay: .08s; }
.waveform__bar:nth-child(21) { height: 18px; animation-delay: .16s; }
.waveform__bar:nth-child(22) { height: 14px; animation-delay: .24s; }

.waveform__bar--peak {
  background: linear-gradient(to top, rgba(59,130,246,.6), rgba(6,182,212,1));
}

@keyframes waveAnim {
  0%, 100% { transform: scaleY(1);    opacity: .7; }
  50%       { transform: scaleY(1.8); opacity: 1; }
}

/* Hero CTAs */
.hero__ctas {
  display: flex; align-items: center;
  gap: var(--space-3); flex-wrap: wrap;
  justify-content: center;
  animation: fadeDown .7s var(--ease-out) .5s both;
}

.hero__scroll-hint {
  position: absolute; bottom: var(--space-8); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  color: var(--text-muted);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  animation: fadeDown 1s var(--ease-out) 1.2s both;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { transform: scaleY(1); opacity: 1; }
  70%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────
   Features / Bento
───────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-5);
}

.bento__card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-8);
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease-snap), box-shadow .3s;
}
.bento__card:hover {
  border-color: var(--bg-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.45), 0 0 32px rgba(168,85,247,.07);
}

/* Hero card — first card, wide and tall */
.bento__card--hero {
  grid-column: span 2;
  grid-row: span 2;
}
.bento__card--hero .bento__card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--space-6);
}
.bento__card--hero .bento__text { flex: 1; }

/* Wide card — bottom span */
.bento__card--wide {
  grid-column: span 2;
}
.bento__card--wide .bento__card-inner {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

/* Accent card */
.bento__card--accent {
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(59,130,246,.07));
  border-color: rgba(168,85,247,.2);
}

/* Glow orbs inside cards */
.bento__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.bento__card:hover .bento__orb { opacity: 1; }
.bento__orb--purple        { width: 250px; height: 250px; top: -50px; right: -50px; background: radial-gradient(circle, rgba(168,85,247,.18) 0%, transparent 70%); }
.bento__orb--blue          { width: 220px; height: 220px; top: -40px; right: -40px; background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%); }
.bento__orb--cyan          { width: 220px; height: 220px; top: -40px; right: -40px; background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%); }
.bento__orb--purple-strong { width: 300px; height: 300px; top: -80px; right: -60px; background: radial-gradient(circle, rgba(168,85,247,.25) 0%, transparent 70%); }
.bento__orb--blue-strong   { width: 280px; height: 280px; top: -60px; right: -40px; background: radial-gradient(circle, rgba(59,130,246,.2) 0%, transparent 70%); }

.bento__card-inner { position: relative; z-index: 1; min-width: 0; }
.bento__card-inner--col { display: flex; flex-direction: column; }

/* Icon wrap */
.bento__icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}
.bento__card--hero .bento__icon-wrap { width: 60px; height: 60px; }
.bento__icon-wrap--purple  { background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.25); color: var(--purple); }
.bento__icon-wrap--blue    { background: rgba(59,130,246,.15);  border: 1px solid rgba(59,130,246,.25);  color: var(--blue); }
.bento__icon-wrap--cyan    { background: rgba(6,182,212,.15);   border: 1px solid rgba(6,182,212,.25);   color: var(--cyan); }
.bento__icon-wrap--gradient {
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(59,130,246,.15));
  border: 1px solid rgba(168,85,247,.3);
  color: #c084fc;
}

/* Tags */
.bento__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.bento__tag--purple  { color: var(--purple); }
.bento__tag--blue    { color: var(--blue); }
.bento__tag--cyan    { color: var(--cyan); }
.bento__tag--gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bento__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}
.bento__card--hero .bento__title { font-size: 26px; }

.bento__desc {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: var(--space-4);
}
.bento__card-inner--col .bento__desc { font-size: 14px; }

.bento__badges {
  display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4);
}

.bento__highlight {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 500;
  letter-spacing: .02em;
  margin-top: var(--space-4);
}

/* Mini wave inside STT card */
.bento__mini-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-top: auto;
}
.bento__mini-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(168,85,247,.3), rgba(168,85,247,.8));
  animation: waveAnim 1.2s ease-in-out infinite;
  transform-origin: bottom;
}
.bento__mini-wave span:nth-child(1)  { height: 8px;  animation-delay: .0s; }
.bento__mini-wave span:nth-child(2)  { height: 18px; animation-delay: .1s; }
.bento__mini-wave span:nth-child(3)  { height: 12px; animation-delay: .2s; }
.bento__mini-wave span:nth-child(4)  { height: 28px; animation-delay: .3s; }
.bento__mini-wave span:nth-child(5)  { height: 20px; animation-delay: .4s; }
.bento__mini-wave span:nth-child(6)  { height: 32px; animation-delay: .5s; }
.bento__mini-wave span:nth-child(7)  { height: 22px; animation-delay: .4s; }
.bento__mini-wave span:nth-child(8)  { height: 28px; animation-delay: .3s; }
.bento__mini-wave span:nth-child(9)  { height: 14px; animation-delay: .2s; }
.bento__mini-wave span:nth-child(10) { height: 20px; animation-delay: .1s; }

/* iOS visual inside wide card */
.bento__ios-visual {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.bento__phone {
  width: 52px; height: 88px;
  background: rgba(168,85,247,.08);
  border: 1.5px solid rgba(168,85,247,.3);
  border-radius: 12px;
  padding: 6px;
  position: relative;
  flex-shrink: 0;
}
.bento__phone-screen {
  width: 100%; height: 100%;
  background: rgba(168,85,247,.08);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.bento__phone-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  animation: pulsePurple 1.5s ease-in-out infinite;
}
.bento__phone-wave {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.5), transparent);
  animation: phonePing 2s ease-in-out infinite;
}
.bento__phone-wave--2 { animation-delay: .6s; opacity: .6; }
.bento__phone-wave--3 { animation-delay: 1.2s; opacity: .3; }

@keyframes phonePing {
  0% { transform: scaleX(0.2); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.2); opacity: 0; }
}

/* Connection dots */
.bento__connect-line {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bento__connect-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 1.5s ease-in-out infinite;
}
.bento__connect-dot--1 { animation-delay: 0s; }
.bento__connect-dot--2 { animation-delay: .3s; background: rgba(168,85,247,.8); }
.bento__connect-dot--3 { animation-delay: .6s; }

@keyframes dotPulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Mac visual */
.bento__mac {
  flex-shrink: 0;
}
.bento__mac-screen {
  width: 72px; height: 48px;
  background: rgba(59,130,246,.08);
  border: 1.5px solid rgba(59,130,246,.3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento__mac-cursor {
  width: 2px; height: 14px;
  background: var(--blue);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.bento__mac-base {
  width: 30px; height: 4px;
  background: rgba(59,130,246,.2);
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}

/* ─────────────────────────────────
   Architecture
───────────────────────────────── */
.arch__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--space-16) 0;
  overflow-x: auto;
}

.arch__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  position: relative;
  cursor: default;
}

.arch__node-icon {
  width: 96px; height: 96px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .3s var(--ease-snap);
}
.arch__node:hover .arch__node-icon {
  transform: translateY(-6px);
}

.arch__node--ios .arch__node-icon {
  background: rgba(168,85,247,.12);
  border: 1.5px solid rgba(168,85,247,.35);
  color: var(--purple);
  box-shadow: 0 0 32px rgba(168,85,247,.12);
}
.arch__node--bridge .arch__node-icon {
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(59,130,246,.12));
  border: 1.5px solid rgba(168,85,247,.4);
  color: #c084fc;
  box-shadow: 0 0 48px rgba(168,85,247,.2);
  width: 112px; height: 112px;
}
.arch__node--mac .arch__node-icon {
  background: rgba(59,130,246,.12);
  border: 1.5px solid rgba(59,130,246,.35);
  color: var(--blue);
  box-shadow: 0 0 32px rgba(59,130,246,.12);
}

.arch__node-ring {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite;
  pointer-events: none;
}
.arch__node--bridge .arch__node-ring {
  width: 160px; height: 160px;
  border-color: rgba(168,85,247,.15);
}
.arch__node--mac .arch__node-ring { border-color: rgba(59,130,246,.12); }

.arch__node-pulse {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 3s ease-in-out infinite .8s;
  pointer-events: none;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .6; }
  50% { transform: translate(-50%,-50%) scale(1.12); opacity: 1; }
}

.arch__node-label {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.arch__node--bridge .arch__node-label { font-size: 20px; }

.arch__node-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* Connections */
.arch__connection {
  flex: 1; min-width: 80px; max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.arch__conn-line {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(168,85,247,.3), rgba(59,130,246,.3));
  position: relative;
  border-radius: 2px;
  overflow: visible;
}

/* Animated packets traveling the line */
.arch__conn-packet {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  animation: packetTravel 2.4s ease-in-out infinite;
}
.arch__conn-packet--1 { background: var(--purple); box-shadow: 0 0 8px var(--purple); animation-delay: 0s; }
.arch__conn-packet--2 { background: var(--blue); box-shadow: 0 0 8px var(--blue); animation-delay: 1.2s; }
.arch__conn-packet--3 { background: var(--blue); box-shadow: 0 0 8px var(--blue); animation-delay: .3s; }
.arch__conn-packet--4 { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation-delay: 1.5s; }

@keyframes packetTravel {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

.arch__conn-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.arch__conn-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .04em;
  white-space: nowrap;
}
.arch__conn-label--top { color: var(--purple); }
.arch__conn-label--bottom { color: var(--blue); }

/* Tech pills */
.arch__tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.arch__tech-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-border);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  transition: border-color .2s, transform .2s;
}
.arch__tech-item:hover {
  border-color: var(--bg-border-hover);
  transform: translateY(-2px);
}

.arch__tech-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.arch__tech-dot--purple { background: var(--purple); box-shadow: 0 0 6px var(--purple); }
.arch__tech-dot--blue   { background: var(--blue);   box-shadow: 0 0 6px var(--blue); }
.arch__tech-dot--cyan   { background: var(--cyan);   box-shadow: 0 0 6px var(--cyan); }

.arch__tech-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ─────────────────────────────────
   Installation
───────────────────────────────── */
.install__steps {
  display: flex; align-items: stretch; gap: var(--space-5);
  max-width: 860px; margin: 0 auto;
}
.install__step {
  flex: 1; padding: var(--space-8);
  position: relative; overflow: hidden;
}
.install__step::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-primary);
}
.install__step-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--purple); letter-spacing: .1em;
  margin-bottom: var(--space-4);
}
.install__step-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin-bottom: var(--space-2);
}
.install__step-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: var(--space-2); }

.install__arrow {
  width: 44px; flex-shrink: 0;
  display: flex; align-items: center; margin-bottom: var(--space-4);
}
.install__arrow svg { width: 36px; height: 36px; }

.install__note {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-2); margin-top: var(--space-8);
  font-size: 15px; color: var(--text-muted); font-family: var(--font-mono);
}
.install__note-icon { font-size: 16px; }

/* ─────────────────────────────────
   Usage
───────────────────────────────── */
.usage__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.usage__card {
  padding: var(--space-6);
  transition: transform .3s var(--ease-snap), box-shadow .3s;
}
.usage__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4), 0 0 24px rgba(168,85,247,.06);
}

.usage__card-top {
  margin-bottom: var(--space-4);
}

.usage__mode-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.usage__mode-badge--stt  { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(168,85,247,.25); }
.usage__mode-badge--tts  { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(59,130,246,.25); }
.usage__mode-badge--chat {
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(59,130,246,.1));
  color: #c084fc; border: 1px solid rgba(168,85,247,.28);
}
.usage__mode-badge--ios  { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(6,182,212,.25); }

.usage__method {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary); margin-bottom: var(--space-3);
}
.usage__desc {
  font-size: 14px; color: var(--text-muted);
  margin-top: var(--space-3); line-height: 1.6;
}
.usage__tag { margin-top: var(--space-4); }

/* ─────────────────────────────────
   Footer
───────────────────────────────── */
.footer {
  position: relative;
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-border);
  padding-top: var(--space-16); overflow: hidden;
}
.footer__glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.05) 0%, transparent 70%);
  pointer-events: none;
}
.footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: start; gap: var(--space-10);
  padding-bottom: var(--space-10);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__logo {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--text-primary);
}
.footer__motto { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 300px; text-wrap: balance; }

.footer__links { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.footer__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color .2s; padding: 4px 0;
}
.footer__link:hover { color: var(--purple); }

.footer__credit { text-align: right; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer__author { color: var(--text-secondary); }
.footer__author-link { color: var(--purple); transition: color .2s; }
.footer__author-link:hover { color: var(--cyan); }

.footer__bottom {
  border-top: 1px solid rgba(78,67,112,.15);
  padding: var(--space-5) var(--space-6);
  text-align: center; font-size: 13px;
  color: var(--text-muted); font-family: var(--font-mono);
}

/* ─────────────────────────────────
   Toast
───────────────────────────────── */
.toast {
  position: fixed; bottom: var(--space-8); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 100px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-snap);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(168,85,247,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─────────────────────────────────
   Responsive — Tablet
───────────────────────────────── */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--hero { grid-column: span 2; grid-row: span 1; }
  .bento__card--hero .bento__card-inner { flex-direction: row; }
  .bento__card--wide { grid-column: span 2; }
  .bento__card--wide .bento__card-inner { flex-direction: column; gap: var(--space-6); }
  .bento__ios-visual { justify-content: center; }

  .arch__diagram { flex-direction: column; gap: var(--space-6); }
  .arch__connection {
    width: 2px; height: 60px; min-width: 2px; max-width: 2px;
    flex-direction: row; margin-bottom: 0;
  }
  .arch__conn-line {
    width: 2px; height: 100%;
    background: linear-gradient(180deg, rgba(168,85,247,.3), rgba(59,130,246,.3));
  }
  .arch__conn-packet { display: none; }
  .arch__conn-labels { display: none; }

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

  .footer__inner { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .footer__credit { grid-column: 1 / -1; text-align: center; }
  .footer__links { flex-direction: row; }

  .hero__speed { gap: var(--space-4); padding: var(--space-4) var(--space-6); }
}

/* ─────────────────────────────────
   Responsive — Mobile
───────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: var(--space-16) 0; }
  .section__header { margin-bottom: var(--space-10); }

  /* Nav mobile */
  .nav__back { display: none; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(8,6,14,.97);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-4) 0;
    transform: translateY(-110%);
    transition: transform .35s var(--ease-out);
    margin-left: 0;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { border-bottom: 1px solid rgba(78,67,112,.15); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__link { display: block; padding: 14px var(--space-6); font-size: 15px; }
  .nav__link::after { display: none; }
  .nav__github { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero { padding: 100px var(--space-5) var(--space-16); }
  .hero__sub br { display: none; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  .hero__headline { font-size: clamp(48px, 14vw, 72px); }

  .hero__speed {
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-4);
    justify-content: center;
  }
  .hero__speed-badge { order: -1; width: 100%; text-align: center; }

  .waveform { height: 48px; }
  .waveform__bar { width: 3px; }

  /* Bento */
  .bento { grid-template-columns: 1fr; gap: var(--space-4); }
  .bento__card--hero { grid-column: span 1; }
  .bento__card--hero .bento__card-inner { flex-direction: column; }
  .bento__card--wide { grid-column: span 1; }
  .bento__card--wide .bento__card-inner { flex-direction: column; }
  .bento__ios-visual { justify-content: center; }

  /* Install */
  .install__steps { flex-direction: column; gap: var(--space-4); }
  .install__arrow { justify-content: center; transform: rotate(90deg); margin: 0 auto; width: auto; }

  /* Usage */
  .usage__grid { grid-template-columns: 1fr; gap: var(--space-4); }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-8); }
  .footer__brand { align-items: center; }
  .footer__motto { text-align: center; max-width: 100%; }
  .footer__credit { text-align: center; }
  .footer__links { flex-direction: row; justify-content: center; }
}

/* ─────────────────────────────────
   Accessibility
───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}
