/* ==========================================================================
   Helpwing Design System · Production Stylesheet
   Architecture: High-End Developer / AI Pro Tool (Linear & Raycast Calibre)
   Dual-Theme: Obsidian Dark (Default) & Kagaz Paper Light
   Fonts: Plus Jakarta Sans / Anek Latin / JetBrains Mono
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & Variables
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Night-desk charcoal — matches the Electron overlay, not a purple SaaS glow */
  --bg: #0C0C0E;
  --bg-gradient:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(245, 165, 36, 0.10), rgba(12, 12, 14, 0) 70%),
    radial-gradient(circle 520px at 88% 8%, rgba(34, 211, 238, 0.06), rgba(12, 12, 14, 0) 60%),
    radial-gradient(circle 480px at 8% 70%, rgba(18, 18, 20, 0.9), rgba(12, 12, 14, 0) 55%);
  --grid-pattern: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  --hw-panel: rgba(18, 18, 20, 0.94);
  --hw-border: rgba(255, 255, 255, 0.10);

  /* Surfaces & Glassmorphism */
  --surface: #0E101D;
  --surface-elevated: #15182C;
  --surface-card: rgba(18, 22, 40, 0.72);
  --surface-card-hover: rgba(24, 30, 54, 0.84);
  --surface-tint: rgba(99, 102, 241, 0.12);
  --surface-glow: rgba(99, 102, 241, 0.25);

  /* Typography / Ink */
  --ink: #F8FAFC;
  --ink-secondary: #CBD5E1;
  --ink-muted: #8E9AB0;
  --ink-faint: #525C74;

  /* Borders & Dividers */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(129, 140, 248, 0.45);
  --border-amber: rgba(245, 158, 11, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.35);

  /* Core Brand Colors */
  --primary: #6366F1;
  --primary-strong: #4F46E5;
  --primary-light: #818CF8;
  --primary-tint: rgba(99, 102, 241, 0.15);

  --btn-bg: #4F46E5;
  --btn-bg-hover: #4338CA;
  --btn-ink: #FFFFFF;

  --accent: #F59E0B;
  --accent-strong: #D97706;
  --accent-tint: rgba(245, 158, 11, 0.14);
  --accent-text: #FBBF24;

  --cyan: #06B6D4;
  --cyan-light: #38BDF8;
  --cyan-tint: rgba(6, 182, 212, 0.14);

  /* Functional Status Colors */
  --success: #10B981;
  --success-tint: rgba(16, 185, 129, 0.15);
  --warning: #F97316;
  --warning-tint: rgba(249, 115, 22, 0.15);
  --danger: #EF4444;
  --danger-tint: rgba(239, 68, 68, 0.15);

  /* Studio HUD Call Environment */
  --call-bg: #090B14;
  --call-tile: #12162A;
  --call-ink: #F1F5F9;

  /* Multi-tier Depth Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.75), 0 0 35px -5px rgba(99, 102, 241, 0.18);
  --shadow-glow: 0 0 45px -5px rgba(99, 102, 241, 0.28);
  --shadow-amber-glow: 0 0 35px -5px rgba(245, 158, 11, 0.25);

  /* Typography Scales */
  --display: "Anek Latin", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --body: "Plus Jakarta Sans", "Hind", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Shape Tokens */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 1220px;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   Kagaz Paper Light Theme
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #F8FAFC;
  --bg-gradient:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(99, 102, 241, 0.08), rgba(248, 250, 252, 0) 75%),
    radial-gradient(circle 600px at 90% 20%, rgba(245, 165, 36, 0.06), rgba(248, 250, 252, 0) 65%),
    radial-gradient(circle 500px at 10% 40%, rgba(79, 70, 229, 0.05), rgba(248, 250, 252, 0) 60%);
  --grid-pattern: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);

  --surface: #FFFFFF;
  --surface-elevated: #F1F5F9;
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-card-hover: #FFFFFF;
  --surface-tint: #EEF2FF;
  --surface-glow: rgba(99, 102, 241, 0.08);

  --ink: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --ink-faint: #94A3B8;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-amber: rgba(217, 119, 6, 0.4);

  --primary: #4F46E5;
  --primary-strong: #4338CA;
  --primary-light: #6366F1;
  --primary-tint: #EEF2FF;

  --btn-bg: #4F46E5;
  --btn-bg-hover: #4338CA;
  --btn-ink: #FFFFFF;

  --accent: #D97706;
  --accent-strong: #B45309;
  --accent-tint: #FEF3C7;
  --accent-text: #B45309;

  --success: #059669;
  --success-tint: #D1FAE5;
  --warning: #EA580C;
  --warning-tint: #FFEDD5;
  --danger: #DC2626;
  --danger-tint: #FEE2E2;

  --call-bg: #0F172A;
  --call-tile: #1E293B;
  --call-ink: #F8FAFC;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 0 25px -5px rgba(99, 102, 241, 0.1);
  --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.15);
  --shadow-amber-glow: 0 0 30px -5px rgba(245, 165, 36, 0.18);
}

