/* =========================================================================
   Quadessa — site styles
   Concept: "room". The page moves from cramped to spacious; four quadrant
   colours (D1–D4) are the only accents, used sparingly.
   ========================================================================= */

:root {
  --bg: #08090c;
  --bg-2: #0c0e13;
  --surface: #111419;
  --surface-2: #171b22;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f2f3f5;
  --text-2: #a4abb8;
  --text-3: #6c7380;

  --d1: #5b8cff;
  --d2: #2dd4bf;
  --d3: #a78bfa;
  --d4: #fb7185;

  --ok: #34d399;
  --err: #f87171;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--d1); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Platform-aware copy */
[data-platform="windows"] .only-mac,
[data-platform="linux"] .only-mac,
[data-platform="mac"] .only-win { display: none !important; }
/* Inside the live demo, the hints follow the demo's Windows/macOS switch instead. */
#try[data-demo-os="mac"] .only-mac, #try[data-demo-os="windows"] .only-win { display: revert !important; }
#try[data-demo-os="mac"] .only-win, #try[data-demo-os="windows"] .only-mac { display: none !important; }

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.3;
  padding: 0.12em 0.5em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--text);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16); }

.muted-inline { color: inherit; opacity: 0.55; font-weight: 500; margin-left: 4px; }

/* ---------------- Buttons ---------------- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--h);
  padding: 0 18px;
  /* softly rounded, never a pill: the corner tracks the button's height */
  border-radius: calc(var(--h) * 0.24);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-light { background: var(--text); color: #0a0b0e; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px -12px rgba(255, 255, 255, 0.35); }
.btn-light:hover { background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -12px rgba(255, 255, 255, 0.5); }
.btn-glass { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-btn { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.text-link:hover { color: var(--text); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 22px; flex: none; color: var(--text); }
/* The colored mark: one tile per desktop, same palette as the favicon and the demo. */
.brand-mark rect { opacity: 1; }
.brand-mark rect:nth-child(1) { fill: var(--d1); }
.brand-mark rect:nth-child(2) { fill: var(--d2); }
.brand-mark rect:nth-child(3) { fill: var(--d3); }
.brand-mark rect:nth-child(4) { fill: var(--d4); }
.nav-links .menu-only { display: none; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease-out); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .hide-sm { display: none; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(8, 9, 12, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.25s var(--ease-out);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links .menu-only { display: block; }
}
@media (max-width: 480px) { .nav-signin { display: none; } }

/* ---------------- Referral banner ---------------- */
.ref-bar { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(91, 140, 255, 0.14), rgba(167, 139, 250, 0.12) 50%, rgba(251, 113, 133, 0.12)); }
.ref-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding-block: 8px; font-size: 14.5px; color: var(--text); text-align: center; }
.ref-bar-inner strong { font-weight: 700; }
.ref-gift { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: var(--d4); }
.ref-gift svg { width: 16px; height: 16px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 96px 0 32px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* four faint quadrant glows */
  content: "";
  position: absolute; inset: -120px 0 -200px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(91, 140, 255, 0.16), transparent 70%),
    radial-gradient(35% 45% at 72% 26%, rgba(45, 212, 191, 0.10), transparent 70%),
    radial-gradient(35% 45% at 28% 80%, rgba(167, 139, 250, 0.10), transparent 70%),
    radial-gradient(35% 45% at 74% 78%, rgba(251, 113, 133, 0.09), transparent 70%);
  pointer-events: none;
}
/* Copy beside the playing film on wide screens; stacked below 1024px. */
.hero-grid {
  max-width: 1600px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.hero h1 {
  margin-top: 20px;
  /* tracks the copy column, so "Your screen just got" stays on one line at every width */
  font-size: clamp(40px, 4vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--d1) 0%, var(--d3) 38%, var(--d4) 70%, #fdba74 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 640px) {
  .hero { padding-top: 72px; }
  .hero h1 br { display: none; }
  .hero h1 em { display: block; }
}
.lede { margin-top: 22px; max-width: 34em; font-size: clamp(16px, 1.25vw, 20px); color: var(--text-2); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero .cta-row { justify-content: flex-start; }
.hero-meta { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 24px; margin-top: 24px; font-size: 14px; color: var(--text-3); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 14px; height: 14px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.alt-dl { margin-top: 12px; font-size: 13.5px; color: var(--text-3); min-height: 1.6em; }
.alt-dl a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.alt-dl a:hover { color: var(--text); }

.hero-film {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000 url("assets/hero-film-poster.jpg") center / cover;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(91, 140, 255, 0.08);
  animation-delay: 0.18s;
}
.hero-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-film-ctl {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.film-ctl {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px;
  background: rgba(10, 11, 14, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: 600 13.5px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.film-ctl:hover { background: rgba(10, 11, 14, 0.8); border-color: rgba(255, 255, 255, 0.38); }
.film-ctl:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.65); }
.film-ctl .ic { width: 16px; height: 16px; }
.film-ctl-icon { width: 38px; padding: 0; justify-content: center; }
.film-ctl[aria-pressed="false"] [data-wave] { opacity: 0.3; }

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero h1 { font-size: clamp(40px, 8vw, 76px); }
  .lede { max-width: 640px; }
  .hero .cta-row { justify-content: center; }
  .hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .hero-film { width: 100%; max-width: 880px; justify-self: center; }
}
@media (max-width: 640px) {
  /* phones: the film sits right under the headline, so it's on the first screen */
  .hero-grid { gap: 0; justify-items: center; text-align: center; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 1; }
  .hero-copy > h1 { order: 2; }
  .hero-film { order: 3; margin-top: 24px; border-radius: 14px; }
  .hero-copy > .lede { order: 4; }
  .hero-copy > .cta-row { order: 5; }
  .hero-copy > .hero-meta { order: 6; }
  .hero-copy > .alt-dl { order: 7; }
  .hero-film-ctl { left: 10px; right: 10px; bottom: 10px; }
}

.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease-out) forwards; }
.hero-copy .reveal:nth-child(2) { animation-delay: 0.06s; }
.hero-copy .reveal:nth-child(3) { animation-delay: 0.14s; }
.hero-copy .reveal:nth-child(4) { animation-delay: 0.22s; }
.hero-copy .reveal:nth-child(5) { animation-delay: 0.3s; }
.hero-copy .reveal:nth-child(6) { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------- Section heads ---------------- */
section { scroll-margin-top: 72px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { margin-top: 14px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); font-size: 18px; }

/* ---------------- Demo section ---------------- */
.demo-section { padding: 110px 0 80px; }
.demo-section .section-head { margin-bottom: 40px; }
.demo-bar {
  scroll-margin-top: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto 18px;
}
.demo-bar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s; }
.seg-btn svg { width: 16px; height: 16px; }
.seg-btn[aria-checked="true"] { background: var(--text); color: #0a0b0e; }
.seg-btn:not([aria-checked="true"]):hover { color: var(--text); }
.desk-pills { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.pill { height: 38px; min-width: 44px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: var(--text-2); font-family: var(--font-mono); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.pill:hover { color: var(--text); }
.pill[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.pill-wide { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 14px; padding: 0 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); height: 48px; }
.pill-wide svg { width: 16px; height: 16px; }
.pill-wide[aria-pressed="true"] { background: var(--text); color: #0a0b0e; }

/* The demo holds still for a moment as the page scrolls, so it can't be skimmed past.
   app.js turns this on only when the bar, monitor and hints fit under the nav. */
.demo-pin.is-pinned .demo-stick { position: sticky; top: var(--pin-top, 72px); }
.demo-pin.is-pinned .demo-hold { height: 55vh; }

.demo-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; font-size: 13.5px; color: var(--text-3); }
.demo-hints em { font-style: normal; opacity: 0.7; }
.demo-hints .touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .demo-hints span { display: none; }
  .demo-hints .touch-only { display: inline; }
}
.demo-hints kbd { font-size: 12px; }

/* Monitor */
.device { max-width: min(1120px, calc((100vh - 336px) * 16 / 9)); min-width: min(100%, 640px); margin: 0 auto; }
.device-frame {
  position: relative;
  padding: 12px;
  border-radius: 22px;
  background: #0b0c0e;
  border: 1px solid #24272d;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.4s, background 0.4s, padding 0.4s;
}
.device[data-os="mac"] .device-frame { background: #050506; border: 2px solid #b9bcc2; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), inset 0 0 0 1px #6b6e74; padding: 14px; }
.device-stand { display: flex; flex-direction: column; align-items: center; }
.device-stand .neck { width: 15%; height: 54px; background: linear-gradient(180deg, #16181c, #23262b); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.device-stand .foot { width: 30%; height: 12px; border-radius: 4px 4px 10px 10px; background: linear-gradient(180deg, #2a2d33, #15171a); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.9); }
.device[data-os="mac"] .device-stand .neck { width: 18%; height: 70px; background: linear-gradient(90deg, #9da0a6, #d9dbdf 45%, #a7aab0); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.device[data-os="mac"] .device-stand .foot { width: 26%; height: 9px; background: linear-gradient(180deg, #d7d9dd, #8e9197); }

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.device[data-os="mac"] .screen { border-radius: 5px; }
.screen:focus-visible { outline: 2px solid var(--d1); outline-offset: 4px; }
.screen.ctrl-held, .screen.ctrl-held * { cursor: grab !important; }
.screen.panning, .screen.panning * { cursor: grabbing !important; }

@media (max-width: 640px) {
  .demo-section { padding-top: 88px; }
  .device-frame { padding: 6px; border-radius: 12px; }
  .device[data-os="mac"] .device-frame { padding: 7px; }
  .device-stand .neck { height: 28px; }
  .device[data-os="mac"] .device-stand .neck { height: 34px; }
  .demo-bar { justify-content: center; }
  .seg-btn { padding: 0 12px; }
  .pill { min-width: 38px; padding: 0 8px; }
  .pill-wide { padding: 0 12px; }
}

/* ---------------- How it works ---------------- */
.moves { padding: 110px 0; }
.moves-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.move { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.move-n { margin-top: 22px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--c); }
.move h3 { margin-top: 6px; font-size: 26px; }
.move p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.move-vis { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #0b0d12; border: 1px solid var(--line); overflow: hidden; }
.mv-grid { position: absolute; inset: 9%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.mv-grid i { border-radius: 6px; background: rgba(255, 255, 255, 0.035); border: 1px dashed rgba(255, 255, 255, 0.1); position: relative; }
.mv-grid i::before, .mv-grid i::after { content: ""; position: absolute; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.mv-grid i::before { left: 10%; top: 14%; width: 44%; height: 40%; }
.mv-grid i::after { left: 40%; top: 40%; width: 46%; height: 42%; background: rgba(255, 255, 255, 0.06); }
.mv-grid i:nth-child(1)::before { background: rgba(91, 140, 255, 0.45); }
.mv-grid i:nth-child(2)::before { background: rgba(45, 212, 191, 0.4); }
.mv-grid i:nth-child(3)::before { background: rgba(167, 139, 250, 0.45); }
.mv-grid i:nth-child(4)::before { background: rgba(251, 113, 133, 0.4); }
.mv-cam { position: absolute; left: 9%; top: 9%; width: calc(41% - 3px); height: calc(41% - 3px); border: 2px solid #fff; border-radius: 7px; box-shadow: 0 0 24px rgba(255, 255, 255, 0.15); }
.mv-pan { animation: mvpan 6s var(--ease-out) infinite; }
.mv-jump { animation: mvjump 6s steps(1) infinite; }
.mv-zoom { animation: mvzoom 5s ease-in-out infinite; }
@keyframes mvpan { 0%, 12% { transform: translate(0, 0); } 40%, 55% { transform: translate(103%, 22%); } 82%, 100% { transform: translate(0, 0); } }
@keyframes mvjump { 0% { transform: translate(0, 0); } 25% { transform: translate(103.5%, 0); } 50% { transform: translate(103.5%, 103.5%); } 75% { transform: translate(0, 103.5%); } }
@keyframes mvzoom { 0%, 15% { transform: none; } 45%, 70% { left: 5%; top: 5%; width: 90%; height: 90%; } 100% { transform: none; } }
.mv-still { opacity: 0.55; }
.mv-target { position: absolute; left: calc(50% + 3px); top: calc(50% + 3px); right: 9%; bottom: 9%; border-radius: 6px; border: 2px solid var(--d4); background: rgba(251, 113, 133, 0.16); opacity: 0; animation: mvtarget 5s ease infinite; }
.mv-win { position: absolute; left: 13%; top: 16%; width: 19%; height: 19%; border-radius: 4px; background: #e9edf5; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); animation: mvdrag 5s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.mv-win::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26%; border-radius: 4px 4px 0 0; background: var(--d1); }
.mv-win b { position: absolute; left: 46%; top: 2%; width: 14px; height: 18px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 27'%3E%3Cpath d='M2 1.5v21.2l5.3-5.1 3.4 7.7 3.6-1.6-3.3-7.5h7.3z' fill='%23fff' stroke='%23111' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@keyframes mvdrag {
  0%, 14% { transform: translate(0, 0) scale(1); opacity: 1; }
  20% { transform: translate(0, -6%) scale(1.1); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.5); }
  56% { transform: translate(262%, 248%) scale(1.1); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.5); }
  64%, 88% { transform: translate(262%, 248%) scale(1); opacity: 1; }
  96% { transform: translate(262%, 248%) scale(1); opacity: 0; }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}
@keyframes mvtarget { 0%, 40% { opacity: 0; } 48%, 62% { opacity: 1; } 76%, 100% { opacity: 0; } }
@media (max-width: 1100px) { .moves-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .moves-grid { grid-template-columns: 1fr; } }

/* ---------------- Features bento ---------------- */
.features { padding: 40px 0 110px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { grid-column: span 3; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 22px; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.card-ic { width: 26px; height: 26px; margin-bottom: 22px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.card-hero {
  grid-column: span 8;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(91, 140, 255, 0.14), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(167, 139, 250, 0.1), transparent 60%),
    var(--surface);
}
.card-hero h3 { font-size: clamp(28px, 3.2vw, 40px); max-width: 520px; }
.card-hero p { max-width: 600px; font-size: 16.5px; }
.card-hero p strong { color: var(--text); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.stats dt { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.stats dd { margin: 8px 0 0; color: var(--text-3); font-size: 14px; }
.card-themes { grid-column: span 4; display: flex; flex-direction: column; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: auto; padding-top: 22px; }
.swatch { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; background: linear-gradient(135deg, var(--b) 0 50%, var(--a) 50% 100%); transition: transform 0.2s var(--ease-out), box-shadow 0.2s; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.swatch-name { margin-top: 12px !important; font-size: 13.5px !important; color: var(--text-3) !important; }
/* Full-width feature (1.4 Spaces): copy on the left, a small mock of the minimap's Spaces bar on the right */
.card-wide { grid-column: span 12; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.card-wide .card-copy { max-width: 620px; }
.card-wide h3 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 12px; }
.new-tag { display: inline-flex; height: 24px; align-items: center; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--d2); background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.3); }
.spaces-mock { flex: none; width: 300px; padding: 12px; border-radius: 14px; background: #0d1117; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.sm-bar { display: flex; gap: 6px; margin-bottom: 10px; font: 600 12px/1 var(--font-body); }
.sm-bar span { padding: 7px 10px; border-radius: 7px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); }
.sm-bar span.on { color: #0a0b0e; background: var(--d1); }
.sm-bar span.plus { margin-left: auto; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; aspect-ratio: 16 / 9; }
.sm-grid i { border-radius: 5px; background: color-mix(in srgb, var(--c) 30%, #141922); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card-themes { grid-column: span 1; }
  .card-hero, .card-wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card-hero, .card-themes, .card-wide { grid-column: span 1; }
  .card-wide { flex-direction: column; align-items: stretch; gap: 24px; }
  .spaces-mock { width: 100%; }
  .stats dt { font-size: 34px; }
}

/* ---------------- Pricing ---------------- */
.pricing { padding: 40px 0 110px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 22px; padding: 30px 28px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.price header { min-height: 152px; }
.price h3 { font-size: 19px; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; color: var(--text-2); }
.amount { margin-top: 14px !important; display: flex; align-items: baseline; gap: 10px; }
.amount strong { font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.amount span { color: var(--text-3); font-size: 15px; }
.amount .per { display: inline-flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.amount .was { color: var(--text-3); font-size: 15px; font-weight: 600; text-decoration-thickness: 1.5px; }
.intro-note { margin-top: 10px !important; display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(45, 212, 191, 0.1); color: var(--d2); font-size: 13px; font-weight: 600; }
.intro-off .amount .was, .intro-off .intro-note, .intro-off .only-intro, .intro-on .only-regular { display: none !important; }
.price-sub { margin-top: 12px !important; color: var(--text-2); font-size: 15px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.price li { position: relative; padding-left: 26px; }
.price li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f3f5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); opacity: 0.8; }
.price li strong { color: var(--text); font-weight: 600; }
.price-featured { background: linear-gradient(180deg, #1a1f2b, var(--surface) 70%); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 30px 80px -30px rgba(91, 140, 255, 0.35); }
.price-featured h3 { color: var(--text); }
.ribbon { position: absolute; top: 28px; right: 26px; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--text); }
.price-foot { margin-top: 28px !important; text-align: center; color: var(--text-3); font-size: 14.5px; }
@media (max-width: 920px) {
  .price-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price header { min-height: 0; }
}

/* ---------------- Download (inside Pricing) ---------------- */
.get { margin-top: 72px; scroll-margin-top: 88px; }
.get-head { text-align: center; margin-bottom: 28px; }
.get-head h3 { font-size: clamp(24px, 2.6vw, 32px); }
.get-head p { margin-top: 8px; color: var(--text-3); font-size: 15px; }
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dl { display: grid; grid-template-rows: auto 1fr auto auto; gap: 20px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.dl.is-yours { border-color: rgba(255, 255, 255, 0.24); background: linear-gradient(180deg, #181c26, var(--surface)); }
.dl-head { display: flex; gap: 14px; align-items: center; }
.dl-os { width: 34px; height: 34px; flex: none; }
.dl-head h3 { font-size: 20px; }
.dl-head p { margin-top: 3px; color: var(--text-3); font-size: 14px; }
.dl-facts { list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 14.5px; }
.dl-facts li::before { content: "·"; margin-right: 8px; color: var(--text-3); }
.sha summary { cursor: pointer; font-size: 13px; color: var(--text-3); list-style: none; }
.sha summary::-webkit-details-marker { display: none; }
.sha summary::before { content: "+ "; font-family: var(--font-mono); }
.sha[open] summary::before { content: "– "; }
.sha code { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); word-break: break-all; line-height: 1.5; }
/* Optional mailing-list card after a download starts */
.optin { position: fixed; z-index: 90; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 32px)); padding: 20px; border-radius: 14px; background: #12151c; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); transform: translateY(16px); opacity: 0; transition: transform 0.25s var(--ease-out), opacity 0.25s; }
.optin.show { transform: none; opacity: 1; }
.optin-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; font-size: 14px; }
.optin-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.optin-k { margin: 0 32px 6px 0; font-size: 13px; color: var(--d2); font-weight: 600; }
.optin h4 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.optin-s { margin: 6px 0 14px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.optin form { display: flex; gap: 8px; }
.optin input[type=email] { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: #0b0d12; color: var(--text); font: inherit; font-size: 14px; }
.optin input[type=email]:focus { outline: none; border-color: rgba(91, 140, 255, 0.7); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.15); }
.optin-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.optin-msg { margin: 10px 0 0; font-size: 13.5px; min-height: 0; }
.optin-msg:empty { display: none; }
.optin-msg.ok { color: var(--ok, #34d399); }
.optin-msg.err { color: var(--err); }
@media (max-width: 640px) { .optin { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .optin { transition: none; } }
.faq-code { margin: 4px 0 12px; padding: 14px 16px; border-radius: 10px; background: #0b0d12; border: 1px solid var(--line); overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; color: var(--text); }
@media (max-width: 1180px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
}
@media (max-width: 920px) {
  .dl-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .dl-notes { grid-template-columns: 1fr; max-width: 520px; margin: 20px auto 0; }
}

/* ---------------- FAQ ---------------- */
.faq { padding: 40px 0 110px; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-weight: 400; color: var(--text-3); transition: transform 0.25s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--text-2); font-size: 16px; }
.faq-list details ol, .faq-list details ul { margin: 0 40px 24px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 16px; }
.faq-list details .text-link { display: inline-block; margin: -8px 0 24px; color: var(--text-2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } .faq-list summary { font-size: 16.5px; } }

/* ---------------- Final CTA ---------------- */
.final { padding: 60px 0 140px; text-align: center; position: relative; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 50% 60%, rgba(91, 140, 255, 0.16), transparent 70%); }
.final h2 { font-size: clamp(38px, 6.5vw, 82px); letter-spacing: -0.045em; font-weight: 800; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand p { margin-top: 8px; color: var(--text-3); font-size: 13.5px; }
.footer-contact a { color: var(--text-2, #d4d4d8); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer-links a, .footer-links .link-btn { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--text); }

/* ---------------- Modals ---------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4, 5, 7, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 0.2s ease; }
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); animation: pop 0.3s var(--ease-out); }
@keyframes pop { from { transform: translateY(10px) scale(0.98); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal-head h3 { font-size: 22px; }
.modal-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; color: var(--text-2); }
.modal-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.modal-sub { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.field { display: block; margin-bottom: 14px; }
.field > span, .field > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--text-3); }
.field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { outline: none; border-color: var(--d1); box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.25); }
.field input.mono, #chkPromo { font-family: var(--font-mono); text-transform: uppercase; }
.field-row { display: flex; gap: 8px; }
.field-row .btn { height: 46px; border-radius: 12px; }
.feedback { margin-top: 8px; font-size: 13.5px; color: var(--ok); }
.feedback.error, .feedback.is-error { color: var(--err); }
.summary { margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; color: var(--text-2); padding: 3px 0; }
.summary-row[hidden] { display: none; }
.summary-row.discount { color: var(--ok); }
.summary-row.total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 16px; }
.modal-fine { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.success { padding: 16px; border-radius: 14px; background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); font-size: 14px; color: var(--text-2); }
.success-badge { color: var(--ok); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px !important; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); }
.key-row code { font-family: var(--font-mono); font-size: 14px; color: var(--text); word-break: break-all; }
.result { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 4px; }
.result.ok { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--ok); }
.result.bad { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--err); }
.result .meta { color: var(--text-2); margin-top: 4px; }

.film-modal { padding: 24px; }
.film-box { position: relative; width: min(1200px, 100%); }
.film-box video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.film-box .modal-x { position: absolute; top: -48px; right: 0; background: rgba(255, 255, 255, 0.1); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
