/* CookAlong website: colours mirror the TV app's dark theme (ui/theme/Theme.kt) */
:root {
  --bg: #14110F;
  --surface: #221C18;
  --raised: #2E2620;
  --chip: #3A3029;
  --text: #F5EDE3;
  --muted: #CDBFAF;
  --dim: #8F8173;
  --accent: #F2B04F;
  --accent-2: #FF8A3D;
  --accent-3: #FF9B71;
  --focus: #FFE2A8;
  --green: #6DAA45;
  --line: rgba(245, 237, 227, .08);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius: 22px;
  --pad: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; }
h2 { font-family: var(--serif); font-size: clamp(2.2rem, 5.2vw, 4.2rem); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--accent); }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
::selection { background: var(--accent); color: #1E1408; }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; will-change: transform; }
.b1 { width: 55vw; height: 55vw; background: radial-gradient(circle, #F2B04F 0%, transparent 65%); top: -18vw; right: -12vw; animation: drift 22s ease-in-out infinite; }
.b2 { width: 45vw; height: 45vw; background: radial-gradient(circle, #E2553F 0%, transparent 65%); bottom: -20vw; left: -14vw; opacity: .28; animation: drift 28s ease-in-out infinite reverse; }
.b3 { width: 30vw; height: 30vw; background: radial-gradient(circle, #9C4A12 0%, transparent 65%); top: 40%; left: 40%; opacity: .3; animation: drift 34s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6vw, 5vh) scale(1.12); }
  66% { transform: translate(4vw, -4vh) scale(.92); }
}
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .07; animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(242, 176, 79, .12), transparent 60%);
  transform: translate3d(-999px, -999px, 0); transition: opacity .3s;
}
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  border: 1px solid transparent; transition: background .4s, border-color .4s, backdrop-filter .4s, top .4s;
}
.nav.scrolled { background: rgba(20, 17, 15, .62); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); top: 10px; }
.logo { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); letter-spacing: -.01em; }
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(245, 237, 227, .07); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-accent { background: var(--accent); color: #1E1408; box-shadow: 0 10px 40px -10px rgba(242, 176, 79, .7); }
.btn-accent svg { fill: none; }
.btn-accent::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transition: transform .8s var(--ease);
}
.btn-accent:hover::after { transform: translateX(120%); }
.btn-accent:hover { box-shadow: 0 16px 60px -10px rgba(242, 176, 79, .9); }
.btn-ghost { background: rgba(245, 237, 227, .05); border-color: rgba(245, 237, 227, .16); color: var(--text); }
.btn-ghost:hover { background: rgba(245, 237, 227, .1); border-color: rgba(245, 237, 227, .3); }
.btn-ghost svg { fill: currentColor; stroke: none; width: 16px; }

/* ---------- shared ---------- */
section { position: relative; padding: clamp(80px, 12vw, 150px) var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242, 176, 79, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242, 176, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 176, 79, 0); } }
.section-head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 84px); text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding-top: 130px; max-width: 1400px; margin: 0 auto;
}
.hero-title { font-family: var(--serif); font-size: clamp(3rem, 5.6vw, 5.8rem); letter-spacing: -.02em; line-height: .98; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.loaded .hero-title .word { transform: none; opacity: 1; }
.shine {
  background: linear-gradient(100deg, var(--accent) 20%, #FFE2A8 40%, var(--accent-2) 60%, var(--accent) 80%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: shine 6s linear infinite; padding-right: .06em;
}
@keyframes shine { to { background-position: -250% 0; } }
.hero-sub { margin-top: 28px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-cta.center { justify-content: center; }
.hero-meta { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 28px; flex-wrap: wrap; color: var(--dim); font-size: .92rem; }
.hero-meta strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.hero-meta li + li { padding-left: 28px; border-left: 1px solid var(--line); }

.hero-visual { position: relative; perspective: 1400px; }
.tv { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #000; border: 10px solid #0b0908;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(242, 176, 79, .35);
}
.tv-screen video, .tv-screen img { width: 100%; height: 100%; object-fit: cover; }
.tv-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .12) 0%, transparent 35%); mix-blend-mode: screen; }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(#1b1715, #0b0908); border-radius: 0 0 14px 14px; box-shadow: 0 30px 60px -10px rgba(0, 0, 0, .8); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(34, 28, 24, .72); border: 1px solid rgba(245, 237, 227, .1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7);
  animation: bob 6s ease-in-out infinite; z-index: 2;
}
.float-card small { display: block; font-size: .7rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.float-card b { font-weight: 600; font-size: 1rem; }
.mono { font-variant-numeric: tabular-nums; }
.fc-timer { left: -6%; bottom: 8%; }
.fc-alexa { right: -4%; top: -6%; animation-delay: -2s; }
.fc-ready { right: 6%; bottom: -10%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.ring { position: relative; width: 44px; height: 44px; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--chip); stroke-width: 4; }
.ring .ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ring .ico { position: absolute; inset: 11px; width: 22px; height: 22px; transform: none; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.mic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #35C6F4, #1E88E5); }
.mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.bars { display: flex; gap: 3px; align-items: center; height: 22px; margin-left: 4px; }
.bars i { width: 3px; height: 100%; border-radius: 3px; background: #35C6F4; animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.3s; } .bars i:nth-child(3) { animation-delay: -.6s; } .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.check { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(245, 237, 227, .3); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- marquee ---------- */
.marquee-wrap { padding-left: 0; padding-right: 0; overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; animation: scroll 60s linear infinite; padding: 9px 0; }
.marquee.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.dish { position: relative; width: clamp(160px, 18vw, 240px); aspect-ratio: 1; border-radius: 20px; overflow: hidden; flex: none; transition: transform .5s var(--ease); }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(1.05); }
.dish::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(10, 8, 6, .85)); }
.dish span { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-weight: 600; font-size: .95rem; }
.dish:hover { transform: translateY(-6px) rotate(-1.5deg); }
.dish:hover img { transform: scale(1.1); }
.marquee-cap { text-align: center; color: var(--muted); max-width: 640px; margin: 40px auto 0; padding: 0 var(--pad); }
.marquee-wrap { -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(32px, 6vw, 96px); max-width: 1300px; margin: 0 auto; }
.how-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--ease); }
.how-step.active { opacity: 1; }
.how-step .num { font-family: var(--serif); font-size: 4.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; }
.how-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 16px; }
.how-step p { color: var(--muted); font-size: 1.08rem; max-width: 440px; }
.how-step .shot-m { display: none; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.tags li { font-size: .8rem; padding: 6px 14px; border-radius: 999px; background: var(--chip); color: var(--focus); }
.how-stage { position: relative; }
.how-stage { margin-top: 30vh; }
.stage-sticky { position: sticky; top: 50vh; transform: translateY(-50%); margin-bottom: 30vh; }
.tv-flat .tv-screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); filter: blur(6px); transition: opacity .8s var(--ease), transform 1.2s var(--ease), filter .8s; }
.tv-flat .tv-screen img.active { opacity: 1; transform: none; filter: none; }
.stage-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--chip); transition: width .5s var(--ease), background .5s; }
.stage-dots i.on { width: 34px; background: var(--accent); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(46, 38, 32, .75), rgba(34, 28, 24, .75));
  border: 1px solid var(--line); isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(242, 176, 79, .3); }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 176, 79, .16), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.c-wide { grid-column: span 2; }
