/* =========================================================
   Avanai · n8n Source Control & Environments - Presentation
   Brand palette
     --orange : #FF6D5A   (n8n primary)
     --orange2: #EA4D2C   (n8n darker)
     --purple : #7a58f3   (Avanai)
     --blue   : #25b1fa   (Avanai)
     --navy   : #002F47
   ========================================================= */

:root {
  --orange: #FF6D5A;
  --orange2: #EA4D2C;
  --purple: #7a58f3;
  --blue: #25b1fa;
  --light: #f6f7fa;
  --dark: #2e2f3a;
  --navy: #002F47;

  --bg: #f6f7fa;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --ink: #1c2230;
  --ink-2: #2e2f3a;
  --ink-3: #5b6273;
  --muted: #8b94a7;
  --line: rgba(0, 47, 71, 0.10);
  --line-2: rgba(0, 47, 71, 0.06);

  --grad: linear-gradient(135deg, var(--orange2) 0%, var(--orange) 60%, #ffb347 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,109,90,0.12) 0%, rgba(255,179,71,0.10) 100%);
  --shadow-sm: 0 1px 2px rgba(0, 47, 71, 0.04), 0 2px 6px rgba(0, 47, 71, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 47, 71, 0.06), 0 12px 36px -8px rgba(0, 47, 71, 0.10);
  --shadow-lg: 0 10px 30px rgba(0, 47, 71, 0.08), 0 30px 80px -20px rgba(255, 109, 90, 0.18);

  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 280ms;
  --t-mid: 520ms;
  --t-slow: 780ms;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a { color: var(--orange); }

/* ------- Hero background ------- */
.hero-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255,109,90,0.13) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(122,88,243,0.08) 0%, transparent 60%),
              #f6f7fa;
}

/* ------- Top bar ------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 36px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(0, 47, 71, 0.07);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  height: 26px; display: flex; align-items: center; gap: 8px;
}
.avanai-logo {
  height: 22px; width: auto; display: block;
}
.ty-bottom {
  position: absolute; bottom: 56px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.thankyou-logos {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.ty-logo-avanai { height: 28px; width: auto; }
.ty-logo-n8n { height: 28px; width: auto; }
.ty-x { font-size: 18px; font-weight: 300; color: var(--muted); line-height: 1; }

.title-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 28px;
}
.title-logo-avanai { height: 36px; width: auto; }
.title-logo-n8n { height: 36px; width: auto; }
.title-logo-x {
  font-size: 22px; font-weight: 300; color: var(--muted); line-height: 1;
}
.n8n-wordmark {
  font-size: 18px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
}
.n8n-wordmark span { color: var(--orange); }
.brand .pill {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.6);
  font-weight: 600;
}
.deck-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }

/* ------- Progress bar ------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 3px;
  background: var(--line-2);
}
.progress > span {
  display: block; height: 100%; width: 0;
  background: var(--grad);
  transition: width 0.4s var(--easing);
}

/* ------- Nav controls ------- */
.nav-controls {
  position: fixed; bottom: 28px; right: 32px; z-index: 30;
  display: flex; gap: 8px; align-items: center;
}
.nav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.8); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: var(--ink-3);
  backdrop-filter: blur(10px);
}
.nav-btn:hover { background: #fff; color: var(--orange); border-color: rgba(255,109,90,0.3); }
.nav-btn svg { width: 16px; height: 16px; }

/* ------- Stage / slides ------- */
.stage { position: fixed; inset: 0; z-index: 10; }

.slide {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 76px 64px 60px;
}
.slide.is-active { display: flex; }

.slide-inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 1100px; width: 100%; margin: 0 auto;
  gap: 0;
}
.slide-inner.center { align-items: center; text-align: center; }

.slide-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); padding-top: 16px; flex-shrink: 0;
  max-width: 1100px; width: 100%; margin: 0 auto;
}

/* ------- Section divider ------- */
.section-divider .slide-inner { align-items: center; text-align: center; }
.section-divider .big-num {
  font-size: 96px; font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.section-divider h2 { font-size: 36px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.section-divider .sub { font-size: 17px; color: var(--ink-3); max-width: 540px; }

/* ------- Typography ------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px; display: block;
}
.eyebrow.purple { color: var(--purple); }
.eyebrow.muted { color: var(--muted); }

.display {
  font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ink);
}
.grad {
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.title {
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 14px;
}
.subtitle { font-size: 18px; color: var(--ink-3); line-height: 1.6; max-width: 700px; }
.lead { font-size: 16px; color: var(--ink-3); line-height: 1.7; max-width: 740px; }

/* ------- Pills / chips ------- */
.pillars { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink-2);
}
.chip {
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: var(--grad-soft); color: var(--orange2); border: 1px solid rgba(255,109,90,0.2);
}
.chip.purple { background: rgba(122,88,243,0.1); color: var(--purple); border-color: rgba(122,88,243,0.2); }
.chip.muted { background: rgba(0,47,71,0.05); color: var(--muted); border-color: var(--line); }

/* ------- Section tag / pip ------- */
.section-tag { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); display: inline-block; }

