/* White first: neutral greys carry the page, the Relay pink (#EF3184 → #EF46DB) is kept for
   the primary action, live states and small highlights. --brand is the pink deepened to read on white.
   Light is the default; data-theme="dark" on <html> when the visitor chose dark. */
:root {
  --bg: #fbfbfc;
  --bg-soft: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #17151c;
  --muted: #5d5a66;
  --faint: #9a97a3;
  --brand: #d81e73;
  --fill: #d81e73;
  --fill-strong: #be1663;
  --magenta: #c42cb8;
  --blush: #e7e5ec;
  --mist: #f4f3f7;
  --border: #ebeaef;
  --border-strong: #dddbe3;
  --accent: linear-gradient(100deg, #e8287c 0%, #e53aa6 50%, #d23acb 100%);
  --glow-a: rgba(140, 130, 190, .07);
  --glow-b: rgba(239, 49, 132, .035);
  --grid-line: rgba(23, 21, 28, .035);
  --shadow-sm: 0 1px 2px rgba(23, 21, 28, .04), 0 4px 14px rgba(23, 21, 28, .035);
  --shadow: 0 2px 6px rgba(23, 21, 28, .04), 0 24px 60px -16px rgba(23, 21, 28, .14);
  --shadow-brand: 0 10px 26px -10px rgba(216, 30, 115, .55);
  --overlay: rgba(23, 21, 28, .38);
  --nav-bg: rgba(251, 251, 252, .8);
  --video-bg: #f1f0f4;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111014;
  --bg-soft: #16151a;
  --surface: #1b1a20;
  --surface-2: #23222a;
  --ink: #f4f3f7;
  --muted: #b3b0bd;
  --faint: #7d7a87;
  --brand: #ff6faa;
  --fill: #d81e73;
  --fill-strong: #e5307f;
  --magenta: #f06be4;
  --blush: #34323d;
  --mist: #25242c;
  --border: #2a2931;
  --border-strong: #3a3843;
  --accent: linear-gradient(100deg, #ff7ab4 0%, #f77fd8 55%, #ffa8d0 100%);
  --glow-a: rgba(140, 130, 190, .08);
  --glow-b: rgba(239, 49, 132, .04);
  --grid-line: rgba(255, 255, 255, .035);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 24px 60px -12px rgba(0, 0, 0, .6);
  --shadow-brand: 0 10px 30px -8px rgba(216, 30, 115, .6);
  --overlay: rgba(5, 5, 8, .7);
  --nav-bg: rgba(17, 16, 20, .8);
  --video-bg: #0c0b0e;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--blush); color: var(--ink); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* Soft light behind the hero, fading into white */
.atmosphere { position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); animation: drift 22s ease-in-out infinite alternate; }
.g1 { width: 760px; height: 520px; left: 50%; top: -260px; margin-left: -520px; background: var(--glow-a); }
.g2 { width: 620px; height: 480px; left: 50%; top: -120px; margin-left: 40px; background: var(--glow-b); animation-delay: -9s; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%); }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.1); } }

/* The clipped background must reach past the glyph box: stacked marks (ữ, ễ) rise above it and the horn of ư, ơ sticks out to the right. */
.accent { padding: .14em .12em .14em 0; margin-right: -.12em; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .2em; color: var(--brand); }

