:root {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;

  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-ruby: #e11d48;
  --accent-ruby-bright: #f43f5e;
  --accent-ruby-soft: #fff1f2;
  --accent-ruby-border: #fecdd3;

  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 3px 10px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -15px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.05);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ========================================================================== */
/* ANIMATED AMBIENT ORBS & GRID                                               */
/* ========================================================================== */
.ambient-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-rose {
  width: 440px;
  height: 440px;
  top: -120px;
  left: 15%;
  background: rgba(244, 63, 94, 0.16);
}

.orb-sky {
  width: 380px;
  height: 380px;
  top: 80px;
  right: 12%;
  background: rgba(14, 165, 233, 0.13);
  animation-delay: -6s;
}

.orb-amber {
  width: 340px;
  height: 340px;
  top: 420px;
  left: 40%;
  background: rgba(245, 158, 11, 0.11);
  animation-delay: -11s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -22px) scale(1.07); }
  100% { transform: translate(-20px, 18px) scale(0.95); }
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================== */
/* MODERN PROFESSIONAL NAVBAR                                                 */
/* ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  width: 100%;
}

.nav-container {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-brand-name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.nav-version-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  line-height: 1;
}

/* Desktop Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
  padding: 6px 2px;
}

.nav-link:hover {
  color: #0f172a;
}

/* Desktop Action Group */
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-github-nav {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.btn-github-nav:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-primary-nav {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: 1px solid #be123c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
  transition: all 0.15s ease;
}

.btn-primary-nav:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* Mobile Hamburger Button */
.nav-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  z-index: 1001;
}

.nav-toggle-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-toggle-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Backdrop Overlay */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
}

.mobile-nav-backdrop.open {
  display: block;
}

/* Mobile Drawer Dropdown - Opaque Solid White */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  padding: 16px 18px 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 999;
}

.mobile-nav-drawer.open {
  display: block;
  animation: drawerSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: #f8fafc;
}

