/* ============================================================================
   SKVORLING — «BILINGUAL COUTURE» STUDIO DESIGN SYSTEM (v3.0)
   Russian Geometric Sans (Golos Text) × English Editorial Italic (Cormorant Garamond)
   Full-bleed Light/Obsidian Act Choreography · Specular Spotlight · Kinetic Marquee
   ============================================================================ */

:root,
html[data-theme="colorful"], body[data-theme="colorful"] {
  --bg: #f6f3ea;
  --bg-card: #ffffff;
  --bg-muted: #ece7d8;
  --ink: #0c0d10;
  --ink-soft: #43464f;
  --ink-muted: #6f727d;
  --border: rgba(12, 13, 16, 0.11);
  --border-strong: rgba(12, 13, 16, 0.22);
  --accent: #00b37e;
  --accent-vivid: #c8ff3d;
  --accent-ink: #07130f;
  --accent-wash: rgba(0, 179, 126, 0.13);
  --dark-bg: #090a0d;
  --dark-card: #111319;
  --dark-border: rgba(255, 255, 255, 0.11);
  --dark-ink: #f5f4f0;
  --dark-soft: #a1a4b0;
  --hero-glow: radial-gradient(50% 45% at 80% 10%, rgba(0, 179, 126, 0.16) 0%, transparent 72%),
               radial-gradient(45% 40% at 15% 25%, rgba(200, 255, 61, 0.22) 0%, transparent 70%);
}

html[data-theme="light"], body[data-theme="light"] {
  --bg: #f8f8f6;
  --bg-card: #ffffff;
  --bg-muted: #eceef1;
  --ink: #0a0b0d;
  --ink-soft: #4a4c52;
  --ink-muted: #767880;
  --border: rgba(10, 11, 13, 0.10);
  --border-strong: rgba(10, 11, 13, 0.18);
  --accent: #00a870;
  --accent-vivid: #c8ff3d;
  --accent-ink: #090a0d;
  --accent-wash: rgba(0, 168, 112, 0.12);
  /* Soft architectural light-grey instead of pitch-black in Light mode */
  --dark-bg: #eaedf0;
  --dark-card: #ffffff;
  --dark-border: rgba(10, 11, 13, 0.11);
  --dark-ink: #0a0b0d;
  --dark-soft: #4a4c52;
  --hero-glow: none;
}

html[data-theme="dark"], body[data-theme="dark"] {
  --bg: #090a0d;
  --bg-card: #111319;
  --bg-muted: #171a22;
  --ink: #f5f4f0;
  --ink-soft: #a1a4b0;
  --ink-muted: #6e7280;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.19);
  --accent: #00e599;
  --accent-vivid: #d4ff3f;
  --accent-ink: #07120e;
  --accent-wash: rgba(0, 229, 153, 0.15);
  --dark-bg: #050608;
  --dark-card: #0e1016;
  --dark-border: rgba(255, 255, 255, 0.11);
  --dark-ink: #f5f4f0;
  --dark-soft: #a1a4b0;
  --hero-glow: radial-gradient(50% 45% at 75% 15%, rgba(0, 229, 153, 0.14) 0%, transparent 72%),
               radial-gradient(40% 35% at 20% 20%, rgba(212, 255, 63, 0.08) 0%, transparent 70%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: clip;
  transition: background-color 260ms ease, color 260ms ease;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

code, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
code {
  font-size: 0.84em;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}
.act-dark code {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--accent-vivid);
}

/* Signature English Couture Serif Italic */
.en-serif,
.lp-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent);
  z-index: 400; pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ==================== ARCHITECTURAL MINIMALIST TOPBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 250;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-img { display: block; transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.brand:hover .logo-img { transform: rotate(-8deg) scale(1.08); }

.version-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; transition: color 150ms ease;
}
.nav-links a:hover { color: var(--ink); }

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