/* Nav: transparent at the top, frosted once the page scrolls */
.nav { position: sticky; top: 0; z-index: 20; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.nav.scrolled { background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(42, 31, 45, .08), 0 4px 12px -4px rgba(239, 49, 132, .5); transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.nav nav { display: flex; gap: 4px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav nav a { padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s; }
.nav nav a:hover { color: var(--ink); background: var(--mist); }

.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .25s var(--ease), border-color .15s; }
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; overflow: hidden; border-radius: 14px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: var(--fill); box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--fill-strong); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-100%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-small { height: 40px; padding: 0 18px; border-radius: 11px; font-size: 14.5px; }
.btn-light { color: #17151c; background: #fff; box-shadow: 0 10px 30px -8px rgba(90, 10, 50, .5); }
.btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero: centred copy, with four cards around it showing what happens during a meeting */
.hero { position: relative; padding: 116px 0 72px; text-align: center; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 500; color: var(--muted); transition: border-color .2s, color .2s; }
.pill:hover { border-color: var(--brand); color: var(--ink); }
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; transition: transform .2s; }
.pill:hover svg { transform: translateX(3px); }
.pill-tag { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: var(--fill); }
.hero h1 { margin: 28px 0 22px; font-size: clamp(34px, 5.2vw, 68px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.lead { max-width: 600px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.fine b { color: var(--brand); font-weight: 600; }
.fine a { color: var(--brand); }

.hero-cards { position: absolute; inset: 0; left: 50%; width: min(1440px, 100vw); transform: translateX(-50%); pointer-events: none; }
.hf { position: absolute; width: 256px; padding: 14px 16px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; font-size: 13.5px; line-height: 1.45; animation: hf-float 7s ease-in-out infinite; }
.hf-step { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.hf-step i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; font-style: normal; font-size: 11px; color: var(--brand); background: var(--mist); }
.hf-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 12px; }
.hf-head b { font-weight: 600; }
.hf-app { margin-left: auto; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; color: #2d6cdf; background: rgba(45, 108, 223, .09); }
.hf-text { color: var(--ink); }
.hf-vi { font-weight: 600; color: var(--ink); }
.hf-speak { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 11px 5px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: #fff; background: #17151c; }
:root[data-theme="dark"] .hf-speak { background: var(--fill); }
.hf-speak .demo-wave { height: 12px; margin: 0; gap: 2px; }
.hf-speak .demo-wave b { width: 2px; background: #fff; }
.hf small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.hf-dub { border-color: rgba(216, 30, 115, .35); box-shadow: var(--shadow), 0 0 0 4px rgba(216, 30, 115, .06); }
.hf-yt { color: #d4251c; background: rgba(212, 37, 28, .08); }
.hf-voice { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; }
.hf-voice + .hf-voice { border-top: 1px solid var(--border); }
.hf-voice b { font-weight: 600; }
.hf-voice > span:last-child { margin-left: auto; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--ink); background: var(--mist); }
.hf-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-langs span { padding: 3px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border-strong); }
.hf-langs-sm { margin-top: 10px; }
.hf-langs-sm span { padding: 1px 7px; font-size: 11px; }
.hf-head .hf-app + .hf-app { margin-left: 0; }
.hf-row-task { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.hf-to { margin-top: 8px; font-size: 13px; color: var(--muted); }
.hf-to b { color: var(--brand); }
.hf-row { display: flex; gap: 9px; align-items: flex-start; }
.hf-row b { font-weight: 600; }
.hf-row em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.hf-hear { left: 40px; top: 16px; rotate: -3deg; }
.hf-dub { right: 40px; top: 36px; rotate: 2.5deg; animation-delay: -2s; }
.hf-sum { left: 96px; top: 372px; rotate: 2deg; animation-delay: -4s; }
.hf-task { right: 110px; top: 420px; rotate: -2deg; animation-delay: -5.5s; }
@keyframes hf-float { 50% { translate: 0 -8px; } }

/* Product shot under the hero */
.hero-demo { max-width: 980px; margin: 0 auto; }

/* Hero demo: a meeting being summarised, driven by app.js */
.demo { position: relative; text-align: left; }
.demo-window { position: relative; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.demo-bar > i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.demo-live { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--mist); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(216, 30, 115, .5); } 50% { box-shadow: 0 0 0 6px rgba(216, 30, 115, 0); } }
.demo-wave { display: flex; align-items: center; gap: 3px; height: 20px; margin-left: auto; }
.demo-wave b, .art-wave b { width: 3px; height: 100%; border-radius: 3px; background: var(--brand); opacity: .75; transform-origin: center; animation: wave 1.1s ease-in-out infinite; }
.demo-wave b:nth-child(2n), .art-wave b:nth-child(2n) { animation-delay: -.35s; }
.demo-wave b:nth-child(3n), .art-wave b:nth-child(3n) { animation-delay: -.7s; }
.demo-wave b:nth-child(5n), .art-wave b:nth-child(5n) { animation-delay: -.2s; animation-duration: .9s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.demo-body { display: grid; grid-template-columns: 1.1fr 1fr; height: 404px; overflow: hidden; }
.demo-pane { padding: 18px; }
.demo-summary { border-left: 1px solid var(--border); background: var(--bg-soft); }
.demo-label { margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--faint); }
.demo-lines, .demo-points { display: grid; gap: 10px; align-content: start; }
.line { font-size: 13px; line-height: 1.5; animation: in-up .5s var(--ease) both; }
.line-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; font-size: 11.5px; color: var(--faint); }
.line-head b { font-weight: 600; color: var(--ink); }
.who { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; }
.line-text { color: var(--ink); }
.line-text.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink .8s steps(2) infinite; }
.line-vi { margin-top: 2px; color: var(--brand); font-size: 12.5px; animation: fade .5s .2s both; }
@keyframes blink { 50% { opacity: 0; } }
.point { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 12.5px; line-height: 1.5; animation: in-pop .55s var(--ease) both; }
.point small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.point.task { display: flex; gap: 9px; align-items: flex-start; }
.check { display: grid; place-items: center; flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 5px; background: var(--fill); }
.check svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .4s .25s ease-out forwards; }
.task em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.demo.fading .demo-lines, .demo.fading .demo-points { opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes in-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes in-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }

.demo-float { position: absolute; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; line-height: 1.35; animation: float 6s ease-in-out infinite; }
.demo-float small { font-weight: 500; color: var(--muted); }
.demo-float b { font-size: 18px; color: var(--brand); }
.demo-float-a { left: -28px; bottom: -46px; }
.demo-float-b { right: -22px; top: -18px; display: flex; align-items: center; gap: 8px; animation-delay: -3s; }
.demo-float-b svg { width: 18px; height: 18px; padding: 3px; border-radius: 6px; background: var(--fill); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Platforms and languages, scrolling */
.marquee { padding: 24px 0 8px; text-align: center; }
.marquee p { font-size: 13px; font-weight: 500; color: var(--faint); }
.marquee-track { margin-top: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 12px; width: max-content; list-style: none; animation: marquee 40s linear infinite; }
.marquee-track:hover ul { animation-play-state: paused; }
.marquee li { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* Sections */
.section { padding-top: 120px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section h2 { margin-top: 12px; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.section-lead { max-width: 580px; margin: 14px auto 0; color: var(--muted); font-size: 17px; }

.video-section { padding-top: 96px; }
.video-frame { max-width: 1000px; margin: 0 auto; padding: 8px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; border-radius: 19px; background: var(--video-bg); }

/* Features: bento grid */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-wide { grid-column: span 2; }
.card h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.card p { color: var(--muted); font-size: 15px; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 13px; color: var(--brand); background: var(--mist); border: 1px solid var(--blush); transition: transform .35s var(--ease); }
.card:hover .icon { transform: rotate(-6deg) scale(1.06); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-new ~ h3 { padding-right: 60px; }
.card-new { position: absolute; top: 22px; right: 22px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--mist); border: 1px solid var(--blush); }

.card-art { display: flex; align-items: center; gap: 24px; height: 120px; margin-bottom: 22px; padding: 0 22px; border-radius: 14px; background: linear-gradient(120deg, var(--mist), var(--bg-soft)); border: 1px solid var(--border); }
.art-wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.art-wave b { width: 4px; }
.art-lines { display: grid; flex: 1; gap: 10px; }
.art-lines i { display: block; height: 10px; border-radius: 6px; background: var(--blush); transform-origin: left; animation: grow 3.6s var(--ease) infinite; }
.art-lines i:nth-child(1) { width: 92%; background: var(--brand); opacity: .85; }
.art-lines i:nth-child(2) { width: 74%; animation-delay: .25s; }
.art-lines i:nth-child(3) { width: 52%; animation-delay: .5s; }
.art-dub { gap: 16px; }
.art-bubble { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.4; }
.art-bubble small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--faint); }
.art-vi { font-weight: 600; }
.art-vi small { color: var(--brand); }
.art-dub .art-wave { flex: none; height: 36px; }
@keyframes grow { 0% { transform: scaleX(0); } 35%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.card-ai { background: var(--surface); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.kinds li { padding: 6px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; background: var(--surface); border: 1px solid var(--border-strong); transition: transform .25s var(--ease), border-color .2s, color .2s; }
.kinds li:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.steps li::before { content: '0' counter(step); display: block; margin-bottom: 18px; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--blush); border-right: 2px solid var(--blush); transform: rotate(45deg); }
.steps b { display: block; margin-bottom: 6px; font-size: 17.5px; font-weight: 700; }
.steps span { color: var(--muted); font-size: 15px; }
.steps a { color: var(--brand); font-weight: 500; }

/* macOS install */
.install-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.install-grid .video-frame { margin: 0; }
.install-steps { display: grid; gap: 12px; padding-left: 0; list-style: none; counter-reset: install; color: var(--muted); font-size: 15px; text-align: left; }
.install-steps li { position: relative; padding-left: 40px; counter-increment: install; }
.install-steps li::before { content: counter(install); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--mist); border: 1px solid var(--blush); }
.install-steps b { color: var(--ink); font-weight: 600; }

/* Pricing (plans after the free one come from app.js) */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 22px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-align: center; transition: transform .35s var(--ease), box-shadow .35s; animation: in-up .6s var(--ease) both; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.highlight { border: 1.5px solid var(--brand); background: var(--surface); box-shadow: 0 24px 50px -20px rgba(216, 30, 115, .3); }
.plan h3 { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .tag { position: absolute; top: -13px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: var(--fill); box-shadow: var(--shadow-brand); white-space: nowrap; }
.plan s { margin-top: 6px; font-size: 14px; color: var(--faint); }
.price { margin-top: 4px; font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.plan-hours { font-size: 16px; font-weight: 600; }
.plan-hours em { font-style: normal; color: var(--brand); }
.plan-note { font-size: 13.5px; color: var(--muted); }
.plan .ends { margin-top: 4px; font-size: 12px; color: var(--brand); }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { position: relative; padding: 22px 48px 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; transition: color .15s; }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317151C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); }
.faq details[open] p { animation: in-up .35s var(--ease) both; }
.faq a { color: var(--brand); font-weight: 500; }

/* Final call to action on a dark panel; the logo carries the colour, its three planes folding in on the white tile */
.final { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 72px 24px; border-radius: 32px; text-align: center; color: #fff; background: radial-gradient(90% 70% at 50% 0%, rgba(239, 49, 132, .22), transparent 70%), #17151c; box-shadow: 0 40px 90px -30px rgba(23, 21, 28, .45); }
.final::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); }
.final > * { position: relative; }
.final h2 { color: #fff; }
.final .section-lead { color: rgba(255, 255, 255, .78); }
.final .cta-row { justify-content: center; }
.fold { width: 120px; height: 120px; margin-bottom: 28px; overflow: visible; filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45)); }
.fold-tile { fill: #fff; }
.face-left { fill: url(#fold-left); }
.face-fold { fill: url(#fold-fold); }
.face-right { fill: url(#fold-right); }
.js .final .face { opacity: 0; }
.js .final.in .face-left { animation: face-left .8s var(--ease) .1s both; }
.js .final.in .face-fold { animation: face-fold .8s var(--ease) .35s both; transform-origin: 195px 312px; }
.js .final.in .face-right { animation: face-right .8s var(--ease) .6s both; }
.js .final.in .fold { animation: float 6s ease-in-out 1.6s infinite; }
@keyframes face-left { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes face-fold { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes face-right { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; max-width: 1200px; margin: 96px auto 0; padding: 28px 24px 44px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.footer .brand { margin-right: auto; font-size: 16px; color: var(--ink); }
.footer .mark { width: 24px; height: 24px; border-radius: 6px; }
.footer a:hover { color: var(--brand); }

/* Scroll reveal: hidden only when JS runs, so content never goes missing */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Download guide, shown while the installer downloads */
.guide { width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 36px 32px 28px; border-radius: 26px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 40px 120px rgba(42, 31, 45, .25); text-align: center; overflow-y: auto; }
.guide::backdrop { background: var(--overlay); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.guide[open] { animation: rise .4s var(--ease); }
.guide h2 { margin-top: 14px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.guide .section-lead { margin-top: 8px; font-size: 16px; }
.guide video { width: 100%; aspect-ratio: 16 / 9; margin-top: 22px; border-radius: 16px; background: var(--video-bg); }
.guide .install-steps { max-width: 720px; margin: 22px auto 0; }
.guide .fine a { text-decoration: underline; text-underline-offset: 3px; }
.guide-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s; }
.guide-close:hover { background: var(--mist); }
.guide-done { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; border-radius: 16px; background: var(--fill); box-shadow: var(--shadow-brand); }
.guide-done svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* Payment result and 404 pages */
.result { display: grid; place-items: center; min-height: calc(100vh - 80px); padding: 24px; }
.result-card { width: min(460px, 100%); padding: 44px 32px; text-align: center; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: rise .5s var(--ease); }
.result-card .mark-badge { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 20px; font-size: 30px; font-weight: 700; color: #fff; background: var(--fill); box-shadow: var(--shadow-brand); }
.result-card.cancel .mark-badge { color: var(--brand); background: var(--mist); box-shadow: none; border: 1px solid var(--blush); }
.result-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.result-card p { margin-top: 12px; color: var(--muted); }
.result-card .order { margin-top: 18px; font-size: 13px; }
.result-card .order a { color: var(--brand); }
.result-card .btn { margin-top: 12px; }

@media (max-width: 1365px) {
  .hf-hear { left: 16px; }
  .hf-dub { right: 16px; }
  .hf-sum { left: 24px; }
  .hf-task { right: 24px; }
}
@media (max-width: 1179px) {
  .hf-sum, .hf-task { display: none; }
}
@media (max-width: 960px) {
  .hero-cards { display: none; }
  .hero { padding: 56px 0 56px; }
  .demo-float-a { left: -12px; }
  .demo-float-b { right: -8px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-inner { gap: 10px; padding: 12px 16px; }
  .nav nav { display: none; }
  .nav .theme-toggle { margin-left: auto; }
  main { padding: 0 16px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 31px; }
  .hero h1 .nowrap { white-space: normal; }
  .hero h1 br { display: none; }
  .btn:not(.btn-small) { width: 100%; }
  .demo-body { grid-template-columns: 1fr; height: auto; }
  .demo-summary { border-left: 0; border-top: 1px solid var(--border); }
  .demo-lines { min-height: 210px; }
  .demo-points { min-height: 190px; }
  .demo-float { display: none; }
  .bento, .steps { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card-art { gap: 16px; padding: 0 16px; }
  .steps li:not(:last-child)::after { display: none; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 36px; }
  .final { padding: 56px 20px; border-radius: 26px; }
  .footer { padding: 24px 16px 36px; }
  .guide { padding: 28px 16px 20px; }
  .faq summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .final .face { opacity: 1; }
}
@media (max-width: 720px) { .art-dub .art-wave { display: none; } .art-dub { height: auto; padding: 14px; } }