.mobile-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.mobile-item-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.mobile-nav-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-primary-btn {
  width: 100%;
  height: 44px;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.mobile-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-sec-btn {
  width: 100%;
  height: 40px;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.btn-outline,
.btn-secondary {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
}

.btn-outline:hover,
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-primary {
  height: 36px;
  padding: 0 15px;
  border-radius: 9px;
  background: linear-gradient(180deg, #f43f5e 0%, #e11d48 100%);
  border: 1px solid #be123c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 16px -4px rgba(225, 29, 72, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.16s ease;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(225, 29, 72, 0.55);
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 14.5px;
}

.btn-record-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: liveDotPulse 1.5s infinite;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.5; }
}

/* ========================================================================== */
/* HERO SECTION                                                               */
/* ========================================================================== */
.hero-section {
  padding: 68px 0 56px;
  text-align: center;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-ruby);
  box-shadow: 0 0 8px var(--accent-ruby);
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.gradient-accent {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 45%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite alternate;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-subtitle {
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

/* ========================================================================== */
/* FULL-SIZE INTERACTIVE PLAYGROUND                                           */
/* ========================================================================== */
.interactive-showcase {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.showcase-toolbar {
  height: 48px;
  padding: 0 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-dots span:nth-child(1) { background: #fda4af; }
.window-dots span:nth-child(2) { background: #fcd34d; }
.window-dots span:nth-child(3) { background: #6ee7b7; }

.showcase-url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.url-text-mobile {
  display: none;
}

.url-text-desktop {
  display: inline;
}

.live-rec-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ruby);
  animation: liveDotPulse 1.4s infinite;
}

.swatch-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 2px;
}

.demo-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.demo-swatch:hover {
  transform: scale(1.15);
}

.demo-swatch.active {
  box-shadow: 0 0 0 2px var(--text-primary);
  transform: scale(1.18);
}

/* Huge Open Interactive Canvas */
.showcase-stage {
  position: relative;
  min-height: 430px;
  padding: 44px 36px 88px;
  background:
    radial-gradient(75% 75% at 50% 35%, rgba(244, 63, 94, 0.05) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

.demo-cursor-halo {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.22);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: width 0.12s ease, height 0.12s ease, margin 0.12s ease, opacity 0.18s ease;
  z-index: 20;
}

.demo-cursor-halo.pressing {
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
}

.playground-center {
  position: relative;
  z-index: 5;
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.playground-top-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.pulse-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.audio-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.audio-wave span {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent-ruby);
  animation: waveBar 1s ease-in-out infinite;
}

.audio-wave span:nth-child(2) { animation-delay: 0.15s; }
.audio-wave span:nth-child(3) { animation-delay: 0.3s; }
.audio-wave span:nth-child(4) { animation-delay: 0.45s; }
.audio-wave span:nth-child(5) { animation-delay: 0.6s; }

@keyframes waveBar {
  0%, 100% { height: 5px; opacity: 0.5; }
  50% { height: 14px; opacity: 1; }
}

.playground-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.playground-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 10px;
}

.interactive-targets-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.practice-target-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-target-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-ruby-bright);
  box-shadow: var(--shadow-md);
}

.practice-target-card:active {
  transform: scale(0.97);
}

.target-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.practice-target-card strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.practice-target-card span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Floating Porcelain HUD Replica */
.hud-replica {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  height: 44px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  z-index: 10;
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ruby);
  box-shadow: 0 0 8px var(--accent-ruby);
}

.hud-dot.paused {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.hud-time {
  font-family: var(--font-mono);
  font-weight: 800;
  min-width: 44px;
}

.hud-sep {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.hud-pill-btn {
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hud-pill-btn:hover {
  background: #e2e8f0;
}

.hud-pill-stop {
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--accent-ruby);
  color: #ffffff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.hud-pill-stop:hover {
  background: #be123c;
}

/* ========================================================================== */
/* 3-STEP WORKFLOW SECTION                                                    */
/* ========================================================================== */
.how-section,
.features-section,
.comparison-section,
.install-section,
.faq-section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-ruby);
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.section-heading p {
  font-size: 15.5px;
  color: var(--text-secondary);
}

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

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.workflow-step-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
  border: 1px solid var(--accent-ruby-border);
}

.workflow-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.workflow-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(244, 63, 94, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.span-3 {
  grid-column: span 3;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-ruby-soft);
  border: 1px solid var(--accent-ruby-border);
  color: var(--accent-ruby);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================================== */
/* COMPARISON TABLE                                                           */
/* ========================================================================== */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.comparison-table .highlight-col {
  background: #fff9fa;
  color: var(--text-primary);
}

.comparison-table th.highlight-col {
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
}

.badge-yes {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 12px;
}

/* ========================================================================== */
/* INSTALL SECTION                                                            */
/* ========================================================================== */
.install-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.install-copy h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.install-copy > p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-ruby);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-item strong {
  display: block;
  font-size: 14px;
}

.step-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

.terminal-box {
  background: #0f172a;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  color: #f8fafc;
}

.terminal-top {
  height: 40px;
  padding: 0 14px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
}

.copy-code-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.terminal-box pre {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  color: #e2e8f0;
}

/* ========================================================================== */
/* FAQ ACCORDION SECTION                                                      */
/* ========================================================================== */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-ruby);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================================================== */
/* FOOTER                                                                     */
/* ========================================================================== */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

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

/* ========================================================================== */
/* PATREON BUTTONS & SPONSOR SECTION                                         */
/* ========================================================================== */
.btn-patreon {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #ff424d;
  border: 1px solid #e0323c;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255, 66, 77, 0.25);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-patreon:hover {
  background: #ff5e67;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -3px rgba(255, 66, 77, 0.45);
}

.btn-patreon.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 14.5px;
  border-radius: 12px;
}

.sponsor-section {
  padding: 68px 0;
}

.sponsor-card {
  background: radial-gradient(circle at 50% 0%, rgba(255, 66, 77, 0.04), transparent 70%), var(--bg-surface);
  border-radius: 20px;
  padding: 48px 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff424d 0%, #f43f5e 50%, #fb7185 100%);
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  color: #e11d48;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sponsor-card h2 {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.sponsor-card p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sponsor-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.sponsor-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: all 0.16s ease;
}

.sponsor-link:hover {
  color: #ff424d;
  transform: translateX(2px);
}

/* ========================================================================== */
/* SHOWCASE GALLERY SECTION                                                   */
/* ========================================================================== */
.showcase-gallery-section {
  padding: 80px 0 60px;
}

.gallery-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}

.gallery-tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.gallery-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.gallery-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.gallery-frame {
  position: relative;
  background: #0b1220;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45);
}