/* ------- Cards ------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.card h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.card .icon { font-size: 24px; margin-bottom: 10px; }
.card.compact { padding: 16px 18px; }

/* ------- Stats ------- */
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: 42px; font-weight: 900; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .label { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }

/* ------- Comparison table ------- */
.compare {
  display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1fr;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); font-size: 13px;
}
.compare > div { padding: 10px 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.compare > div:nth-last-child(-n+4) { border-bottom: none; }
.compare .head { font-weight: 700; font-size: 12px; background: var(--surface-2); color: var(--ink-3); letter-spacing: 0.04em; }
.compare .head.middle { background: rgba(255,109,90,0.07); color: var(--orange2); }
.compare .label { color: var(--ink-3); }
.compare .yes { color: #16a34a; font-weight: 600; background: rgba(22,163,74,0.05); }
.compare .no { color: var(--muted); }
.compare .partial { color: #d97706; background: rgba(217,119,6,0.05); font-weight: 500; }

/* ------- Feature availability table ------- */
.avail-table {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); font-size: 13px; width: 100%;
}
.avail-table thead th { background: var(--surface-2); padding: 10px 16px; text-align: left; font-weight: 700; color: var(--ink-3); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.avail-table td { padding: 10px 16px; border-top: 1px solid var(--line-2); color: var(--ink-3); vertical-align: middle; }
.avail-table tr:hover td { background: var(--surface-2); }
.badge-plan { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.badge-ent { background: rgba(255,109,90,0.12); color: var(--orange2); }
.badge-biz { background: rgba(122,88,243,0.10); color: var(--purple); }
.badge-all { background: rgba(22,163,74,0.10); color: #16a34a; }

/* ------- Branch pattern diagram ------- */
.branch-diagram {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 18px;
}
/* Pattern grid (slide 08) */
.patterns-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; margin-top: 8px;
}
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px;
}
.pcard.highlighted-card { border-color: rgba(255,109,90,0.5); background: rgba(255,109,90,0.02); }
.pcard-head h4 { font-size: 12px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.pcard-head p { font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.pdiagram { width: 100%; height: auto; display: block; margin-top: 8px; min-height: 120px; }
.pchip {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.pchip.recommended { background: rgba(255,109,90,0.12); color: var(--orange2); }
.pchip.simpler { background: rgba(122,88,243,0.10); color: var(--purple); }
.pchip.review { background: rgba(0,47,71,0.07); color: var(--navy); }
.pchip.simplest { background: rgba(37,177,250,0.10); color: #1a8fcc; }

/* Screenshot carousel */
.sc-carousel {
  position: relative; display: flex; align-items: stretch; gap: 0;
  width: 100%; flex: 1; min-height: 0;
}
.sc-slide {
  display: none; width: 100%; gap: 10px;
  flex-direction: column; align-items: stretch;
}
.sc-slide.active { display: flex; }
.sc-img-wrap {
  width: 100%; min-width: 0; border-radius: 10px; overflow: hidden;
  flex: 1;
}
.sc-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-caption {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 0 4px;
}
.sc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.sc-tag.orange { background: rgba(255,109,90,0.12); color: var(--orange2); }
.sc-tag.navy   { background: rgba(0,47,71,0.08); color: var(--navy); }
.sc-tag.purple { background: rgba(122,88,243,0.10); color: var(--purple); }
.sc-caption p  { font-size: 13px; line-height: 1.65; color: var(--ink-3); margin: 0; }
.sc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: background 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.sc-arrow:hover { background: var(--bg); box-shadow: var(--shadow-sm); }
.sc-prev { left: -18px; }
.sc-next { right: -18px; }
.sc-dots {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.sc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line);
  cursor: pointer; transition: background 0.2s;
}
.sc-dot.active { background: var(--orange); }

/* Pattern modal */
.pmodal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,21,33,0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.pmodal-overlay.open { opacity: 1; pointer-events: all; }
.pmodal-box {
  background: var(--surface); border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  padding: 44px 52px 44px; max-width: 760px; width: 92%;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2);
}
.pmodal-overlay.open .pmodal-box { transform: translateY(0) scale(1); }
.pmodal-box .pcard-head h4 { font-size: 22px; margin: 10px 0 8px; }
.pmodal-box .pcard-head p { font-size: 15px; line-height: 1.6; }
.pmodal-box .pdiagram { max-width: 560px; margin: 36px auto 0; display: block; }
.pmodal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-3);
  transition: background 0.15s;
}
.pmodal-close:hover { background: var(--bg); }

.branch-pattern {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow-sm); cursor: default;
}
.branch-pattern.highlighted { border-color: rgba(255,109,90,0.4); background: rgba(255,109,90,0.03); }
.branch-pattern h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.branch-pattern p { font-size: 12px; color: var(--ink-3); line-height: 1.5; margin-bottom: 10px; }
.instances {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.instance-box {
  padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--line); color: var(--ink-2); background: var(--surface);
  text-align: center;
}
.instance-box.dev { border-color: rgba(122,88,243,0.4); color: var(--purple); background: rgba(122,88,243,0.06); }
.instance-box.prod { border-color: rgba(255,109,90,0.4); color: var(--orange2); background: rgba(255,109,90,0.06); }
.instance-box.git { border-color: rgba(0,47,71,0.2); color: var(--ink-3); background: rgba(0,47,71,0.04); }
.arrow { font-size: 16px; color: var(--muted); align-self: center; flex-shrink: 0; }

/* ------- Workflow panel (use-case style) ------- */
.usecase { display: flex; gap: 36px; align-items: flex-start; }
.usecase .left { flex: 1.2; }
.usecase .right { flex: 1; }
.impact { display: flex; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.stat-mini { text-align: center; }
.stat-mini .v { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-mini .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow-md);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h5 { font-size: 13px; font-weight: 700; color: var(--ink); }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }
.step:last-child { border-bottom: none; }
.step .n { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-soft); color: var(--orange2); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.out { font-size: 11px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }

/* ------- Code / prompt block ------- */
.prompt {
  background: #0f1521; border-radius: 12px; padding: 18px 22px;
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.8;
  display: flex; flex-direction: column; gap: 2px;
}
.prompt .sys { color: #cbd5e1; }
.prompt .you { color: #6ee7b7; }
.prompt .ai { color: #93c5fd; }
code {
  font-family: 'Courier New', monospace; font-size: 12px;
  background: rgba(255,109,90,0.08); color: var(--orange2);
  padding: 1px 6px; border-radius: 4px;
}

/* ------- Diff panes ------- */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.pane.bad { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.03); }
.pane.good { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.03); }
.pane h5 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.pane ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pane ul li { font-size: 13px; color: var(--ink-3); line-height: 1.5; padding-left: 14px; position: relative; }
.pane ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.pane.good ul li::before { background: #22c55e; }
.pane.bad ul li::before { background: #ef4444; }

/* ------- Bullets ------- */
.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.bullets li { font-size: 15px; color: var(--ink-3); line-height: 1.6; padding-left: 20px; position: relative; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* ------- Row/col layout ------- */
.row { display: flex; gap: 28px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }

/* ------- Spotlight ring ------- */
.spotlight { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 16px rgba(255,109,90,0.10), 0 0 0 32px rgba(255,109,90,0.05);
}
.ring .val { font-size: 36px; font-weight: 900; color: white; letter-spacing: -0.04em; }
.kicker { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ------- Diff visual (change colors) ------- */
.change-added { color: #16a34a; font-weight: 700; }
.change-modified { color: #d97706; font-weight: 700; }
.change-deleted { color: #dc2626; font-weight: 700; }

/* ------- Merge conflict table ------- */
.merge-table { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13px; }
.merge-table > div { padding: 9px 14px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.merge-table > div:nth-last-child(-n+3) { border-bottom: none; }
.merge-table .mh { font-weight: 700; font-size: 11px; background: var(--surface-2); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ------- Animations ------- */
.anim { opacity: 0; transform: translateY(14px); }
.is-active .anim { animation: fadeUp 0.55s var(--easing) forwards; }
.is-active .anim-1 { animation-delay: 0.05s; }
.is-active .anim-2 { animation-delay: 0.12s; }
.is-active .anim-3 { animation-delay: 0.20s; }
.is-active .anim-4 { animation-delay: 0.28s; }
.is-active .anim-5 { animation-delay: 0.36s; }
.is-active .anim-6 { animation-delay: 0.44s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ------- Help overlay ------- */
.help {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(28,34,48,0.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.help.open { display: flex; }
.help-box {
  background: var(--surface); border-radius: 18px; padding: 32px 36px;
  max-width: 380px; width: 90%; box-shadow: var(--shadow-lg);
}
.help-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--ink); }
.help-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.help-box dt { font-family: monospace; background: var(--surface-2); padding: 2px 8px; border-radius: 5px; color: var(--ink-3); font-weight: 700; }
.help-box dd { color: var(--ink-3); display: flex; align-items: center; }
.help-close { margin-top: 20px; width: 100%; padding: 10px; background: var(--grad); color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }

/* ------- Scrollbar ------- */
.slide::-webkit-scrollbar { width: 4px; }
.slide::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* ------- Image screenshot ------- */
.screenshot {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); width: 100%;
}
.screenshot img { width: 100%; display: block; }
