/* ================================================================
   TapBot & TapStream — Modern Creative Engineering System
   Palette: Warm Slate Obsidian, Electric Indigo, Sunset Amber & Rose
   Zero Emojis · Zero Cyberpunk Slop · Pure Craft Polish
   ================================================================ */

:root {
  --bg:           #090b11;
  --bg-card:      #111420;
  --bg-elev:      #171b2b;
  --bg-trans:     rgba(17, 20, 32, 0.8);

  --border:       rgba(255, 255, 255, 0.08);
  --border-h:     rgba(99, 102, 241, 0.35);
  
  --text-1:       #ffffff;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  
  --indigo:       #6366f1;
  --indigo-light: #818cf8;
  --violet:       #8b5cf6;
  --violet-light: #c084fc;
  --amber:        #f59e0b;
  --coral:        #f43f5e;
  --azure:        #38bdf8;
  --tg-blue:      #229ed9;
  --tg-bubble:    #2b5278;
  --live-green:   #10b981;

  --sans:         'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --radius:       14px;
  --radius-sm:    8px;
  --max-w:        1140px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  color: var(--text-1);
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; }

/* ─── Scroll Progress Bar ─── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--violet-light), var(--coral));
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  pointer-events: none;
  transform: translateZ(0);
}

/* ─── Ambient Aurora Glow Orbs (Soft zero-blur radial gradients) ─── */
.aurora-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  animation: auroraFloat 22s ease-in-out infinite alternate;
}

.orb-indigo {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.05) 45%, transparent 70%);
  animation-duration: 26s;
}

.orb-violet {
  top: 35%;
  left: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(139, 92, 246, 0.04) 45%, transparent 70%);
  animation-duration: 28s;
  animation-delay: -5s;
}

.orb-coral {
  bottom: 10%;
  right: 5%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12) 0%, rgba(244, 63, 94, 0.03) 45%, transparent 70%);
  animation-duration: 24s;
  animation-delay: -10s;
}

.orb-amber {
  top: 65%;
  left: 20%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.11) 0%, rgba(245, 158, 11, 0.03) 45%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -14s;
}

.orb-azure {
  top: 15%;
  left: 45%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.13) 0%, rgba(14, 165, 233, 0.03) 45%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -8s;
}

@keyframes auroraFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(35px, -25px, 0) scale(1.08); }
  100% { transform: translate3d(-25px, 35px, 0) scale(0.94); }
}

/* ─── Background Oscilloscope Canvas ─── */
#bg-visualizer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  transform: translateZ(0);
}

/* ─── Fine Film Grain Overlay ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px;
  transform: translateZ(0);
}

/* ─── Custom Magnetic Cursor ─── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99998;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(129, 140, 248, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.2s;
}

body.cursor-hover .cursor {
  width: 12px;
  height: 12px;
  background: var(--indigo-light);
}

body.cursor-hover .cursor-follower {
  width: 50px;
  height: 50px;
  border-color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.06);
}

/* ─── Spotlight Card (Linear/Vercel Warm Indigo Glare) ─── */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.35s var(--ease);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(420px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(129, 140, 248, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.spotlight-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.08);
}

/* ─── Navigation Bar ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  background: rgba(9, 11, 17, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

#nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-box {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.nav-brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-name {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.3px;
}

.nav-ver-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--indigo-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  transition: all 0.2s;
}

.nav-sound-btn:hover {
  border-color: var(--indigo-light);
  color: var(--text-1);
}

.sound-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.7);
}

.nav-gh {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: all 0.15s;
}

.nav-gh:hover {
  color: var(--text-1);
  border-color: var(--border-h);
}

.nav-cta {
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.2s var(--ease), opacity 0.15s;
}

.nav-cta:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* ─── Hero Section ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 125px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-inner {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 30px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--indigo-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.8);
}

.hero-h1 {
  font-size: clamp(38px, 6.8vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2px;
  color: var(--text-1);
  margin-bottom: 24px;
}

.hero-line {
  display: block;
  overflow: hidden;
}

/* Warm Sunset-Violet Gradient Text for 'server.' */
.hero-gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 45%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.hero-sub {
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 660px;
  margin: 0 auto 24px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-sub b {
  color: var(--text-1);
}

/* Bot Fleet Quick-Pill Bar */
.hero-pill-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 32px;
  max-width: 680px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  transition: transform 0.2s;
}

