/* ============================================
   OpenYabby — Premium Dark-First Landing
   ============================================ */

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

:root {
  --bg: #09090b;
  --bg-raised: #111114;
  --bg-card: #141418;
  --bg-card-hover: #1a1a1f;
  --bg-code: #0c0c0f;
  --border: #1f1f26;
  --border-hover: #2a2a33;
  --text: #ececee;
  --text-2: #a0a0ab;
  --text-3: #62626e;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.12);
  --accent-glow-md: rgba(139, 92, 246, 0.2);
  --accent-glow-lg: rgba(139, 92, 246, 0.35);
  --grad-1: #8b5cf6;
  --grad-2: #c084fc;
  --grad-3: #f472b6;
  --green: #34d399;
  --green-glow: rgba(52, 211, 153, 0.12);
  --blue: #60a5fa;
  --blue-glow: rgba(96, 165, 250, 0.12);
  --orange: #fb923c;
  --orange-glow: rgba(251, 146, 60, 0.12);
  --pink: #f472b6;
  --pink-glow: rgba(244, 114, 182, 0.12);
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.12);
  --nav-bg: rgba(9, 9, 11, 0.75);
  --shadow: 0 1px 0 0 var(--border), 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 1px 0 0 var(--border), 0 8px 40px rgba(0,0,0,0.45);
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 6px;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f8;
  --bg-code: #f2f2f5;
  --border: #e2e2e8;
  --border-hover: #d0d0d8;
  --text: #111114;
  --text-2: #52525e;
  --text-3: #8b8b96;
  --accent: #7c3aed;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(124, 58, 237, 0.08);
  --accent-glow-md: rgba(124, 58, 237, 0.14);
  --accent-glow-lg: rgba(124, 58, 237, 0.22);
  --nav-bg: rgba(250, 250, 250, 0.82);
  --shadow: 0 1px 0 0 var(--border), 0 4px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 1px 0 0 var(--border), 0 8px 40px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

.gradient-text {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2), var(--grad-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Particles Canvas ---- */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}

.nav-logo-spacer { display: none; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.05rem;
}
.logo-text { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
  color: white;
}

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--text-3); text-decoration: none; font-size: 0.825rem; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--r-xs);
  color: var(--text-3); cursor: pointer; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text-2); }

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: flex; }
[data-theme="light"] .icon-sun { display: flex; }
[data-theme="light"] .icon-moon { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-xs); font-size: 0.825rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text); cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: inherit;
}
.btn:hover { border-color: var(--border-hover); background: var(--bg-card); }
.btn-nav { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 0.9rem; border-radius: var(--r-sm); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-card); }

.mobile-menu-btn { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; padding: 140px 0 60px; text-align: center; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
}
.hero > .container { position: relative; z-index: 2; width: 100%; }

.hero-glow {
  position: absolute; top: -250px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0.06) 40%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: heroGlow 10s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(244,114,182,0.1) 0%, rgba(196, 181, 253, 0.04) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: heroGlow 10s ease-in-out infinite 5s;
}

/* Yabby Mascot */
.yabby-mascot {
  position: relative; width: 140px; height: 150px;
  margin: 0 auto 20px; z-index: 2;
  cursor: pointer;
}

.yabby-svg {
  animation: yabbyFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(139, 92, 246, 0.35))
          drop-shadow(0 2px 8px rgba(139, 92, 246, 0.15))
          drop-shadow(0 0 40px rgba(139, 92, 246, 0.08));
  transition: filter 0.3s ease;
}

/* Hover boost */
.yabby-mascot:hover .yabby-svg {
  filter: drop-shadow(0 8px 30px rgba(139, 92, 246, 0.5))
          drop-shadow(0 2px 10px rgba(139, 92, 246, 0.25))
          drop-shadow(0 0 60px rgba(167, 139, 250, 0.2));
}
.yabby-mascot:hover .yabby-claw-l { animation-duration: 2s; }
.yabby-mascot:hover .yabby-claw-r { animation-duration: 2s; }

/* Iridescent shell shimmer */
.shell-shimmer {
  animation: shellShimmer 7s ease-in-out infinite;
}

/* Claw wave — gentle, friendly */
.yabby-claw-l { transform-origin: 42px 72px; animation: clawPinchLeft 7s ease-in-out infinite; }
.yabby-claw-r { transform-origin: 98px 72px; animation: clawPinchRight 7s ease-in-out infinite 1s; }

.yabby-pupil { transition: transform 0.1s ease; }