.c-wide:first-child { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; padding: 22px; }
.card-media { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -20px #000; }
.card-media img { transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.chip { display: inline-block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.icon-tile { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(242, 176, 79, .25), rgba(255, 138, 61, .08)); border: 1px solid rgba(242, 176, 79, .25); }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swap { display: flex; gap: 10px; align-items: center; margin-top: 20px; font-size: .88rem; }
.swap span { padding: 6px 12px; border-radius: 10px; background: var(--chip); }
.swap i { font-style: normal; color: var(--accent); font-weight: 700; }
.mini-timers { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.mini-timers span { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--chip); }
.mini-timers b { color: var(--accent); font-variant-numeric: tabular-nums; }
.c-guard { display: flex; align-items: center; gap: 30px; }
.shield { flex: none; width: 120px; }
.shield svg { width: 100%; fill: rgba(109, 170, 69, .12); stroke: var(--green); stroke-width: 3; }
.shield .tick { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.2s var(--ease) .4s; }
.c-guard.in .tick { stroke-dashoffset: 0; }

/* ---------- interactive cooking demo ---------- */
.cook {
  max-width: 1100px; margin: 0 auto; padding: clamp(20px, 3.5vw, 44px); border-radius: 28px; outline: none;
  background: radial-gradient(120% 120% at 50% 0%, #2a211b, #14110F 70%);
  border: 1px solid var(--line); box-shadow: 0 60px 140px -50px rgba(0, 0, 0, .9);
}
.cook:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.cook-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cook-title { color: var(--muted); font-weight: 500; }
.cook-count { font-weight: 600; font-size: 1.2rem; }
.cook-bars { display: flex; gap: 8px; margin: 16px 0 22px; }
.cook-bars i { flex: 1; height: 7px; border-radius: 7px; background: var(--chip); overflow: hidden; position: relative; }
.cook-bars i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--accent); transition: transform .6s var(--ease); }
.cook-bars i.done::after { transform: scaleX(1); }
.cook-bars i.now::after { transform: scaleX(1); background: linear-gradient(90deg, var(--accent), #FFF5E6); }
.cook-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 330px; padding: 30px 12px; border-radius: 24px;
  background: rgba(30, 25, 21, .9); border: 3px solid var(--accent);
  box-shadow: 0 0 60px -10px rgba(242, 176, 79, .45), inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.cook-inner { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cook-inner.swap-in { animation: stepIn .55s var(--ease); }
.cook-inner.swap-back { animation: stepBack .55s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-40px); } }
.cook-emoji { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: var(--raised); animation: bob 3s ease-in-out infinite; }
.cook-text { font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 2.1rem); line-height: 1.3; max-width: 820px; }
.cook-ings { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cook-ings span { padding: 7px 16px; border-radius: 999px; background: var(--raised); font-size: .92rem; font-weight: 500; }
.cook-timer-hint { background: none; border: 0; color: var(--accent); font: 600 .98rem var(--sans); cursor: pointer; padding: 6px 12px; border-radius: 10px; }
.cook-timer-hint:hover { background: rgba(242, 176, 79, .1); }
.cook-arrow { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 2.6rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.cook-arrow:hover { background: var(--raised); transform: scale(1.08); }
.cook-arrow:disabled { opacity: .2; cursor: default; transform: none; background: none; }
.cook-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.cook-timers { display: contents; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; background: var(--raised); font-weight: 500; font-size: .95rem; }
.pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill.timer b { font-variant-numeric: tabular-nums; color: var(--accent); }
.pill.timer { animation: pop .5s var(--ease); }
.pill.timer.ding { background: var(--accent); color: #1E1408; animation: ding .6s ease-in-out 3; }
.pill.timer.ding b { color: #1E1408; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes ding { 50% { transform: scale(1.1) rotate(-2deg); } }

/* ---------- voice ---------- */
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; max-width: 1240px; margin: 0 auto; }
.voice-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 22px; font-size: 1.06rem; }
.voice-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.voice-list li { position: relative; padding-left: 30px; }
.voice-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #35C6F4; }
.voice-stage { position: relative; min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 30px; }
.echo { position: relative; width: 150px; height: 150px; margin: 0 auto 10px; }
.echo-ring { position: absolute; inset: 0; border-radius: 50%; background: #0d0b0a; box-shadow: inset 0 -10px 30px rgba(0, 0, 0, .8), 0 30px 60px -20px #000; }
.echo-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 6px solid transparent; background: conic-gradient(from 0deg, #35C6F4, #1E88E5, #35C6F4, #7ee3ff, #35C6F4) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .25; transition: opacity .4s; animation: spin 3s linear infinite; }
.echo.listening .echo-ring::after { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.echo-wave { position: absolute; inset: 0; }
.echo-wave i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #35C6F4; opacity: 0; }
.echo.listening .echo-wave i { animation: ripple 2.4s ease-out infinite; }
.echo-wave i:nth-child(2) { animation-delay: .8s !important; } .echo-wave i:nth-child(3) { animation-delay: 1.6s !important; }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(2.1); opacity: 0; } }
.bubble { max-width: 86%; padding: 16px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-height: 78px; transition: opacity .4s, transform .4s var(--ease); }
.bubble small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.bubble p { font-size: 1.08rem; font-weight: 500; }
.bubble.you { align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.you p { color: #9be6ff; }
.bubble.tv { align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(135deg, rgba(242, 176, 79, .16), rgba(34, 28, 24, .9)); }
.caret::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; max-width: 1240px; margin: 0 auto; padding-top: 40px; padding-bottom: 40px; }
.stat { text-align: center; padding: 30px 10px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1; background: linear-gradient(180deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* ---------- architecture ---------- */
.arch { position: relative; max-width: 1100px; height: 300px; margin: 0 auto; }
.arch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-lines path { fill: none; stroke: rgba(242, 176, 79, .5); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.node {
  position: absolute; transform: translate(-50%, -50%); width: 150px; padding: 16px 12px; text-align: center;
  border-radius: 18px; background: rgba(34, 28, 24, .92); border: 1px solid rgba(242, 176, 79, .25);
  box-shadow: 0 20px 40px -20px #000; transition: transform .4s var(--ease), border-color .3s;
}
.node:hover { transform: translate(-50%, -50%) scale(1.06); border-color: var(--accent); }
.node span { display: block; font-size: 1.6rem; line-height: 1.2; font-weight: 700; color: var(--accent); }
.node b { display: block; font-size: .95rem; margin-top: 4px; }
.node small { display: block; color: var(--dim); font-size: .74rem; line-height: 1.35; margin-top: 2px; }
.n1 { left: 6%; top: 50%; } .n2 { left: 38%; top: 23.3%; } .n3 { left: 38%; top: 76.6%; } .n4 { left: 68%; top: 50%; } .n5 { left: 94%; top: 50%; }
.n5 { border-color: var(--accent); box-shadow: 0 0 50px -10px rgba(242, 176, 79, .5); }
.stack { list-style: none; padding: 0; margin: 64px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stack li { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(245, 237, 227, .03); font-size: .9rem; color: var(--muted); transition: color .2s, border-color .2s, transform .3s var(--ease); }
.stack li:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); }

/* ---------- CTA ---------- */
.cta-card {
  position: relative; max-width: 1000px; margin: 0 auto; text-align: center; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px); border-radius: 36px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(242, 176, 79, .22), transparent 60%), var(--surface);
  border: 1px solid rgba(242, 176, 79, .25);
}
.cta-card h2 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.cta-card > p { color: var(--muted); margin: 20px auto 0; max-width: 560px; }
.code { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; padding: 8px 8px 8px 20px; border-radius: 14px; background: #0d0b0a; border: 1px solid var(--line); max-width: 100%; }
.code code { font: 500 .95rem ui-monospace, "Cascadia Code", Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt { color: var(--accent); font-family: ui-monospace, monospace; }
.copy { border: 0; border-radius: 10px; padding: 8px 14px; background: var(--chip); color: var(--text); font: 600 .82rem var(--sans); cursor: pointer; transition: background .2s; }
.copy:hover { background: var(--accent); color: #1E1408; }

/* ---------- footer ---------- */
.footer { padding: 60px var(--pad) 40px; border-top: 1px solid var(--line); max-width: 1240px; margin: 40px auto 0; color: var(--dim); font-size: .9rem; }
.foot-top { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-top p { max-width: 520px; }
.credits { margin-top: 30px; }
.credits summary { cursor: pointer; color: var(--muted); }
.credits ul { columns: 2; gap: 30px; padding-left: 18px; font-size: .8rem; margin-top: 12px; }
.credits a { text-decoration: underline; text-decoration-color: rgba(245, 237, 227, .25); }
.credits p { margin-top: 10px; font-size: .82rem; }
.fine { margin-top: 30px; font-size: .78rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { max-width: 720px; margin: 20px auto 40px; width: 100%; }
  .scroll-hint { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-wide:first-child { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 22px; background: rgba(20, 17, 15, .95); border: 1px solid var(--line); backdrop-filter: blur(18px); }
  .nav.open .nav-links { display: flex; }
  .nav > .btn { margin-left: auto; }
  .menu-btn { display: grid; gap: 5px; place-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(245, 237, 227, .05); cursor: pointer; }
  .menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .how-grid { grid-template-columns: 1fr; }
  .how-stage { display: none; }
  .how-step { min-height: 0; opacity: 1; padding: 34px 0; border-top: 1px solid var(--line); }
  .how-step .shot-m { display: block; margin-top: 24px; border-radius: 14px; border: 6px solid #0b0908; box-shadow: 0 30px 60px -30px #000; }
  .arch { height: auto; display: grid; gap: 14px; }
  .arch-lines { display: none; }
  .node { position: static; transform: none; width: auto; display: grid; grid-template-columns: 44px 1fr; text-align: left; align-items: center; column-gap: 12px; }
  .node span { grid-row: span 2; text-align: center; }
  .node b { margin: 0; }
  .node:hover { transform: scale(1.02); }
  .node + .node { position: relative; }
  .node + .node::before { content: ""; position: absolute; left: 34px; top: -15px; height: 14px; border-left: 2px dashed rgba(242, 176, 79, .5); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding-left: 16px; }
  .nav > .btn { display: none; }
  .menu-btn { margin-left: auto; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-meta li + li { padding-left: 0; border-left: 0; }
  .hero-meta { gap: 16px 22px; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .float-card b { font-size: .82rem; }
  .ring, .ring svg { width: 34px; height: 34px; } .ring .ico { inset: 8px; width: 18px; height: 18px; }
  .mic, .check { width: 32px; height: 32px; }
  .fc-timer { left: -2%; bottom: -12%; } .fc-alexa { right: -2%; top: -14%; } .fc-ready { display: none; }
  .tv-screen { border-width: 6px; border-radius: 12px; }
  .bento { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; }
  .c-guard { flex-direction: column-reverse; align-items: flex-start; }
  .shield { width: 80px; }
  .cook-card { min-height: 300px; padding: 20px 4px; }
  .cook-arrow { width: 38px; height: 38px; font-size: 2rem; }
  .cook-emoji { width: 60px; height: 60px; font-size: 1.7rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat::before { display: none; }
  .stat:last-child { grid-column: span 2; }
  .voice-stage { padding: 10px 0; min-height: 400px; }
  .bubble { max-width: 94%; }
  .credits ul { columns: 1; }
  .code code { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal, .hero-title .word { opacity: 1; transform: none; }
}


/* ---------- film ---------- */
.film { padding: 40px 6vw 120px; }
.film-frame { position: relative; max-width: 1100px; margin: 0 auto; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(242, 176, 79, .25); background: #0c0a09; box-shadow: 0 60px 120px -50px rgba(242, 176, 79, .45); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-play { position: absolute; inset: 0; margin: auto; width: 110px; height: 110px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #1E1408; display: grid; place-items: center; box-shadow: 0 20px 60px -10px rgba(242, 176, 79, .7);
  transition: transform .4s var(--ease), opacity .3s; }
.film-play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 6px; }
.film-play:hover { transform: scale(1.08); }
.film-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(242, 176, 79, .6); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.film-chips { position: absolute; right: 2.2%; bottom: 1.8%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; transition: opacity .3s; }
.film-chips span { padding: 6px 14px; border-radius: 99px; font-size: .8rem; line-height: 1.2; background: rgba(20, 17, 15, .8); border: 1px solid rgba(242, 176, 79, .35); backdrop-filter: blur(6px); }
.film-frame.playing .film-play, .film-frame.playing .film-chips { opacity: 0; pointer-events: none; }
.film-frame:not(.playing) video::-webkit-media-controls { display: none !important; }

/* ---------- read aloud ---------- */
.speak { padding: 120px 6vw; }
.speak-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.speak-copy h2 { margin: 14px 0 18px; }
.speak-copy > p { color: var(--muted); line-height: 1.7; }
.speak-card { position: relative; border-radius: 26px; padding: 30px; background: rgba(34, 28, 24, .9);
  border: 1px solid rgba(242, 176, 79, .25); box-shadow: 0 40px 80px -40px #000; transition: border-color .4s; }
.speak-card[data-mode="offline"] { border-color: rgba(205, 191, 175, .25); }
.speak-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.speak-switch button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 .9rem var(--sans, Poppins, sans-serif); padding: 9px 22px; cursor: pointer; transition: color .3s; }
.speak-switch button[aria-checked="true"] { color: #1E1408; }
.speak-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--accent); transition: transform .45s var(--ease), background .3s; }
.speak-card[data-mode="offline"] .speak-thumb { transform: translateX(100%); background: #CDBFAF; }
.speak-now { margin: 26px 0 22px; }
.speak-engine { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.speak-engine::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.speak-card[data-mode="offline"] .speak-engine { color: #CDBFAF; }
.speak-line { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.35; margin: 12px 0 0; }
.speak-play { display: inline-flex; align-items: center; gap: 14px; border: 0; cursor: pointer; padding: 14px 24px 14px 18px; border-radius: 99px;
  background: var(--accent); color: #1E1408; font: 600 1rem var(--sans, Poppins, sans-serif); transition: transform .3s var(--ease); }
.speak-play:hover { transform: translateY(-2px); }
.speak-card[data-mode="offline"] .speak-play { background: #F5EDE3; }
.speak-bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.speak-bars i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; transition: height .2s; }
.speak-card.speaking .speak-bars i { animation: eq .9s ease-in-out infinite; }
.speak-card.speaking .speak-bars i:nth-child(2n) { animation-delay: -.3s; } .speak-card.speaking .speak-bars i:nth-child(3n) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 22px; } }
.speak-note { margin: 14px 0 0; color: var(--dim); font-size: .85rem; }

.modes { max-width: 1100px; margin: 80px auto 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(20, 17, 15, .6); }
.modes-head, .mode-row { display: grid; grid-template-columns: 180px 1fr 1fr; }
.modes-head > *, .mode-row > * { padding: 16px 22px; margin: 0; }
.modes-head b { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.modes-head .on { color: var(--accent); } .modes-head .off { color: #CDBFAF; }
.mode-row { border-top: 1px solid var(--line); transition: background .3s; }
.mode-row:hover { background: rgba(242, 176, 79, .05); }
.mode-row span { font-weight: 600; }
.mode-row p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mode-row p:last-child { border-left: 1px dashed var(--line); }

/* ---------- architecture v2: AWS icons ---------- */
.arch2 { height: 600px; }
.arch2 .node { width: 190px; padding: 14px 12px 12px; }
.arch2 .node img, .arch2 .node .glyph { display: block; width: 46px; height: 46px; margin: 0 auto 6px; border-radius: 10px; }
.arch2 .node .glyph { display: grid; place-items: center; background: rgba(242, 176, 79, .12); border: 1px solid rgba(242, 176, 79, .5); }
.arch2 .node .glyph svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arch2 .node.hl { border-color: var(--accent); box-shadow: 0 0 50px -12px rgba(242, 176, 79, .55); }
.a1 { left: 9%; top: 16%; } .a2 { left: 9%; top: 50%; } .a3 { left: 9%; top: 84%; } .a4 { left: 44%; top: 50%; }
.a5 { left: 86%; top: 12.5%; } .a6 { left: 86%; top: 37.5%; } .a7 { left: 86%; top: 62.5%; } .a8 { left: 86%; top: 87.5%; }

@media (max-width: 860px) {
  .speak-grid { grid-template-columns: 1fr; gap: 36px; }
  .modes-head { display: none; }
  .mode-row { grid-template-columns: 1fr; }
  .mode-row > * { padding: 6px 18px; }
  .mode-row span { padding-top: 16px; }
  .mode-row p:first-of-type::before { content: "Online · "; color: var(--accent); font-weight: 600; }
  .mode-row p:last-child { border-left: 0; padding-bottom: 16px; }
  .mode-row p:last-child::before { content: "Offline · "; color: #CDBFAF; font-weight: 600; }
  .arch2 { height: auto; }
  .arch2 .node { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; text-align: left; }
  .arch2 .node img, .arch2 .node .glyph { grid-row: span 2; margin: 0; }
  .film-play { width: 76px; height: 76px; }
  .film-play svg { width: 28px; height: 28px; }
  .film-chips { display: none; }
}

.voice-note { margin-top: 18px; color: var(--dim); font-size: .92rem; line-height: 1.6; }
.voice-note a, .foot-top a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(242, 176, 79, .4); }
.voice-note a:hover, .foot-top a:hover { border-bottom-color: var(--accent); }