.hero-pill:hover {
  transform: translateY(-2px);
}

.pill-cyan   { color: var(--azure); background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.25); }
.pill-rose   { color: var(--coral); background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); }
.pill-violet { color: var(--violet-light); background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.25); }
.pill-amber  { color: var(--amber); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); }
.pill-indigo { color: var(--indigo-light); background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.25); }

.hero-ctas {
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary and Ghost Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 25px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.45);
  transition: transform 0.2s var(--ease), opacity 0.15s;
}

.btn-primary:hover {
  transform: scale(1.03);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--indigo-light);
  color: var(--indigo-light);
  background: var(--bg-elev);
  transform: scale(1.03);
}

/* ─── Telemetry Glass Ribbon (Vector SVGs with Warm Accent Tints) ─── */
.telemetry-ribbon {
  display: flex;
  align-items: center;
  margin-top: 52px;
  padding: 13px 26px;
  border-radius: 16px;
  background: rgba(17, 20, 32, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.telem-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  text-align: left;
}

.telem-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.icon-tint-indigo { color: var(--indigo-light); }
.icon-tint-violet { color: var(--violet-light); }
.icon-tint-amber  { color: var(--amber); }
.icon-tint-azure  { color: var(--azure); }
.icon-tint-coral  { color: var(--coral); }
.icon-tint-green  { color: var(--live-green); }

.telem-info {
  display: flex;
  flex-direction: column;
}

.telem-val {
  font-family: var(--mono);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
}

.telem-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  font-family: var(--mono);
}

.telem-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Oscilloscope Controller ─── */
.visualizer-controller {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 18px;
  border-radius: 11px;
  background: rgba(17, 20, 32, 0.65);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  width: 100%;
  max-width: 780px;
}

.vis-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vis-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  box-shadow: 0 0 8px var(--indigo-light);
}

.vis-buttons {
  display: flex;
  gap: 6px;
}

.vis-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 10.5px;
  font-family: var(--mono);
  transition: all 0.15s;
}

.vis-btn:hover, .vis-btn.active {
  border-color: var(--indigo-light);
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
}

/* ─── Kinetic Marquee Strip ─── */
.marquee-strip {
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 30px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 1.8px;
  animation: marqueeScroll 36s linear infinite;
  width: max-content;
}

.m-sep {
  color: rgba(99, 102, 241, 0.4);
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Shared Section Elements ─── */
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--indigo-light);
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--text-1);
  max-width: 640px;
  overflow: hidden;
}

.section-p {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 580px;
  line-height: 1.6;
}

/* ─── Bot Fleet Showcase Section ─── */
#bots {
  padding: 120px 24px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.fleet-inner {
  width: 100%;
}

.fleet-header {
  margin-bottom: 44px;
}

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

.fleet-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.fleet-card:hover {
  transform: translateY(-4px);
}

.card-azure {
  border-color: rgba(14, 165, 233, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 60%), var(--bg-card);
}
.card-azure:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 16px 40px -10px rgba(14, 165, 233, 0.2);
}

.card-coral {
  border-color: rgba(244, 63, 94, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.08), transparent 60%), var(--bg-card);
}
.card-coral:hover {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 16px 40px -10px rgba(244, 63, 94, 0.2);
}

.card-violet {
  border-color: rgba(139, 92, 246, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.08), transparent 60%), var(--bg-card);
}
.card-violet:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.2);
}

.card-amber {
  border-color: rgba(245, 158, 11, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.08), transparent 60%), var(--bg-card);
}
.card-amber:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 40px -10px rgba(245, 158, 11, 0.2);
}

.card-indigo {
  border-color: rgba(99, 102, 241, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.08), transparent 60%), var(--bg-card);
}
.card-indigo:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.2);
}

