:root {
  --bg: #0c0b0a;
  --surface: #141210;
  --line: rgba(241, 236, 228, .09);
  --line-2: rgba(241, 236, 228, .16);
  --text: #f1ece4;
  --muted: #958c80;
  --amber: #e7b574;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 28px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s, backdrop-filter .4s; }
.nav.stuck { background: rgba(12, 11, 10, .72); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.brand img { filter: brightness(0) invert(94%) sepia(8%); }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav nav a { transition: color .25s; }
.nav nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--text); color: #12100e;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .4);
  transition: background .25s, transform .25s var(--ease), box-shadow .4s;
}
.btn:hover { background: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18), 0 8px 30px -8px rgba(231, 181, 116, .45); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(241, 236, 228, .06); box-shadow: inset 0 0 0 1px rgba(241, 236, 228, .28); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 8vw, 104px) 0 0; overflow: hidden; }
.hero-copy { max-width: 820px; margin: 0 auto; padding: 0 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.hero-copy > p:not(.fine) { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.fine { font-size: 13px; color: var(--muted); }

.stage { position: relative; max-width: 1240px; margin: clamp(48px, 5.5vw, 72px) auto 0; padding: 0 28px; perspective: 1800px; }
.window {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden; background: #0f0e0c;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 .5px rgba(255, 255, 255, .04) inset;
  transform-origin: 50% 0;
}
.win-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; height: 36px; padding: 0 14px; background: #171513; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.win-title { color: #bdb4a8; padding-left: 2px; }
.win-meta { justify-self: end; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; }
.viewport { aspect-ratio: 16 / 9; overflow: hidden; }
.viewport img { width: 100%; height: 100%; object-fit: cover; }
.transport { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; background: #171513; border-top: 1px solid var(--line); }
.tc { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; min-width: 92px; }
.tc.dim { color: var(--muted); text-align: right; }
.track { position: relative; flex: 1; height: 2px; background: #2b2723; border-radius: 2px; }
.key { position: absolute; top: 50%; width: 7px; height: 7px; background: #6d655b; transform: translate(-50%, -50%) rotate(45deg); }
.head { position: absolute; top: -9px; left: 0; width: 1.5px; height: 20px; background: var(--amber); box-shadow: 0 0 12px rgba(231, 181, 116, .8); animation: play 8s linear infinite; }
.spill { position: absolute; left: 10%; right: 10%; bottom: -12%; height: 60%; z-index: 0; background: radial-gradient(50% 50% at 50% 50%, rgba(231, 181, 116, .22), transparent 70%); filter: blur(40px); pointer-events: none; }

/* ---------- Sections ---------- */
.sec-head { max-width: 640px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; }
.sec-head p { font-size: 18px; color: var(--muted); }

.features, .editors { padding-top: clamp(120px, 15vw, 200px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 1px solid var(--line); }
.grid article { padding: 30px 32px 40px 0; border-bottom: 1px solid var(--line); }
.grid h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.grid p { color: var(--muted); font-size: 15px; max-width: 32ch; }


.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.col { padding: 36px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s; }
.col:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.col h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.col p { color: var(--muted); }
.col-new { background: linear-gradient(180deg, rgba(231, 181, 116, .08), rgba(231, 181, 116, 0) 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .3); }
.col-new:hover { box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .55); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #1a140c; background: var(--amber); padding: 3px 8px; border-radius: 6px; }

.download { margin-top: clamp(140px, 18vw, 240px); padding: clamp(100px, 12vw, 160px) 0; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, rgba(231, 181, 116, .09), transparent 70%); }
.download-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.dl-mark { width: 64px; height: 64px; filter: brightness(0) invert(94%) sepia(8%); margin-bottom: 8px; }
.download h2 { font-size: clamp(34px, 4.4vw, 56px); }
.download p { color: var(--muted); margin-bottom: 12px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Motion ---------- */
.js .in-1, .js .in-2, .js .in-3 { opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js.ready .in-1, .js.ready .in-2, .js.ready .in-3 { opacity: 1; transform: none; filter: none; }
.js.ready .in-2 { transition-delay: .32s; }
.js.ready .in-3 { transition-delay: .44s; }
.js.ready .cta-row.in-3 { transition-delay: .44s; }
.js.ready .fine.in-3 { transition-delay: .54s; }
.js .lift { opacity: 0; transform: translateY(40px) rotateX(18deg) scale(.96); transition: opacity 1.4s var(--ease) .55s, transform 1.9s var(--ease) .55s; }
.js.ready .lift { opacity: 1; transform: none; }
.js .spill { opacity: 0; transition: opacity 2.2s ease 1.2s; }
.js.ready .spill { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid .reveal:nth-child(3n) { transition-delay: .16s; }
@keyframes play { from { left: 0; } to { left: 100%; } }

/* =========================================================
   Polish: gradients, shadows, glints and interaction
   ========================================================= */

/* Atmosphere: warm light from above + film grain */
body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(231, 181, 116, .10), transparent 70%),
    radial-gradient(900px 600px at 100% 30%, rgba(120, 90, 60, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Headline lit from above */
h1:not(.title), .title .w, .sec-head h2, .download h2 {
  background: linear-gradient(180deg, #fffaf2 0%, #f1ece4 45%, #c9b69c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nav: pill hover */
.nav nav a { padding: 6px 10px; margin: -6px -10px; border-radius: 8px; transition: color .25s, background .25s; }
.nav nav a:hover { background: rgba(241, 236, 228, .06); }

/* Buttons: lit surface, cursor highlight, sheen sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.btn-ghost) {
  background: linear-gradient(180deg, #fffaf2 0%, #ece3d5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(120, 90, 60, .25),
    0 1px 2px rgba(0, 0, 0, .5),
    0 6px 20px -6px rgba(231, 181, 116, .35);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .55), transparent 60%);
}
.btn-ghost::before { background: radial-gradient(140px circle at var(--bx, 50%) var(--by, 50%), rgba(231, 181, 116, .18), transparent 60%); }
.btn:hover::before { opacity: 1; }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(241, 236, 228, .14), transparent); }
.btn:hover::after { animation: sheen .9s var(--ease); }
.btn:not(.btn-ghost):hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #fff, inset 0 -1px 0 rgba(120, 90, 60, .25),
    0 2px 4px rgba(0, 0, 0, .5), 0 14px 40px -8px rgba(231, 181, 116, .55);
}
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-ghost { background: linear-gradient(180deg, rgba(241, 236, 228, .06), rgba(241, 236, 228, .015)); }
@keyframes sheen { 0% { left: -60%; opacity: 0; } 20% { opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* Product window: gradient rim, deep shadow, glint, tilt, glare */
.lift { perspective: 1600px; }
.window {
  border: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .7),
    0 2px 4px rgba(0, 0, 0, .4),
    0 30px 60px -20px rgba(0, 0, 0, .8),
    0 80px 160px -40px rgba(60, 40, 20, .9);
}
.window.hover { transition: transform .15s linear, box-shadow .6s var(--ease); box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 2px 4px rgba(0, 0, 0, .4), 0 40px 80px -20px rgba(0, 0, 0, .85), 0 100px 180px -40px rgba(90, 60, 30, .9); }
.window::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 240, 220, .28), rgba(255, 240, 220, .06) 30%, rgba(255, 240, 220, .02) 70%, rgba(231, 181, 116, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.window::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 245, 230, .10), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.js.ready .window::after { animation: glint 2.2s var(--ease) 1.6s both; }
@keyframes glint { 0% { left: -40%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 236, 205, .14), transparent 55%);
  mix-blend-mode: screen;
}
.window.hover .glare { opacity: 1; }
.win-bar { background: linear-gradient(180deg, #1d1a17, #161411); }
.transport { background: linear-gradient(0deg, #1a1815, #151311); }
.spill { animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); opacity: .85; } to { transform: scale(1.08); opacity: 1; } }

/* Feature grid: light follows the cursor */
.grid article { position: relative; transition: background .4s; }
.grid article::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 181, 116, .09), transparent 60%);
}
.grid article:hover::before { opacity: 1; }
.grid h3 { transition: color .3s, transform .4s var(--ease); }
.grid article:hover h3 { color: #fff; transform: translateX(3px); }

/* Renderer cards: cursor spotlight, lit rim, lift */
.col { position: relative; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0, 0, 0, .8); }
.col::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(241, 236, 228, .07), transparent 60%);
}
.col::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(231, 181, 116, .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.col:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -24px rgba(0, 0, 0, .9); }
.col:hover::before, .col:hover::after { opacity: 1; }
.col-new { box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .3), 0 20px 50px -24px rgba(231, 181, 116, .25); }
.col-new:hover { box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .5), 0 30px 70px -24px rgba(231, 181, 116, .4); }
.tag { background: linear-gradient(180deg, #f3c98d, #d9a35e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 10px -2px rgba(231, 181, 116, .6); }

/* Download: glowing mark */
.dl-mark-wrap { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 24px;
  background: linear-gradient(180deg, #23201c, #141210);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .6), 0 20px 50px -10px rgba(231, 181, 116, .35);
  overflow: hidden; }
.dl-mark-wrap::after { content: ""; position: absolute; top: -50%; bottom: -50%; width: 40%; left: -60%; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 240, 220, .22), transparent); animation: mark-glint 5s ease-in-out 1s infinite; }
@keyframes mark-glint { 0%, 70% { left: -60%; } 100% { left: 140%; } }
.dl-mark { margin: 0; width: 52px; height: 52px; }
.download { position: relative; }
.download::before { content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(231, 181, 116, .5), transparent); }

/* ---------- Intro: projector flash, then the page assembles ---------- */
.flash { display: none; position: fixed; inset: 0; z-index: 300; pointer-events: none; background: var(--bg); overflow: hidden; }
.intro .flash { display: block; animation: flash-out 1.9s cubic-bezier(.6, 0, .2, 1) both; }
.flash i, .flash b { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); }
.flash i {
  width: 140vmax; height: 140vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 230, 1) 0%, rgba(255, 222, 170, .9) 14%, rgba(231, 181, 116, .6) 30%, rgba(150, 90, 40, .28) 52%, rgba(12, 11, 10, 0) 75%);
  animation: bloom 1.7s cubic-bezier(.2, .7, .1, 1) both;
}
.flash b {
  width: 160vw; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 205, .0) 10%, rgba(255, 240, 215, .95) 50%, rgba(255, 236, 205, 0) 90%, transparent);
  box-shadow: 0 0 40px 10px rgba(231, 181, 116, .45);
  animation: streak 1.3s cubic-bezier(.2, .7, .1, 1) .05s both;
}
@keyframes bloom {
  0% { transform: translate(-50%, -50%) scale(.02); opacity: 0; }
  18% { opacity: 1; }
  55% { opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
}
@keyframes streak {
  0% { transform: translate(-50%, -50%) scaleX(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scaleX(1); opacity: 0; }
}
@keyframes flash-out { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }

/* Nav and headline words */
.js .nav-in { opacity: 0; transform: translateY(-10px); transition: opacity 1s var(--ease) .1s, transform 1s var(--ease) .1s; }
.js.ready .nav-in { opacity: 1; transform: none; }
.title .w { display: inline-block; }
.js .title .w { opacity: 0; transform: translateY(.45em) scale(.98); filter: blur(12px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
.js.ready .title .w { opacity: 1; transform: none; filter: none; }
.js.ready .title .w:nth-child(1) { transition-delay: .02s; }
.js.ready .title .w:nth-child(2) { transition-delay: .09s; }
.js.ready .title .w:nth-child(3) { transition-delay: .16s; }
.js.ready .title .w:nth-child(4) { transition-delay: .26s; }
.js.ready .title .w:nth-child(5) { transition-delay: .33s; }
.js.ready .title .w:nth-child(6) { transition-delay: .40s; }
/* Warm light settles over the page after the flash */
.js body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 2.4s ease .3s;
  background: radial-gradient(900px 520px at 50% 0%, rgba(231, 181, 116, .14), transparent 70%); }
.js.ready body::before { opacity: 1; }

/* ---------- Workspace: the real editor ---------- */
.workspace { padding-top: clamp(120px, 15vw, 200px); }
.ui-stage { max-width: 1296px; margin: 0 auto; padding: 0 28px; perspective: 2200px; position: relative; }
.ui-stage::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 20%; bottom: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(231, 181, 116, .16), transparent 70%); filter: blur(50px);
}
.ui-shot {
  position: relative; z-index: 1; margin: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 240, 220, .06), 0 50px 120px -30px rgba(0, 0, 0, .95), 0 30px 60px -30px rgba(90, 60, 30, .6);
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p, 1)) * 14deg)) scale(calc(.94 + var(--p, 1) * .06));
  opacity: calc(.4 + var(--p, 1) * .6);
  will-change: transform;
}
.ui-shot img { width: 100%; }
.ui-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 245, 230, .07) 48%, transparent 60%);
  background-size: 250% 100%; background-position: calc(100% - var(--p, 1) * 100%) 0;
}
.ui-notes { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px 40px; }
.ui-notes li { padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.ui-notes b { font-weight: 500; font-size: 16px; }
.ui-notes span { color: var(--muted); font-size: 15px; }

/* ---------- Band: full-bleed still ---------- */
.band { position: relative; margin-top: clamp(140px, 17vw, 220px); height: clamp(460px, 82vh, 860px); overflow: hidden; isolation: isolate; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band img { object-fit: cover; object-position: 55% 40%; transform: translate3d(0, var(--y, 0), 0) scale(1.14); will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 11, 10, 0) 18%, rgba(12, 11, 10, 0) 55%, rgba(12, 11, 10, .75) 85%, var(--bg) 100%); }
.band-copy { position: absolute; left: 0; right: 0; bottom: clamp(40px, 6vw, 80px); z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.band-line { font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; max-width: 14ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.band-cap { font-size: 13px; color: rgba(241, 236, 228, .7); }

.rendering { padding-top: clamp(100px, 12vw, 160px); }

/* ---------- Effects statement ---------- */
.fx { padding-top: clamp(140px, 17vw, 220px); }
.fx-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 20px 64px; align-items: end; }
.fx-kicker { grid-column: 1 / -1; font-size: 14px; color: var(--amber); }
.fx-title {
  font-size: clamp(56px, 9vw, 136px); line-height: .9; letter-spacing: -.055em; font-weight: 500;
  background: linear-gradient(180deg, #fffaf2 0%, #f1ece4 40%, #b99f7e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fx-body { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 42ch; padding-bottom: .6em; }

/* ---------- Rendering: live engine switch ---------- */
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: 12px;
  background: linear-gradient(180deg, #171512, #12100e); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 2px rgba(0, 0, 0, .6); }
.seg { position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500;
  height: 36px; padding: 0 22px; border-radius: 9px; cursor: pointer; transition: color .35s; }
.seg[aria-pressed="true"] { color: #1a140c; }
.seg:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px;
  background: linear-gradient(180deg, #f6d29c, #dfa962); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 18px -4px rgba(231, 181, 116, .6);
  transform: translateX(100%); transition: transform .55s var(--ease), background .4s; }
.switch[data-active="legacy"] .seg-thumb { transform: translateX(0); background: linear-gradient(180deg, #f1ece4, #cfc6b8); box-shadow: inset 0 1px 0 #fff, 0 4px 14px -4px rgba(0, 0, 0, .6); }
.compare .col { transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease); }
.compare[data-active="modern"] [data-card="legacy"], .compare[data-active="legacy"] [data-card="modern"] { opacity: .45; filter: saturate(.6); }
.compare[data-active="legacy"] [data-card="legacy"] { box-shadow: inset 0 0 0 1px rgba(241, 236, 228, .4), 0 30px 60px -24px rgba(0, 0, 0, .9); }
.specs { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.specs li { display: flex; align-items: center; gap: 12px; }
.specs li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.col-new .specs li::before { background: var(--amber); box-shadow: 0 0 10px rgba(231, 181, 116, .8); }
.optional { margin-top: 22px; }

/* ---------- News ---------- */
.news { padding-top: clamp(140px, 17vw, 220px); }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.news-head h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1; }
.link-arrow { font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.link-arrow::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover::after { width: 26px; }

.post {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 440px;
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 120% at 100% 100%, rgba(231, 181, 116, .10), transparent 55%), linear-gradient(180deg, #171411, #110f0d);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, .9);
  transition: box-shadow .5s var(--ease), transform .6s var(--ease);
}
.post:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .35), 0 50px 110px -40px rgba(90, 60, 30, .8); }
.post::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 236, 205, .07), transparent 60%); }
.post:hover::before { opacity: 1; }
.post-link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.post-link:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.post-media { position: relative; overflow: hidden; grid-row: 1; grid-column: 1; margin-right: -30%; z-index: 0; }
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 45%; transform: scale(1.04); transition: transform 1.4s var(--ease), filter 1s var(--ease); }
.post:hover .post-media img { transform: scale(1.1); filter: none; }
.post-media { -webkit-mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.5) 60%, transparent 100%); mask-image: linear-gradient(90deg, #000 30%, rgba(0,0,0,.5) 60%, transparent 100%); }
.post-body { position: relative; z-index: 1; grid-row: 1; grid-column: 2; padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text);
  background: linear-gradient(180deg, rgba(231, 181, 116, .16), rgba(231, 181, 116, .06)); box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .35); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(231, 181, 116, .7); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231, 181, 116, .7); } 70% { box-shadow: 0 0 0 9px rgba(231, 181, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(231, 181, 116, 0); } }