.yabby-shadow {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 8px; border-radius: 50%;
  background: var(--accent-glow-md);
  animation: yabbyShadow 5s ease-in-out infinite;
}

/* Voice rings around mascot */
.voice-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--accent);
  opacity: 0; pointer-events: none;
}
.voice-ring.ring-1 { width: 140px; height: 140px; animation: voiceRing 4.5s ease-out infinite; }
.voice-ring.ring-2 { width: 140px; height: 140px; animation: voiceRing 4.5s ease-out infinite 1.5s; }
.voice-ring.ring-3 { width: 140px; height: 140px; animation: voiceRing 4.5s ease-out infinite 3s; }

.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 12px;
  animation: fadeUp 0.7s ease 0.05s both;
  position: relative;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 25%, #c084fc 50%, #f0abfc 75%, #8b5cf6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 8s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.2));
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 500;
  color: var(--text-2); margin-bottom: 20px; letter-spacing: -0.01em;
  animation: fadeUp 0.7s ease 0.15s both;
}

.hero-subtitle {
  max-width: 540px; margin: 0 auto 36px; color: var(--text-3);
  font-size: 1rem; line-height: 1.7;
  animation: fadeUp 0.7s ease 0.25s both;
}
.hero-subtitle .highlight {
  color: var(--accent); font-weight: 600;
  background: var(--accent-glow); padding: 2px 8px; border-radius: 4px;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 56px;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* Hero Demo Window */
.hero-demo {
  max-width: 680px; margin: 0 auto;
  animation: fadeUp 0.7s ease 0.4s both;
}

.demo-window {
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-code); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(139, 92, 246, 0.06);
}

.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }
.demo-title { color: var(--text-3); font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; }

.demo-body { padding: 16px 20px 20px; }

/* Voice row — orb + status */
.demo-voice-row {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}

.demo-orb {
  position: relative; width: 28px; height: 28px; flex-shrink: 0;
}
.demo-orb-core {
  position: absolute; inset: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.6;
  transition: opacity 0.3s, background 0.3s, box-shadow 0.3s;
}
.demo-orb-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
}
.demo-orb.listening .demo-orb-core { opacity: 1; background: var(--green); box-shadow: 0 0 12px rgba(52,211,153,0.4); }
.demo-orb.listening .demo-orb-ring { opacity: 0.5; animation: orbPulse 1.2s ease-in-out infinite; border-color: var(--green); }
.demo-orb.speaking .demo-orb-core { opacity: 1; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow-md); }
.demo-orb.speaking .demo-orb-ring { opacity: 0.4; animation: orbPulse 1.5s ease-in-out infinite; }
.demo-orb.working .demo-orb-core { opacity: 0.8; background: var(--blue); box-shadow: 0 0 8px rgba(96,165,250,0.3); }
.demo-orb.working .demo-orb-ring { opacity: 0.3; border-color: var(--blue); }
.demo-orb.done .demo-orb-core { opacity: 1; background: var(--green); box-shadow: 0 0 14px rgba(52,211,153,0.5); }
.demo-orb.done .demo-orb-ring { opacity: 0.5; border-color: var(--green); }

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.15; }
}

/* Horizontal scrolling track */
.demo-track-wrap {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 88%, transparent 100%);
}

.demo-track {
  display: flex; gap: 8px; align-items: flex-start;
  transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
  padding-bottom: 4px;
}

/* Individual step cards */
.demo-step {
  flex-shrink: 0; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  line-height: 1.6; color: var(--text-2);
  opacity: 0; transform: translateY(8px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  max-width: 230px; min-width: 170px;
}
.demo-step.visible {
  opacity: 1; transform: translateY(0) scale(1);
}
.demo-step.active {
  border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow);
}
.demo-step.past {
  opacity: 0.45;
}

.demo-step-label {
  font-size: 0.58rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 6px; display: block;
}
.demo-step-label.accent { color: var(--accent); }
.demo-step-label.green { color: var(--green); }
.demo-step-label.blue { color: var(--blue); }
.demo-step-label.orange { color: var(--orange); }
.demo-step-label.pink { color: var(--pink); }