.card-emerald {
  border-color: rgba(16, 185, 129, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.08), transparent 60%), var(--bg-card);
}
.card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 40px -10px rgba(16, 185, 129, 0.2);
}

.fleet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fleet-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.fleet-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 5px;
}

.fleet-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-1);
  margin-bottom: 8px;
}

.fleet-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.fleet-cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.fleet-cmds code {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--indigo-light);
}

.fleet-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.fleet-spec-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}

.badge-green {
  color: var(--live-green) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
}

/* ─── Architecture Timeline (Horizontal Pinned Track) ─── */
#how {
  padding: 120px 24px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.how-header {
  margin-bottom: 56px;
}

/* ─── Downward Revealing Pipeline Flow ─── */
.pipeline-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 38px;
  padding-left: 10px;
}

/* Vertical Spine Track */
.pipeline-spine {
  position: absolute;
  top: 26px;
  bottom: 50px;
  left: 36px;
  width: 3px;
  pointer-events: none;
  z-index: 1;
}

.spine-line-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.spine-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--indigo) 0%, var(--violet-light) 35%, var(--coral) 70%, var(--amber) 100%);
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.7);
  transform-origin: top center;
  transition: height 0.12s ease-out;
}

/* Moving Laser Energy Pulse */
.spine-laser-pulse {
  position: absolute;
  top: -40px;
  left: -2px;
  width: 7px;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  filter: blur(1px);
  border-radius: 4px;
  animation: laserTravel 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes laserTravel {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Pipeline Step Item */
.pipeline-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* Step Node Orb */
.step-node {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  margin-top: 4px;
  z-index: 2;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.step-node .node-num {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.step-node .node-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
  animation: haloPulse 3s ease-in-out infinite alternate;
}

.node-indigo { border-color: var(--indigo); box-shadow: 0 0 16px rgba(99, 102, 241, 0.35); }
.node-indigo .node-halo { background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%); }
.node-indigo .node-num { color: var(--indigo-light); }

.node-violet { border-color: var(--violet); box-shadow: 0 0 16px rgba(139, 92, 246, 0.35); }
.node-violet .node-halo { background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%); }
.node-violet .node-num { color: var(--violet-light); }

.node-rose { border-color: var(--coral); box-shadow: 0 0 16px rgba(244, 63, 94, 0.35); }
.node-rose .node-halo { background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, transparent 70%); }
.node-rose .node-num { color: var(--coral); }

.node-amber { border-color: var(--amber); box-shadow: 0 0 16px rgba(245, 158, 11, 0.35); }
.node-amber .node-halo { background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%); }
.node-amber .node-num { color: var(--amber); }

@keyframes haloPulse {
  0% { transform: scale(0.95); opacity: 0.25; }
  100% { transform: scale(1.15); opacity: 0.6; }
}

/* Step Card */
.pipeline-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.pipeline-card:hover {
  transform: translateY(-3px);
}

.card-indigo { border-color: rgba(99, 102, 241, 0.25); }
.card-indigo:hover { border-color: rgba(99, 102, 241, 0.55); box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.25); }

.card-violet { border-color: rgba(139, 92, 246, 0.25); }
.card-violet:hover { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 16px 36px -10px rgba(139, 92, 246, 0.25); }

.card-coral  { border-color: rgba(244, 63, 94, 0.25); }
.card-coral:hover { border-color: rgba(244, 63, 94, 0.55); box-shadow: 0 16px 36px -10px rgba(244, 63, 94, 0.25); }

.card-amber  { border-color: rgba(245, 158, 11, 0.25); }
.card-amber:hover { border-color: rgba(245, 158, 11, 0.55); box-shadow: 0 16px 36px -10px rgba(245, 158, 11, 0.25); }

.p-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.p-phase-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.p-status-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 5px;
}

