/* ==========================================================================
   Whisperila AI — Editorial Buildathon Design System + Vengeance UI Motions
   Color & typographic DNA inspired by joinbuilders.org/buildathon
   Interactive component patterns inspired by vengenceui.com/components
   ========================================================================== */

:root {
  /* Core JoinBuilders Buildathon Palette */
  --ink: #121214;
  --paper: #e9e7e1;
  --card: #f8f7f3;
  --fill: #1c1c1f;
  --bb-line: color-mix(in srgb, var(--paper) 16%, transparent);
  --bb-line-strong: color-mix(in srgb, var(--paper) 28%, transparent);
  --bb-muted: color-mix(in srgb, currentColor 68%, transparent);
  --bb-error: #ff8a76;

  /* Track Palettes (Exact Buildathon Swatches) */
  --emerald-ground: #0c9a4e;
  --emerald-forest: #14493a;
  --emerald-deep: #0a261e;
  --emerald-deep2: #066432;
  --emerald-bright: #3fdc85;
  --emerald-mint: #2fd98b;

  --saffron-ground: #ec5a13;
  --saffron-deep: #a53a06;
  --saffron-bright: #ff9457;

  --crimson-ground: #db2b1c;
  --crimson-deep: #93160c;
  --crimson-bright: #ff6f5a;

  --violet-ground: #6a37ee;
  --violet-deep: #3f1ba8;
  --violet-bright: #9b76ff;

  /* Elevation & Geometry */
  --radius: 14px;
  --corner: 10px;
  --cast: 0 1px 1px #00000014, 0 10px 24px -10px #00000055;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-hand: "Caveat", cursive;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  background: var(--ink);
  color: var(--paper);
  line-height: 1.45;
  overflow-x: clip;
  padding-bottom: 6.5rem;
}

a { color: inherit; text-decoration: none; }

/* ---------- Typography Utilities ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hand {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.title-xl {
  font-size: clamp(2.8rem, 6.2vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-left: -0.04em;
}

.heading-lg {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-left: -0.03em;
}

.card-title {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.38;
  max-width: 40rem;
}

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

/* ---------- Layout Container ---------- */
.container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  margin-top: 2.25rem;
}

/* ---------- Top Editorial Bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bb-line);
}

.topbar-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}

.wordmark-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--emerald-bright), var(--emerald-ground));
  color: var(--emerald-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: inset 0 1px 0 #ffffff66;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a {
  color: color-mix(in srgb, var(--paper) 74%, transparent);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Beveled Buildathon Surfaces & Buttons ---------- */
.panel, .sheet, .board {
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--surface-fill, var(--fill)) 75%, #fff 18%);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--surface-fill, var(--fill)), #fff 4%),
    color-mix(in srgb, var(--surface-fill, var(--fill)), #000 5%)
  );
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface-fill, var(--fill)), #fff 20%), var(--cast);
}

.panel { --surface-fill: var(--fill); }

.sheet-emerald {
  --surface-fill: var(--emerald-forest);
  --accent-bright: var(--emerald-bright);
  --accent-deep: var(--emerald-deep);
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--emerald-bright) 24%, transparent), transparent 46%),
    radial-gradient(circle at 12% 92%, color-mix(in srgb, var(--emerald-ground) 34%, transparent), transparent 52%),
    linear-gradient(160deg, var(--emerald-forest) 0%, var(--emerald-deep) 100%);
  border-color: color-mix(in srgb, var(--emerald-bright) 34%, transparent);
}

.sheet-saffron {
  --surface-fill: var(--saffron-deep);
  --accent-bright: var(--saffron-bright);
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--saffron-bright) 28%, transparent), transparent 45%),
    linear-gradient(155deg, #5d2107 0%, #261009 100%);
  border-color: color-mix(in srgb, var(--saffron-bright) 35%, transparent);
}

.sheet-crimson {
  --surface-fill: var(--crimson-deep);
  --accent-bright: var(--crimson-bright);
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--crimson-bright) 25%, transparent), transparent 48%),
    linear-gradient(155deg, #4b1210 0%, #1d0d0e 100%);
  border-color: color-mix(in srgb, var(--crimson-bright) 32%, transparent);
}

.sheet-violet {
  --surface-fill: var(--violet-deep);
  --accent-bright: var(--violet-bright);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--violet-bright) 26%, transparent), transparent 48%),
    linear-gradient(155deg, #2b1668 0%, #151026 100%);
  border-color: color-mix(in srgb, var(--violet-bright) 34%, transparent);
}