.demo-step .line { margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-step .line.c-accent { color: var(--accent); }
.demo-step .line.c-green { color: var(--green); }
.demo-step .line.c-blue { color: var(--blue); }
.demo-step .line.c-orange { color: var(--orange); }
.demo-step .line.c-dim { color: var(--text-3); font-style: italic; }
.demo-step .line.c-notif { color: var(--pink); font-weight: 500; }

/* Swap transition for running→done */
.demo-step .line { transition: color 0.3s ease; }

.voice-status {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: var(--accent); font-weight: 500;
  transition: color 0.3s;
}


/* ---- Stats Bar ---- */
.stats-bar {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-raised); padding: 28px 0;
}
.stats-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 40px;
}
.stat { text-align: center; }
.stat-number {
  display: block; font-size: 2rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.75rem; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- Section Common ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--accent); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px;
}
.section-header p { color: var(--text-2); font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ---- Features ---- */
.features { padding: 100px 0; position: relative; z-index: 2; }

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

.feature-card {
  padding: 24px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-card); transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--border-hover); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.06);
}

.feature-hero-card {
  grid-column: span 3; border-color: rgba(139, 92, 246, 0.15);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-glow) 100%);
}
.feature-hero-inner {
  display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: center;
}
.feature-hero-text h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-hero-text p { color: var(--text-2); font-size: 0.88rem; line-height: 1.6; margin-bottom: 14px; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags span {
  padding: 3px 10px; border-radius: 100px; font-size: 0.65rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-3); background: var(--bg-raised);
}

/* Voice demo mini */
.voice-demo-mini {
  position: relative; width: 100px; height: 100px; margin: 0 auto;
}
.vdm-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
}
.vdm-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid var(--accent);
  opacity: 0;
}
.vdm-ring:nth-child(1) { width: 60px; height: 60px; animation: vdmPulse 2s ease-out infinite; }
.vdm-ring:nth-child(2) { width: 60px; height: 60px; animation: vdmPulse 2s ease-out infinite 0.6s; }
.vdm-ring:nth-child(3) { width: 60px; height: 60px; animation: vdmPulse 2s ease-out infinite 1.2s; }

.feature-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm); margin-bottom: 14px;
}
.feature-icon-wrap.accent { background: var(--accent-glow); color: var(--accent); }
.feature-icon-wrap.blue { background: var(--blue-glow); color: var(--blue); }
.feature-icon-wrap.green { background: var(--green-glow); color: var(--green); }
.feature-icon-wrap.orange { background: var(--orange-glow); color: var(--orange); }
.feature-icon-wrap.pink { background: var(--pink-glow); color: var(--pink); }
.feature-icon-wrap.cyan { background: var(--cyan-glow); color: var(--cyan); }

.feature-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { color: var(--text-2); font-size: 0.84rem; line-height: 1.55; }

/* ---- How It Works ---- */
.how-section { padding: 100px 0; position: relative; z-index: 2; }

.how-timeline { max-width: 600px; margin: 0 auto; }

.how-step {
  display: flex; gap: 20px; position: relative;
}

.how-step-marker {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.hsm-number {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: white; font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.hsm-line { width: 1px; flex: 1; background: var(--border); min-height: 20px; }

.how-step-content { padding-bottom: 32px; flex: 1; }
.how-step-content h3 { font-size: 1rem; margin-bottom: 8px; }
.how-quote {
  padding: 10px 14px; border-radius: var(--r-xs);
  background: var(--accent-glow); border-left: 2px solid var(--accent);
  color: var(--text); font-size: 0.84rem; font-style: italic; margin-bottom: 8px;
}
.how-desc { color: var(--text-3); font-size: 0.82rem; line-height: 1.5; }

.how-agents {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.how-agent {
  padding: 4px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 500;
  border: 1px solid;
}
.how-agent.lead { border-color: rgba(139,92,246,0.3); color: var(--accent); background: var(--accent-glow); }
.how-agent.manager { border-color: rgba(96,165,250,0.3); color: var(--blue); background: var(--blue-glow); }
.how-agent.sub { border-color: rgba(52,211,153,0.3); color: var(--green); background: var(--green-glow); }

.how-tasks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.how-task {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-xs); background: var(--bg-code);
  border: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
}
.ht-dot { width: 6px; height: 6px; border-radius: 50%; }
.how-task.running .ht-dot { background: var(--blue); animation: pulse 1.5s ease-in-out infinite; }
.how-task.done .ht-dot { background: var(--green); }
.ht-status { margin-left: auto; font-weight: 500; }
.how-task.running .ht-status { color: var(--blue); }
.how-task.done .ht-status { color: var(--green); }

/* ---- Agent Hierarchy ---- */
.agents-section { padding: 100px 0; position: relative; z-index: 2; }

.agents-visual { max-width: 800px; margin: 0 auto; }

.av-tier { display: flex; justify-content: center; gap: 12px; margin-bottom: 0; }
.av-tier.av-lead { margin-bottom: 0; }

.av-connectors { text-align: center; height: 48px; color: var(--text-3); }

.av-card {
  padding: 20px 24px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-card); min-width: 180px; transition: all 0.25s;
}
.av-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.06); }
.av-card-sm { padding: 14px 18px; min-width: 140px; text-align: center; }
.av-card-sm h3 { font-size: 0.85rem; margin: 0; }