/* --------------------------------------------------------------------------
   Base Reset & Global Polish
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--ink);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 100;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 4.4vw + 0.4rem, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw + 0.35rem, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 1.2vw + 0.25rem, 1.38rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--ink-secondary);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease-out, opacity 0.18s ease-out;
}

a:hover {
  color: var(--primary-light);
}

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

.muted {
  color: var(--ink-muted);
}

/* Gradient text accent */
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #A5B4FC 60%, #F5A524 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

:root[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0F172A 20%, #4338CA 60%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle Eyebrow Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow-badge {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-amber);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px -3px var(--accent-tint);
}

.eyebrow-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
}

kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2.5px;
  border-radius: 6px;
  background: var(--surface-elevated);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  line-height: 1.2;
}

.btn-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px -2px rgba(79, 70, 229, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -3px rgba(79, 70, 229, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink) !important;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #FFFFFF !important;
}

:root[data-theme="light"] .btn-secondary:hover {
  color: #0F172A !important;
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.88rem 1.65rem;
  font-size: 1.0rem;
  border-radius: var(--radius-pill);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Floating Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 9, 15, 0.94);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.82);
}

:root[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
}

.brand-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5 0%, #312E81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-tint);
  color: var(--accent-text);
  border: 1px solid rgba(245, 165, 36, 0.35);
  line-height: 1;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav a {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-secondary);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  transition: all 0.18s ease;
}

