/* Dizzi AI landing page (dizzipline.app/dizzi-ai)
   Fire in the hero; everything after it stays dark and warm, lit by the fire's glow. The demo is frosted glass.
   One typeface: Bricolage Grotesque (Dizzipline's display face). */

:root {
  --night: #0d0908;
  --stone: #100b0a;
  --glass: rgba(255, 236, 216, 0.05);
  --glass-line: rgba(255, 228, 200, 0.12);
  --ash-2: rgba(255, 236, 216, 0.1);
  --paper: rgba(255, 240, 225, 0.08);
  --ink: #f6eee5;
  --ink-2: rgba(246, 238, 229, 0.72);
  --ink-3: rgba(246, 238, 229, 0.5);
  --rule: rgba(255, 236, 216, 0.14);
  --ember: #ff5b1f;
  --ember-hi: #ff7a2e;
  --gold: #ffb938;
  --cream: #fff3e6;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the real extension's colors, used inside the demo */
  --dz-bg: #12152a;
  --dz-raised: #1a1e3a;
  --dz-sunk: #0d1022;
  --dz-line: rgba(255, 255, 255, 0.09);
  --dz-text: #f3f1fa;
  --dz-muted: #a9abc8;
  --dz-orange: #ff8a1f;
  --dz-purple: #8b7cff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
kbd, code {
  font-family: var(--font);
  font-size: 0.86em;
  font-weight: 600;
  background: rgba(255, 240, 225, 0.08);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  color: var(--ink);
  border-radius: 6px;
  padding: 0.05em 0.42em;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16.5px/1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ember {
  background: var(--ember); color: #1d0b02;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -8px rgba(255, 91, 31, 0.65);
}
.btn-ember:hover { background: var(--ember-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 38px -8px rgba(255, 91, 31, 0.8); }
.btn-glass {
  background: rgba(30, 14, 10, 0.55); color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 230, 0.22);

}
.btn-glass:hover { background: rgba(255, 243, 230, 0.14); }
.btn-ink { background: var(--cream); color: #1d0b02; }
.btn-ink:hover { background: #fff; }
.btn-small { height: 38px; padding: 0 18px; font-size: 15px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: flex; flex-direction: column;
  background: var(--night) radial-gradient(120% 60% at 50% 100%, #3a1206 0%, #170908 45%, var(--night) 75%);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.fire, .embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.embers { z-index: 3; pointer-events: none; }
.hero .fire { opacity: 0; transition: opacity 0.6s ease; }
.hero.lit .fire { opacity: 1; }

.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1180px, 100% - 40px); margin: 0 auto; padding: 20px 0;
  opacity: 0; transition: opacity 0.8s ease 0.2s;
}
.hero.lit .nav { opacity: 1; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.nav-brand img { width: 28px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link { text-decoration: none; color: rgba(255, 243, 230, 0.72); font-size: 15.5px; font-weight: 500; }
.nav-link:hover { color: var(--cream); }

.hero-copy {
  position: relative; z-index: 4;
  width: min(980px, 100% - 40px); margin: 0 auto;
  padding-top: clamp(20px, 5.5vh, 76px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-size: clamp(40px, min(7.4vw, 11.5vh), 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 750;
  font-variation-settings: "opsz" 96;
  color: var(--cream);
  text-shadow: 0 0 60px rgba(255, 110, 30, 0.22);
  text-wrap: balance;
}
.hero-title .line { display: inline-block; }
.hero-sub {
  margin-top: 22px; max-width: 34em;
  font-size: clamp(16.5px, 1.6vw, 19.5px); line-height: 1.5;
  color: rgba(255, 243, 230, 0.74);
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-fine { margin-top: 14px; font-size: 14px; color: rgba(255, 243, 230, 0.5); }

/* intro: the copy appears once Dizzi lands */
.js .hero-title .line, .js .hero-sub, .js .hero-ctas, .js .hero-fine {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.7s ease;
}
.js .hero.revealed .hero-title .line, .js .hero.revealed .hero-sub, .js .hero.revealed .hero-ctas, .js .hero.revealed .hero-fine {
  opacity: 1; transform: none; filter: none;
}
.js .hero.revealed .hero-title .line:nth-child(2) { transition-delay: 0.08s; }
.js .hero.revealed .hero-sub { transition-delay: 0.18s; }
.js .hero.revealed .hero-ctas { transition-delay: 0.28s; }
.js .hero.revealed .hero-fine { transition-delay: 0.36s; }

.hero-stage {
  position: relative; z-index: 2;
  flex: 1 1 auto; min-height: 250px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: clamp(30px, 6vh, 64px);
}
.dizzi {
  --h: clamp(180px, 32vh, 370px);
  position: relative;
  width: calc(var(--h) * 0.88); height: var(--h);
  padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dizzi:focus-visible { outline-offset: 10px; border-radius: 40%; }
.dz-body {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  will-change: transform;
}
.dz-body::before {
  content: ""; position: absolute; inset: -16% -18% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 112, 26, 0.5), rgba(255, 112, 26, 0.18) 55%, rgba(255, 112, 26, 0));
}
.js .dz-body { transform: translateY(calc(100% + 30vh)); }
.dz-img, .dz-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.dz-gl { display: none; }
.gl .dz-gl { display: block; }
.gl .dz-img { visibility: hidden; }
/* eyes sit on top of the art (they were painted out of it so they can blink and look around) */
.dz-eye {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse 70% 70% at 42% 36%, #fffbf3 0%, #fdf1df 55%, #f3d8b8 100%);
  box-shadow: inset 0 -4px 7px rgba(170, 70, 10, 0.18), 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-origin: 50% 55%;
  will-change: transform;
}
.dz-eye-l { left: 30.5%; top: 41.3%; width: 15.65%; height: 11.52%; }
.dz-eye-r { left: 53.98%; top: 41.26%; width: 15.46%; height: 10.72%; }

/* the very bottom of the hero fades into the next section */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 9, 6, 0), #140906);
}
/* the bright base of the fire, in front of Dizzi so he rises out of it */
.hearth {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; z-index: 3; pointer-events: none;
  background:
    radial-gradient(50% 55% at 50% 68%, rgba(255, 196, 92, 0.7) 0%, rgba(255, 120, 30, 0.35) 40%, rgba(255, 80, 20, 0) 75%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero.lit .hearth { opacity: 0.9; }

/* ================= DEMO ================= */
.demo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 110px 0 40px;
  background:
    radial-gradient(70% 300px at 50% 0, rgba(255, 96, 24, 0.3), rgba(255, 96, 24, 0) 100%),
    linear-gradient(to bottom, #140906 0, rgba(20, 9, 6, 0.75) 220px, rgba(20, 9, 6, 0) 520px);
}
/* fire-colored light behind the glass demo (the glass blurs it) */
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.glow-a { width: 46vw; max-width: 620px; aspect-ratio: 1; left: 8%; top: 34%; background: radial-gradient(circle, rgba(255, 91, 31, 0.55), rgba(255, 91, 31, 0) 70%); }
.glow-b { width: 40vw; max-width: 560px; aspect-ratio: 1; right: 6%; top: 46%; background: radial-gradient(circle, rgba(255, 185, 56, 0.42), rgba(255, 185, 56, 0) 70%); }
.glow-c { width: 30vw; max-width: 420px; aspect-ratio: 1; left: 40%; top: 68%; background: radial-gradient(circle, rgba(232, 60, 30, 0.45), rgba(232, 60, 30, 0) 70%); }
@keyframes drift-a { to { transform: translate(6vw, -4vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-7vw, 5vh) scale(0.9); } }
.demo-head { width: min(760px, 100% - 40px); margin: 0 auto; text-align: center; color: var(--cream); }
.demo-head h2 {
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.04em; font-weight: 720;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.demo-head p { margin: 18px auto 0; max-width: 36em; color: rgba(255, 243, 230, 0.72); font-size: 18px; text-wrap: pretty; }
.demo-head kbd { background: rgba(255, 243, 230, 0.1); border-color: rgba(255, 243, 230, 0.22); color: var(--cream); }

.demo-wrap { position: relative; width: min(1120px, 100% - 32px); margin: 64px auto 0; }
/* Dizzi peeking over the corner of the demo */
.demo-peek {
  position: absolute; z-index: 3; left: -22px; top: -74px; width: clamp(70px, 9vw, 112px); height: auto;
  transform: rotate(-8deg); transform-origin: 50% 100%;
  filter: drop-shadow(0 0 22px rgba(255, 112, 26, 0.55));
  animation: peek 3.2s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes peek { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-6px); } }
.demo-badge {
  position: absolute; z-index: 3; right: 22px; top: -16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(22, 19, 38, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px; font-weight: 600; color: var(--cream);
}
.demo-badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); animation: rec 1.6s ease-out infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 7px rgba(255, 77, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); } }
.demo-caption { text-align: center; margin-top: 16px; font-size: 14px; color: rgba(246, 238, 229, 0.5); }
.demo-frame {
  --scale: 1;
  width: 100%;
  margin: 0;
  aspect-ratio: 1040 / 640;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  /* tinted glass, same family as Dizzipline's own panels, lit by the fire behind it */
  background: linear-gradient(165deg, rgba(52, 45, 88, 0.72), rgba(32, 27, 56, 0.7) 45%, rgba(44, 25, 30, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 40px 120px -30px rgba(255, 90, 20, 0.45),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.stage {
  position: absolute; left: 0; top: 0;
  width: 1040px; height: 640px;
  transform: scale(var(--scale)); transform-origin: 0 0;
  overflow: hidden;
}
.demo-frame.narrow { aspect-ratio: 600 / 960; }
.narrow .stage { width: 600px; height: 960px; }
.narrow .pg-body { max-width: none; padding: 20px 28px; }
.narrow .q-eq { font-size: 58px; }
.narrow .q-opts span { font-size: 18px; }
.narrow .chat { right: auto; left: 28px; bottom: 28px; width: 440px; height: 420px; font-size: 15px; }
.narrow .mini-dizzi { right: 22px; bottom: 26px; }
.narrow .bubble { right: 12px; bottom: 124px; width: 250px; font-size: 14px; }
.narrow .win-url { display: none; }
/* the browser window moves like a camera: it zooms toward whatever is happening */
.win {
  position: absolute; inset: 0;
  overflow: hidden;
  transform-origin: 0 0;
  will-change: transform;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.win-bar {
  height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: rgba(255, 245, 235, 0.06); border-bottom: 1px solid rgba(255, 240, 225, 0.12); font-size: 13px; color: rgba(255, 245, 235, 0.6);
}
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 245, 235, 0.22); }
.win-tab { background: rgba(255, 245, 235, 0.1); padding: 6px 14px; border-radius: 8px 8px 0 0; align-self: flex-end; font-weight: 500; color: rgba(255, 248, 240, 0.92); }
.win-url { margin-left: 6px; background: rgba(0, 0, 0, 0.18); border: 1px solid rgba(255, 240, 225, 0.1); border-radius: 99px; padding: 5px 14px; color: rgba(255, 245, 235, 0.55); flex: 0 1 360px; }
.win-page { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; overflow: hidden; color: #f6eee5; background: rgba(10, 8, 20, 0.18); }
.pg-course { background: rgba(255, 245, 235, 0.05); border-bottom: 1px solid rgba(255, 240, 225, 0.1); padding: 12px 40px; font-weight: 600; font-size: 13px; color: rgba(255, 245, 235, 0.65); }
.pg-body { padding: 30px 40px; max-width: 545px; font-family: Georgia, "Times New Roman", serif; }
.pg-body h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; color: #fffaf4; }
.pg-meta { color: rgba(255, 245, 235, 0.55); font: 13px -apple-system, "Segoe UI", sans-serif; margin: 4px 0 16px; }
.pg-body p { font-size: 15.5px; line-height: 1.6; margin-bottom: 10px; color: rgba(255, 245, 235, 0.85); }
.pg-body b { color: #fff; }
.q-card {
  margin-top: 10px; padding: 30px 32px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 240, 225, 0.12);
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
}
.q-num { font-size: 13px; color: rgba(255, 245, 235, 0.5); }
.q-ask { margin-top: 10px; font-size: 19px; font-weight: 600; color: rgba(255, 245, 235, 0.85); }
.q-eq { margin: 10px 0 26px; font: 700 60px/1.1 Georgia, "Times New Roman", serif; letter-spacing: 0.01em; color: #fff; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opts span { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 240, 225, 0.16); background: rgba(255, 255, 255, 0.04); font-size: 16px; color: rgba(255, 245, 235, 0.9); }
.pg-fig { width: 100%; height: auto; margin: 6px 0 14px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 240, 225, 0.16); opacity: 0.92; }
.scan {
  position: absolute; left: 0; right: 0; height: 140px; top: -160px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 110, 30, 0), rgba(255, 110, 30, 0.14) 70%, rgba(255, 170, 70, 0.8) 98%, rgba(255, 200, 120, 0) 100%);
  mix-blend-mode: screen;
}
.flash { position: absolute; inset: 0; background: #ffe7cc; opacity: 0; pointer-events: none; }

/* Dizzipline's XP card, shown when the focus session pays out */
.xp-card {
  position: absolute; right: 20px; top: 56px; width: 270px; z-index: 5;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(40, 26, 20, 0.55);
  border: 1px solid rgba(255, 220, 190, 0.22);
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(255, 110, 30, 0.45);
  color: #f6eee5; font: 13px/1.35 -apple-system, "Segoe UI", system-ui, sans-serif;
  opacity: 0; transform: translateY(-12px);
}
.xp-card .row { display: flex; align-items: center; gap: 10px; }
.xp-card img { width: 26px; height: auto; }
.xp-card b { font-size: 14px; }
.xp-card .sub { color: rgba(246, 238, 229, 0.55); font-size: 12px; }
.xp-card .gain { margin-left: auto; white-space: nowrap; color: #ffb938; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.xp-card .bar { height: 7px; border-radius: 7px; background: rgba(255, 236, 216, 0.1); margin-top: 11px; overflow: hidden; }
.xp-card .bar i { display: block; height: 100%; width: 40%; border-radius: 7px; background: linear-gradient(90deg, #ff5b1f, #ffb938); }
.xp-card .nums { display: flex; justify-content: space-between; margin-top: 6px; color: rgba(246, 238, 229, 0.55); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* Dizzi's chat (same structure as the extension) */
.chat {
  position: absolute; right: 120px; bottom: 34px; width: 340px; height: 452px;
  background: rgba(18, 21, 42, 0.94); color: var(--dz-text);
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(6, 8, 20, 0.45), 0 2px 8px rgba(6, 8, 20, 0.3);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: 100% 100%;
  font-size: 13.5px; line-height: 1.45;
  opacity: 0;
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--dz-line); font-size: 14px; }
.chat-face { width: 18px; height: 20px; background: url(/dizzi-ai-assets/dizzi-mark.png) center / contain no-repeat; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dz-muted); border: 1px solid var(--dz-line); border-radius: 99px; padding: 3px 9px; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--dz-muted); }
.chip.on { color: #fff; background: rgba(139, 124, 255, 0.16); border-color: rgba(139, 124, 255, 0.4); }
.chip.on i { background: var(--dz-purple); }
.chat-x { margin-left: auto; color: var(--dz-muted); font-size: 18px; }
.chat-msgs { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; }
.msg.bot { background: var(--dz-raised); border: 1px solid var(--dz-line); align-self: flex-start; }
.msg.me { background: var(--dz-orange); color: #1a1230; align-self: flex-end; font-weight: 500; }
.msg.me small { display: block; font-size: 11px; opacity: 0.75; margin-top: 3px; }
.msg .ans b { color: #fff; }
.msg .ans ul { margin: 6px 0; padding-left: 16px; }
.msg .ans li::marker { color: var(--dz-orange); }
.act { margin-top: 8px; font-size: 12px; background: rgba(91, 214, 138, 0.12); color: #9ff0bf; border-radius: 9px; padding: 6px 9px; }
#dQ1, #dA1, #dQ2, #dA2 { display: none; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--dz-muted); animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--dz-line); }
.field { flex: 1; position: relative; background: var(--dz-sunk); border: 1px solid var(--dz-line); border-radius: 12px; padding: 9px 12px; min-height: 38px; color: var(--dz-text); white-space: nowrap; overflow: hidden; }
.field .ph { position: absolute; left: 12px; top: 9px; color: #6f7397; }
.caret { display: inline-block; width: 1.5px; height: 15px; background: var(--dz-orange); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { width: 38px; border-radius: 12px; background: var(--dz-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1230' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13m-5-6 6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0.55; }
.send.hot { opacity: 1; }

.mini-dizzi { position: absolute; right: 26px; bottom: 18px; width: 75px; height: 101px; }
.sprite { position: absolute; inset: 0; background: url(/dizzi-ai-assets/dizzi-sprite.webp) 0 0 / 1125px 101px no-repeat; }
.timer-pill {
  position: absolute; left: 50%; top: 2px; transform: translateX(-50%);
  background: var(--dz-bg); color: #fff; font: 600 12.5px/1 -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums;
  padding: 5px 9px; border-radius: 99px; border: 1px solid var(--dz-line); white-space: nowrap; opacity: 0;
}
.timer-pill small { color: var(--dz-orange); margin-left: 5px; font-size: 10.5px; }
.bubble {
  position: absolute; right: 16px; bottom: 112px; width: 240px;
  background: var(--dz-bg); color: #fff; font-size: 13px; line-height: 1.4; padding: 11px 13px; border-radius: 14px;
  box-shadow: 0 12px 30px rgba(6, 8, 20, 0.35); opacity: 0; transform-origin: 90% 100%;
}
.sparks { position: absolute; right: 64px; bottom: 70px; width: 0; height: 0; }
.sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #fff6c8, #ffb938 45%, rgba(255, 91, 31, 0) 70%); opacity: 0; }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; fill: #111; stroke: #fff; stroke-width: 1.3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); transform-origin: 20% 15%; }

.steps {
  width: min(1120px, 100% - 32px); margin: 28px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.step { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.step .bar { height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.step .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--gold)); }
.step .label { font-size: 15px; font-weight: 600; color: var(--ink-3); transition: color 0.2s; }
.step[aria-selected="true"] .label { color: var(--ink); }
.step:focus-visible { outline: 2.5px solid var(--ember); outline-offset: 6px; border-radius: 4px; }

/* ================= FEATURES ================= */
.features { width: min(1120px, 100% - 40px); margin: 0 auto; padding: 130px 0 40px; display: flex; flex-direction: column; gap: 120px; }
.feat { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.feat-flip .feat-copy { order: 2; }
.feat h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 720; text-wrap: balance; }
.feat-copy p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 30em; text-wrap: pretty; }
.feat-copy b { color: var(--ink); font-weight: 650; }

.vig {
  position: relative; min-height: 340px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(165deg, rgba(48, 42, 82, 0.55), rgba(30, 26, 52, 0.5) 50%, rgba(40, 24, 30, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(255, 100, 30, 0.35);

  padding: 34px;
}
.vig-card {
  background: var(--dz-bg); color: var(--dz-text); border-radius: 14px; padding: 13px 15px;
  font: 14px/1.45 -apple-system, "Segoe UI", system-ui, sans-serif; box-shadow: 0 16px 40px -14px rgba(6, 8, 20, 0.5);
}
.vig-card b { color: #fff; }

/* highlight */
.vig-hl .vig-text { font: 20px/1.65 Georgia, "Times New Roman", serif; color: rgba(246, 238, 229, 0.88); max-width: 30em; }
.hl > span { background: linear-gradient(rgba(255, 110, 30, 0.38), rgba(255, 110, 30, 0.38)) 0 0 / 0% 100% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ask-pill {
  position: absolute; left: 58%; top: 150px;
  background: var(--dz-bg); color: #fff; font: 600 13px/1 -apple-system, "Segoe UI", sans-serif;
  padding: 9px 13px 9px 30px; border-radius: 99px; opacity: 0;
  box-shadow: 0 10px 24px -8px rgba(6, 8, 20, 0.5);
}
.ask-pill::before { content: ""; position: absolute; left: 9px; top: 6px; width: 15px; height: 17px; background: url(/dizzi-ai-assets/dizzi-mark.png) center / contain no-repeat; }
.vig-hl .vig-card { position: absolute; left: 34px; right: 34px; bottom: 30px; opacity: 0; }
.play .hl > span { animation: hl 7s infinite; }
.play .ask-pill { animation: pill 7s infinite; }
.play.vig-hl .vig-card { animation: card 7s infinite; }
@keyframes hl { 0% { background-size: 0% 100%; } 10%, 92% { background-size: 100% 100%; } 100% { background-size: 100% 100%; opacity: 0; } }
@keyframes pill { 0%, 13% { opacity: 0; transform: translateY(6px); } 17%, 30% { opacity: 1; transform: none; } 32% { transform: scale(0.94); } 35%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes card { 0%, 34% { opacity: 0; transform: translateY(14px) scale(0.98); } 40%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* focus + xp */
.vig-xp { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.ring { position: relative; width: 170px; height: 170px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--ash-2); }
.ring-fg { stroke: var(--ember); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; }
.ring-time { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.xp-side { position: relative; }
.xp-pop { position: absolute; right: 0; top: -36px; font-size: 26px; font-weight: 750; letter-spacing: -0.03em; color: var(--ember); opacity: 0; }
.lvl { display: flex; justify-content: space-between; font-weight: 650; font-size: 15px; }
.lvl span:last-child { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.lvl-bar { height: 10px; border-radius: 10px; background: var(--ash-2); margin-top: 8px; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; width: 40%; border-radius: 10px; background: linear-gradient(90deg, var(--ember), var(--gold)); transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.due { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--rule); }
.due li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.due li span:last-child { color: var(--ink-3); }
.due-note { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* voice */
.vig-voice { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.wave { display: flex; align-items: center; gap: 5px; height: 64px; }
.wave i { width: 6px; height: 10px; border-radius: 6px; background: var(--ember); opacity: 0.9; }
.play .wave i { animation: wave 1.1s infinite ease-in-out; }
.wave i:nth-child(2n) { animation-delay: -0.3s; } .wave i:nth-child(3n) { animation-delay: -0.6s; } .wave i:nth-child(5n) { animation-delay: -0.15s; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 56px; } }
.said { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; min-height: 1.3em; }
.said span { opacity: 0.15; transition: opacity 0.25s; }
.said span.on { opacity: 1; }
.vig-voice .vig-card { opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.4s; }
.vig-voice .vig-card.on { opacity: 1; transform: none; }

/* ================= PRIVACY ================= */
.privacy, .install, .faq { width: min(1120px, 100% - 40px); margin: 0 auto; }
.privacy { padding: 130px 0 20px; }
.privacy h2, .install h2, .faq h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 720; text-wrap: balance; }
.priv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.priv-grid > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.priv-grid h3 { font-size: 19px; letter-spacing: -0.015em; }
.priv-grid p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.fine-dark { margin-top: 26px; font-size: 14.5px; color: var(--ink-3); }

/* ================= INSTALL ================= */
.install { padding: 130px 0 20px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px 72px; align-items: start; }
.install-head p { margin: 18px 0 26px; color: var(--ink-2); font-size: 18px; max-width: 26em; }
.install-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.install-steps li { counter-increment: s; position: relative; padding: 18px 0 20px 48px; border-top: 1px solid var(--rule); }
.install-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 17px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ember); color: #1d0b02; font-weight: 700; font-size: 14px;
}
.install-steps h3 { font-size: 17.5px; letter-spacing: -0.01em; }
.install-steps p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; }
.install > .fine-dark { grid-column: 1 / -1; margin-top: 0; }

/* ================= FAQ ================= */
.faq { padding: 120px 0 140px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
.faq-list { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 36em; }

/* ================= CLOSING ================= */
.closing { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(to bottom, rgba(13, 9, 8, 0), var(--night) 240px); color: var(--cream); padding: 120px 0 0; }
.closing .fire { z-index: -1; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 280px); mask-image: linear-gradient(to bottom, transparent, #000 280px); }
.closing-inner { width: min(900px, 100% - 40px); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; padding-bottom: 200px; }
.closing-dizzi { width: 150px; height: auto; filter: drop-shadow(0 0 24px rgba(255, 112, 26, 0.6)); animation: bob 2.8s ease-in-out infinite; transform-origin: 50% 100%; will-change: transform; }
@keyframes bob { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }
.closing h2 { font-size: clamp(34px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750; text-wrap: balance; text-shadow: 0 0 50px rgba(255, 110, 30, 0.25); }
.footer {
  position: relative; z-index: 1;
  background: var(--night);
  box-shadow: 0 0 0 100vmax var(--night);
  clip-path: inset(0 -100vmax -100vmax); width: min(1120px, 100% - 40px); margin: 0 auto; padding: 22px 0 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 14px; color: rgba(255, 243, 230, 0.7);
  border-top: 1px solid rgba(255, 243, 230, 0.16);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav-link { display: none; }
  .feat, .feat-flip { grid-template-columns: 1fr; }
  .feat-flip .feat-copy { order: 0; }
  .priv-grid { grid-template-columns: 1fr 1fr; }
  .install, .faq { grid-template-columns: 1fr; gap: 32px; }
  .features { gap: 90px; padding-top: 100px; }
}
@media (max-width: 600px) {
  .demo-badge { font-size: 12.5px; padding: 6px 11px; right: 14px; }
  body { font-size: 16px; }
  .hero { min-height: max(100svh, 640px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .priv-grid, .install-steps { grid-template-columns: 1fr; }
  .vig { padding: 24px; min-height: 300px; }
  .vig-xp { grid-template-columns: 1fr; justify-items: center; }
  .xp-side { width: 100%; }
  .ring { width: 140px; height: 140px; }
  .vig-hl .vig-text { font-size: 17px; }
  .ask-pill { left: auto; right: 24px; top: auto; bottom: 150px; }
  .demo { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl > span { background-size: 100% 100%; }
  .ask-pill, .vig-hl .vig-card { opacity: 1; }
  .closing-dizzi, .typing i, .caret, .play .wave i, .demo-peek, .demo-badge i, .glow { animation: none !important; }
}