.av-badge {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.av-badge.lead { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(139,92,246,0.2); }
.av-badge.manager { background: var(--blue-glow); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }
.av-badge.sub { background: var(--green-glow); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }

.av-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.av-card p { color: var(--text-2); font-size: 0.78rem; line-height: 1.4; margin-bottom: 8px; }

.av-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.av-meta span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  padding: 2px 8px; border-radius: 4px; background: var(--bg-code);
  color: var(--text-3); border: 1px solid var(--border);
}

/* ---- Voice Rules ---- */
.voice-rules { padding: 100px 0; position: relative; z-index: 2; }

.rules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 860px; margin: 0 auto;
}
.rule-card {
  padding: 24px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-card); transition: all 0.25s;
}
.rule-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.06); }
.rule-number { color: var(--accent); font-weight: 700; font-size: 0.78rem; display: block; margin-bottom: 8px; }
.rule-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.rule-card p { color: var(--text-3); font-size: 0.82rem; line-height: 1.5; }

/* ---- Quick Start ---- */
.quickstart { padding: 100px 0; position: relative; z-index: 2; }

.oneliner {
  max-width: 640px; margin: 0 auto 32px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-code); padding: 2px;
}
.oneliner-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; overflow-x: auto;
}
.oneliner-prompt {
  color: var(--green); font-family: 'JetBrains Mono', monospace;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.oneliner code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  color: var(--text-2); white-space: nowrap;
}
.oneliner .copy-btn {
  margin-left: auto; flex-shrink: 0;
}

.quickstart-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.qs-note {
  margin-top: 12px; font-size: 0.78rem; color: var(--text-3); line-height: 1.4;
}
.qs-card {
  padding: 24px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--bg-card);
}
.qs-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: white; font-size: 0.75rem; font-weight: 700;
  margin-bottom: 14px;
}
.qs-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }

.code-block {
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-code); overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; border-bottom: 1px solid var(--border);
  font-size: 0.65rem; color: var(--text-3); font-family: 'JetBrains Mono', monospace;
}
.code-block pre { padding: 12px; overflow-x: auto; }
.code-block code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.76rem;
  line-height: 1.7; color: var(--text-2);
}
.code-comment { color: var(--text-3); }

.copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 8px; font-size: 0.62rem; color: var(--text-3);
  cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.copy-btn:hover { border-color: var(--border-hover); color: var(--text-2); }

.qs-prereqs {
  text-align: center; margin-top: 20px; color: var(--text-3); font-size: 0.8rem;
}

/* ---- Tech Marquee ---- */
.tech-section { padding: 80px 0; position: relative; z-index: 2; overflow: hidden; }

.tech-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.tech-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 30s linear infinite;
}
.tech-pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 22px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-card); white-space: nowrap; flex-shrink: 0;
}
.tech-pill strong { font-size: 0.82rem; font-weight: 600; }
.tech-pill span { font-size: 0.65rem; color: var(--text-3); }

/* ---- Yabby Origin ---- */
.yabby-origin { padding: 100px 0; position: relative; z-index: 2; }

.origin-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center;
  max-width: 800px; margin: 0 auto;
}
.origin-layout--centered {
  grid-template-columns: 1fr; text-align: center; max-width: 680px;
}
.origin-layout--centered .origin-traits { justify-content: center; }

.origin-visual {
  display: flex; align-items: center; justify-content: center;
}
.origin-creature {
  width: 160px; height: 130px;
  animation: yabbyFloat 6s ease-in-out infinite;
}

.origin-text .section-tag { margin-bottom: 14px; }
.origin-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 16px; }
.origin-text p { color: var(--text-2); font-size: 0.88rem; line-height: 1.65; margin-bottom: 12px; }
.origin-text p strong { color: var(--text); }
.origin-text p em { font-style: italic; color: var(--text-3); }

.origin-traits {
  display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap;
}
.origin-trait {
  display: flex; align-items: flex-start; gap: 10px;
}
.ot-icon { font-size: 1.3rem; line-height: 1; }
.origin-trait div { display: flex; flex-direction: column; }
.origin-trait strong { font-size: 0.82rem; font-weight: 600; }
.origin-trait span { font-size: 0.72rem; color: var(--text-3); }