.sheet-paper {
  --surface-fill: var(--card);
  background: var(--card);
  color: var(--ink);
  border-color: #d6d3cb;
  box-shadow: inset 0 1px 0 #ffffff, var(--cast);
}

.sheet-paper .label { color: color-mix(in srgb, var(--ink) 58%, transparent); }
.sheet-paper .muted { color: color-mix(in srgb, var(--ink) 68%, transparent); }

/* Halftone dot texture overlay (signature JoinBuilders look) */
.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 10px 10px;
  mask-image: linear-gradient(135deg, transparent 20%, #000 100%);
  -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 100%);
}

/* Buttons (Buildathon + Vengeance UI Corner/Liquid Hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--corner);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:active { transform: scale(0.98); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: #ffffff80;
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 18px -8px #000000aa;
}

.btn-paper:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-emerald {
  background: var(--emerald-bright);
  color: var(--emerald-deep);
  font-weight: 600;
  box-shadow: inset 0 1px 0 #ffffff88, 0 8px 24px -8px color-mix(in srgb, var(--emerald-bright) 60%, transparent);
}

.btn-emerald:hover {
  background: #5bf09d;
  transform: translateY(-1px);
}

.btn-quiet {
  background: transparent;
  color: inherit;
  border: 1.5px solid color-mix(in srgb, currentColor 38%, transparent);
}

.btn-quiet:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-color: currentColor;
}

/* ---------- Vengeance UI: Glow Border Card ---------- */
.glow-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--fill);
  border: 1px solid var(--bb-line);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  isolation: isolate;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mx, 50%) var(--my, 50%),
    var(--glow-color, var(--emerald-bright)),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 2;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--glow-color, var(--emerald-bright)) 10%, transparent),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 0;
}

.glow-card:hover::before,
.glow-card:hover::after { opacity: 1; }
.glow-card:hover { transform: translateY(-2px); }
.glow-card > * { position: relative; z-index: 1; }

/* ---------- Hero Section ---------- */
.hero-sheet {
  padding: clamp(2rem, 5vw, 4.25rem) clamp(1.4rem, 4vw, 3.25rem);
  margin-top: 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 2.25rem;
  align-items: end;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--emerald-deep) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald-bright) 42%, transparent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald-bright) 70%, transparent);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald-bright) 75%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Vengeance UI: Flip-Fade Language Morpher */
.morph-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.18rem 0.65rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--emerald-bright) 18%, var(--emerald-deep));
  border: 1px solid color-mix(in srgb, var(--emerald-bright) 48%, transparent);
  color: var(--emerald-bright);
  font-weight: 600;
  transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.morph-badge.is-fading {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(4px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-side-card {
  background: color-mix(in srgb, var(--emerald-deep) 80%, #000);
  border: 1px solid color-mix(in srgb, var(--emerald-bright) 28%, transparent);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--cast);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--emerald-bright);
}

.stat-desc {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  line-height: 1.3;
}

/* ---------- Vengeance UI: Magnetic Spotlight Marquee ---------- */
.marquee-wrap {
  margin-top: 1.25rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--radius);
  background: var(--fill);
  overflow: hidden;
  padding: 0.8rem 0;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #242428;
  border: 1px solid var(--bb-line);
  color: var(--paper);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.marquee-chip strong { color: var(--emerald-bright); font-weight: 600; }

/* ---------- Section Padding & Grids ---------- */
.sheet-pad {
  padding: clamp(1.6rem, 4vw, 3rem);
}

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

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

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

/* ---------- Buildathon Leaderboard / Bar Charts ---------- */
.board-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.board-row {
  position: relative;
  min-height: 2.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  overflow: hidden;
}

.board-row-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--row-bar, color-mix(in srgb, var(--emerald-bright) 22%, transparent));
  border-right: 2px solid var(--row-edge, var(--emerald-bright));
  transition: width 1.1s cubic-bezier(0.2, 0.9, 0.25, 1);
  z-index: 0;
}

.board-row > * { position: relative; z-index: 1; }

.rank-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.72;
}

.row-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}

.sheet-paper .board-row {
  background: #efede7;
  border-color: #dcd8ce;
}

