/* SpeedDial landing page. Palette mirrors packages/app/lib/src/theme.dart. */

@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/fonts/IBMPlexSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --canvas: #000;
  --low: #0c0c0b;
  --panel: #151514;
  --card: #1c1b19;
  --raised: #282724;
  --border: #2a2926;
  --outline: #3f3d39;
  --fg: #ece9e3;
  --muted: #9b978f;
  --accent: #ff7a33;
  --accent-soft: #3a2519;
  --on-accent-soft: #ffc9a8;
  --running: #6bb3ff;
  --waiting: #f2c14e;
  --success: #5cc98a;
  --idle: #8e8a82;
  --purple: #b59bff;
  --root: #e5402a;
  --tip: #ffc04a;
  --core: #fff1c9;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font: 400 17px/1.6 "Plex", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code, pre { font-family: "Plex Mono", ui-monospace, monospace; }
::selection { background: var(--accent); color: #1b0d04; }

/* --- type ------------------------------------------------------------- */
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 6.4vw, 96px); font-weight: 700; }
h1 .hot { white-space: nowrap; }
h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-top: 18px; }
h1 .line { display: block; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font: 500 13px/1 "Plex Mono", monospace;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-accent-soft);
}
.pilot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--running);
  box-shadow: 0 0 0 4px rgba(107,179,255,.15), 0 0 16px var(--running);
  animation: pilot 2.4s ease-in-out infinite;
}
@keyframes pilot { 50% { box-shadow: 0 0 0 6px rgba(107,179,255,.08), 0 0 24px var(--running); } }

/* Hot text: white-hot core cooling to ember, with a slow glow. */
.hot {
  font-style: normal;
  background: linear-gradient(180deg, var(--core) 0%, var(--tip) 38%, var(--accent) 70%, var(--root) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,122,51,.35));
}
h1 .hot {
  background-size: 100% 220%;
  animation: forge 5s ease-in-out infinite alternate;
}
@keyframes forge {
  from { background-position: 0 0; filter: drop-shadow(0 0 30px rgba(255,160,70,.55)); }
  to { background-position: 0 70%; filter: drop-shadow(0 0 14px rgba(229,64,42,.3)); }
}