.theme-switcher {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.theme-switcher button {
  background: transparent; border: none; color: var(--ink-muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  transition: all 160ms ease;
}
.theme-switcher button.active {
  background: var(--ink); color: var(--bg);
}

/* ==================== MAGNETIC STUDIO BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border-radius: 999px; padding: 11px 20px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}

.btn-vivid {
  background: var(--accent-vivid); border-color: var(--accent-vivid); color: #090a0d; font-weight: 700;
}
.btn-vivid:hover {
  background: #ffffff; border-color: #ffffff; color: #090a0d;
}

.btn-ghost { border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--ink); border-color: transparent; transform: none; }

.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 8px 15px; font-size: 12.5px; }

/* ==================== ACT 1: MONUMENTAL KINETIC HERO STAGE ==================== */
.hero {
  position: relative;
  padding: 72px 0 92px;
  background-image: var(--hero-glow);
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-card);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.hero-metrics-inline {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--ink-muted);
}
.hero-metrics-inline strong { color: var(--ink); font-weight: 700; }

/* Colossal Bilingual Couture Display Headline */
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(44px, 6.4vw, 86px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.042em;
  color: var(--ink);
  max-width: 18ch;
}

.kinetic-word-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  cursor: pointer;
  padding: 0 14px 2px;
  margin: 0 4px;
  border-radius: 16px;
  background: var(--accent-vivid);
  color: #090a0d;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms ease;
  vertical-align: baseline;
}
html[data-theme="light"], body[data-theme="light"] .kinetic-word-wrap {
  background: #0b0d12;
  color: #ffffff;
}
.kinetic-word-wrap:hover { transform: translateY(-2px) rotate(-1deg); }

.kinetic-word {
  display: inline-block;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kinetic-word.is-english {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: -0.01em;
}
.kinetic-word.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.kinetic-ipa {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 10px;
  opacity: 0.7;
  vertical-align: middle;
}

.hero-subgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 52px;
}

.hero-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.56;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Full-Width Monumental Interactive Reading Deck */
.browser-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 36px 90px -36px rgba(12, 13, 16, 0.22);
}
html[data-theme="dark"], body[data-theme="dark"] .browser-window {
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
}

.browser-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 22px; background: var(--bg-muted); border-bottom: 1px solid var(--border);
}
.chrome-left { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.dot.active-dot { background: var(--accent); }
.chrome-url {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--ink-muted);
}

.browser-controls-inline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.density-tabs, .toolbar-actions {
  display: inline-flex; gap: 2px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px;
}
.d-tab, .shuffle-btn {
  background: transparent; border: none; color: var(--ink-soft);
  font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  cursor: pointer; transition: all 160ms ease;
}
.d-tab:hover, .shuffle-btn:hover { color: var(--ink); }
.d-tab.active { background: var(--ink); color: var(--bg); }

.chrome-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-vivid); border-radius: 999px; padding: 5px 12px;
}
html[data-theme="light"], body[data-theme="light"] .chrome-badge { background: #0a0b0d; color: #ffffff; }

.browser-body { padding: 36px 44px 40px; }
.hero-hint-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-muted); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.reset-known-btn {
  background: var(--ink); color: var(--bg); border: none;
  font-family: inherit; font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.reset-known-btn.hidden { display: none; }

.article-text {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.article-text p { margin: 0; font-size: 17px; line-height: 1.72; color: var(--ink); }

.lp-word {
  font-size: 1.16em;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--accent-wash);
  border-bottom: 1.5px solid var(--accent);
  transition: background-color 160ms ease, color 160ms ease;
}
.lp-word:hover {
  background: var(--accent-vivid);
  color: #090a0d;
  border-bottom-color: #090a0d;
}

/* ==================== ACT 2: KINETIC BILINGUAL MARQUEE RIBBON ==================== */
.marquee-band {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 20px 0;
  overflow: hidden;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: skvMarquee 34s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
@keyframes skvMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.mq-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark-soft);
  white-space: nowrap;
}
.mq-item .mq-en {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  color: var(--accent-vivid);
}
.mq-sep { color: rgba(255, 255, 255, 0.22); }