/* ---------- Vengeance UI: Interactive Keyboard Shortcut Deck ---------- */
.kbd-deck {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.mode-switch-card {
  border-radius: 12px;
  border: 1.5px solid var(--bb-line);
  background: #17171a;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: left;
  width: 100%;
  color: inherit;
}

.mode-switch-card:hover { border-color: var(--bb-line-strong); }

.mode-switch-card.active-dictation {
  border-color: var(--saffron-bright);
  background: linear-gradient(150deg, #2d180e 0%, #17171a 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--saffron-bright) 35%, transparent);
}

.mode-switch-card.active-agent {
  border-color: var(--emerald-bright);
  background: linear-gradient(150deg, #0e2d21 0%, #17171a 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--emerald-bright) 35%, transparent);
}

.keycap-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.2rem;
  padding: 0 0.7rem;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(to bottom, #2f2f35, #1d1d22);
  border: 1px solid #45454e;
  border-bottom: 3px solid #09090b;
  color: var(--paper);
  box-shadow: inset 0 1px 0 #ffffff22, 0 4px 10px #00000055;
  transition: transform 0.1s;
}

.mode-switch-card:active .keycap {
  transform: translateY(2px);
  border-bottom-width: 1px;
}

.sim-stage {
  border-radius: 12px;
  background: #0d0d10;
  border: 1px solid var(--bb-line);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.sim-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.sim-waveform span {
  width: 4px;
  border-radius: 99px;
  background: var(--emerald-bright);
  animation: wave 1.1s ease-in-out infinite alternate;
}

.sim-waveform span:nth-child(2n) { animation-delay: 0.2s; }
.sim-waveform span:nth-child(3n) { animation-delay: 0.4s; }
.sim-waveform span:nth-child(4n) { animation-delay: 0.15s; }

@keyframes wave {
  from { height: 6px; opacity: 0.45; }
  to { height: 32px; opacity: 1; }
}

/* ---------- Expandable Bento Cards ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.bento-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tag-c, var(--emerald-bright)) 16%, transparent);
  color: var(--tag-c, var(--emerald-bright));
  border: 1px solid color-mix(in srgb, var(--tag-c, var(--emerald-bright)) 35%, transparent);
  margin-bottom: 0.75rem;
}

.bento-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, margin-top 0.32s ease, opacity 0.25s ease;
  opacity: 0;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.glow-card.is-open .bento-details {
  max-height: 220px;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--bb-line);
  opacity: 1;
}

.expand-hint {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bb-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

/* ---------- Competitor Comparison Matrix ---------- */
.matrix-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: 12px;
  border: 1px solid #d6d3cb;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}

.matrix th, .matrix td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e2dfd7;
}

.matrix thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #eceae2;
  color: #42424a;
}

.matrix tbody tr:last-child td { border-bottom: none; }

.col-whisperila {
  background: #e3f7ec !important;
  color: #064423 !important;
  font-weight: 600;
}

.badge-yes {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #0c9a4e;
  color: #ffffff;
}

.badge-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #e5e2da;
  color: #6b6b72;
}

.badge-part {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: #fde8dc;
  color: #a53a06;
}

/* ---------- Tabs ---------- */
.tab-bar {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 10px;
  background: #0d0d10;
  border: 1px solid var(--bb-line);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--bb-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}

.tab-btn.active {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.25s ease; }

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

/* ---------- Struggle / FAQ Accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.acc-item {
  border-radius: 12px;
  border: 1px solid var(--bb-line);
  background: #17171a;
  overflow: hidden;
}

.acc-trigger {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.acc-icon {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--emerald-bright);
  transition: transform 0.22s ease;
}

.acc-item.open .acc-icon { transform: rotate(45deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.acc-body-inner {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  border-top: 1px dashed var(--bb-line);
  padding-top: 0.9rem;
}

/* ---------- Vengeance UI: Floating Glass Dock ---------- */
.glass-dock {
  position: fixed;
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, #141418 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  box-shadow: 0 12px 32px -6px #000000cc, inset 0 1px 0 #ffffff22;
}

.dock-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.dock-item:hover {
  transform: translateY(-3px) scale(1.06);
  background: color-mix(in srgb, var(--emerald-bright) 20%, transparent);
  color: var(--emerald-bright);
}

.dock-item.dock-cta {
  background: var(--emerald-bright);
  color: var(--emerald-deep);
  font-weight: 600;
}

.dock-item.dock-cta:hover {
  background: #62f5a2;
  color: var(--emerald-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .kbd-deck, .grid-3, .grid-4, .bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-span-2 { grid-column: span 1; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .glass-dock { max-width: 94vw; overflow-x: auto; }
}