/* --- nav -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
}
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--fg); }
.nav .nav-gh { color: var(--fg); border: 1px solid var(--outline); border-radius: 999px; padding: 4px 14px; }
.nav .nav-gh:hover { border-color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { position: relative; width: 30px; height: 30px; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(255,122,51,.6)); }
.brand-mark i {
  position: absolute; left: 1px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: rotate(-40deg);
}
.brand-mark i:nth-of-type(1) { top: 15px; width: 9px; left: 2px; }
.brand-mark i:nth-of-type(2) { top: 20px; width: 10px; left: 5px; }
.brand-mark i:nth-of-type(3) { top: 25px; width: 8px; left: 9px; }
@media (max-width: 640px) { .nav nav a:not(.nav-gh) { display: none; } }

/* --- buttons ----------------------------------------------------------- */
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta.center { justify-content: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.btn-fire {
  color: #1b0d04;
  background: linear-gradient(180deg, var(--tip), var(--accent) 60%, var(--root));
  box-shadow: 0 10px 40px -8px rgba(255,122,51,.7), inset 0 1px 0 rgba(255,241,201,.6);
  overflow: hidden;
}
.btn-fire::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,241,201,.65) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-fire:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -6px rgba(255,122,51,.9), inset 0 1px 0 rgba(255,241,201,.6); }
.btn-fire:hover::after { animation: glint 1s var(--ease-out); }
.btn-flame { width: 16px; height: 22px; filter: drop-shadow(0 0 4px rgba(255,241,201,.9)); }
.btn-fire .btn-flame path:first-child { fill: #1b0d04; }
.btn-fire .btn-flame path:last-child { fill: var(--core); }
.btn-ghost { border: 1px solid var(--outline); color: var(--fg); background: rgba(28,27,25,.6); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
@keyframes glint { to { transform: translateX(120%); } }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: 40px; padding: 120px clamp(20px, 6vw, 96px) 80px;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%; z-index: -2;
  background: radial-gradient(ellipse at 70% 100%, rgba(229,64,42,.35), transparent 60%),
              radial-gradient(ellipse at 30% 100%, rgba(255,122,51,.12), transparent 55%);
}
.hero-fire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-copy { max-width: 640px; position: relative; z-index: 2; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: #cfcac1; max-width: 34em; margin: 28px 0 0; }
.fineprint { margin-top: 22px; font: 400 13px/1.4 "Plex Mono", monospace; color: var(--muted); }

.phone-stage { position: relative; display: grid; place-items: center; height: min(760px, 82vh); }
.phone {
  position: relative; z-index: 3;
  width: min(330px, 70vw); aspect-ratio: 390 / 844;
  padding: 12px; border-radius: 52px;
  background: linear-gradient(145deg, #3a3835, #121211 40%, #262522);
  box-shadow:
    0 0 0 1px #4a4743 inset,
    0 0 0 2px #000,
    0 40px 80px -20px rgba(0,0,0,.9),
    0 0 120px -10px rgba(255,122,51,.55),
    0 0 60px -20px rgba(255,192,74,.8);
  transform: rotate(-7deg);
  animation: ring 7s ease-in-out infinite;
}
.phone-screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: #000; display: flex; flex-direction: column; }
.phone-screen img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.status-bar { flex: none; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 30px; font: 600 13px/1 "Plex", sans-serif; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons .sig { width: 16px; height: 10px; background: linear-gradient(90deg, var(--fg) 0 3px, transparent 3px 4px, var(--fg) 4px 7px, transparent 7px 8px, var(--fg) 8px 11px, transparent 11px 12px, var(--fg) 12px 15px); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sb-icons .bat { width: 22px; height: 11px; border: 1.5px solid var(--fg); border-radius: 3px; position: relative; }
.sb-icons .bat::after { content: ""; position: absolute; inset: 1px; right: 5px; border-radius: 1px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.phone-notch { position: absolute; top: 20px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; }
/* A ringing phone: a short buzz every few seconds. */
@keyframes ring {
  0%, 62%, 100% { transform: rotate(-7deg) translateY(0); }
  64% { transform: rotate(-9deg) translateY(-2px); }
  66% { transform: rotate(-5deg) translateY(-2px); }
  68% { transform: rotate(-9deg) translateY(-2px); }
  70% { transform: rotate(-5deg) translateY(-2px); }
  72% { transform: rotate(-8deg) translateY(-1px); }
  74% { transform: rotate(-7deg) translateY(0); }
}
.toast {
  position: absolute; left: 10px; right: 10px; top: 54px;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 18px;
  background: rgba(28,27,25,.86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,122,51,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 30px -6px rgba(255,122,51,.5);
  font-size: 12px; line-height: 1.35;
  opacity: 0; transform: translateY(-140%);
  animation: toast 7s var(--ease-out) infinite;
}
.toast svg { flex: none; width: 22px; height: 30px; }
.toast strong { display: block; font-size: 12px; color: var(--on-accent-soft); }
.toast span { color: #d7d2c9; }
@keyframes toast {
  0%, 58% { opacity: 0; transform: translateY(-140%); }
  64%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-140%); }
}
.heat-haze {
  position: absolute; z-index: 2; inset: 6% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,160,70,.18), transparent);
  filter: blur(20px);
  animation: haze 3s ease-in-out infinite alternate;
}
@keyframes haze { to { transform: scale(1.08) translateY(-12px); opacity: .7; } }

/* The rotary dial ring orbiting the phone. */
.dial-ring {
  position: absolute; z-index: 1; width: min(640px, 120vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255,122,51,.25);
  animation: spin 60s linear infinite;
}
.dial-ring span {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px;
  display: grid; place-items: center; border-radius: 50%;
  font: 500 18px/1 "Plex Mono", monospace; color: var(--on-accent-soft);
  background: rgba(28,27,25,.7); border: 1px solid rgba(255,122,51,.35);
  box-shadow: 0 0 20px -6px rgba(255,122,51,.6);
  transform: rotate(calc(var(--i) * 36deg)) translateY(calc(min(640px, 120vw) / -2)) rotate(calc(var(--i) * -36deg));
}
.dial-ring span:nth-child(1) { --i: 0 } .dial-ring span:nth-child(2) { --i: 1 } .dial-ring span:nth-child(3) { --i: 2 }
.dial-ring span:nth-child(4) { --i: 3 } .dial-ring span:nth-child(5) { --i: 4 } .dial-ring span:nth-child(6) { --i: 5 }
.dial-ring span:nth-child(7) { --i: 6 } .dial-ring span:nth-child(8) { --i: 7 } .dial-ring span:nth-child(9) { --i: 8 }
.dial-ring span:nth-child(10) { --i: 9 }
@keyframes spin { to { transform: rotate(360deg); } }
.dial-ring span { animation: counter 60s linear infinite; }
@keyframes counter { to { rotate: -360deg; } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--outline); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 110px; }
  .phone-stage { height: 640px; }
  .scroll-cue { display: none; }
}

/* --- marquee ------------------------------------------------------------ */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border);
  background: linear-gradient(90deg, var(--low), #160c07, var(--low));
  padding: 18px 0;
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: 500 20px/1 "Plex Mono", monospace; }
.marquee-track span { color: var(--tip); text-shadow: 0 0 18px rgba(255,160,70,.5); white-space: nowrap; }
.marquee-track b { color: var(--root); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- sections ------------------------------------------------------------ */
section { position: relative; padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 96px); }
.section-head { max-width: 840px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { color: #c9c4bb; font-size: 19px; margin: 22px auto 0; max-width: 40em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* --- big window ---------------------------------------------------------- */
.window {
  position: relative; max-width: 1240px; margin: 0 auto;
  border-radius: 18px; border: 1px solid var(--outline);
  background: var(--panel);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 1px #000, 0 30px 160px -40px rgba(255,122,51,.45);
}
.window::before {
  content: ""; position: absolute; inset: -2px; border-radius: 20px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--root), var(--accent), var(--tip), transparent 90%);
  animation: border-spin 6s linear infinite;
  filter: blur(6px); opacity: .7;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --angle: 360deg; } }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--card); border-radius: 18px 18px 0 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--raised); }