.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-tint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--surface-elevated);
  color: var(--ink);
  border-color: var(--border-glow);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 480px) {
  .site-header .wrap {
    gap: 0.45rem;
    padding-inline: 0.85rem;
  }
  .brand {
    font-size: 1.08rem;
    gap: 0.45rem;
  }
  .header-actions {
    gap: 0.4rem;
  }
  .header-actions .header-guide-btn {
    display: none;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .site-header .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .site-header.is-open .nav a {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
}

/* --------------------------------------------------------------------------
   Reading Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4F46E5, #818CF8, #F5A524);
  z-index: 1000;
  transition: width 0.08s linear;
}

/* --------------------------------------------------------------------------
   Hero Section & Interactive Simulator Stage
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(2rem, 4vw, 3.75rem) clamp(1.75rem, 3vw, 3.25rem);
  position: relative;
  overflow-x: clip;
}

/* Technical ambient grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.hero-stack {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  justify-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  text-align: center;
  justify-items: center;
}

.hero-copy #hero-title {
  font-size: clamp(1.85rem, 3.1vw + 0.35rem, 2.75rem);
  letter-spacing: -0.02em;
  word-spacing: normal;
}

.hero-lead {
  margin: 0;
  max-width: 34rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.1vw + 0.45rem, 1.32rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-copy .cta-row,
.hero-copy .hero-badges {
  justify-content: center;
}

.hero-copy .sub {
  font-size: clamp(1.0rem, 1.1vw + 0.2rem, 1.14rem);
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  align-items: center;
}

.hero-guide-note {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

.hero-guide-note a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.hero-badges li svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-values {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.hero-values li {
  position: relative;
  padding-left: 1.35rem;
}

.hero-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.quote-strip {
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 42%, color-mix(in srgb, var(--accent) 6%, transparent));
}

.quote-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .quote-lines {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 2rem;
  }
}

.quote-lines li {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quote-lines q {
  quotes: none;
}

/* --- Helpwing overlay (matches Electron glass) --- */
.hw-stage {
  width: min(860px, 100%);
  display: grid;
  gap: 1rem;
  justify-items: stretch;
}

.example-toolbar {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.example-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.example-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.example-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.example-tab:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.example-tab.is-active {
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent-text);
  border-color: var(--border-amber);
}

.hw-window {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 28%),
    var(--hw-panel);
  border: 1px solid var(--hw-border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.9);
  /* System stack matches the Electron overlay. Tracking on webfonts was collapsing spaces. */
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: normal;
  font-feature-settings: normal;
  font-kerning: normal;
  font-variant-ligatures: none;
  letter-spacing: 0;
  word-spacing: normal;
  text-align: left;
}

.hw-cmd,
.hw-tx,
.hw-thread,
.hw-ask {
  background: rgba(18, 18, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.hw-cmd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 6px 8px;
  min-height: 40px;
}

.hw-icon,
.hw-cmd-label,
.hw-lang,
.hw-recharge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  white-space: nowrap;
}

.hw-icon svg,
.hw-cmd-label svg {
  width: 16px;
  height: 16px;
}

.hw-icon.is-on.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.hw-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.hw-cmd-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hw-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0;
  word-spacing: 0.1em;
}

.hw-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hw-tx {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.hw-tx-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  flex-shrink: 0;
}

.hw-tx-who {
  width: 78px;
  flex-shrink: 0;
  font-weight: 650;
  color: #fcd34d;
  padding-top: 1px;
}

.hw-tx-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  letter-spacing: 0;
  word-spacing: normal;
  white-space: pre-wrap;
}

.hw-tx-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hw-tx-btn,
.hw-tx-x {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0;
  word-spacing: 0.06em;
}

.hw-tx-btn kbd {
  margin-left: 0.35em;
}

.hw-thread {
  padding: 8px 12px 12px;
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
}

.hw-thread-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.04em;
  word-spacing: normal;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.hw-ex[hidden] { display: none !important; }

.hw-q {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.hw-q-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.hw-src {
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 4px;
}

.hw-src-system { color: #fcd34d; background: rgba(245, 158, 11, 0.15); }
.hw-src-screenshot { color: #7dd3fc; background: rgba(14, 165, 233, 0.15); }
.hw-src-typed { color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.1); }
.hw-img { color: rgba(255,255,255,0.5); }

.hw-q p,
.hw-a p,
.hw-thoughts {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.92);
  letter-spacing: 0;
  word-spacing: normal;
  white-space: pre-wrap;
}

.hw-window strong {
  letter-spacing: 0;
  word-spacing: normal;
  font-weight: 650;
}

.hw-a { display: grid; gap: 10px; padding-left: 4px; }

.hw-thoughts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}

.hw-thoughts li {
  padding-left: 12px;
  position: relative;
}

.hw-thoughts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22d3ee;
}

.hw-a code {
  background: rgba(0,0,0,0.4);
  color: #a5f3fc;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
}

.hw-deeper { color: rgba(255,255,255,0.72); font-size: 12px; }

.hw-diagram {
  margin: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}

.hw-diagram-head {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  font-family: var(--mono);
}

.hw-flow {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 12px 20px;
}

.hw-node {
  min-width: 128px;
  max-width: 100%;
  text-align: center;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  font-size: 11px;
  color: #fff;
  background: #0c0c0e;
  letter-spacing: 0;
  word-spacing: normal;
  white-space: pre-wrap;
}

.hw-node.is-diamond {
  transform: rotate(0deg);
  border-radius: 2px;
}