@media (max-width: 640px) {
  .origin-layout { grid-template-columns: 1fr; text-align: center; }
  .origin-visual { order: -1; }
  .origin-traits { justify-content: center; }
}

/* ---- CTA ---- */
.cta-section { padding: 60px 0 100px; position: relative; z-index: 2; }

.cta-card {
  text-align: center; padding: 72px 40px; border-radius: var(--r);
  border: 1px solid rgba(139, 92, 246, 0.15); position: relative; overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.06);
}
.cta-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow-lg) 0%, transparent 65%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; position: relative; }
.cta-card p { color: var(--text-2); font-size: 1rem; margin-bottom: 28px; position: relative; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; position: relative; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; position: relative; z-index: 2; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.footer-brand { max-width: 260px; }
.footer-brand .nav-logo { margin-bottom: 10px; }
.footer-brand p { color: var(--text-3); font-size: 0.82rem; line-height: 1.6; }
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.footer-col a { color: var(--text-3); text-decoration: none; font-size: 0.82rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { color: var(--text-3); font-size: 0.7rem; }

/* ---- Animations ---- */
@keyframes heroGlow {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes yabbyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes yabbyShadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(0.85); opacity: 0.15; }
}
@keyframes clawPinchLeft {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(6deg); }
  92% { transform: rotate(-1deg); }
}
@keyframes clawPinchRight {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-6deg); }
  92% { transform: rotate(1deg); }
}
@keyframes voiceRing {
  0% { width: 140px; height: 140px; opacity: 0.3; }
  100% { width: 260px; height: 260px; opacity: 0; }
}
@keyframes shellShimmer {
  0%, 100% { opacity: 0.03; transform: translateX(-8px); }
  50% { opacity: 0.15; transform: translateX(8px); }
}
@keyframes titleShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes vdmPulse {
  0% { width: 60px; height: 60px; opacity: 0.5; }
  100% { width: 100px; height: 100px; opacity: 0; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* --- Yabby Mood States --- */
.yabby-shake {
  animation: yabbyShake 0.3s ease !important;
}
.yabby-shake-hard {
  animation: yabbyShakeHard 0.4s ease !important;
}
.yabby-annoyed .yabby-svg {
  filter: drop-shadow(0 8px 24px rgba(248, 113, 113, 0.4))
          drop-shadow(0 2px 8px rgba(248, 113, 113, 0.2))
          drop-shadow(0 0 40px rgba(248, 113, 113, 0.12)) !important;
}

@keyframes yabbyShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-2deg); }
  40% { transform: translateX(3px) rotate(2deg); }
  60% { transform: translateX(-2px) rotate(-1deg); }
  80% { transform: translateX(2px) rotate(1deg); }
}
@keyframes yabbyShakeHard {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-6px) rotate(-4deg); }
  20% { transform: translateX(6px) rotate(4deg); }
  30% { transform: translateX(-5px) rotate(-3deg); }
  40% { transform: translateX(5px) rotate(3deg); }
  50% { transform: translateX(-4px) rotate(-2deg); }
  60% { transform: translateX(4px) rotate(2deg); }
  70% { transform: translateX(-3px) rotate(-1deg); }
  80% { transform: translateX(3px) rotate(1deg); }
  90% { transform: translateX(-1px); }
}

/* --- Yabby Army --- */
.army-yabby {
  position: absolute;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.4));
}

.army-flash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(248, 113, 113, 0.3);
  animation: armyFlash 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes armyFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Eaten element transitions */
[data-eaten] {
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-hero-card { grid-column: span 2; }
  .feature-hero-inner { grid-template-columns: 1fr; }
  .feature-hero-visual { display: none; }
  .quickstart-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .av-tier.av-subs { flex-wrap: wrap; }
  .nav-links { display: none; }
  .mobile-menu-btn {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .mobile-menu-btn span {
    width: 18px; height: 2px; background: var(--text-2); border-radius: 1px;
  }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 40px; min-height: auto; }
  .hero-title { font-size: 2.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-hero-card { grid-column: span 1; }
  .rules-grid { grid-template-columns: 1fr; }
  .stats-grid { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .av-tier.av-managers { flex-direction: column; }
  .av-tier.av-subs { flex-direction: column; align-items: center; }
  .av-connectors { display: none; }
  .yabby-mascot { width: 110px; height: 118px; }
}