.window-bar .dot:nth-child(1) { background: var(--root); }
.window-bar .dot:nth-child(2) { background: var(--tip); }
.window-bar .dot:nth-child(3) { background: var(--success); }
.window-title { margin-left: 10px; font-size: 14px; color: var(--muted); }
.toggle { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 10px; background: var(--low); border: 1px solid var(--border); }
.toggle button {
  border: 0; border-radius: 7px; padding: 6px 12px; cursor: pointer;
  font: 600 13px/1 "Plex", sans-serif; color: var(--muted); background: transparent;
  transition: background .2s, color .2s;
}
.toggle button.on { background: var(--raised); color: var(--fg); }
.toggle .sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.theme-btn .sun { display: none; }
.light .theme-btn .sun { display: inline; }
.light .theme-btn .moon { display: none; }
.window-body { position: relative; overflow: hidden; border-radius: 0 0 18px 18px; }
.window-body img { width: 100%; transition: opacity .35s ease; }
.window-body img.swap { opacity: 0; }
.glint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,192,74,.12) 50%, transparent 60%);
  transform: translateX(-100%);
}
.window.in .glint { animation: glint 1.6s .4s var(--ease-out) forwards; }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callout {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font: 600 14px/1 "Plex", sans-serif;
  background: rgba(12,12,11,.92); border: 1px solid rgba(255,122,51,.5);
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 24px -8px rgba(255,122,51,.8);
  opacity: 0; transform: scale(.9);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.window.in .callout { opacity: 1; transform: none; }
.window.in .c2 { transition-delay: .25s; } .window.in .c3 { transition-delay: .5s; }
.c1 { left: -24px; top: 62%; }
.c2 { left: -36px; top: 70%; }
.c3 { left: -18px; top: 78%; }
@media (max-width: 1320px) { .c1, .c2, .c3 { left: 8px; } }
@media (max-width: 760px) { .callouts { display: none; } }
.mini-flame { width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(0deg, var(--root), var(--accent), var(--tip)); box-shadow: 0 0 10px var(--accent); animation: flicker .25s infinite alternate; }
.mini-timer { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--waiting); position: relative; }
.mini-timer::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--waiting); }
.mini-ember { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,51,.2); }
@keyframes flicker { to { transform: scaleY(1.15) skewX(4deg); filter: brightness(1.2); } }