.hw-arrow {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.45);
  position: relative;
}

.hw-arrow::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255,255,255,0.45);
}

.hw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(360px, 100%);
  align-items: start;
}

.hw-col {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.hw-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hw-pair .hw-node { min-width: 110px; }

.hw-code {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(22, 27, 34, 0.7);
}

.hw-code-head {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  font-family: var(--mono);
}

.hw-code pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: #e2e8f0;
}

.hw-complexity {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

.hw-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0;
  word-spacing: 0.16em;
  white-space: pre-wrap;
}

.hw-send svg { width: 14px; height: 14px; }

.hw-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.65rem;
}

@media (max-width: 720px) {
  .hw-cmd-label { display: none; }
  .hw-lang { display: none; }
  .hw-recharge { display: none; }
  .hw-tx { flex-wrap: wrap; }
  .hw-tx-who { width: auto; }
  .hw-tx-actions { width: 100%; justify-content: flex-end; }
  .hw-split { grid-template-columns: 1fr; }
  .hw-thread { max-height: 360px; }
  .demo-overlay .hw-thread { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-a, .hw-q,
  .demo-overlay .is-revealing { animation: none !important; }
}

@keyframes hw-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hw-ex.is-entering .hw-q,
.hw-ex.is-entering .hw-a > * {
  animation: hw-in 0.45s ease both;
}

.hw-ex.is-entering .hw-a > *:nth-child(1) { animation-delay: 0.08s; }
.hw-ex.is-entering .hw-a > *:nth-child(2) { animation-delay: 0.16s; }
.hw-ex.is-entering .hw-a > *:nth-child(3) { animation-delay: 0.24s; }
.hw-ex.is-entering .hw-a > *:nth-child(4) { animation-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Interactive Audio & Microphone Diagnostic Strip
   -------------------------------------------------------------------------- */
.diagnostic-strip {
  padding-block: 1.4rem;
  background: var(--surface);
  border-block: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.diag-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.diag-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.diag-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-tint);
  border: 1px solid var(--border-glow);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--surface-glow);
}

.diag-meta h3 {
  font-size: 1.05rem;
  margin: 0;
}

.diag-meta p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.diag-tester {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  min-width: 0;
}

.diag-meter {
  width: 140px;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.diag-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--success) 0%, #FBBF24 75%, var(--accent) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px var(--success);
}

.api-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  white-space: nowrap;
  width: auto;
  height: auto;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.api-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  flex-shrink: 0;
}

