/* ==========================================================================
   Screenshot Max Pro — site styles
   ========================================================================== */

:root {
  --bg: #08080a;
  --surface: #111114;
  --surface-2: #17171b;
  --surface-3: #1e1e23;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;

  /* Brand — taken from the app icon (#157FFC → #5660E9) */
  --blue: #2f8cff;
  --indigo: #5660e9;
  --violet: #9b7bff;
  --accent: #0a84ff;
  --red: #ff3b30;
  --green: #34c759;
  --grad: linear-gradient(120deg, #3d9bff 0%, #5d6cf0 50%, #a77bff 100%);

  --radius: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
img { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(86, 96, 233, 0.45); }

.ic {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-light { background: var(--text); color: #0a0a0c; box-shadow: 0 8px 30px -8px rgba(255,255,255,0.35); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 40px -6px rgba(255,255,255,0.45); }
.btn-ghost { background: rgba(255,255,255,0.05); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04);
  color: var(--muted); font-size: 14px; font-weight: 500;
  backdrop-filter: blur(10px);
}

.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 15px; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.chip {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text);
}

kbd {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 30px; padding: 0 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2b2b31, #1f1f24);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.05);
  font: 600 13px/1 var(--font); color: var(--text);
  white-space: nowrap;
}

/* ---------- Pro badge ---------- */
.pro {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center;
  margin-left: -3px; padding: 4px 7px 3px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 4px 16px -4px rgba(86,96,233,0.85);
  font: 800 10.5px/1 var(--font); letter-spacing: 0.09em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 2px rgba(20,30,120,0.35);
}
/* A slow highlight that sweeps across now and then */
.pro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: proShine 5s ease-in-out 1.2s infinite;
}
@keyframes proShine { 0%, 72% { transform: translateX(-130%); } 92%, 100% { transform: translateX(130%); } }
.pro-lg {
  margin-left: 0.08em; padding: 0.2em 0.42em 0.16em;
  border-radius: 0.3em;
  font-size: 0.42em; letter-spacing: 0.08em;
  vertical-align: 0.42em;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.25), 0 10px 34px -8px rgba(86,96,233,0.9);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 60px;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(8, 8, 10, 0.75); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.brand-logo { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 40px; text-align: center; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -10% 0 auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 30% 30%, rgba(47, 140, 255, 0.24), transparent 70%),
    radial-gradient(35% 30% at 70% 25%, rgba(86, 96, 233, 0.26), transparent 70%),
    radial-gradient(30% 25% at 55% 55%, rgba(155, 123, 255, 0.12), transparent 70%);
  filter: blur(20px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 50% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000 20%, transparent 75%);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 750; letter-spacing: -0.05em; line-height: 0.98;
}
.lede { max-width: 660px; margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.5; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Stage (hero product mock) ---------- */
.stage-wrap { margin-top: 72px; perspective: 1800px; }
.stage {
  --tilt: 0deg;
  position: relative; overflow: hidden;
  max-width: 1080px; margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  container-type: inline-size;
  transform: rotateX(var(--tilt));
  transform-origin: 50% 0%;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 50px 120px -30px rgba(60, 100, 255, 0.38),
    0 30px 80px -20px rgba(0,0,0,0.8);
  background: #0b0d1c;
}
.wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 70% at 15% 25%, #2452d6 0%, transparent 60%),
    radial-gradient(45% 60% at 85% 15%, #5a3fd6 0%, transparent 60%),
    radial-gradient(60% 55% at 65% 105%, #8b4fd8 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 100%, #1b2a7a 0%, transparent 60%),
    #0d0f24;
}
.wallpaper::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(100% 100% at 50% 0%, transparent 40%, rgba(0,0,0,0.35));
}

.win {
  position: absolute;
  background: rgba(20, 20, 26, 0.82);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.1cqw;
  box-shadow: 0 2cqw 5cqw -1cqw rgba(0,0,0,0.6);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.win-main { left: 5%; top: 7%; width: 64%; height: 76%; }
.win-side { right: 4.5%; top: 15%; width: 25%; height: 50%; }
.win-bar {
  height: 3.6cqw; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 0 1.4cqw;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.05cqw; color: rgba(255,255,255,0.7); font-weight: 500;
}
.win-title { display: inline-flex; align-items: center; gap: 0.7cqw; }
.dot-ic { width: 1.1cqw; height: 1.1cqw; border-radius: 0.3cqw; background: var(--blue); }
.dot-ic.amber { background: #f5b83d; }
.win-ctrls { display: flex; height: 100%; }
.win-ctrls i { width: 3.6cqw; display: grid; place-items: center; }
.win-ctrls i::before { content: ""; width: 0.9cqw; height: 0.9cqw; border: 1px solid rgba(255,255,255,0.45); border-radius: 0.15cqw; }
.win-ctrls i:first-child::before { height: 0; border-width: 1px 0 0; }
.win-ctrls i:last-child::before { border: 0; background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.5) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, rgba(255,255,255,0.5) 45% 55%, transparent 55%); }

.win-body { flex: 1; display: flex; min-height: 0; }
.side { width: 15%; padding: 1.6cqw 1.2cqw; display: flex; flex-direction: column; gap: 1.2cqw; border-right: 1px solid rgba(255,255,255,0.05); }
.side i { height: 0.9cqw; border-radius: 1cqw; background: rgba(255,255,255,0.1); }
.side i.on { background: rgba(47,140,255,0.6); }
.content { flex: 1; padding: 1.8cqw; display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.kpi {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.9cqw; padding: 1.2cqw 1.3cqw;
  display: grid; grid-template-columns: 1fr auto; row-gap: 0.2cqw; align-items: baseline;
}
.kpi b { font-size: 2cqw; letter-spacing: -0.03em; font-weight: 650; }
.kpi span { grid-row: 2; font-size: 0.95cqw; color: rgba(255,255,255,0.5); }
.kpi em { font-style: normal; font-size: 0.9cqw; color: var(--green); font-weight: 600; }
.chart {
  flex: 1; display: flex; align-items: flex-end; gap: 1cqw;
  padding: 1.4cqw; border-radius: 0.9cqw;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.chart i { flex: 1; height: var(--h); border-radius: 0.4cqw 0.4cqw 0.15cqw 0.15cqw; background: linear-gradient(to top, rgba(47,140,255,0.35), #6aa8ff); }
.chart i:nth-child(n+8) { background: linear-gradient(to top, rgba(86,96,233,0.4), #8f95ff); }
.rows { display: grid; gap: 0.9cqw; }
.rows i { height: 0.9cqw; border-radius: 1cqw; background: rgba(255,255,255,0.07); }
.rows i:nth-child(2) { width: 80%; } .rows i:nth-child(3) { width: 60%; }

.notes { padding: 1.6cqw; display: flex; flex-direction: column; gap: 1.1cqw; }
.notes b { font-size: 1.3cqw; letter-spacing: -0.02em; margin-bottom: 0.4cqw; }
.notes p { display: flex; align-items: center; gap: 0.9cqw; }
.notes p i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); flex: none; }
.notes p i.tick { background: var(--green); border-color: var(--green); }
.notes p span { height: 0.8cqw; width: var(--w); border-radius: 1cqw; background: rgba(255,255,255,0.12); }

.taskbar {
  position: absolute; left: 50%; bottom: 2.2%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1cqw; padding: 0.9cqw 1.2cqw;
  background: rgba(20,20,28,0.6); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 1.4cqw;
}
.tb { width: 3cqw; height: 3cqw; border-radius: 0.8cqw; background: var(--c, #444); opacity: 0.85; display: grid; place-items: center; position: relative; }
.tb-start { background: linear-gradient(135deg, #4cc2ff, #0078d4); }
.tb-sep { width: 1px; height: 2.2cqw; background: rgba(255,255,255,0.15); }
.tb-app { background: none; opacity: 1; width: 2.4cqw; height: 2.4cqw; }
.tb-app img { width: 100%; height: 100%; }

/* Capture choreography — one 10s loop; every layer shares the timeline */
.cap { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
@property --dim-w { syntax: "<integer>"; inherits: false; initial-value: 0; }
@property --dim-h { syntax: "<integer>"; inherits: false; initial-value: 0; }
.sel {
  position: absolute; left: 9%; top: 16%;
  width: 0; height: 0;
  border: 1px solid rgba(255,255,255,0.95);
  outline: 200cqw solid rgba(0, 0, 0, 0.5);
  animation: sel 10s var(--ease) infinite;
}
.sel .h { position: absolute; width: 0.8cqw; height: 0.8cqw; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,0.3); }
.sel .tl { left: -0.4cqw; top: -0.4cqw; } .sel .tr { right: -0.4cqw; top: -0.4cqw; }
.sel .bl { left: -0.4cqw; bottom: -0.4cqw; } .sel .br { right: -0.4cqw; bottom: -0.4cqw; }
.dims {
  position: absolute; left: 0; bottom: calc(100% + 0.7cqw);
  padding: 0.35cqw 0.8cqw; border-radius: 0.6cqw;
  background: rgba(0,0,0,0.75); color: #fff;
  font: 500 1cqw/1.2 var(--mono); white-space: nowrap;
  counter-reset: w var(--dim-w) h var(--dim-h);
  animation: dims 10s var(--ease) infinite;
}
.dims::after { content: counter(w) " × " counter(h); }

/* All-in-one toolbar that appears under the selection */
.aio {
  position: absolute; left: 34%; top: 71%;
  display: flex; align-items: center; gap: 0.3cqw;
  padding: 0.45cqw; border-radius: 1cqw;
  background: rgba(28,28,32,0.92); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 1.5cqw 3cqw -0.5cqw rgba(0,0,0,0.7);
  font: 500 1.05cqw/1 var(--font); color: rgba(255,255,255,0.9); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -0.6cqw);
  animation: aio 10s var(--ease) infinite;
}
.aio span { display: inline-flex; align-items: center; gap: 0.5cqw; padding: 0.6cqw 0.9cqw; border-radius: 0.65cqw; }
.aio span.on { background: rgba(255,255,255,0.14); animation: aioPress 10s var(--ease) infinite; }
.aio svg { width: 1.25cqw; height: 1.25cqw; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aio i { width: 1px; height: 1.6cqw; background: rgba(255,255,255,0.15); margin: 0 0.2cqw; }
.aio .x { padding: 0.6cqw; }
.aio .sel-mode { gap: 0.4cqw; }
.aio .chev { width: 0.85cqw; height: 0.85cqw; opacity: 0.8; }

.cursor {
  position: absolute; left: 38%; top: 62%;
  width: 0; height: 0;
  animation: cursor 10s var(--ease) infinite;
}
.crosshair {
  position: absolute; width: 2.6cqw; height: 2.6cqw; left: -1.3cqw; top: -1.3cqw;
  fill: none; stroke: #fff; stroke-width: 1.6;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
}
/* Pixel magnifier */
.loupe {
  position: absolute; left: 1.6cqw; top: 1.6cqw;
  width: 7.5cqw; height: 7.5cqw; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 1cqw 2cqw rgba(0,0,0,0.6);
  background:
    linear-gradient(rgba(0,0,0,0.35) 1px, transparent 1px) 0 0 / 0.75cqw 0.75cqw,
    linear-gradient(90deg, rgba(0,0,0,0.35) 1px, transparent 1px) 0 0 / 0.75cqw 0.75cqw,
    linear-gradient(90deg, #1c1c24 0 3.75cqw, #3b3fa8 3.75cqw 4.5cqw, #4a3fbf 4.5cqw);
  animation: loupe 10s var(--ease) infinite;
}
.loupe i { position: absolute; left: 50%; top: 50%; width: 0.75cqw; height: 0.75cqw; transform: translate(-50%, -50%); outline: 1.5px solid #fff; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 10s ease-out infinite; }

@keyframes sel {
  0%, 6%   { width: 0; height: 0; opacity: 0; }
  8%       { width: 0; height: 0; opacity: 1; }
  30%, 40% { width: 50%; height: 53%; opacity: 1; }
  43%,100% { width: 50%; height: 53%; opacity: 0; }
}
@keyframes dims {
  0%, 8%   { --dim-w: 0; --dim-h: 0; }
  30%,100% { --dim-w: 960; --dim-h: 636; }
}
@keyframes cursor {
  0%       { left: 38%; top: 62%; opacity: 0; }
  4%       { opacity: 1; }
  8%       { left: 9%; top: 16%; }
  30%      { left: 59%; top: 69%; opacity: 1; }
  33%      { left: 26%; top: 74.5%; opacity: 1; }
  38%      { left: 26%; top: 74.5%; opacity: 1; }
  41%,100% { left: 26%; top: 74.5%; opacity: 0; }
}
@keyframes loupe {
  0%, 4%   { opacity: 0; transform: scale(0.6); }
  8%, 29%  { opacity: 1; transform: none; }
  31%,100% { opacity: 0; transform: scale(0.6); }
}
@keyframes aio {
  0%, 30%  { opacity: 0; transform: translate(-50%, -0.6cqw); }
  33%, 40% { opacity: 1; transform: translate(-50%, 0); }
  43%,100% { opacity: 0; transform: translate(-50%, 0); }
}
@keyframes aioPress {
  0%, 36%  { background: rgba(255,255,255,0.14); }
  37%, 39% { background: rgba(10,132,255,0.9); }
  40%,100% { background: rgba(255,255,255,0.14); }
}
@keyframes flash {
  0%, 40% { opacity: 0; }
  41%     { opacity: 0.45; }
  48%,100%{ opacity: 0; }
}

/* Hero thumbnail — mirrors the real card */
.thumb {
  position: absolute; right: 2.5%; bottom: 11%; z-index: 4;
  width: 20%; aspect-ratio: 960 / 636;
  border-radius: 0.9cqw; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 1.5cqw 3cqw -0.5cqw rgba(0,0,0,0.7);
  opacity: 0;
  animation: thumb 10s var(--ease) infinite;
}
.thumb-img {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1c1d2a, #15151c);
  padding: 0.9cqw; display: flex; flex-direction: column; gap: 0.6cqw;
}
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4cqw; }
.mini-kpis i { height: 2cqw; border-radius: 0.35cqw; background: rgba(255,255,255,0.08); }
.mini-chart { flex: 1; display: flex; align-items: flex-end; gap: 0.4cqw; }
.mini-chart i { flex: 1; height: var(--h); border-radius: 0.2cqw; background: linear-gradient(to top, rgba(47,140,255,0.4), #6aa8ff); }
.thumb-hover {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
  opacity: 0;
  animation: thumbHover 10s var(--ease) infinite;
}
.thumb-hover svg { width: 0.95cqw; height: 0.95cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-x, .t-icons i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: rgba(255,255,255,0.16); display: grid; place-items: center; }
.t-x { position: absolute; left: 0.6cqw; top: 0.6cqw; }
.t-icons { position: absolute; right: 0.6cqw; top: 0.6cqw; display: flex; gap: 0.4cqw; }
.t-pills { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6cqw; padding-top: 1.4cqw; }
.t-pills b { width: 7.5cqw; padding: 0.55cqw 0; border-radius: 2cqw; background: rgba(255,255,255,0.18); text-align: center; font-size: 1.05cqw; font-weight: 600; color: #fff; }

@keyframes thumb {
  0%, 43%  { opacity: 0; transform: translateX(40%) scale(0.92); }
  50%, 88% { opacity: 1; transform: none; }
  95%,100% { opacity: 0; transform: translateX(40%) scale(0.92); }
}
@keyframes thumbHover {
  0%, 56%  { opacity: 0; }
  60%, 86% { opacity: 1; }
  90%,100% { opacity: 0; }
}

/* Mode bar */
.modebar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 4px;
  width: max-content; max-width: 100%;
  margin: -30px auto 0; padding: 6px;
  border-radius: 18px;
  background: rgba(28, 28, 34, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7);
}
.mode {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 76px; padding: 9px 10px 7px;
  border-radius: 12px;
  font-size: 12px; font-weight: 500; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.mode .ic { width: 22px; height: 22px; }
.mode:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.mode.active { background: rgba(255,255,255,0.12); color: var(--text); }
.mode-sep { width: 1px; height: 34px; background: var(--line-2); margin: 0 4px; }

/* ---------- Sections ---------- */
.section { padding: 140px 0 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.section h2 { font-size: clamp(36px, 5.2vw, 64px); }
.sub { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.5; }
.section-head .sub { margin-left: auto; margin-right: auto; max-width: 620px; }

/* ---------- Thumbnail spotlight ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split h2 { font-size: clamp(36px, 4.4vw, 56px); }
.action-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.action-list li { display: flex; gap: 16px; align-items: flex-start; }
.action-list b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.action-list span:not(.chip) { color: var(--muted); font-size: 15px; }

.overlay-demo {
  position: relative; overflow: hidden;
  aspect-ratio: 5 / 4; border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: #0b0d1c;
  box-shadow: 0 40px 100px -40px rgba(60, 100, 255, 0.5);
  user-select: none; -webkit-user-select: none;
}
.od-wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 10% 10%, #2452d6, transparent 60%),
    radial-gradient(60% 60% at 100% 30%, #5a3fd6, transparent 60%),
    radial-gradient(70% 60% at 50% 110%, #8b4fd8, transparent 60%),
    #0d0f24;
}
.od-win {
  position: absolute; left: 7%; top: 8%; width: 62%; height: 50%;
  border-radius: 14px; padding: 18px;
  background: rgba(20,20,26,0.6); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; gap: 10px; align-content: start;
}
.od-win i { height: 10px; border-radius: 10px; background: rgba(255,255,255,0.1); }
.od-win i:first-child { width: 45%; height: 14px; background: rgba(255,255,255,0.18); margin-bottom: 6px; }
.od-win i:nth-child(3) { width: 85%; } .od-win i:nth-child(4) { width: 60%; }

.od-card {
  position: absolute; right: 6%; bottom: 8%;
  width: 50%; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,0.75);
  cursor: grab; touch-action: none;
  transform: translateX(130%); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease), box-shadow 0.3s;
}
.overlay-demo.in .od-card { transform: none; opacity: 1; }
.overlay-demo.out .od-card { transform: translateX(130%); opacity: 0; }
.od-card.dragging { transition: box-shadow 0.3s; cursor: grabbing; box-shadow: 0 40px 70px -10px rgba(0,0,0,0.85); }
.od-card:focus-visible { outline-offset: 4px; border-radius: 14px; }
.od-img {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #20222f, #16161c);
  padding: 7%; display: flex; flex-direction: column; gap: 9%;
}
.od-row { display: flex; gap: 10px; align-items: center; }
.od-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); flex: none; }
.od-lines { flex: 1; display: grid; gap: 5px; }
.od-lines i { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.18); width: 60%; }
.od-lines i + i { width: 40%; background: rgba(255,255,255,0.09); }
.od-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.od-bars i { flex: 1; height: var(--h); border-radius: 4px; background: linear-gradient(to top, rgba(86,96,233,0.4), #8f95ff); }

.od-hover {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
  opacity: 0; transition: opacity 0.25s;
}
.od-card:hover .od-hover, .od-card:focus-within .od-hover { opacity: 1; }
.od-card.dragging .od-hover { opacity: 0; }
@media (hover: none) { .od-hover { opacity: 1; } }
.od-ic {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.16); color: #fff;
  transition: background 0.2s;
}
.od-ic:hover { background: rgba(255,255,255,0.3); }
.od-ic .ic { width: 15px; height: 15px; stroke-width: 2; }
.od-close { position: absolute; left: 8px; top: 8px; }
.od-ics { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; }
.od-pills { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-top: 14px; pointer-events: none; }
.od-pills button {
  pointer-events: auto;
  width: 104px; height: 32px; border-radius: 16px; border: 0;
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s, transform 0.15s var(--ease);
}
.od-pills button:hover { background: rgba(255,255,255,0.3); }
.od-pills button:active, .od-ic:active { transform: scale(0.95); }

.toast {
  position: absolute; left: 50%; top: 22px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(30,30,36,0.88); border: 1px solid var(--line-2);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transform: translate(-50%, -16px); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  pointer-events: none;
}
.toast .ic { color: var(--green); stroke-width: 2.4; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.demo-hint {
  position: absolute; left: 18px; bottom: 16px;
  font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }

.tile {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(86, 96, 233, 0.12), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.tile:hover { border-color: var(--line-2); }
.tile:hover::before { opacity: 1; }
.tile > .tile-demo { flex: 1; }
.tile-copy { padding: 26px 30px 30px; }
.tile-copy h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -0.025em; }
.tile-copy h3 .ic { width: 22px; height: 22px; color: var(--blue); }
.tile-copy p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 540px; }
.tile-demo {
  position: relative; margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(180deg, #16161b, #0f0f12);
  border: 1px solid var(--line);
  overflow: hidden;
}

.link-btn {
  margin-top: 16px; padding: 0; border: 0; background: none;
  color: var(--blue); font-weight: 600; font-size: 15px;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Segmented control */
.seg {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 4;
  display: flex; padding: 3px; border-radius: 12px;
  background: rgba(20,20,24,0.8); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9px; border: 0; background: none;
  font-size: 13.5px; font-weight: 550; color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.seg button .ic { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(255,255,255,0.13); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.seg-sm { top: auto; bottom: 14px; }
.seg-sm button { padding: 6px 12px; font-size: 13px; }

/* --- Area & window demo --- */
.win-demo { min-height: 280px; }
.wd-screen {
  position: absolute; inset: 0; cursor: crosshair;
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(36,82,214,0.55), transparent 60%),
    radial-gradient(50% 60% at 90% 90%, rgba(139,79,216,0.45), transparent 60%),
    #0e0f1c;
}
.wd-win {
  position: absolute; border-radius: 10px; overflow: hidden;
  background: rgba(22,22,28,0.92); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.6);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.wd-win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(10,132,255,0.16); box-shadow: inset 0 0 0 2px var(--accent); opacity: 0; transition: opacity 0.18s; }
.wd-win:hover::after, .wd-win:focus-visible::after { opacity: 1; }
.wd-win:focus-visible { outline: none; }
.wd-a { left: 8%; top: 12%; width: 58%; height: 62%; }
.wd-b { right: 7%; bottom: 10%; width: 46%; height: 46%; }
.wd-bar { height: 22px; display: flex; gap: 5px; align-items: center; padding: 0 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.wd-bar i { width: 22px; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.14); }
.wd-body { padding: 12px; display: grid; gap: 8px; }
.wd-body i { height: 7px; border-radius: 7px; background: rgba(255,255,255,0.09); }
.wd-body i:first-child { height: 34px; border-radius: 6px; background: linear-gradient(120deg, rgba(47,140,255,0.35), rgba(86,96,233,0.3)); }
.wd-body i:last-child { width: 60%; }
.wd-body.mono { font: 500 11px/1.6 var(--mono); color: #c9c9d1; gap: 0; }
.wd-body .ok { color: var(--green); }
.wd-label {
  position: absolute; z-index: 2; pointer-events: none;
  padding: 4px 9px; border-radius: 7px; background: rgba(0,0,0,0.75);
  font: 500 11.5px/1.2 var(--mono); white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity 0.18s, transform 0.18s;
}
.wd-label.show { opacity: 1; transform: none; }
.wd-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.wd-flash.go { animation: wdFlash 0.5s ease-out; }
@keyframes wdFlash { 0% { opacity: 0.5; } 100% { opacity: 0; } }

/* --- Record demo --- */
.rec-demo { min-height: 300px; }
.rec-screen {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(36,82,214,0.6), transparent 60%),
    radial-gradient(50% 60% at 90% 90%, rgba(139,79,216,0.45), transparent 60%),
    #0e0f1c;
}
.rec-win {
  position: absolute; left: 14%; top: 24%; width: 72%; height: 58%;
  border-radius: 12px; overflow: hidden;
  background: rgba(22,22,28,0.85); border: 1px solid rgba(255,255,255,0.1);
}
.rec-win-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.rec-win-bar i { width: 30px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.12); }
.rec-win-body { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rec-win-body i { aspect-ratio: 4 / 3; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.05); }
.rec-win-body i:nth-child(2) { background: rgba(47,140,255,0.22); }
.rec-win-body i:nth-child(6) { background: rgba(86,96,233,0.26); }
.rec-region {
  position: absolute; left: 10%; top: 19%; width: 80%; height: 68%;
  border: 2px dashed var(--rc, var(--red)); border-radius: 4px;
  box-shadow: 0 0 0 999px rgba(0,0,0,0.35);
  transition: border-color 0.4s;
}
.rec-demo[data-mode="gif"] { --rc: var(--violet); }
.rec-cursor {
  position: absolute; left: 30%; top: 40%; width: 20px; height: 20px;
  fill: #fff; stroke: #000; stroke-width: 1.2; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
  animation: wander 6s ease-in-out infinite;
  animation-play-state: paused;
}
.playing .rec-cursor { animation-play-state: running; }
@keyframes wander {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(140%, 160%); }
  50%  { transform: translate(560%, 60%); }
  75%  { transform: translate(380%, 340%); }
  100% { transform: translate(0, 0); }
}
.rec-pill {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 14px; border-radius: 999px;
  background: rgba(22,22,26,0.92); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rc, var(--red)); box-shadow: 0 0 10px var(--rc, var(--red)); animation: pulse 1.4s ease-in-out infinite; }
.rec-time { font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; min-width: 32px; }
.rec-fmt { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }
.rec-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 2px; }
.rec-btn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.rec-btn svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rec-btn:nth-of-type(2) svg { fill: #fff; stroke-width: 1; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* --- OCR demo --- */
.ocr-demo { min-height: 300px; display: grid; place-items: center; padding: 24px; background: radial-gradient(80% 80% at 50% 0%, rgba(47,140,255,0.12), transparent 70%), linear-gradient(180deg, #16161b, #0f0f12); }
.ocr-shot {
  position: relative; width: 100%; max-width: 380px;
  border-radius: 12px;
  background: #1b1b21; border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.7);
}
.ocr-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ocr-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.ocr-bar span { margin-left: 6px; font-size: 12px; color: var(--muted); }
.ocr-body { position: relative; padding: 14px 16px 16px; font: 500 13px/1.75 var(--mono); }
.ocr-dim { color: var(--dim); }
.ocr-line { color: #ff8a80; width: max-content; max-width: 100%; border-radius: 3px; }
.ocr-line + .ocr-line { color: #e6e6ea; }
.ocr-sel {
  position: absolute; left: 8px; right: 8px; top: calc(14px + 1.75em - 4px); height: calc(3 * 1.75em + 8px);
  border: 1.5px solid var(--accent); border-radius: 6px;
  background: rgba(10,132,255,0.06);
  overflow: hidden;
  opacity: 0;
}
.ocr-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #9cc3ff, transparent); box-shadow: 0 0 14px var(--accent); }
.ocr-toast {
  position: absolute; left: 50%; bottom: 18px;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  background: rgba(30,30,36,0.9); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 10px);
}
.ocr-toast .ic { color: var(--green); stroke-width: 2.4; }
.ocr-demo.playing .ocr-sel { animation: ocrSel 6s var(--ease) infinite; }
.ocr-demo.playing .ocr-scan { animation: ocrScan 6s ease-in-out infinite; }
.ocr-demo.playing .ocr-line { animation: ocrHi 6s var(--ease) infinite; animation-delay: calc(var(--d) * 0.12s); }
.ocr-demo.playing .ocr-toast { animation: ocrToast 6s var(--ease) infinite; }
@keyframes ocrSel { 0%, 6% { opacity: 0; transform: scale(0.96); } 12%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes ocrScan { 0%, 14% { top: 0; opacity: 0; } 16% { opacity: 1; } 38% { top: 100%; opacity: 1; } 40%, 100% { top: 100%; opacity: 0; } }
@keyframes ocrHi { 0%, 40% { background: transparent; } 46%, 82% { background: rgba(10,132,255,0.4); } 90%, 100% { background: transparent; } }
@keyframes ocrToast { 0%, 50% { opacity: 0; transform: translate(-50%, 10px); } 56%, 84% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* --- Keystrokes & audio demo --- */
.keys-demo { min-height: 300px; background: radial-gradient(70% 80% at 80% 0%, rgba(86,96,233,0.18), transparent 70%), linear-gradient(180deg, #16161b, #0f0f12); }
.kd-frame {
  position: absolute; inset: 18px 18px 18px;
  border: 2px dashed rgba(255,59,48,0.75); border-radius: 4px;
  padding: 16px;
}
.kd-audio { display: flex; gap: 8px; flex-wrap: wrap; }
.kd-src {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500; color: var(--muted);
}
.kd-src .ic { width: 15px; height: 15px; color: var(--text); }
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 2px; }
.meter i { width: 3px; height: 30%; border-radius: 2px; background: var(--green); }
.playing .meter i { animation: lvl 0.9s ease-in-out infinite alternate; }
.meter i:nth-child(2) { animation-delay: -0.3s !important; } .meter i:nth-child(3) { animation-delay: -0.6s !important; }
.meter i:nth-child(4) { animation-delay: -0.15s !important; } .meter i:nth-child(5) { animation-delay: -0.45s !important; }
.kd-src + .kd-src .meter i { animation-duration: 0.7s; }
@keyframes lvl { 0% { height: 20%; } 50% { height: 90%; } 100% { height: 45%; } }
.kd-code { margin-top: 26px; display: grid; gap: 11px; }
.kd-code i { height: 8px; width: var(--w); border-radius: 8px; background: rgba(255,255,255,0.08); }
.kd-code i:nth-child(2) { background: rgba(47,140,255,0.3); }
.kd-pill {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 14px;
  background: rgba(10,10,12,0.88); border: 1px solid var(--line-2);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,0.7);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.kd-pill.pop { animation: pop 0.35s var(--ease); }
@keyframes pop { 0% { transform: translateX(-50%) scale(0.92); opacity: 0.4; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }

/* --- Annotate demo --- */
.tile-wide { display: grid; grid-template-columns: 0.72fr 1.6fr; align-items: center; }
.tile-wide .tile-copy { padding: 40px; }
.tile-wide .tile-copy h3 { font-size: 30px; }
.tile-wide .tile-demo { margin: 10px; }
.mini-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; font-size: 15px; color: var(--muted); }
.mini-list li { display: flex; align-items: center; gap: 10px; }
.mini-list .ic { color: var(--text); width: 18px; height: 18px; }

.anno-demo { display: flex; flex-direction: column; padding: 14px; gap: 14px; }
.anno-toolbar {
  align-self: center;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 5px; border-radius: 14px;
  background: rgba(30,30,36,0.9); border: 1px solid var(--line-2);
}
.anno-group { display: flex; gap: 1px; }
.anno-toolbar button {
  width: 34px; height: 34px; border-radius: 9px; border: 0; background: none;
  display: grid; place-items: center; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.anno-toolbar button:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.anno-toolbar button.on { background: rgba(255,255,255,0.13); color: var(--text); }
.anno-toolbar .ic { width: 18px; height: 18px; }
.swatches button { width: 24px; }
.swatches button::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 0.2s var(--ease);
}
.swatches button.on { background: none; }
.swatches button.on::before { transform: scale(1.1); box-shadow: 0 0 0 2px #1e1e24, 0 0 0 3.5px var(--c), inset 0 0 0 1px rgba(255,255,255,0.18); }
.sizes button { width: 28px; }
.sizes button::before { content: ""; width: var(--s); height: var(--s); border-radius: 50%; background: currentColor; }
.anno-div { width: 1px; height: 22px; background: var(--line-2); }

.anno-canvas-wrap { position: relative; aspect-ratio: 16 / 8.6; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
#anno-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.anno-shot {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #f7f7fa, #e9eaf2);
  color: #111; padding: 3.2% 4%;
  display: flex; flex-direction: column; gap: 9%;
  container-type: inline-size;
}
.as-nav { display: flex; align-items: center; gap: 3cqw; }
.as-logo { width: 3.2cqw; height: 3.2cqw; border-radius: 0.9cqw; background: var(--grad); margin-right: auto; }
.as-nav i { width: 6cqw; height: 0.9cqw; border-radius: 1cqw; background: #c8c9d4; }
.as-btn { display: inline-block; width: 12cqw; height: 3.6cqw; border-radius: 2cqw; background: #111; }
.as-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px #c3c4cf; }
.as-nav .as-btn { width: 9cqw; height: 3cqw; }
.as-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5cqw; align-items: center; }
.as-copy { display: grid; gap: 1.6cqw; }
.as-copy b { font-size: 4.2cqw; line-height: 1.05; letter-spacing: -0.04em; font-weight: 750; color: #0d0d12; }
.as-copy > i { height: 1.2cqw; width: var(--w); border-radius: 1cqw; background: #cfd0da; }
.as-ctas { display: flex; gap: 1.5cqw; margin-top: 1.2cqw; justify-self: start; }
.as-card { background: #fff; border-radius: 2cqw; padding: 2.6cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(30,30,60,0.25); display: grid; gap: 2cqw; }
.as-card-top { display: flex; align-items: center; gap: 1.6cqw; }
.as-card-top span { width: 4cqw; height: 4cqw; border-radius: 50%; background: linear-gradient(135deg, #ffb36b, #ff6b8b); }
.as-card-top i { flex: 1; height: 1.3cqw; border-radius: 1cqw; background: #dcdde6; }
.as-meter { height: 1.6cqw; border-radius: 2cqw; background: #eceef4; overflow: hidden; }
.as-meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #2f8cff, #5660e9); }

/* --- Crop demo --- */
.crop-demo { min-height: 330px; }
.crop-stage { position: absolute; inset: 0 0 58px; overflow: hidden; touch-action: none; }
.crop-photo {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1d2b64 0%, #4d4c9a 45%, #f08a5d 78%, #f9c784 100%);
  transform-origin: 0 0;
  transition: transform 0.7s var(--ease);
}
.sun { position: absolute; left: 58%; top: 46%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffe7b0, #ffb36b 70%); box-shadow: 0 0 60px 20px rgba(255,179,107,0.5); }
.mtn { position: absolute; left: 0; right: 0; bottom: 0; }
.m1 { height: 52%; background: #33306a; clip-path: polygon(0 60%, 18% 20%, 34% 55%, 52% 10%, 70% 50%, 86% 25%, 100% 45%, 100% 100%, 0 100%); opacity: 0.85; }
.m2 { height: 40%; background: #1f1c45; clip-path: polygon(0 40%, 22% 70%, 40% 30%, 60% 65%, 78% 35%, 100% 60%, 100% 100%, 0 100%); }
.m3 { height: 22%; background: #110f26; clip-path: polygon(0 50%, 30% 20%, 55% 55%, 80% 25%, 100% 50%, 100% 100%, 0 100%); }
.crop-box {
  position: absolute; left: 16%; top: 14%; width: 62%; height: 64%;
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 0 0 999px rgba(0,0,0,0.55);
  cursor: move; touch-action: none;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(180deg, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
  transition: opacity 0.4s;
}
.crop-box:focus-visible { outline: none; border-color: var(--accent); }
.crop-demo.applied .crop-box { opacity: 0; pointer-events: none; }
.cc { position: absolute; width: 26px; height: 26px; }
.cc::before { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid #fff; }
.cc[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; } .cc[data-h="nw"]::before { left: 6px; top: 6px; border-width: 3px 0 0 3px; }
.cc[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; } .cc[data-h="ne"]::before { right: 6px; top: 6px; border-width: 3px 3px 0 0; }
.cc[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; } .cc[data-h="sw"]::before { left: 6px; bottom: 6px; border-width: 0 0 3px 3px; }
.cc[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; } .cc[data-h="se"]::before { right: 6px; bottom: 6px; border-width: 0 3px 3px 0; }
.crop-dims {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  padding: 4px 9px; border-radius: 7px; background: rgba(0,0,0,0.6);
  font: 500 11.5px/1.2 var(--mono); white-space: nowrap; pointer-events: none;
}
.crop-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-top: 1px solid var(--line);
  background: rgba(22,22,26,0.95);
}
.crop-bar button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 9px; border: 0;
  background: rgba(255,255,255,0.08); font-size: 13.5px; font-weight: 550;
  transition: background 0.2s;
}
.crop-bar button:hover { background: rgba(255,255,255,0.14); }
.crop-bar button.primary { background: var(--accent); color: #fff; }
.crop-bar button.primary:hover { background: #3a9bff; }
.crop-bar .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* --- Pixelate demo --- */
.blur-demo { min-height: 330px; display: grid; place-items: center; padding: 20px 20px 64px; background: radial-gradient(80% 80% at 50% 0%, rgba(86,96,233,0.16), transparent 70%), linear-gradient(180deg, #16161b, #0f0f12); }
.acct {
  width: 100%; max-width: 380px;
  border-radius: 16px; padding: 18px;
  background: #1b1b21; border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.7);
  display: grid; gap: 4px; font-size: 14px;
}
.acct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.acct-head b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.acct-head small { color: var(--dim); font-size: 12.5px; }
.acct-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #ffb36b, #ff6b8b); color: #2a0f1a; }
.acct-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.acct-row > span:first-child { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.secret { border-radius: 4px; padding: 1px 4px; transition: color 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(86,96,233,0.25); color: #b9bdff; }
/* Mosaic image is generated from the real text in main.js */
.blur-demo[data-blur="pixel"] .secret {
  color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
}

/* ---------- Shortcuts ---------- */
.keys-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.kb-card { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.kb-card h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 14px; }
.kb-card .kb-sub { margin-top: 30px; }
.kb-list { list-style: none; padding: 0; margin: 0; }
.kb-list li { display: flex; align-items: center; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); }
.kb-list li:first-child { border-top: 0; }
.kb-list li span { flex: 1; font-size: 15.5px; }
.kb-list.compact li span { font-size: 14.5px; color: var(--muted); }
.kb-tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.kb-tools li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.kb-tools kbd { min-width: 34px; height: 34px; }

/* ---------- Details ---------- */
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.detail .chip { margin-bottom: 18px; color: var(--blue); }
.detail b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.detail p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Statement ---------- */
.statement-sec { padding-top: 160px; }
.statement {
  max-width: 980px; margin: 0 auto; text-align: center; text-wrap: balance;
  font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.12;
}
.statement .w { color: rgba(255,255,255,0.16); transition: color 0.5s var(--ease); }
.statement .w.lit { color: var(--text); }
.statement .w.lit.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- CTA ---------- */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; padding: 80px 24px 56px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.cta-glow {
  position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(86,96,233,0.4), rgba(47,140,255,0.15) 45%, transparent 70%);
  filter: blur(30px);
}
.cta-logo { width: 96px; height: 96px; margin: 0 auto 28px; filter: drop-shadow(0 18px 40px rgba(47,120,255,0.55)); }
.cta-card h2 { font-size: clamp(36px, 5vw, 60px); }
.cta-card .sub { max-width: 520px; margin-left: auto; margin-right: auto; }
.req { margin-top: 30px; font-size: 13.5px; color: var(--dim); }
.req a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.req code { font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 5px; }

/* ---------- Footer ---------- */
.footer { margin-top: 120px; padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer small { color: var(--dim); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .span-5, .span-6, .span-7 { grid-column: span 12; }
  .tile-wide { grid-template-columns: 1fr; }
  .tile-wide .tile-copy { padding: 30px 30px 10px; order: -1; }
  .keys-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding-top: 100px; }
  .hero { padding-top: 120px; }
  .stage-wrap { margin-top: 52px; }
  .stage { border-radius: 12px; }
  .modebar { margin-top: -22px; }
  .mode { min-width: 0; padding: 9px; }
  .mode span { display: none; }
  .mode-sep { height: 22px; margin: 0 2px; }
  .tile-copy { padding: 22px 22px 26px; }
  .tile-wide .tile-copy { padding: 26px 22px 6px; }
  .anno-demo { padding: 10px; }
  .anno-toolbar button { width: 30px; height: 30px; }
  .swatches button { width: 22px; }
  .sizes button { width: 24px; }
  .anno-canvas-wrap { aspect-ratio: 4 / 3; }
  .anno-shot { gap: 6%; }
  .as-hero { grid-template-columns: 1fr; gap: 4cqw; }
  .as-copy b { font-size: 6.6cqw; }
  .as-copy > i { height: 1.8cqw; }
  .as-btn { width: 18cqw; height: 5.4cqw; }
  .as-card { padding: 3.4cqw; gap: 2.6cqw; }
  .as-meter { height: 2.4cqw; }
  .ocr-body { font-size: 12px; }
  .blur-demo { padding-top: 24px; }
  .od-card { width: 62%; }
  .od-pills button { width: 88px; height: 28px; font-size: 12px; }
  .od-ic { width: 26px; height: 26px; }
  .kb-card { padding: 24px 20px; }
  .kb-tools { grid-template-columns: repeat(2, 1fr); }
  .details { grid-template-columns: 1fr; }
  .cta-card { padding: 56px 20px 44px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
  .seg button { padding: 6px 10px; }
  .kb-list li span { font-size: 14px; }
  kbd { min-width: 26px; height: 26px; padding: 0 7px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  /* Show the hero in its "captured" end state */
  .sel, .cursor, .aio, .flash { display: none; }
  .thumb, .thumb-hover { animation: none !important; opacity: 1; transform: none; }
}