/* ==================== ACT 3: FULL-BLEED DARK OBSIDIAN LAB ==================== */
.act-dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 104px 0;
}
.act-dark .section-eyebrow { color: var(--accent-vivid); }
.act-dark .section-head h2 { color: var(--dark-ink); }
.act-dark .section-head p { color: var(--dark-soft); }

.section-block { margin-bottom: 96px; }
.section-block:last-child { margin-bottom: 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 12px;
}
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.036em;
}
.section-head p { margin: 0; font-size: 17px; color: var(--ink-soft); line-height: 1.6; }

/* Specular Mouse-Tracking Dark Studio Cards */
.spotlight-card {
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 61, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { border-color: rgba(255, 255, 255, 0.24); }

/* Dark Lab Playground */
.pg-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 22px; border-bottom: 1px solid var(--dark-border); background: rgba(255, 255, 255, 0.02);
}
.pg-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-tab {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--dark-border); color: var(--dark-soft);
  font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  cursor: pointer; transition: all 160ms ease;
}
.pg-tab:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.28); }
.pg-tab.active { background: var(--accent-vivid); border-color: var(--accent-vivid); color: #090a0d; font-weight: 700; }

.pg-controls { display: flex; align-items: center; gap: 14px; }
.pg-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dark-soft); cursor: pointer; }
.act-dark .btn-secondary {
  border-color: rgba(255, 255, 255, 0.22); color: var(--dark-ink);
}
.act-dark .btn-secondary:hover { background: #ffffff; color: #090a0d; border-color: #ffffff; }

.pg-split { display: grid; grid-template-columns: 1fr 1fr; }
.pg-pane { padding: 24px 26px; }
.pg-pane:first-child { border-right: 1px solid var(--dark-border); }
.pane-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--dark-soft); margin-bottom: 14px;
}
.pane-stat { color: var(--accent-vivid); font-weight: 700; }
.pg-textarea {
  width: 100%; min-height: 156px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border); border-radius: 16px; padding: 16px;
  color: var(--dark-ink); font-family: inherit; font-size: 16px; line-height: 1.66; resize: vertical;
}
.pg-output { font-size: 17px; line-height: 1.76; color: var(--dark-ink); }
.pg-output p { margin: 0 0 12px; }
.pg-output p:last-child { margin-bottom: 0; }
.act-dark .lp-word {
  background: rgba(200, 255, 61, 0.14);
  color: var(--accent-vivid);
  border-bottom-color: var(--accent-vivid);
}
.act-dark .lp-word:hover { background: var(--accent-vivid); color: #090a0d; }
.easter-egg {
  padding: 14px 18px; border-radius: 14px; background: rgba(200, 255, 61, 0.14); color: var(--accent-vivid); font-weight: 600;
}

/* Progression Stage inside Dark Lab */
.prog-box { padding: 30px 32px; margin-bottom: 24px; }
.prog-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--dark-border);
}
.prog-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--accent-vivid); color: #090a0d;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.prog-desc { margin: 0; font-size: 15.5px; color: var(--dark-soft); }
.prog-slider-wrap { min-width: 260px; flex: 0 1 380px; }
.prog-slider-wrap input[type="range"] { width: 100%; accent-color: var(--accent-vivid); cursor: pointer; }
.prog-ticks {
  display: flex; justify-content: space-between; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; color: var(--dark-soft); margin-top: 6px;
}
.prog-preview { font-size: 20px; line-height: 1.72; color: var(--dark-ink); }

/* 4-Stage Engine Bento inside Dark Lab */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.eng-card { grid-column: span 6; padding: 30px; }
.eng-card.eng-wide { grid-column: span 7; }
.eng-card.eng-narrow { grid-column: span 5; }
.eng-num {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 700;
  color: var(--accent-vivid); letter-spacing: 0.08em; margin-bottom: 14px; display: block;
}
.eng-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.025em; color: var(--dark-ink); }
.eng-card p { margin: 0; font-size: 15px; line-height: 1.64; color: var(--dark-soft); }
.pack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pack-chip {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px;
  border: 1px solid var(--dark-border); border-radius: 999px; padding: 5px 12px; color: var(--dark-ink);
}