.pill-indigo { background: rgba(99, 102, 241, 0.12); color: var(--indigo-light); border: 1px solid rgba(99, 102, 241, 0.25); }
.pill-violet { background: rgba(139, 92, 246, 0.12); color: var(--violet-light); border: 1px solid rgba(139, 92, 246, 0.25); }
.pill-coral  { background: rgba(244, 63, 94, 0.12);  color: var(--coral);       border: 1px solid rgba(244, 63, 94, 0.25); }
.pill-amber  { background: rgba(245, 158, 11, 0.12); color: var(--amber);       border: 1px solid rgba(245, 158, 11, 0.25); }

.p-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--text-1);
}

.p-desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Terminal Command Box */
.p-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #07090e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  overflow-x: auto;
}

.p-code-prompt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--azure);
  user-select: none;
}

.p-code-box code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #e2e8f0;
  flex: 1;
  white-space: nowrap;
}

.p-code-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--live-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.p-spec-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

.p-spec-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Bento Specifications Grid ─── */
#features {
  padding: 150px 24px 80px;
  position: relative;
  z-index: 2;
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-inner .section-h2 {
  margin-bottom: 44px;
}

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

.bento-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-lg {
  grid-column: 1 / 3;
}

/* ─── Bento Distinct Colorful Theming ─── */
.bento-audio {
  border-color: rgba(244, 63, 94, 0.22);
  background: radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.08), transparent 60%), var(--bg-card);
}
.bento-audio:hover {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(244, 63, 94, 0.15);
}

.bento-violet {
  border-color: rgba(139, 92, 246, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.08), transparent 60%), var(--bg-card);
}
.bento-violet:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(139, 92, 246, 0.15);
}

.bento-azure {
  border-color: rgba(14, 165, 233, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 60%), var(--bg-card);
}
.bento-azure:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(14, 165, 233, 0.15);
}

.bento-indigo {
  border-color: rgba(99, 102, 241, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.08), transparent 60%), var(--bg-card);
}
.bento-indigo:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.15);
}

.bento-amber {
  border-color: rgba(245, 158, 11, 0.2);
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.08), transparent 60%), var(--bg-card);
}
.bento-amber:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.bento-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.badge-coral  { color: var(--coral) !important; background: rgba(244, 63, 94, 0.12) !important; border-color: rgba(244, 63, 94, 0.28) !important; }
.badge-violet { color: var(--violet-light) !important; background: rgba(139, 92, 246, 0.12) !important; border-color: rgba(139, 92, 246, 0.28) !important; }
.badge-azure  { color: var(--azure) !important; background: rgba(14, 165, 233, 0.12) !important; border-color: rgba(14, 165, 233, 0.28) !important; }
.badge-indigo { color: var(--indigo-light) !important; background: rgba(99, 102, 241, 0.12) !important; border-color: rgba(99, 102, 241, 0.28) !important; }
.badge-amber  { color: var(--amber) !important; background: rgba(245, 158, 11, 0.12) !important; border-color: rgba(245, 158, 11, 0.28) !important; }

.bento-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.bento-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Equalizer inside Bento Large Card */
.interactive-equalizer-module {
  margin: 20px 0 16px;
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.eq-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.eq-now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
}

.eq-pulse-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 8px var(--coral);
}

.eq-bars-cluster {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
}