.api-dot[data-state="live"]::before,
.api-dot[data-state="ready"]::before {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.api-dot[data-state="live"],
.api-dot[data-state="ready"] {
  border-color: rgba(16, 185, 129, 0.3);
  color: #34D399;
  background: rgba(16, 185, 129, 0.08);
}

:root[data-theme="light"] .api-dot[data-state="live"],
:root[data-theme="light"] .api-dot[data-state="ready"] {
  border-color: rgba(5, 150, 105, 0.3);
  color: #065F46;
  background: rgba(5, 150, 105, 0.08);
}

@media (max-width: 860px) {
  .diag-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .diag-tester {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Section Layout & Bands
   -------------------------------------------------------------------------- */
.band {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  position: relative;
}

.band-alt {
  background-color: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: clamp(1.02rem, 1.1vw + 0.2rem, 1.15rem);
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Step-by-Step Methodology Workflow
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.step-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--border-amber);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.step-card h3 {
  font-size: 1.25rem;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.step-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Capabilities Bento Grid
   -------------------------------------------------------------------------- */
.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .features-container {
    grid-template-columns: 1fr;
  }
}

.feature-column {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.feature-col-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.feature-col-tag span:last-child {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.feature-item {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: grid;
  gap: 0.85rem;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-item h3 {
  font-size: 1.2rem;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.feature-item ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.feature-item ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.feature-item ul li::before {
  content: "✓";
  color: var(--primary-light);
  font-weight: 700;
}

.feature-notice {
  background: var(--accent-tint);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Interactive Question Bank
   -------------------------------------------------------------------------- */
.track-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.track-btn {
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-btn:hover {
  background: var(--surface-elevated);
  color: var(--ink);
  border-color: var(--border-glow);
}

.track-btn.is-active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

@media (max-width: 860px) {
  .questions-grid {
    grid-template-columns: 1fr;
  }
}

.question-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: grid;
  gap: 0.95rem;
  transition: all 0.22s ease;
}

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

.q-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.q-company {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
}

.q-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: var(--primary-tint);
  border: 1px solid var(--border-glow);
  color: var(--primary-light);
}

.q-prompt {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.45;
}

.q-approach {
  font-size: 0.80rem;
  color: var(--ink-secondary);
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  line-height: 1.58;
}

:root[data-theme="light"] .q-approach {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(203, 213, 225, 0.85);
}

.q-approach strong,
.q-spoken-label {
  color: var(--accent-text);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

.q-spoken-text,
.q-approach p {
  margin: 0;
  font-size: 0.80rem;
  line-height: 1.58;
  color: var(--ink-secondary);
}

:root[data-theme="light"] .q-spoken-text,
:root[data-theme="light"] .q-approach p {
  color: #334155;
}

.q-approach code {
  font-family: var(--mono);
  font-size: 0.74rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

:root[data-theme="light"] .q-approach code {
  background: rgba(0, 0, 0, 0.06);
  color: #0F172A;
}

/* Question Card ASCII Architecture Diagram */
.q-diagram-wrap {
  background: rgba(3, 7, 18, 0.90);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  overflow-x: auto;
  margin: 0.4rem 0;
}

.q-ascii-diagram {
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: #38BDF8;
  margin: 0;
  white-space: pre;
}

/* Question Card Pillars */
.q-pillars {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.q-pillar-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 0.42rem 0.65rem;
  border-left: 2.5px solid var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.18rem;
}

.q-pillar-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--accent-text);
}

.q-pillar-text {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.48;
  color: #E2E8F0;
}

:root[data-theme="light"] .q-diagram-wrap {
  background: #060A14;
}

:root[data-theme="light"] .q-pillar-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.07);
  border-left-color: var(--accent);
}

:root[data-theme="light"] .q-pillar-text {
  color: #1E293B;
}

/* --------------------------------------------------------------------------
   Pay-as-you-use flash banner
   -------------------------------------------------------------------------- */
.payg-flash {
  position: relative;
  padding: 0.85rem 0;
  background: linear-gradient(
    105deg,
    rgba(79, 70, 229, 0.22) 0%,
    rgba(245, 165, 36, 0.18) 45%,
    rgba(79, 70, 229, 0.14) 100%
  );
  border-block: 1px solid rgba(245, 165, 36, 0.35);
  overflow: hidden;
}

.payg-flash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: payg-shine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes payg-shine {
  0%,
  72% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .payg-flash::before {
    animation: none;
  }
}

.payg-flash--inset {
  border-radius: 14px;
  border: 1px solid rgba(245, 165, 36, 0.4);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.12) 0%,
    rgba(245, 165, 36, 0.1) 50%,
    rgba(79, 70, 229, 0.08) 100%
  );
}

.payg-flash-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.payg-flash-tag {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--accent-text);
  background: rgba(245, 165, 36, 0.2);
  border: 1px solid rgba(245, 165, 36, 0.45);
  box-shadow: 0 0 20px rgba(245, 165, 36, 0.15);
}

.payg-flash-copy {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.payg-flash-copy strong {
  color: var(--accent-text);
}

.payg-flash-cta {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  background: var(--surface-card);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.payg-flash-cta:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
}

.custom-pricing {
  margin: 2rem 0 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(79, 70, 229, 0.35);
  background: linear-gradient(
    145deg,
    rgba(79, 70, 229, 0.08) 0%,
    var(--surface-card) 40%,
    rgba(245, 165, 36, 0.06) 100%
  );
}

.custom-pricing-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
}

.custom-pricing-body {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
}

.custom-pricing-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  font-size: 0.92rem;
}

.custom-pricing-label output {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--accent-text);
}