/* ==================== ACT 4: SCULPTURAL STARLING & WIKIPEDIA ==================== */
.section-light { padding: 104px 0; border-bottom: 1px solid var(--border); }

.mascot-showcase {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 56px; align-items: center;
}
.mascot-square {
  position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 32px;
  background: radial-gradient(80% 80% at 30% 25%, rgba(0, 229, 153, 0.22), transparent 65%), #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; padding: 30px; cursor: pointer; user-select: none;
  box-shadow: 0 32px 72px -28px rgba(9, 10, 13, 0.45);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mascot-square:hover { transform: translateY(-4px); }
.mascot-square .hero-starling {
  width: 84%; height: auto; transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mascot-square.is-chirping .hero-starling { transform: scale(1.08) rotate(-4deg); }
.mascot-speech {
  position: absolute; top: 18px; right: 18px;
  background: var(--accent-vivid); color: #090a0d;
  border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700;
}

.mascot-lead { font-size: 18px; line-height: 1.64; color: var(--ink-soft); margin: 0 0 28px; }
.story-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.story-row {
  padding: 18px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: baseline;
}
.story-row strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.story-row span { font-size: 15px; color: var(--ink-soft); }

.wiki-callout {
  margin-top: 44px; padding: 34px 38px; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.wiki-callout-badge {
  display: inline-block; font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-ink); background: var(--accent-vivid); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
html[data-theme="light"], body[data-theme="light"] .wiki-callout-badge { background: #0a0b0d; color: #ffffff; }
.wiki-callout-body h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.wiki-callout-body p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink-soft); max-width: 64ch; }
.wiki-callout-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.wiki-callout-hint { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--ink-muted); }

/* ==================== ACT 5: COMPARISON + CHROME WEB STORE LAUNCHPAD ==================== */
.table-wrap {
  overflow-x: auto; background: var(--bg-card);
  border: 1px solid var(--border-strong); border-radius: 24px; margin-bottom: 84px;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.compare-table th, .compare-table td { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th { font-size: 13px; font-weight: 700; background: var(--bg-muted); }
.col-skv { background: var(--accent-wash); color: var(--ink); font-weight: 700; }

.cws-launchpad {
  border-radius: 32px; padding: 48px 52px; margin-bottom: 28px;
  background: radial-gradient(65% 110% at 90% 10%, rgba(0, 229, 153, 0.24) 0%, transparent 60%),
              radial-gradient(55% 95% at 10% 90%, rgba(200, 255, 61, 0.16) 0%, transparent 60%),
              #090a0d;
  color: #f5f4f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cws-launchpad h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; color: #ffffff; }
.cws-launchpad p { margin: 0; font-size: 15.5px; color: #a1a4b0; max-width: 54ch; }
.browser-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.browser-chips span {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600;
  color: #e5e7eb; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; padding: 4px 12px;
}

.install-steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.inst-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; padding: 24px;
}
.inst-num {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 700;
  color: var(--accent); margin-bottom: 10px; display: block;
}
.inst-step > strong { display: block; font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.inst-step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.faq-list { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 20px 0; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::after { content: "+"; font-family: "JetBrains Mono", monospace; font-size: 18px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 20px; font-size: 15px; color: var(--ink-soft); max-width: 72ch; }

/* ==================== ACT 6: TIMELINE, SUPPORT & MONUMENTAL FOOTER ==================== */
.ver-check-pill {
  display: inline-block; margin-top: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600;
  color: var(--ink); border: 1px solid var(--border-strong); padding: 5px 14px; border-radius: 999px;
}
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.section-light .pg-tab { background: var(--bg-card); border-color: var(--border-strong); color: var(--ink-soft); }
.section-light .pg-tab.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.timeline { border-top: 1px solid var(--border-strong); }
.tl-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.tl-item.is-hidden { display: none; }
.cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cl-ver { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700; }
.cl-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; font-weight: 700;
  background: var(--accent-vivid); color: #090a0d; padding: 2px 9px; border-radius: 999px;
}
html[data-theme="light"], body[data-theme="light"] .cl-tag { background: #0a0b0d; color: #ffffff; }
.tl-cat { font-size: 12px; color: var(--ink-muted); }
.tl-card > strong { display: block; font-size: 17.5px; font-weight: 700; margin-bottom: 6px; }
.tl-card p { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 76ch; }

.support-strip { padding: 40px 0; background: var(--bg-muted); border-bottom: 1px solid var(--border); }
.support-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.support-text { max-width: 660px; }
.support-text > strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.support-text p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.support-links { display: flex; gap: 10px; flex-wrap: wrap; }

.footer {
  background: var(--dark-bg);
  color: var(--dark-soft);
  padding: 56px 0 0;
  overflow: hidden;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 48px; border-bottom: 1px solid var(--dark-border); font-size: 13.5px;
}
.footer .brand { color: var(--dark-ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--dark-ink); font-weight: 500; }
.footer-links a:hover { color: var(--accent-vivid); }

/* Signature Obys / Locomotive Monumental Footer Wordmark */
.footer-monument {
  font-size: clamp(64px, 15.5vw, 220px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-align: center;
  color: rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  user-select: none;
  pointer-events: none;
}

/* ==================== FLOATING TOOLTIP ==================== */
.lp-tooltip {
  position: fixed; z-index: 9999; width: 274px;
  background: rgba(9, 10, 13, 0.96); backdrop-filter: blur(18px);
  color: #f5f4f0; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px;
  padding: 14px 16px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55);
}
.lp-tooltip[hidden] { display: none; }
.lp-tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.lp-tip-en { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 22px; font-weight: 700; color: #ffffff; }
.lp-tip-ipa { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: #a1a4b0; margin-left: 6px; }
.lp-tip-lvl { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; font-weight: 700; background: var(--accent-vivid); color: #090a0d; padding: 2px 7px; border-radius: 999px; }
.lp-tip-ru { font-size: 14.5px; font-weight: 600; color: #f5f4f0; margin-bottom: 4px; }
.lp-tip-gram { font-size: 11.5px; color: #a1a4b0; margin-bottom: 10px; }
.lp-tip-actions { display: flex; gap: 6px; }
.lp-tip-actions button {
  flex: 1; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f4f0; font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 8px; border-radius: 9px; cursor: pointer;
}
.lp-tip-actions button:hover { background: var(--accent-vivid); color: #090a0d; border-color: var(--accent-vivid); }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-subgrid, .article-text, .pg-split, .mascot-showcase, .install-steps-3 { grid-template-columns: 1fr; }
  .eng-card, .eng-card.eng-wide, .eng-card.eng-narrow { grid-column: span 12; }
  .pg-pane:first-child { border-right: none; border-bottom: 1px solid var(--dark-border); }
  .wiki-callout { flex-direction: column; align-items: flex-start; }
  .wiki-callout-action { align-items: flex-start; }
  .story-row { grid-template-columns: 1fr; gap: 4px; }
  .cws-launchpad { padding: 34px 26px; }
}
@media (max-width: 600px) {
  .container, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .version-pill, .nav-right .btn-ghost { display: none; }
  .theme-switcher button { padding: 4px 8px; font-size: 11px; }
  .hero { padding: 40px 0 56px; }
  .browser-body { padding: 20px; }
  .kinetic-ipa { display: none; }
  .act-dark, .section-light { padding: 68px 0; }
}

/* ==================== ZERO-JUMP KINETIC HERO LOCK ==================== */
.hero h1 { max-width: none; }
.kinetic-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22em;
}
.kinetic-word-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 1.16em;
  line-height: 1;
  min-width: 9.4ch;
  padding: 0 18px;
  margin: 0;
  overflow: hidden;
  vertical-align: middle;
}
.kinetic-word {
  line-height: 1;
  white-space: nowrap;
}
.kinetic-word.is-english {
  font-size: 1.06em;
  line-height: 0.92;
  transform: translateY(-0.02em);
}
@media (max-width: 680px) {
  .kinetic-word-wrap { min-width: 0; height: 1.18em; padding: 0 12px; }
}

/* ==================== SOFT LIGHT-GREY REFINEMENTS FOR LIGHT THEME ==================== */
html[data-theme="light"], body[data-theme="light"] .act-dark .section-eyebrow,
html[data-theme="light"], body[data-theme="light"] .eng-num,
html[data-theme="light"], body[data-theme="light"] .pane-stat { color: #008f5f; }
html[data-theme="light"], body[data-theme="light"] .act-dark code { background: #e4e7ec; border-color: rgba(10,11,13,0.12); color: #0a0b0d; }
html[data-theme="light"], body[data-theme="light"] .act-dark .lp-word { background: rgba(0, 168, 112, 0.14); color: #0a0b0d; border-bottom-color: #00a870; }
html[data-theme="light"], body[data-theme="light"] .act-dark .pg-tab { background: #f2f4f7; color: #4a4c52; border-color: rgba(10,11,13,0.12); }
html[data-theme="light"], body[data-theme="light"] .act-dark .pg-tab.active { background: #0a0b0d; color: #c8ff3d; border-color: #0a0b0d; }
html[data-theme="light"], body[data-theme="light"] .act-dark .pg-textarea { background: #f7f8fa; color: #0a0b0d; }
html[data-theme="light"], body[data-theme="light"] .act-dark .btn-secondary { border-color: rgba(10,11,13,0.22); color: #0a0b0d; }
html[data-theme="light"], body[data-theme="light"] .act-dark .btn-secondary:hover { background: #0a0b0d; color: #ffffff; }
html[data-theme="light"], body[data-theme="light"] .mq-item .mq-en { color: #008f5f; }
html[data-theme="light"], body[data-theme="light"] .mq-sep { color: rgba(10, 11, 13, 0.22); }
html[data-theme="light"], body[data-theme="light"] .cws-launchpad {
  background: radial-gradient(65% 110% at 90% 10%, rgba(0, 168, 112, 0.12) 0%, transparent 60%), #eaedf0;
  color: #0a0b0d;
  border: 1px solid rgba(10, 11, 13, 0.14);
}
html[data-theme="light"], body[data-theme="light"] .cws-launchpad h2 { color: #0a0b0d; }
html[data-theme="light"], body[data-theme="light"] .cws-launchpad p { color: #4a4c52; }
html[data-theme="light"], body[data-theme="light"] .cws-launchpad .section-eyebrow { color: #008f5f !important; }
html[data-theme="light"], body[data-theme="light"] .browser-chips span { color: #0a0b0d; background: #ffffff; border-color: rgba(10,11,13,0.14); }
html[data-theme="light"], body[data-theme="light"] .cws-launchpad .btn-vivid { background: #0a0b0d; border-color: #0a0b0d; color: #c8ff3d; }
html[data-theme="light"], body[data-theme="light"] .cws-launchpad .btn-vivid:hover { background: #00a870; border-color: #00a870; color: #ffffff; }
html[data-theme="light"], body[data-theme="light"] .mascot-square {
  background: radial-gradient(80% 80% at 30% 25%, rgba(0, 168, 112, 0.14), transparent 65%), #e7eaee;
  border-color: rgba(10, 11, 13, 0.12);
  box-shadow: 0 24px 56px -28px rgba(10, 11, 13, 0.16);
}
html[data-theme="light"], body[data-theme="light"] .footer-monument { color: rgba(10, 11, 13, 0.06); }

/* ==================== ZERO-FLASH PRELOAD GUARD ==================== */
html { background: var(--bg); }
html.skv-preload, html.skv-preload * { transition: none !important; }

/* ==================== EXACT 3-LINE ARCHITECTURAL HERO H1 ==================== */
.hero h1 {
  font-size: clamp(34px, 4.85vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.hero-line-2 {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.24em;
  white-space: nowrap;
}
.kinetic-word-wrap {
  min-width: 8.2ch;
  height: 1.15em;
  padding: 0 18px;
  gap: 10px;
}
@media (max-width: 780px) {
  .hero-line-2 { flex-wrap: wrap; white-space: normal; }
  .kinetic-word-wrap { min-width: 0; padding: 0 12px; }
}

/* Interactive English words inside Marquee Ribbon */
.mq-item .lp-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  color: var(--accent-vivid);
  background: rgba(200, 255, 61, 0.10);
  border-bottom: 1.5px solid rgba(200, 255, 61, 0.55);
  padding: 0 6px;
  border-radius: 6px;
  cursor: pointer;
}
.mq-item .lp-word:hover {
  background: var(--accent-vivid);
  color: #090a0d;
  border-bottom-color: #090a0d;
}
html[data-theme="light"] .mq-item .lp-word,
body[data-theme="light"] .mq-item .lp-word {
  color: #008f5f;
  background: rgba(0, 168, 112, 0.12);
  border-bottom-color: rgba(0, 168, 112, 0.55);
}
html[data-theme="light"] .mq-item .lp-word:hover,
body[data-theme="light"] .mq-item .lp-word:hover {
  background: #0a0b0d;
  color: #c8ff3d;
  border-bottom-color: #0a0b0d;
}

/* ==================== MOBILE: HIDE NAVBAR & ZERO HORIZONTAL OVERFLOW ==================== */
html, body { max-width: 100%; overflow-x: clip; }

@media (max-width: 768px) {
  .navbar { display: block !important; }
  .nav-links, .nav-right { display: none !important; }
  .nav-inner { justify-content: flex-start; padding: 12px 16px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(30px, 8.2vw, 44px); }
  .kinetic-word-wrap { max-width: 100%; padding: 0 12px; }
  .prog-slider-wrap { min-width: 0; width: 100%; flex: 1 1 100%; }
  .browser-chrome, .browser-controls-inline, .density-tabs, .pg-presets, .cl-filters {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .btn, .btn-lg { white-space: normal; text-align: center; max-width: 100%; }
  .wiki-callout, .cws-launchpad, .prog-box { padding: 24px 18px; }
  .footer-monument { font-size: clamp(44px, 14vw, 96px); }
}

/* ==================== v3.1.1 HERO PILL FIT + MOBILE ZERO-JUMP + INTERESTING MOBILE HEADER ==================== */
.kinetic-word-wrap {
  min-width: 0 !important;
  width: fit-content;
  justify-content: center;
  padding: 0 18px;
  gap: 10px;
}

@media (max-width: 768px) {
  /* Interesting, balanced mobile header: Brand + version on left, sleek 'Пример →' pill on right */
  .navbar { display: block !important; }
  .nav-links { display: none !important; }
  .nav-right { display: flex !important; align-items: center; gap: 0; }
  .nav-right .theme-switcher,
  .nav-right [data-cws-cta="nav"] { display: none !important; }
  .nav-right .btn-ghost {
    display: inline-flex !important;
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
  }
  .nav-inner { justify-content: space-between; padding: 10px 16px; }
  .version-pill { display: inline-flex !important; font-size: 10px; padding: 2px 7px; }

  /* Zero-jump locked 3-line Hero H1 on mobile (even longest word 'привычные' fits on line 2!) */
  .hero h1 {
    font-size: clamp(20px, 5.5vw, 36px) !important;
    line-height: 1.12;
  }
  .hero-line-2 {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 0.2em;
  }
  .kinetic-word-wrap {
    padding: 0 10px !important;
    gap: 6px;
    height: 1.18em;
    border-radius: 10px;
  }
  .kinetic-ipa { display: none !important; }
}

/* Accessibility: Skip link & Reduced Motion (v3.2.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: #111827;
  color: #FFFFFF;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
