/* ═══════════════════════════════════════════════════
   SIZZLING HOT – MAIN STYLESHEET
   Design: Editorial / Clean Utility
   Theme: Deep navy + warm amber accent, soft cream surfaces
   Fonts: DM Sans (UI) + DM Serif Display (headings)
═══════════════════════════════════════════════════ */

/* ─── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f1117;
  --bg-2:        #161920;
  --bg-3:        #1d2029;
  --surface:     #222632;
  --surface-2:   #2a2f3d;
  --border:      #2e3347;
  --text:        #e8eaf2;
  --text-2:      #9ba3bf;
  --text-3:      #6b7491;
  --accent:      #f59e0b;
  --accent-2:    #fbbf24;
  --accent-dim:  rgba(245,158,11,0.12);
  --accent-glow: rgba(245,158,11,0.25);
  --green:       #34d399;
  --blue:        #60a5fa;
  --purple:      #a78bfa;
  --red:         #f87171;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.5);
  --font-ui:     'DM Sans', sans-serif;
  --font-display:'DM Serif Display', serif;
  --max-w:       1160px;
  --header-h:    68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 20px;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-primary {
  background: var(--accent);
  color: #0f1117;
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #0f1117;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.nav-cta { margin-left: auto; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb--1 { width: 480px; height: 480px; background: var(--accent); top: -180px; right: -80px; }
.hero-orb--2 { width: 320px; height: 320px; background: var(--purple); bottom: -60px; left: -60px; }

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}
.trust-icon { font-size: 0.9rem; }

/* ─── SLOT PREVIEW ───────────────────────────────── */
.slot-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.slot-frame {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 0 40px rgba(245,158,11,0.08), var(--shadow-lg);
}
.slot-reel { display: flex; flex-direction: column; gap: 4px; }
.slot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.slot-row--win .slot-cell {
  background: rgba(245,158,11,0.15);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.slot-cell {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.15s;
}
.win-line {
  position: absolute;
  left: 16px; right: 16px;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--accent);
  opacity: 0;
  border-radius: 2px;
  animation: winPulse 2s ease-in-out infinite;
}
@keyframes winPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.8; box-shadow: 0 0 12px var(--accent); }
}

.spin-btn {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f1117;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spin-btn:hover { background: var(--accent-2); transform: scale(1.06); }
.spin-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(245,158,11,0.4);
  animation: rotateSlow 8s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

.slot-stats-row {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}
.slot-stat {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.slot-stat span { font-size: 0.72rem; color: var(--text-3); font-weight: 500; }
.slot-stat strong { font-size: 0.9rem; color: var(--accent); font-weight: 700; }

/* ─── FREE DEMO ─────────────────────────────────── */
.demo-section {
  padding: 72px 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}
.demo-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-kicker {
  display: inline-flex;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 660px;
  margin: 0 auto;
}
.demo-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  background: var(--bg);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
}
.demo-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ─── QUICK FACTS ────────────────────────────────── */
.quick-facts {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.18s, transform 0.18s;
}
.fact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.fact-icon { font-size: 1.6rem; margin-bottom: 10px; }
.fact-label { font-size: 0.75rem; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.fact-value { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ─── STATS SECTION ──────────────────────────────── */
.stats-section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub { color: var(--text-2); font-size: 1rem; }

.stats-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.18s;
}
.stat-card:hover { border-color: rgba(245,158,11,0.3); }
.stat-card--wide { grid-column: 1 / -1; }
.stat-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

/* Bar chart */
.bar-chart-body { display: flex; flex-direction: column; gap: 14px; }
.bar-item { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 190px; font-size: 0.85rem; color: var(--text-2); flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: calc(var(--val) / var(--max) * 100%);
  background: var(--blue);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill--accent { background: var(--accent); }
.bar-fill--muted { background: var(--text-3); }
.bar-pct { width: 52px; font-size: 0.82rem; font-weight: 600; color: var(--text); text-align: right; flex-shrink: 0; }

/* Donut */
.donut-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: var(--bg-3); stroke-width: 14; }
.donut-seg { fill: none; stroke-width: 14; stroke-linecap: butt; }
.donut-seg--a { stroke: var(--accent); }
.donut-seg--b { stroke: var(--blue); }
.donut-seg--c { stroke: var(--green); }
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-pct { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1; }
.donut-lbl { font-size: 0.65rem; color: var(--text-3); text-align: center; margin-top: 3px; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-dot--a { background: var(--accent); }
.legend-dot--b { background: var(--blue); }
.legend-dot--c { background: var(--green); }

/* Symbol chart */
.sym-chart { display: flex; flex-direction: column; gap: 12px; }
.sym-row { display: flex; align-items: center; gap: 10px; }
.sym-emoji { font-size: 1.25rem; width: 28px; flex-shrink: 0; }
.sym-bar-track { flex: 1; height: 8px; background: var(--bg-3); border-radius: 100px; overflow: hidden; }
.sym-bar {
  height: 100%;
  width: var(--w);
  background: var(--accent);
  border-radius: 100px;
}
.sym-bar--2 { background: #f97316; }
.sym-bar--3 { background: #a855f7; }
.sym-bar--4 { background: var(--blue); }
.sym-bar--5 { background: var(--green); }
.sym-bar--6 { background: var(--red); }
.sym-freq { width: 88px; font-size: 0.75rem; color: var(--text-3); text-align: right; flex-shrink: 0; }

/* CTA card */
.stat-card--cta {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(245,158,11,0.06) 100%);
  border-color: rgba(245,158,11,0.2);
  display: flex;
  align-items: stretch;
}
.cta-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  width: 100%;
}
.cta-flame { font-size: 2.4rem; }
.cta-card-inner h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.cta-card-inner p { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; }
.cta-note { font-size: 0.74rem; color: var(--text-3); }

/* ─── CONTENT SECTION ────────────────────────────── */
.content-wrap {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky TOC Sidebar */
.toc-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.toc-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-nav a {
  font-size: 0.83rem;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s;
  display: block;
  line-height: 1.35;
}
.toc-nav a:hover, .toc-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.toc-nav a.toc-h3 { padding-left: 22px; font-size: 0.78rem; }

/* ════════════════════════════════════════════════════
   CONTENT BODY – AUTOMATIC STYLES (NO EXTRA CLASSES)
   All standard HTML elements are styled automatically.
═══════════════════════════════════════════════════ */
.content-body {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}

/* Headings */
.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  font-style: normal;
}

.content-body h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.content-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  margin-top: 52px;
  margin-bottom: 16px;
  padding-top: 4px;
}
.content-body h3 {
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}
.content-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-ui);
}
.content-body h5,
.content-body h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-2);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Paragraphs */
.content-body p {
  margin-top: 0;
  margin-bottom: 18px;
}
.content-body p:last-child { margin-bottom: 0; }