/* --- oven cards --------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 26px; border-radius: 20px;
  background: linear-gradient(180deg, var(--card), var(--low));
  border: 1px solid var(--border);
  transition: border-color .3s, transform .4s var(--ease-out), box-shadow .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,122,51,.22), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: rgba(255,122,51,.5); transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(255,122,51,.4); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.cards .card:nth-child(2) { transition-delay: .06s; } .cards .card:nth-child(3) { transition-delay: .12s; }
.cards .card:nth-child(5) { transition-delay: .06s; } .cards .card:nth-child(6) { transition-delay: .12s; }

.fx {
  position: relative; height: 120px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: #0a0a09; border: 1px solid var(--border); overflow: hidden;
}
.fx-label { font: 600 16px/1 "Plex", sans-serif; color: var(--tip); }
.fx-label.amber { color: var(--waiting); }
.fx-flame svg { width: 30px; height: 40px; transform-origin: 50% 100%; animation: flame 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 12px rgba(255,122,51,.8)); }
@keyframes flame {
  0% { transform: scale(1, 1) skewX(0); }
  33% { transform: scale(.95, 1.08) skewX(-3deg); }
  66% { transform: scale(1.04, .94) skewX(3deg); }
  100% { transform: scale(.98, 1.1) skewX(-2deg); }
}
.fx-bake .dough {
  position: relative; padding: 10px 18px; border-radius: 16px; overflow: hidden;
  font-weight: 500; color: var(--on-accent-soft); background: var(--accent-soft);
  animation: bake 3.2s var(--ease-out) infinite;
}
.fx-bake .dough::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,192,74,.45) 50%, transparent 70%);
  animation: dough-glint 3.2s ease-in-out infinite;
}
@keyframes bake {
  0% { filter: saturate(.2) brightness(1.4); opacity: .55; transform: scale(.96); }
  45% { filter: saturate(.2) brightness(1.4); opacity: .55; transform: scale(.96); }
  55% { filter: none; opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255,122,51,.0), 0 0 30px rgba(255,160,70,.7); }
  65%, 100% { filter: none; opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
@keyframes dough-glint { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.fx-type { justify-content: flex-start; padding: 0 22px; font-size: 15px; }
.fx-type code { background: #1e1d1b; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.fx-type .typed {
  white-space: nowrap; overflow: hidden; width: 0;
  animation: type 4.5s steps(30, end) infinite, cool 4.5s linear infinite;
}
.fx-type .ember {
  width: 7px; height: 7px; border-radius: 50%; flex: none; margin-left: 2px;
  background: var(--core); box-shadow: 0 0 6px var(--tip), 0 0 14px var(--accent), 0 0 24px var(--root);
  animation: ember-life 4.5s linear infinite;
}
@keyframes type { 0% { width: 0; } 55%, 100% { width: 255px; } }
@keyframes cool {
  0%, 50% { color: var(--core); text-shadow: 0 0 10px rgba(255,160,70,.9), 0 0 2px var(--tip); }
  90%, 100% { color: var(--fg); text-shadow: none; }
}
@keyframes ember-life { 0%, 55% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(2.2); } 66%, 100% { opacity: 0; transform: scale(.5); } }
.fx-timer .timer {
  position: relative; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--waiting);
  box-shadow: 0 0 18px -2px rgba(242,193,78,.7);
  animation: rattle 2.6s ease-in-out infinite;
}
.fx-timer .timer i { position: absolute; inset: 5px; border-radius: 50%; background: var(--waiting); }
.fx-timer .timer::before, .fx-timer .timer::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--waiting);
  opacity: 0; animation: chime 2.6s ease-out infinite;
}
.fx-timer .timer::after { animation-delay: .25s; }
@keyframes rattle { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 78% { transform: rotate(14deg); } 82% { transform: rotate(-10deg); } 86% { transform: rotate(6deg); } }
@keyframes chime { 0%, 70% { opacity: 0; transform: scale(1); } 74% { opacity: .9; } 100% { opacity: 0; transform: scale(2.4); } }
.fx-embers { gap: 26px; }
.fx-embers i {
  width: 14px; height: 14px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) calc(var(--h) * 100%), var(--idle));
  box-shadow: 0 0 0 calc(var(--h) * 7px) color-mix(in oklab, rgba(255,122,51,.25) calc(var(--h) * 100%), transparent),
              0 0 calc(var(--h) * 22px) rgba(255,160,70, var(--h));
}
.fx-embers i:first-child { background: var(--core); }
.fx-embers i.done { width: 16px; height: 16px; background: var(--success); box-shadow: 0 0 0 6px rgba(92,201,138,.2); }
.fx-simmer { flex-direction: column; gap: 14px; }
.fx-simmer .line { position: relative; width: 78%; height: 2px; background: var(--outline); }
.fx-simmer .line i {
  position: absolute; bottom: 0; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--tip); opacity: 0;
  animation: bubble 2.4s ease-in infinite;
}
.fx-simmer .line i:nth-child(1) { left: 10%; } .fx-simmer .line i:nth-child(2) { left: 30%; animation-delay: .5s; }
.fx-simmer .line i:nth-child(3) { left: 50%; animation-delay: 1.1s; } .fx-simmer .line i:nth-child(4) { left: 70%; animation-delay: .3s; }
.fx-simmer .line i:nth-child(5) { left: 88%; animation-delay: 1.6s; }
@keyframes bubble { 0% { transform: translateY(4px) scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px) scale(1.2); opacity: 0; } }
.fx-simmer .fx-label { font-family: "Plex Mono", monospace; font-size: 14px; color: var(--muted); }

/* --- speed dial ------------------------------------------------------------ */
.dial { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1340px; margin: 0 auto; }
@media (max-width: 1000px) { .dial { grid-template-columns: 1fr; } }
.dial-copy p:not(.eyebrow) { color: #c9c4bb; font-size: 19px; margin: 22px 0 0; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li b { color: var(--fg); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,51,.18), 0 0 12px var(--accent);
}
.keypad-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 30px; }
.keypad { display: grid; grid-template-columns: repeat(3, 96px); gap: 14px; }
.key {
  position: relative; height: 96px; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--fg); background: radial-gradient(circle at 50% 30%, #2a2926, #151514);
  border: 1px solid var(--outline);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px -8px #000;
  transition: transform .15s, box-shadow .3s, border-color .3s;
  font-family: inherit;
}
.key b { font: 500 30px/1 "Plex", sans-serif; }
.key span { font: 400 10.5px/1.1 "Plex Mono", monospace; color: var(--muted); letter-spacing: .02em; max-width: 80px; text-align: center; }
.key:hover, .key.lit {
  border-color: var(--accent);
  box-shadow: inset 0 0 22px rgba(255,122,51,.35), 0 0 30px -4px rgba(255,122,51,.75);
}
.key:hover b, .key.lit b { color: var(--tip); text-shadow: 0 0 14px rgba(255,160,70,.8); }
.key:active, .key.pressed { transform: scale(.94); }
.k-dot { position: absolute; top: 14px; right: 18px; width: 8px; height: 8px; border-radius: 50%; }
.k-dot.run { background: var(--running); box-shadow: 0 0 8px var(--running); }
.k-dot.spin { border: 2px solid var(--running); border-right-color: transparent; animation: spin 1s linear infinite; }
.mini-phone {
  width: 240px; flex: none; padding: 9px; border-radius: 38px;
  background: linear-gradient(145deg, #3a3835, #121211 40%, #262522);
  box-shadow: 0 0 0 1px #4a4743 inset, 0 30px 60px -20px #000, 0 0 80px -20px rgba(255,122,51,.6);
  transform: rotate(4deg);
}
.mini-phone img { border-radius: 30px; }
@media (max-width: 640px) {
  .keypad-wrap { flex-direction: column; }
  .keypad { grid-template-columns: repeat(3, 80px); }
  .key { height: 80px; }
}

/* Spark burst from a pressed key. */
.spark {
  position: fixed; z-index: 60; width: 5px; height: 5px; border-radius: 50%; pointer-events: none;
  background: var(--core); box-shadow: 0 0 6px var(--tip), 0 0 12px var(--accent);
}

/* --- light/dark compare ---------------------------------------------------- */
.duo-compare {
  position: relative; max-width: 1240px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--outline);
  box-shadow: 0 40px 100px -30px #000, 0 0 120px -50px rgba(255,122,51,.6);
}
.duo-light { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.duo-light img { width: 100%; }
.duo-compare input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
}
.duo-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(var(--tip), var(--accent), var(--root));
  box-shadow: 0 0 18px var(--accent);
}
.duo-handle svg {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 58px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px rgba(255,122,51,.9));
  animation: flame 1.1s ease-in-out infinite alternate;
}