.custom-pricing-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.custom-pick {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.custom-pick:hover,
.custom-pick.is-active {
  border-color: var(--primary);
  color: var(--ink);
  background: var(--surface-elevated);
}

.custom-pricing-total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.35rem;
}

.custom-pricing-amount {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.custom-pricing-detail {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.custom-pricing .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Pricing Section & Value Packs
   -------------------------------------------------------------------------- */
.pricing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.pricing-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-badges li::before {
  content: "•";
  color: var(--accent);
  font-weight: 900;
}

.pricing-badges li.highlight {
  color: var(--accent-text);
  font-weight: 650;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

/* Featured Star Tier (Value Pack & Pro) */
.plan-card.featured {
  background: linear-gradient(180deg, rgba(28, 33, 58, 0.9) 0%, rgba(18, 22, 38, 0.95) 100%);
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-amber-glow);
}

:root[data-theme="light"] .plan-card.featured {
  background: #FFFFFF;
  border: 2px solid var(--accent);
}

.plan-head, .plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.plan-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--ink);
}

.plan-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  border: 1px solid var(--border-amber);
  color: var(--accent-text);
  white-space: nowrap;
}

.plan-price {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.plan-rate {
  font-family: var(--mono);
  font-size: 0.80rem;
  color: var(--ink-muted);
}

.plan-desc {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  min-height: 2.8rem;
}

.plan-features {
  list-style: none;
  padding: 0.75rem 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plan-features li svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Dynamic ROI Plan Calculator
   -------------------------------------------------------------------------- */
.calc-box {
  margin-top: 3.5rem;
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 960px) {
  .calc-box {
    grid-template-columns: 1fr;
  }
}

.calc-inputs {
  display: grid;
  gap: 1.5rem;
}

.calc-inputs h3 {
  font-size: 1.4rem;
}

.calc-row {
  display: grid;
  gap: 0.65rem;
}

.calc-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.calc-row output {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  cursor: grab;
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-result {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: grid;
  gap: 0.85rem;
}

:root[data-theme="light"] .calc-result {
  background: #F8FAFC;
}

.calc-rec-label {
  font-family: var(--mono);
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.calc-rec-title {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.calc-rec-per {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.calc-bar {
  display: flex;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  overflow: hidden;
  margin-top: 0.4rem;
  border: 1px solid var(--border);
}

.calc-bar i {
  height: 100%;
  display: block;
  transition: width 0.2s ease-out;
}

.seg-free { background: var(--success); }
.seg-used { background: var(--primary); }
.seg-left { background: #38BDF8; }

.calc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.calc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dot-free { color: var(--success); }
.dot-used { color: var(--primary-light); }
.dot-left { color: #38BDF8; }

/* --------------------------------------------------------------------------
   Platform Compatibility Matrix Table
   -------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

thead th {
  background: var(--surface-elevated);
  padding: 1.1rem 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
}

tbody th, tbody td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-secondary);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover th,
tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 650;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status-pill.ok {
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill.warning {
  background: var(--warning-tint);
  color: var(--warning);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.status-pill.danger {
  background: var(--danger-tint);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-pill.info {
  background: var(--primary-tint);
  color: var(--primary-light);
  border: 1px solid var(--border-glow);
}

/* --------------------------------------------------------------------------
   DPDP Privacy & Trust Center
   -------------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  display: grid;
  gap: 0.85rem;
  transition: all 0.22s ease;
}

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

.trust-card h3 {
  font-size: 1.18rem;
}

.trust-card p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.6rem;
  transition: all 0.22s ease;
}

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

.faq-item[open] {
  background: var(--surface-elevated);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-family: var(--display);
  font-size: 1.0rem;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-light);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  padding-top: 0.95rem;
  font-size: 0.90rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Get Started Hub
   -------------------------------------------------------------------------- */
.action-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .action-hub {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: all 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

.hub-card.primary {
  background: linear-gradient(180deg, rgba(31, 38, 70, 0.9) 0%, rgba(18, 22, 38, 0.95) 100%);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hub-card h3 {
  font-size: 1.45rem;
}

.hub-card p {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  flex-grow: 1;
}

.hub-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Dynamic Card Spotlight & Motion Tokens
   -------------------------------------------------------------------------- */
.spotlight-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.14),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

:root[data-theme="light"] .spotlight-card::before {
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.08),
    transparent 50%
  );
}

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

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md), 0 0 30px -5px rgba(99, 102, 241, 0.2);
}

/* --------------------------------------------------------------------------
   Scroll-Triggered Reveals
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .spotlight-card:hover {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Key Metrics Impact Strip
   -------------------------------------------------------------------------- */
.metrics-strip {
  padding-block: 2rem 3rem;
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .metrics-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.metric-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

.metric-num {
  font-family: var(--display);
  font-size: clamp(2.0rem, 3.2vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .metric-num {
  background: linear-gradient(135deg, #0F172A 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  margin-left: 0.15rem;
}

.metric-label {
  font-family: var(--display);
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.35rem;
}

.metric-sub {
  font-size: 0.80rem;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   App Features Hub Bento
   -------------------------------------------------------------------------- */
.app-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

@media (max-width: 960px) {
  .bento-col-8,
  .bento-col-4,
  .bento-col-6 {
    grid-column: span 12;
  }
}

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.bento-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bento-card-title-group h3 {
  font-size: 1.22rem;
  font-weight: 750;
  margin-top: 0.25rem;
}

.bento-card-title-group p {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Interactive Code Solver Preview */
.code-solver-box {
  background: #06070D;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .code-solver-box {
  background: #0F172A;
  color: #F8FAFC;
}

.code-solver-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 0.75rem;
}

.lang-tabs {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem;
  border-radius: var(--radius-xs);
}

.lang-tab-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-tab-btn:hover {
  color: #FFFFFF;
}

.lang-tab-btn.is-active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.complexity-pill-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.complexity-badge {
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.complexity-badge.time {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--border-cyan);
  color: #38BDF8;
}

.complexity-badge.space {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
}

/* Spoken Thoughts Array */
.spoken-thoughts-box {
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  display: grid;
  gap: 0.4rem;
}

.spoken-thoughts-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
}

.spoken-thoughts-text {
  margin: 0;
  font-size: 0.78rem;
  color: #E2E8F0;
  line-height: 1.56;
}

:root[data-theme="light"] .spoken-thoughts-text {
  color: #334155;
}

.spoken-thoughts-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #E2E8F0;
  line-height: 1.52;
}

.spoken-thoughts-box li::before {
  content: "→ ";
  color: var(--accent-text);
  font-weight: 700;
}

/* Code Output Display */
.code-pre-wrap {
  position: relative;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
}

.code-pre-wrap pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.77rem;
  line-height: 1.58;
  color: #E2E8F0;
}

.code-pre-wrap pre code {
  font-family: inherit;
}

/* Interactive Global Hotkeys Card */
.hotkeys-card-content {
  display: grid;
  gap: 0.85rem;
}

.hotkeys-list {
  display: grid;
  gap: 0.65rem;
}

.hotkey-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  cursor: pointer;
}

.hotkey-row:hover,
.hotkey-row.is-active-key {
  background: var(--surface-tint);
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.hotkey-name {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotkey-keys {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hotkey-keys kbd {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 0.18rem 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.hotkey-feedback {
  font-size: 0.77rem;
  font-family: var(--mono);
  color: var(--accent);
  min-height: 1.3rem;
}

/* Resume Grounding Comparison */
.grounding-box {
  display: grid;
  gap: 0.85rem;
}

.grounding-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem;
  border-radius: var(--radius-xs);
  width: fit-content;
}

.grounding-btn {
  background: transparent;
  border: none;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.grounding-btn.is-active {
  background: var(--primary);
  color: #FFFFFF;
}

.grounding-pane {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.81rem;
  line-height: 1.55;
}

.grounding-pane.generic {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}

.grounding-pane.grounded {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.grounding-tag {
  font-family: var(--mono);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.grounding-tag.generic { color: #F87171; }
.grounding-tag.grounded { color: #34D399; }

/* ExamGuard Protection Shield */
.examguard-box {
  display: grid;
  gap: 0.85rem;
}

.examguard-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.examguard-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: #F87171;
}

.examguard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.examguard-chip {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  font-family: var(--mono);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

/* Runtime Code Debugger Card */
.debugger-box {
  background: #06070D;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.52;
}

:root[data-theme="light"] .debugger-box {
  background: #0F172A;
  color: #F8FAFC;
}

.debugger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 0.5rem;
  font-size: 0.70rem;
  color: var(--ink-muted);
}

.debugger-trace {
  color: #F87171;
  background: rgba(239, 68, 68, 0.08);
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
}

.debugger-patch {
  color: #34D399;
  background: rgba(16, 185, 129, 0.08);
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: #040508;
  border-top: 1px solid var(--border);
  padding-block: clamp(3.5rem, 5vw, 5rem) 2.5rem;
  color: var(--ink-muted);
}

:root[data-theme="light"] footer {
  background: #F1F5F9;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2.5rem 1.8rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-grid h4 {
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.foot-grid ul a:hover {
  color: var(--ink);
}

.foot-grid .story {
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 20rem;
  margin-top: 0.75rem;
}

.disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.disclaimer a {
  color: var(--ink-secondary);
}

.disclaimer a:hover {
  color: var(--ink);
}

.link-telegram {
  color: #2aabee;
  font-weight: 600;
  text-decoration: none;
}

.link-telegram:hover {
  color: #229ed9;
  text-decoration: underline;
}

/* --- Usage walkthrough (full overlay mock) --- */
.demo-scene {
  width: min(860px, 100%);
  display: grid;
  gap: 1rem;
}

.demo-overlay {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: none;
  overflow: visible;
}

@keyframes demo-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.demo-overlay .is-revealing {
  animation: demo-fade 0.22s ease both;
}

.demo-overlay .hw-thread {
  min-height: 0;
  max-height: none;
}

.demo-overlay .hw-flow {
  padding: 12px 12px 14px;
}

.hw-flow-linear {
  grid-auto-flow: column;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
}

.hw-flow-linear .hw-arrow {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
}

.hw-flow-linear .hw-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.45);
}

.hw-node-stack {
  max-width: 9rem;
  text-align: center;
  line-height: 1.35;
  font-size: 10px;
}

.demo-overlay [data-demo-part][hidden] {
  display: none !important;
}

.demo-overlay.is-flash [data-demo="cam"],
.demo-overlay.is-flash [data-demo="snip"] {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.demo-overlay.is-recharge [data-demo="recharge"] {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.hw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  border-radius: 99px;
  background: #0ea5e9;
  color: #000;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 14px;
}

.hw-icon { position: relative; }

.demo-think {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.demo-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.demo-legend li {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.demo-legend li.is-on {
  color: var(--accent-text);
  border-color: var(--border-amber);
  background: rgba(245, 165, 36, 0.1);
}

.shipped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shipped-card {
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.shipped-card h3 { font-size: 1.05rem; }
.shipped-card p { font-size: 0.92rem; }

@media (max-width: 720px) {
  .demo-overlay {
    width: 100%;
    max-height: none;
  }
}

/* Homepage — Understand the app teaser */
.guide-teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.75rem;
  align-items: center;
  margin-top: 1.5rem;
}
@media (max-width: 820px) {
  .guide-teaser-grid { grid-template-columns: 1fr; }
}
.guide-teaser {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.guide-teaser img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.guide-teaser figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}
.guide-teaser-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}
.guide-teaser-list strong { color: var(--ink); }