/* Links */
.content-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(245,158,11,0.35);
  text-underline-offset: 3px;
}
.content-body a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

/* Strong / em */
.content-body strong { color: var(--text); font-weight: 700; }
.content-body em { font-style: italic; color: var(--text); }

/* Lists */
.content-body ul,
.content-body ol {
  margin: 0 0 20px 0;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.content-body ul { list-style: none; padding-left: 0; }
.content-body ul li {
  padding-left: 24px;
  position: relative;
}
.content-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.content-body ol { list-style: decimal; }
.content-body ol li { padding-left: 6px; }
.content-body ol li::marker { color: var(--accent); font-weight: 700; }
.content-body ul ul,
.content-body ul ol,
.content-body ol ul,
.content-body ol ol {
  margin-top: 6px;
  margin-bottom: 0;
}
.content-body ul ul li::before { background: var(--text-3); width: 5px; height: 5px; top: 11px; }

/* Tables */
/* Scrollable table wrapper — applied automatically via CSS display trick */
.content-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 0 0 28px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  /* Restore table layout inside the block wrapper */
  white-space: nowrap;
}
/* Allow text to wrap inside cells on wider screens */
@media (min-width: 600px) {
  .content-body table { white-space: normal; }
}
.content-body thead { background: var(--surface-2); }
.content-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.content-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}
.content-body tbody tr:last-child td { border-bottom: none; }
.content-body tbody tr:hover td { background: rgba(255,255,255,0.02); }
.content-body tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* Blockquote */
.content-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 0.97rem;
}
.content-body blockquote p { margin-bottom: 0; }

/* Code */
.content-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
  color: var(--accent-2);
}
.content-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.content-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
}

/* HR */
.content-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ─── AUTHOR SECTION ─────────────────────────────── */
.author-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 760px;
}
.author-avatar-wrap { flex-shrink: 0; }
.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.author-meta { margin-bottom: 10px; }
.author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-ui);
  margin-bottom: 4px;
}
.author-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.author-bio {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 10px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-legal {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.65;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.footer-legal strong { color: var(--text-2); }

/* ─── MOBILE NAV OPEN STATE ──────────────────────── */
.main-nav.nav-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  gap: 4px;
  overflow-y: auto;
}
.main-nav.nav-open a {
  font-size: 1.1rem;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-layout { grid-template-columns: 1fr; }
  .stat-card--wide { grid-column: auto; }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .slot-frame, .slot-stats-row { max-width: 100%; }
  .content-layout { grid-template-columns: 1fr; }
  .toc-sidebar { position: static; }
  .bar-label { width: 130px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.nav-open { display: flex; }
  .nav-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .burger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 2.2rem; }
  .demo-section { padding: 56px 0; }
  .demo-frame-wrap { min-height: 440px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .author-card { flex-direction: column; gap: 20px; }
  .author-avatar { width: 72px; height: 72px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .demo-frame-wrap { min-height: 360px; aspect-ratio: 3 / 4; }
  .demo-actions .btn { width: 100%; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fact-card { padding: 16px 12px; }
  .slot-cell { height: 52px; font-size: 1.5rem; }
  .bar-label { width: 100px; font-size: 0.78rem; }
  .bar-item { flex-wrap: nowrap; }
  .content-body table { font-size: 0.8rem; }
  .content-body th, .content-body td { padding: 8px 10px; }
}

/* ─── UTILITY ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

::selection { background: var(--accent-dim); color: var(--text); }

.slot-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