.eq-bar {
  width: 2.5px;
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.bar-coral  { background: linear-gradient(180deg, #f43f5e, #fb7185); }
.bar-rose   { background: linear-gradient(180deg, #ec4899, #f43f5e); }
.bar-violet { background: linear-gradient(180deg, #a855f7, #c084fc); }
.bar-indigo { background: linear-gradient(180deg, #6366f1, #818cf8); }
.bar-azure  { background: linear-gradient(180deg, #38bdf8, #0ea5e9); }
.bar-amber  { background: linear-gradient(180deg, #f59e0b, #fbbf24); }

.eq-bar:nth-child(1) { height: 7px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 9px; animation-delay: 0.15s; }
.eq-bar:nth-child(4) { height: 18px; animation-delay: 0.4s; }
.eq-bar:nth-child(5) { height: 12px; animation-delay: 0.25s; }
.eq-bar:nth-child(6) { height: 16px; animation-delay: 0.35s; }
.eq-bar:nth-child(7) { height: 8px; animation-delay: 0.2s; }
.eq-bar:nth-child(8) { height: 13px; animation-delay: 0.45s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.25); opacity: 0.4; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

.station-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-chip {
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  transition: all 0.15s;
}

.st-chip:hover, .st-chip.active {
  border-color: var(--coral);
  color: #ffffff;
  background: rgba(244, 63, 94, 0.15);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag-pill-coral  { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 5px; background: rgba(244, 63, 94, 0.08); color: var(--coral); border: 1px solid rgba(244, 63, 94, 0.2); }
.tag-pill-violet { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 5px; background: rgba(139, 92, 246, 0.08); color: var(--violet-light); border: 1px solid rgba(139, 92, 246, 0.2); }
.tag-pill-indigo { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 5px; background: rgba(99, 102, 241, 0.08); color: var(--indigo-light); border: 1px solid rgba(99, 102, 241, 0.2); }
.tag-pill-amber  { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 5px; background: rgba(245, 158, 11, 0.08); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.2); }

.spec-list {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
  line-height: 1.8;
}

/* ─── Interactive Playground Section ─── */
#playground {
  padding: 120px 24px;
  position: relative;
  z-index: 2;
}

.playground-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 50px;
  align-items: center;
}

/* ─── Playground Bot Switcher Tabs ─── */
.bot-switcher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 14px;
}

.bot-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tab-azure  { background: var(--azure); box-shadow: 0 0 6px var(--azure); }
.tab-coral  { background: var(--coral); box-shadow: 0 0 6px var(--coral); }
.tab-violet { background: var(--violet-light); box-shadow: 0 0 6px var(--violet-light); }
.tab-amber  { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.bot-tab:hover {
  color: var(--text-1);
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.bot-tab.active {
  color: #ffffff;
  background: var(--bg-elev);
}

.bot-tab.active[data-bot="commander"] { border-color: var(--azure); box-shadow: 0 0 14px rgba(14, 165, 233, 0.3); }
.bot-tab.active[data-bot="music"]     { border-color: var(--coral); box-shadow: 0 0 14px rgba(244, 63, 94, 0.3); }
.bot-tab.active[data-bot="ai"]        { border-color: var(--violet-light); box-shadow: 0 0 14px rgba(139, 92, 246, 0.3); }
.bot-tab.active[data-bot="exon"]      { border-color: var(--amber); box-shadow: 0 0 14px rgba(245, 158, 11, 0.3); }

.chip-container {
  margin: 24px 0;
}

.chip-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

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

.dot-indigo  { background: #818cf8; box-shadow: 0 0 6px rgba(129, 140, 248, 0.7); }
.dot-rose    { background: #fb7185; box-shadow: 0 0 6px rgba(251, 113, 133, 0.7); }
.dot-amber   { background: #fcd34d; box-shadow: 0 0 6px rgba(252, 211, 77, 0.7); }
.dot-violet  { background: #c084fc; box-shadow: 0 0 6px rgba(192, 132, 252, 0.7); }
.dot-azure   { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.7); }
.dot-emerald { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.7); }

.chip-indigo:hover  { border-color: #818cf8; color: #ffffff; background: rgba(99, 102, 241, 0.16); transform: translateY(-2px); }
.chip-rose:hover    { border-color: #fb7185; color: #ffffff; background: rgba(244, 63, 94, 0.16); transform: translateY(-2px); }
.chip-amber:hover   { border-color: #fcd34d; color: #ffffff; background: rgba(245, 158, 11, 0.16); transform: translateY(-2px); }
.chip-violet:hover  { border-color: #c084fc; color: #ffffff; background: rgba(139, 92, 246, 0.16); transform: translateY(-2px); }
.chip-azure:hover   { border-color: #38bdf8; color: #ffffff; background: rgba(14, 165, 233, 0.16); transform: translateY(-2px); }
.chip-emerald:hover { border-color: #34d399; color: #ffffff; background: rgba(16, 185, 129, 0.16); transform: translateY(-2px); }

.cmd-chip:active {
  transform: scale(0.96) translateY(0);
}

.mode-selector-box {
  padding: 18px;
  margin-top: 18px;
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mode-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

.mode-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--indigo-light);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.mode-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.mode-btn {
  padding: 7px 8px;
  border-radius: 7px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s;
}

.mode-btn:hover, .mode-btn.active {
  border-color: var(--indigo-light);
  color: #ffffff;
  background: rgba(99, 102, 241, 0.15);
}

/* ─── 3D Smartphone Simulator (Authentic Telegram Dark Colors) ─── */
.phone-stage {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.phone-3d-wrap {
  width: 310px;
  height: 570px;
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-chassis {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: #0d111a;
  border: 3.5px solid #1c2233;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(99, 102, 241, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

@property --beam-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ─── Animated Luminous Border Beam ─── */
.phone-border-beam {
  position: absolute;
  inset: 0;
  border-radius: 38px;
  padding: 2.5px;
  background: conic-gradient(from var(--beam-angle) at 50% 50%, transparent 0deg, #6366f1 50deg, #c084fc 100deg, #f43f5e 160deg, #38bdf8 220deg, transparent 280deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: spinBeamAngle 6s linear infinite;
  z-index: 10;
}

@keyframes spinBeamAngle {
  0% { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

.phone-island {
  width: 95px;
  height: 20px;
  background: #141a26;
  border-radius: 20px;
  margin: 9px auto 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.island-cam {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #090c13;
  border: 1px solid #232c40;
}

.island-mic {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: #232c40;
}

.phone-tg-header {
  padding: 8px 12px;
  background: #151c27;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.tg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tg-blue), var(--indigo));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.tg-title-wrap {
  flex: 1;
}

.tg-bot-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}

.tg-bot-sub {
  font-size: 9.5px;
  color: var(--tg-blue);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tg-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live-green);
  box-shadow: 0 0 6px var(--live-green);
}

.tg-ver-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(34, 158, 217, 0.15);
  color: var(--tg-blue);
  border: 1px solid rgba(34, 158, 217, 0.3);
}

.phone-chat-feed {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #0a0e16;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.tg-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #2b5278, #1e3a5f);
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
  padding: 7px 11px;
  font-size: 11px;
  max-width: 82%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: bubblePop 0.25s var(--ease);
}

.tg-bubble-bot {
  align-self: flex-start;
  background: #151d28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: 12px 12px 12px 2px;
  padding: 8px 11px;
  font-size: 10.5px;
  max-width: 88%;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: bubblePop 0.25s var(--ease);
}

.tg-bubble-bot b {
  color: #ffffff;
}

.tg-bubble-bot code {
  color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Telegram Animated Typing Row */
.tg-typing-row {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  background: #151d28;
  border-radius: 12px 12px 12px 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  animation: bubblePop 0.2s var(--ease);
}

.tg-typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.tg-typing-dot:nth-child(1) { animation-delay: 0s; }
.tg-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.tg-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; background: var(--tg-blue); }
}

@keyframes bubblePop {
  0% { transform: scale(0.92) translateY(5px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Audio Player within Phone */
.phone-audio-player {
  padding: 10px 14px;
  background: #111722;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.player-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

/* Spinning Miniature Vinyl Disc */
.player-vinyl {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle, #334155 0%, #1e293b 55%, #0f172a 100%);
  border: 1.5px solid #475569;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.2), 0 2px 5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-vinyl.spinning {
  animation: spinVinyl 3s linear infinite;
}

.player-vinyl.paused {
  animation-play-state: paused;
}

.vinyl-center {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #8b5cf6);
  border: 1px solid #0f172a;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.player-info {
  flex: 1;
  overflow: hidden;
  padding-right: 4px;
}

.player-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 9px;
  color: var(--text-3);
  font-family: var(--mono);
}

.player-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.p-eq-bar {
  width: 2.2px;
  border-radius: 1px;
  animation: eqBounce 0.7s infinite alternate;
}

.p-eq-bar.bar-1 { background: #f43f5e; height: 5px; animation-delay: 0.1s; }
.p-eq-bar.bar-2 { background: #c084fc; height: 11px; animation-delay: 0.25s; }
.p-eq-bar.bar-3 { background: #6366f1; height: 7px; animation-delay: 0.15s; }
.p-eq-bar.bar-4 { background: #38bdf8; height: 12px; animation-delay: 0.35s; }

.player-scrubber-track {
  width: 100%;
  height: 3.5px;
  background: #1d2536;
  border-radius: 2px;
  overflow: hidden;
  margin: 6px 0;
}

.player-scrubber-fill {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--violet-light));
  border-radius: 2px;
  transition: width 0.3s linear;
}

.player-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-family: var(--mono);
  color: var(--text-3);
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-vol {
  color: var(--indigo-light);
}

.player-play-btn {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.phone-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  background: #0b0f17;
  border-top: 1px solid var(--border);
}

.input-prompt {
  color: var(--tg-blue);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}

.phone-input-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-family: var(--mono);
  font-size: 11px;
}

.phone-input-bar input::placeholder {
  color: var(--text-3);
}

.input-send-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--tg-blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}

.input-send-btn:hover {
  transform: scale(1.06);
}

/* ─── Developer Spotlight Section ─── */
#dev {
  padding: 90px 24px 130px;
  position: relative;
  z-index: 2;
}

.dev-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.dev-card {
  max-width: 680px;
  padding: 40px 34px;
  margin-top: 28px;
  transform-style: preserve-3d;
  will-change: transform;
}

.dev-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.dev-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.dev-name {
  font-size: 19px;
  font-weight: 700;
}

.dev-role {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
  margin-top: 2px;
}

.dev-card blockquote {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  border-left: 2px solid var(--indigo-light);
  padding-left: 18px;
  margin: 0;
}

.dev-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dev-stack-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--indigo-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dev-footer-link {
  margin-top: 18px;
}

.dev-gh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--indigo-light);
  transition: opacity 0.15s;
}

.dev-gh-link:hover {
  opacity: 0.8;
}

/* ─── Download & Installation Section ─── */
#download {
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.dl-inner {
  max-width: 600px;
  margin: 0 auto;
}

.dl-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--indigo-light);
  margin-bottom: 12px;
}

.dl-h2 {
  font-size: clamp(34px, 5.8vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.dl-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 30px;
}

.btn-dl {
  padding: 15px 32px;
  border-radius: 12px;
  text-align: left;
}

.dl-text-wrap {
  display: flex;
  flex-direction: column;
}

.dl-main-text {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
}

.dl-meta-text {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.85;
  margin-top: 2px;
}

.quick-setup-card {
  margin: 36px auto 22px;
  padding: 22px 24px;
  text-align: left;
  border-radius: var(--radius);
}

.qs-title {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--indigo-light);
  margin-bottom: 8px;
}

.qs-steps {
  list-style: none;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.8;
}

.qs-steps code {
  color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.dl-compat {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--mono);
}

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

.footer-brand {
  color: var(--text-1);
  font-weight: 600;
}

.footer-sep {
  opacity: 0.4;
}

/* ─── Responsive Breakpoints ─── */
@media (max-width: 960px) {
  .fleet-grid {
    grid-template-columns: 1fr 1fr;
  }
  .how-pipeline-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .playground-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-lg {
    grid-column: 1 / -1;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-flow {
    padding-left: 0;
    gap: 26px;
  }
  .pipeline-spine {
    left: 20px;
  }
  .pipeline-step {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }
  .step-node {
    width: 42px;
    height: 42px;
  }
  .step-node .node-num {
    font-size: 13px;
  }
  .pipeline-card {
    padding: 22px 16px;
  }
  .p-title {
    font-size: 17px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .telemetry-ribbon {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 16px;
  }
  .telem-sep {
    display: none;
  }
  .telem-item {
    padding: 0 8px;
    width: 45%;
  }
  .visualizer-controller {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .phone-3d-wrap {
    width: 290px;
    height: 540px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cursor, .cursor-follower {
    display: none !important;
  }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
  }
  .cursor, .cursor-follower {
    display: none !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1c2236;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b3552;
}