.gallery-slide {
  display: none;
  animation: slideFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide.active {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: 32px;
}

.slide-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000000;
}

.slide-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-caption {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #ffffff;
}

.slide-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide-caption h3 {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.15;
}

.slide-caption p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.slide-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.slide-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.slide-feat-item span {
  color: #34d399;
}

@keyframes slideFadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .workflow-grid,
  .interactive-targets-grid,
  .bento-grid,
  .install-card {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2,
  .bento-card.span-3 {
    grid-column: span 1;
  }
  .gallery-slide.active {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ========================================================================== */
/* DEDICATED SPONSOR PAGE STYLES                                              */
/* ========================================================================== */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}

.tier-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.tier-card.featured {
  border-color: var(--accent-ruby-bright);
  box-shadow: 0 16px 36px -10px rgba(225, 29, 72, 0.15), var(--shadow-md);
}

.tier-featured-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.tier-header {
  margin-bottom: 20px;
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 8px 0;
}

.tier-price {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.tier-period {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.tier-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 42px;
}

.tier-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.tier-perks-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tier-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  margin-bottom: 28px;
}

.tier-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tier-perk-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #10b981;
}

.tier-action {
  margin-top: auto;
}

.tier-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tier-btn-primary {
  background: #ff424d;
  color: #ffffff;
  border: 1px solid #e0323c;
  box-shadow: 0 4px 14px rgba(255, 66, 77, 0.25);
}

.tier-btn-primary:hover {
  background: #ff5e67;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 66, 77, 0.4);
}

.tier-btn-outline {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.tier-btn-outline:hover {
  background: #ffffff;
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Allocation & Impact Grid */
.allocation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.allocation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.allocation-pct {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent-ruby);
  margin-bottom: 6px;
}

.allocation-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.allocation-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Sponsor Wall */
.sponsor-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.sponsor-wall-card {
  border: 2px dashed var(--border-subtle);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: all 0.2s ease;
}

.sponsor-wall-card:hover {
  border-color: #ff424d;
  background: #ffffff;
  transform: translateY(-2px);
}

.sponsor-wall-card strong {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sponsor-wall-card span {
  font-size: 13px;
  color: var(--text-muted);
}

.sponsor-wall-card a {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ff424d;
  text-decoration: none;
}

.sponsor-wall-card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .tiers-grid,
  .allocation-grid,
  .sponsor-wall-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* INTERACTIVE ANIMATED DOCUMENTATION HUB                                     */
/* ========================================================================== */
.docs-hub-section {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.docs-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.docs-nav-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px auto 28px;
  max-width: 1040px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.doc-tab-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.doc-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
}

.doc-tab-btn.active {
  background: #ffffff;
  color: var(--accent-ruby);
  box-shadow: 0 2px 8px -2px rgba(225, 29, 72, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.docs-content-container {
  max-width: 1140px;
  margin: 0 auto;
}

.doc-card-panel {
  display: none;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 36px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  align-items: stretch;
}

.doc-card-panel.active {
  display: grid;
  animation: docPanelFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes docPanelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-text-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent-ruby);
  background: var(--accent-ruby-soft);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--accent-ruby-border);
  width: fit-content;
}

.doc-text-col h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.doc-text-col p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.doc-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.doc-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-badge-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-step strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.doc-step p {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.doc-tip-box {
  background: var(--accent-blue-soft);
  border: 1px solid var(--accent-blue-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: auto;
}

.doc-tip-title {
  font-weight: 800;
  color: var(--accent-blue);
  margin-right: 4px;
}

.doc-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 6px 0;
}

.doc-tool-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 12px;
}

.tool-chip-icon {
  font-size: 18px;
}

.doc-tool-chip strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
}

.doc-tool-chip span {
  font-size: 11px;
  color: var(--text-muted);
}

.doc-presets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
}

.doc-preset-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 9px 12px;
}

.doc-preset-card strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.doc-preset-card span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.doc-shortcuts-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin: 4px 0;
}