.post-title {
  font-size: clamp(52px, 7.6vw, 120px); line-height: .9; letter-spacing: -.055em; font-weight: 500;
  background: linear-gradient(180deg, #fffaf2 0%, #f1ece4 45%, #c9ab83 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .8s var(--ease);
}
.post:hover .post-title { transform: translateX(6px); }

@media (max-width: 760px) {
  .post { grid-template-columns: 1fr; }
  .post-media { height: 260px; margin-right: 0; grid-row: 1; }
  .post-body { grid-row: 2; grid-column: 1; }
  .post-media { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
  .band { height: 70vh; }
  .ui-shot { transform: none; opacity: 1; }
  .nav nav { display: none; }
  .nav-in { justify-content: space-between; }
  .win-meta { display: none; }
  .tc.dim { display: none; }
  .grid article { padding-right: 0; }
  .col { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flash { display: none !important; }
  .js .in-1, .js .in-2, .js .in-3, .js .lift, .js .spill, .js .reveal, .js .nav-in, .js .title .w { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* =========================================================
   Accounts: sign-in, sign-up, account and download pages
   ========================================================= */
.auth-page { min-height: 100svh; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
.auth-art { position: relative; overflow: hidden; margin: 12px; border-radius: 20px; isolation: isolate; box-shadow: inset 0 0 0 1px var(--line); }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: art-in 2.4s var(--ease) both; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 10, 0) 45%, rgba(12, 11, 10, .85) 100%); }
.auth-quote { position: absolute; left: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 52px); z-index: 1; margin: 0;
  font-size: clamp(34px, 3.6vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 500;
  background: linear-gradient(180deg, #fffaf2, #d8c3a5); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp 1.2s .4s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: scale(1.14); filter: brightness(1.6) blur(8px); } to { opacity: 1; transform: scale(1.06); filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 96px 28px 56px; position: relative; }
.auth-brand { position: absolute; top: 26px; left: 32px; }
.auth-solo .auth-main { min-height: 100svh; background: radial-gradient(900px 520px at 50% 0%, rgba(231, 181, 116, .12), transparent 70%); }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; animation: fadeUp 1s .15s var(--ease) both; }
.auth-title { font-size: clamp(32px, 3vw, 40px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 10px;
  background: linear-gradient(180deg, #fffaf2, #d8c3a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-switch { margin-top: 26px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-switch a, .field-link, .legal a, .prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(241, 236, 228, .3); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.auth-switch a:hover, .field-link:hover, .legal a:hover, .prose a:hover { text-decoration-color: var(--amber); }

.btn-block { width: 100%; justify-content: center; height: 48px; }
.btn-google { width: 100%; justify-content: center; height: 48px; gap: 12px; color: var(--text) !important; background: linear-gradient(180deg, rgba(241, 236, 228, .07), rgba(241, 236, 228, .02)) !important;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .4) !important; }
.btn-google:hover { box-shadow: inset 0 0 0 1px rgba(241, 236, 228, .3), 0 8px 24px -10px rgba(0, 0, 0, .8) !important; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or[hidden] { display: none; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #cfc6b9; }
.field > span:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field em { font-style: normal; color: var(--muted); font-size: 13px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 0; outline: 0;
  font: inherit; font-size: 15px; color: var(--text);
  background: linear-gradient(180deg, #12100e, #161412);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 2px rgba(0, 0, 0, .5);
  transition: box-shadow .25s, background .25s;
}
.field input:hover { box-shadow: inset 0 0 0 1px rgba(241, 236, 228, .26), inset 0 1px 2px rgba(0, 0, 0, .5); }
.field input:focus { box-shadow: inset 0 0 0 1px var(--amber), 0 0 0 4px rgba(231, 181, 116, .15); }
.field-link { font-size: 13px; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.static { margin: 0; font-size: 15px; color: var(--text); }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s; }
.pw-toggle:hover { color: var(--text); background: rgba(241, 236, 228, .06); }
.pw-toggle[aria-pressed="true"] { color: var(--amber); }
.turnstile:empty { display: none; }
.legal { font-size: 13px; color: var(--muted); text-align: center; margin: 2px 0 0; }

.note { margin: 0; padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; animation: fadeUp .4s var(--ease) both; }
.note[hidden] { display: none; }
.note-error { color: #ffd5c8; background: rgba(217, 119, 95, .12); box-shadow: inset 0 0 0 1px rgba(217, 119, 95, .35); }
.note-ok { color: #f6e3c4; background: rgba(231, 181, 116, .1); box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .35); }
.btn.is-busy { pointer-events: none; opacity: .7; }
.btn.is-busy::after { animation: sheen 1s linear infinite !important; opacity: 1; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* App pages (account, download, privacy) */
.app-page .nav { position: sticky; }
.app { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 120px; }
.app-head { margin-bottom: 28px; }
.app-hello { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.app-title { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fffaf2, #d8c3a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.banner { margin-bottom: 20px; }
.muted { color: var(--muted); }
[data-account] main { opacity: 0; transition: opacity .6s var(--ease); }
[data-account].is-ready main { opacity: 1; }

.panel { position: relative; border-radius: 18px; padding: clamp(24px, 3vw, 36px); background: linear-gradient(180deg, #161411, #121010); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -36px rgba(0, 0, 0, .9); }
.panel h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 18px; }
.panel h3 { font-size: 16px; margin: 26px 0 14px; letter-spacing: -.01em; }
.panel[hidden] { display: none; }
.panel-verify { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(231, 181, 116, .14), transparent 60%), #151310; box-shadow: inset 0 0 0 1px rgba(231, 181, 116, .35); }
.panel-verify h2 { margin-bottom: 6px; }
.panel-verify p { color: #cfc6b9; max-width: 60ch; }
.inline-form { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.panel-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; overflow: hidden; isolation: isolate; }
.panel-download::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: url("/assets/hero-1280.webp") center 60% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.panel-download h2 { margin-bottom: 6px; }
.panel-download p { color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; align-items: start; }
.app-grid .btn { align-self: flex-start; }
.methods { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.methods li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.m-state { font-size: 13px; color: var(--amber); }
.m-off { color: var(--muted); }
.m-link { font-size: 13px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.panel-danger { box-shadow: inset 0 0 0 1px rgba(217, 119, 95, .25); }
.panel-danger details { margin-top: 16px; }
.panel-danger summary { cursor: pointer; color: #e9a796; font-size: 14px; }
.panel-danger summary:hover { color: #ffd5c8; }
.panel-danger form { margin-top: 16px; }
.btn-danger { background: linear-gradient(180deg, #d9775f, #b85a44) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 20px -8px rgba(217, 119, 95, .6) !important; }

.dl-hero { position: relative; border-radius: 22px; overflow: hidden; isolation: isolate; min-height: 460px; display: flex; align-items: flex-end; margin-bottom: 20px; box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -50px rgba(0, 0, 0, .9); }
.dl-hero-art, .dl-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.dl-hero-art img { object-fit: cover; object-position: 50% 55%; animation: art-in 2.4s var(--ease) both; }
.dl-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(12, 11, 10, .9) 0%, rgba(12, 11, 10, .55) 45%, rgba(12, 11, 10, .1) 100%); }
.dl-hero-copy { position: relative; z-index: 1; padding: clamp(28px, 4vw, 56px); max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.dl-hero-copy .muted { color: #cfc6b9; font-size: 17px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 6px; }
.req { margin: 0; border-top: 1px solid var(--line); }
.req div { display: grid; grid-template-columns: 12em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.02em; }
.prose p { color: #cfc6b9; margin: 0 0 14px; line-height: 1.65; }
.prose .app-title { margin-bottom: 14px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-main { min-height: 100svh; background: radial-gradient(700px 420px at 50% 0%, rgba(231, 181, 116, .12), transparent 70%); }
  .inline-form { align-items: flex-start; }
  .req div { grid-template-columns: 1fr; gap: 4px; }
}