/* --- terminal ------------------------------------------------------------- */
.terminal {
  max-width: 820px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  background: #0e0e0d; border: 1px solid var(--outline);
  box-shadow: 0 30px 80px -30px #000, 0 0 90px -40px rgba(255,122,51,.6);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--border); font: 13px "Plex Mono", monospace; color: var(--muted); }
.terminal-bar .dot:nth-child(1) { background: var(--root); }
.terminal-bar .dot:nth-child(2) { background: var(--tip); }
.terminal-bar .dot:nth-child(3) { background: var(--success); }
.terminal-bar > span:not(.dot) { margin-left: 8px; }
.copy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 8px; cursor: pointer;
  font: 500 13px "Plex Mono", monospace; color: var(--fg);
  background: var(--raised); border: 1px solid var(--outline);
}
.copy:hover { border-color: var(--accent); }
.copy.copied { color: var(--accent); border-color: var(--accent); }
.terminal pre { margin: 0; padding: 24px 26px; font-size: 15px; line-height: 1.75; color: #e4e0d8; overflow-x: auto; }
.terminal .c { color: #77736b; }
.terminal .p { color: var(--accent); user-select: none; }
.terminal .o { color: var(--success); }
.start .cta { margin-top: 50px; }

/* --- footer --------------------------------------------------------------- */
.footer { position: relative; padding: 120px 20px 50px; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--border); }
.footer-fire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.footer .brand { justify-content: center; font-size: 26px; margin: 0 0 14px; }
.footer p { margin: 6px 0; color: #c9c4bb; font-size: 15px; }
.footer .muted { color: var(--muted); font-family: "Plex Mono", monospace; font-size: 13px; margin-top: 18px; }

/* --- reduced motion: hold still, show the end state ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .toast { opacity: 1; transform: none; }
  .fx-type .typed { width: auto; }
  .fx-type .ember { display: none; }
  .callout { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  .window-title, .window-bar .dot { display: none; }
  .toggle { margin-left: 0; }
}