.doc-shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.doc-shortcuts-table th {
  background: var(--bg-surface);
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.doc-shortcuts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.doc-shortcuts-table tr:last-child td {
  border-bottom: none;
}

.doc-shortcuts-table kbd {
  background: #1e293b;
  color: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.doc-anim-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.anim-caption {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* -------------------------------------------------------------------------- */
/* STAGE 1: BROWSER REDIRECT ANIMATION                                       */
/* -------------------------------------------------------------------------- */
.anim-browser-window {
  width: 100%;
  background: #0f172a;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.4);
  overflow: hidden;
  position: relative;
}

.anim-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anim-address-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 10px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
}

.anim-url-text {
  color: #38bdf8;
  transition: opacity 0.2s ease;
}

.anim-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}

.anim-browser-body {
  height: 280px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.anim-site-mockup {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mockup-brand-block {
  width: 70px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.mockup-nav-blocks {
  display: flex;
  gap: 8px;
}

.mockup-nav-blocks span {
  width: 38px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mockup-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.mockup-title-bar {
  width: 180px;
  height: 16px;
  background: #ffffff;
  border-radius: 4px;
}

.mockup-sub-bar {
  width: 260px;
  height: 9px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.mockup-cta-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #3b82f6;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: transform 0.15s ease;
}

.anim-hud-dock {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.anim-hud-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseIndicator 1s infinite alternate;
}

.anim-hud-timer {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.anim-hud-divider {
  width: 1px;
  height: 12px;
  background: #cbd5e1;
}

.anim-hud-chip {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.anim-hud-chip.stop {
  background: #fee2e2;
  color: #dc2626;
}

.anim-cursor-spotlight {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 16px #f59e0b;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: cursorRedirectMove 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cursorRedirectMove {
  0% { left: 20%; top: 30%; }
  35% { left: 50%; top: 56%; }
  45% { left: 50%; top: 56%; transform: translate(-50%, -50%) scale(0.85); }
  55% { left: 50%; top: 56%; transform: translate(-50%, -50%) scale(1); }
  80% { left: 75%; top: 40%; }
  100% { left: 20%; top: 30%; }
}

/* -------------------------------------------------------------------------- */
/* STAGE 2: AUDIO SETUP & VU METER ANIMATION                                  */
/* -------------------------------------------------------------------------- */
.anim-audio-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anim-audio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anim-audio-mic-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mic-pulsing-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-audio-mic-title strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-primary);
}

.anim-audio-mic-title span {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

.anim-pill-accent {
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
}

.anim-vu-meter-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
}

.vu-meter-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vu-meter-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.vu-meter-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 70%, #ef4444 100%);
  border-radius: 99px;
  animation: vuMeterDance 1.6s ease-in-out infinite alternate;
}

@keyframes vuMeterDance {
  0% { width: 18%; }
  30% { width: 45%; }
  60% { width: 85%; }
  85% { width: 55%; }
  100% { width: 72%; }
}

.anim-wave-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  background: #0f172a;
  border-radius: 10px;
  padding: 0 16px;
}

.wave-bar {
  width: 4px;
  height: 10px;
  background: #f43f5e;
  border-radius: 99px;
  animation: waveBarBounce 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; }
.wave-bar:nth-child(12) { animation-delay: 1.1s; }

@keyframes waveBarBounce {
  0% { height: 6px; }
  100% { height: 26px; }
}

.anim-gain-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anim-control-label {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.anim-control-label strong {
  color: var(--accent-ruby);
}

.anim-mini-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.anim-mini-btn:hover {
  background: #ffffff;
  border-color: var(--accent-ruby);
  color: var(--accent-ruby);
}

/* -------------------------------------------------------------------------- */
/* STAGE 3: ANNOTATION STUDIO ANIMATION                                      */
/* -------------------------------------------------------------------------- */
.anim-annot-studio-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.anim-annot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.annot-tool-pills {
  display: flex;
  gap: 4px;
}

.anim-tool-chip {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.anim-tool-chip.active {
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
  border-color: var(--accent-ruby-border);
}

.annot-color-dots {
  display: flex;
  gap: 5px;
}

.anim-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.anim-dot.amber { background: #f59e0b; }
.anim-dot.red { background: #ef4444; }
.anim-dot.cyan { background: #06b6d4; }
.anim-dot.purple { background: #8b5cf6; }
.anim-dot.active { box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #0f172a; }

.anim-annot-canvas-stage {
  height: 250px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.anim-screenshot-bg {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mock-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-lines span {
  display: block;
  width: 80px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 4px;
}

.mock-lines span:last-child {
  width: 50px;
}

.mock-form-input {
  width: 100%;
  height: 32px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.mock-submit-btn {
  width: 100%;
  height: 32px;
  background: #0f172a;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.anim-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.anim-draw-arrow {
  stroke: #f59e0b;
  stroke-width: 3.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawArrowAnim 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.anim-draw-arrowhead {
  fill: #f59e0b;
  animation: arrowheadFade 3s ease infinite;
}

.anim-draw-rect {
  stroke: #ef4444;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
  fill: rgba(239, 68, 68, 0.08);
  animation: rectPulse 3s ease infinite;
}

@keyframes drawArrowAnim {
  0% { stroke-dashoffset: 200; opacity: 0; }
  25% { opacity: 1; }
  60%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { opacity: 0; }
}

@keyframes arrowheadFade {
  0%, 40% { opacity: 0; transform: scale(0.5); }
  60%, 85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}

@keyframes rectPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.anim-text-callout {
  position: absolute;
  top: 18px;
  left: 20px;
  background: #0f172a;
  color: #f59e0b;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
  animation: calloutBob 2s ease-in-out infinite alternate;
}

@keyframes calloutBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* -------------------------------------------------------------------------- */
/* STAGE 4: VIDEO TRIMMER ANIMATION                                          */
/* -------------------------------------------------------------------------- */
.anim-trimmer-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.anim-theater-frame {
  height: 150px;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-video-poster {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.poster-elements {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poster-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.poster-chart {
  width: 70%;
  height: 24px;
  background: var(--accent-ruby-soft);
  border: 1px solid var(--accent-ruby-border);
  border-radius: 6px;
}

.anim-trim-bar {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
}

.trim-bounds-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.trim-bounds-header strong {
  color: var(--accent-ruby);
}

.trim-center-label {
  font-weight: 700;
  color: var(--text-muted);
}

.trim-timeline-track {
  height: 24px;
  background: #cbd5e1;
  border-radius: 6px;
  position: relative;
  display: flex;
  overflow: hidden;
}

.trim-dimmed-left {
  width: 15%;
  background: rgba(15, 23, 42, 0.35);
}

.trim-active-region {
  flex: 1;
  background: #e2e8f0;
  border-top: 2px solid var(--accent-ruby);
  border-bottom: 2px solid var(--accent-ruby);
  position: relative;
}

.trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--accent-ruby);
  cursor: ew-resize;
}

.trim-handle.left { left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.trim-handle.right { right: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }

.anim-timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0f172a;
  animation: playheadScrub 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.anim-timeline-playhead::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  background: #0f172a;
  border-radius: 50%;
}

@keyframes playheadScrub {
  0% { left: 0%; }
  100% { left: 100%; }
}

.trim-dimmed-right {
  width: 15%;
  background: rgba(15, 23, 42, 0.35);
}

.anim-export-buttons-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.anim-preset-btn {
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
}

.anim-preset-btn.active {
  background: var(--accent-ruby-soft);
  color: var(--accent-ruby);
  border-color: var(--accent-ruby-border);
}

/* -------------------------------------------------------------------------- */
/* STAGE 5: SCREENSHOT MODES ANIMATION                                       */
/* -------------------------------------------------------------------------- */
.anim-snip-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.anim-snip-viewport {
  height: 240px;
  background: #0f172a;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-snip-backdrop {
  position: absolute;
  inset: 0;
  padding: 20px;
}

.snip-mock-grid {
  display: flex;
  gap: 14px;
  height: 100%;
}

.mock-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.anim-crop-box {
  width: 240px;
  height: 140px;
  border: 2px solid #f59e0b;
  position: relative;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
  animation: cropBoxPulse 4s ease-in-out infinite;
}

@keyframes cropBoxPulse {
  0%, 100% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
}

.anim-crop-dims-tag {
  position: absolute;
  top: -24px;
  left: 0;
  background: #0f172a;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.anim-crop-toolbar {
  position: absolute;
  bottom: -36px;
  right: 0;
  background: #0f172a;
  border-radius: 99px;
  padding: 4px;
  display: flex;
  gap: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.anim-crop-action {
  padding: 3px 8px;
  border-radius: 99px;
  border: none;
  background: #334155;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.anim-crop-action.primary {
  background: #10b981;
}

/* -------------------------------------------------------------------------- */
/* STAGE 6: MEDIA VAULT ANIMATION                                            */
/* -------------------------------------------------------------------------- */
.anim-vault-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.anim-vault-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.anim-vault-pills {
  display: flex;
  gap: 5px;
}

.anim-filter-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.anim-filter-pill.active {
  background: #0f172a;
  color: #ffffff;
}

.anim-storage-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

.anim-vault-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.anim-vault-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anim-vault-thumb {
  height: 100px;
  background: #0f172a;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.anim-vault-thumb.snap {
  background: #334155;
}

.play-indicator,
.snap-indicator {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 7px;
  border-radius: 4px;
}

.anim-vault-item strong {
  font-size: 11.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anim-vault-item span {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ========================================================================== */
/* COMPREHENSIVE RESPONSIVE STYLES                                            */
/* ========================================================================== */

/* Tablet & Mobile Nav Breakpoint: Switch to Hamburger Menu at <= 960px */
@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta-group {
    display: none !important;
  }
  .nav-toggle-btn {
    display: flex !important;
  }
  .workflow-grid,
  .interactive-targets-grid,
  .bento-grid,
  .install-card,
  .tiers-grid,
  .allocation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bento-card.span-2,
  .bento-card.span-3 {
    grid-column: span 1;
  }
  .gallery-slide.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .doc-card-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

/* Smartphone & Small Tablet Viewports */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .hero-section {
    padding: 38px 0 22px;
  }

  .hero-title {
    font-size: 29px;
    letter-spacing: -0.04em;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 14.5px;
    line-height: 1.55;
    padding: 0 4px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    gap: 10px;
  }

  .hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
    height: 44px;
    font-size: 13.5px;
  }

  .announcement-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 11px;
    padding: 5px 12px;
  }

  /* Playground Toolbar: Clean mobile alignment */
  .url-text-desktop {
    display: none;
  }
  .url-text-mobile {
    display: inline;
  }
  .showcase-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
  }
  .window-dots {
    display: none;
  }
  .showcase-url {
    font-size: 11.5px;
    padding: 3px 8px;
    max-width: calc(100% - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .swatch-selector {
    gap: 6px;
    margin-left: auto;
  }
  .swatch-label {
    display: none;
  }
  .interactive-stage {
    height: 380px;
  }
  .playground-top-pills {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  .telemetry-pill {
    font-size: 11px;
    padding: 4px 10px;
  }
  .playground-title {
    font-size: 19px;
    padding: 0 8px;
  }
  .playground-desc {
    font-size: 13px;
    padding: 0 10px;
    margin-bottom: 18px;
  }
  .interactive-targets-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }
  .interactive-target-card {
    padding: 14px;
  }
  .hud-dock-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Gallery Tabs - Smooth horizontal swipe */
  .gallery-tabs {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 4px 2px 10px;
    gap: 8px;
  }
  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }
  .gallery-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Docs Interactive Hub - Smooth horizontal scrolling */
  .docs-nav-strip {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 4px 2px 10px;
    gap: 8px;
  }
  .docs-nav-strip::-webkit-scrollbar {
    display: none;
  }
  .doc-nav-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
  }

  .doc-card-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px 14px;
    border-radius: 14px;
    max-width: 100%;
  }

  .doc-text-col,
  .doc-anim-col {
    max-width: 100%;
    min-width: 0;
  }

  .doc-step {
    font-size: 13px;
  }

  .anim-browser-window {
    max-width: 100%;
    width: 100%;
  }

  .anim-browser-body {
    padding: 12px 10px;
  }

  .anim-site-mockup {
    max-width: 100%;
  }

  .anim-address-pill {
    min-width: 0;
  }

  .anim-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .anim-export-buttons-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .annot-tool-pills {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Comparison Table responsive scrolling */
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    max-width: 100%;
  }
  .comparison-table {
    min-width: 560px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px 14px;
  }

  /* Installation Card */
  .install-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .install-code-box {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Footer responsiveness */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
}

/* Small Smartphone Viewport */
@media (max-width: 480px) {
  .hero-title {
    font-size: 25px;
  }
  .hero-actions {
    max-width: 100%;
  }
  .mobile-secondary-grid {
    grid-template-columns: 1fr;
  }
  .interactive-stage {
    height: 320px;
  }
  .anim-crop-mockup {
    height: 180px;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
  .anim-dock-preview {
    gap: 6px;
    padding: 6px 8px;
  }
}