/* Ledge Grab — landing page
   Motion mirrors src/anim.rs:
   Emphasized  cubic-bezier(.32,.72,0,1)   growing / arriving
   Standard    cubic-bezier(.4,0,.2,1)     shrinking / moving
   Spring      1 - e^(-6.2t)·cos(7.4t)     tactile catch, ~7–10% overshoot */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #070709;
  --bg-2: #0d0e12;
  --panel: #111216;
  --ink: #f3ede1;
  --ink-2: rgba(243, 237, 225, 0.64);
  --ink-3: rgba(243, 237, 225, 0.4);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --sapph: #3b9eff;
  --sapph-2: #8fd0ff;
  --copper: #c9825a;
  --red: #f0506e;
  --paper: #fbfaf7;
  --paper-ink: #1d1d1f;

  --emph: cubic-bezier(0.32, 0.72, 0, 1);
  --std: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: linear(0, 0.1583, 0.3165, 0.4666, 0.6033, 0.7234, 0.8253, 0.9088, 0.9746, 1.0242, 1.0594, 1.0823, 1.0951, 1.0997, 1.0982, 1.0923, 1.0833, 1.0727, 1.0613, 1.0499, 1.0391, 1.0293, 1.0207, 1.0134, 1.0074, 1.0027, 0.9992, 0.9966, 0.995, 0.9941, 0.9938, 0.9939, 0.9943, 0.995, 0.9957, 0.9966, 0.9974, 0.9982, 0.9989, 0.9995, 1);

  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(59, 158, 255, 0.35); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ───────── Ambient backdrop ───────── */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ambient .blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  will-change: transform;
}
.ambient .b1 { width: 70vw; height: 60vw; left: 30vw; top: -30vw; background: radial-gradient(closest-side, #1c3560, transparent); animation: drift1 26s var(--std) infinite alternate; }
.ambient .b2 { width: 50vw; height: 50vw; left: -18vw; top: 40vh; background: radial-gradient(closest-side, #5a3524, transparent); opacity: 0.38; animation: drift2 32s var(--std) infinite alternate; }
.ambient .b3 { width: 46vw; height: 46vw; right: -16vw; top: 120vh; background: radial-gradient(closest-side, #16325c, transparent); animation: drift1 38s var(--std) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(-8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(10vw, -8vh, 0) scale(0.92); } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { to { transform: translate3d(-4%, 3%, 0); } }

/* ───────── Header navigation ───────── */
.nav {
  --bar-w: min(var(--wrap), calc(100% - 48px));
  position: fixed; inset: 0 0 auto; z-index: 60; height: 58px; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,9,.96), rgba(7,7,9,.85) 75%, rgba(7,7,9,0));
}
.nav-row {
  position: absolute; top: 0; left: 0; right: 0; margin-inline: auto;
  width: var(--bar-w); height: 58px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-row > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; flex: none; }
.nav-row .brand { min-height: 44px; }
.brand-name { white-space: nowrap; }

:where(a, button):focus-visible { outline: 2px solid var(--sapph-2); outline-offset: 4px; }

.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: var(--h);
  padding: 0 20px; border-radius: 999px; font-weight: 550; font-size: 15px; letter-spacing: -0.005em;
  color: #0b0b0d; background: linear-gradient(180deg, #fffdf9, #e7dfcf);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 8px 24px -8px rgba(236,229,215,.35);
  transition: transform 0.5s var(--spring), box-shadow 0.4s var(--std);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--emph);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 14px 34px -10px rgba(236,229,215,.5); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(0.97); transition-duration: 0.12s; }
.btn.sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn.ghost {
  color: var(--ink); background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.btn.ghost::before { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); }
.btn.ghost:hover { background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }
.btn svg { width: 17px; height: 17px; flex: none; }

.iconbtn {
  position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #1a1b1f; color: rgba(243,237,225,.9);
  transition: background 0.25s var(--std), transform 0.45s var(--spring);
}
.iconbtn:hover { background: #2a2c31; transform: scale(1.08); }
.iconbtn:active { transform: scale(0.92); transition-duration: .1s; }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 4px) scale(.96); white-space: nowrap; pointer-events: none;
  background: #f3ede1; color: #0b0b0d; font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 7px;
  opacity: 0; transition: opacity 0.18s var(--std), transform 0.35s var(--emph);
}
.iconbtn[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0) scale(1); transition-delay: .35s; }

/* ───────── Tiles (mini screenshots) ───────── */
.tile {
  position: relative; border-radius: 10px; overflow: hidden; background: #15161a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset;
  aspect-ratio: 16 / 10;
}
.tile > .art { position: absolute; inset: 0; }
.tile .shotclip { position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.tile .shotclip > * { position: absolute; transform-origin: 0 0; }

.art-inv { background: #fbfaf7; padding: 9% 9%; color: #1d1d1f; }
.art-inv b { display: block; font-size: 8px; font-weight: 700; margin-bottom: 6%; }
.art-inv .r { display: flex; gap: 6%; margin-top: 5%; }
.art-inv .r i { height: 3px; border-radius: 2px; background: #d9d6cf; flex: 1; }
.art-inv .r i:first-child { flex: .6; background: #a8a49b; }
.art-pal { display: grid; grid-template-columns: repeat(4, 1fr); }
.art-pal i:nth-child(1) { background: #284b55; } .art-pal i:nth-child(2) { background: #2a9d8f; } .art-pal i:nth-child(3) { background: #e9c46a; } .art-pal i:nth-child(4) { background: #f4a261; }
.art-pal i:nth-child(5) { background: #e76f51; } .art-pal i:nth-child(6) { background: #6d597a; } .art-pal i:nth-child(7) { background: #355070; } .art-pal i:nth-child(8) { background: #b56576; }
.art-clock { background: #121317; padding: 10% 10%; color: #e9e6e0; }
.art-clock small { display: block; font-size: 6px; opacity: .5; }
.art-clock b { display: block; font-weight: 300; font-size: clamp(14px, 2.2vw, 24px); letter-spacing: -0.02em; line-height: 1.1; }
.art-clock i { display: block; margin-top: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #4cc59e 58%, rgba(255,255,255,.15) 58%); }
.art-map { background: #e4ebdf; }
.art-chat { background: #fbfaf7; padding: 8%; display: flex; flex-direction: column; gap: 7%; }
.art-chat i { height: 13%; border-radius: 6px; background: #ebe8e1; width: 44%; }
.art-chat i.me { align-self: flex-end; background: #2f6f5a; width: 52%; }
.art-poster { background: linear-gradient(170deg, #c86b5a 0%, #8e4a5e 55%, #3d2a45 100%); padding: 9%; color: #fff1e0; display: flex; flex-direction: column; justify-content: flex-end; }
.art-poster::before { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; right: 12%; top: 12%; background: #ffd9a0; }
.art-poster b { position: relative; font-size: clamp(10px, 1.5vw, 16px); line-height: .95; font-weight: 600; letter-spacing: -.02em; }
.art-code { background: #121317; padding: 9%; display: flex; flex-direction: column; gap: 9%; }
.art-code i { height: 3px; border-radius: 2px; background: #3b3f49; }
.art-code i:nth-child(2) { margin-left: 10%; background: #6c89b8; width: 70%; }
.art-code i:nth-child(3) { margin-left: 20%; width: 50%; background: #9a7ec2; }
.art-code i:nth-child(4) { margin-left: 10%; width: 40%; }
.art-code i:nth-child(5) { width: 60%; background: #7aa874; }
.art-chart { background: #f6f2e8; padding: 9% 9% 7%; display: flex; flex-direction: column; }
.art-chart small { font-size: 7px; font-weight: 700; color: #222; }
.art-chart .bars { flex: 1; display: flex; align-items: flex-end; gap: 5%; padding: 0 6%; }
.art-chart .bars i { flex: 1; background: #3d5a80; border-radius: 1px; }
.art-chart .bars i.hi { background: #e0a94a; }
.art-pdf { background: #15161a; display: grid; place-items: center; }
.art-pdf::before { content: ""; position: absolute; inset: 0; background: inherit; filter: brightness(.35); }
.art-pdf b { position: relative; font-size: clamp(14px, 2vw, 22px); font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.88); }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 130px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.035); box-shadow: 0 0 0 1px var(--line) inset;
}
.eyebrow .pill { font-size: 11px; font-weight: 650; color: #0b0b0d; background: var(--sapph-2); padding: 2px 8px; border-radius: 999px; }
h1.display {
  margin: 26px auto 0;
  font-size: clamp(48px, 8.4vw, 112px); line-height: 1.04; font-weight: 640; letter-spacing: -0.045em;
}
.display .w { display: inline-block; white-space: nowrap; }
.display .w > span {
  display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(0.35em) rotate(2deg);
  animation: wordIn 1.15s var(--emph) forwards; animation-delay: calc(0.15s + var(--i) * 0.07s);
}
.display .soft { padding-bottom: .13em; margin-bottom: -.13em; color: transparent; background: linear-gradient(180deg, #f3ede1 10%, rgba(243,237,225,.45) 100%); -webkit-background-clip: text; background-clip: text; }
@keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
.hero .lede {
  margin: 26px auto 0; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55;
}
.fade-up { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: wordIn 1s var(--emph) forwards; animation-delay: var(--d, .6s); }
.cta-row { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.meta-row { margin-top: 18px; font-size: 13px; color: var(--ink-2); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.meta-row span:first-child::before { display: none; }

/* Keycaps */
.keys { display: inline-flex; gap: 6px; align-items: center; }
.kbd {
  --kc: #1b1c21;
  position: relative; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: rgba(243,237,225,.9); border-radius: 8px;
  background: linear-gradient(180deg, #26282e, var(--kc));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 1px 0 rgba(255,255,255,.1) inset, 0 3px 0 #050506, 0 4px 10px rgba(0,0,0,.5);
  transform: translateY(0); transition: transform 0.25s var(--spring), box-shadow 0.25s var(--std), color .2s, background .2s;
}
.kbd.down, .kbd:active {
  transform: translateY(2.5px);
  box-shadow: 0 0 0 1px rgba(143,208,255,.45) inset, 0 1px 0 rgba(255,255,255,.08) inset, 0 0.5px 0 #050506, 0 0 18px rgba(59,158,255,.35);
  color: #fff; transition-duration: 0.08s;
}
.keys .plus { color: var(--ink-3); font-size: 12px; }

/* Stage — a frozen desktop */
.capture-controls { margin: 42px auto 0; display: flex; gap: 12px; align-items: center; justify-content: center; }
.capture-controls .btn { --h: 44px; }
.capture-controls .btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.stage-wrap { position: relative; margin: 18px auto 0; width: min(1120px, calc(100% - 32px)); perspective: 2000px; }
.stage-glow { position: absolute; inset: 10% 8% -6%; background: radial-gradient(60% 60% at 50% 40%, rgba(59,158,255,.28), transparent 70%); filter: blur(40px); z-index: -1; }
.stage {
  position: relative; aspect-ratio: 16 / 9.4; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 12% 108%, rgba(201,130,90,.75), transparent 60%),
    radial-gradient(60% 80% at 92% 100%, rgba(122,72,128,.6), transparent 60%),
    radial-gradient(80% 70% at 50% -10%, #1d3156, transparent 70%),
    linear-gradient(180deg, #121a2c, #241f33);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 10px rgba(255,255,255,.015);
  transform-origin: 50% 0;
  opacity: 0; transform: rotateX(18deg) translateY(40px) scale(.96);
  animation: stageIn 1.6s var(--emph) .55s forwards;
}
@keyframes stageIn { to { opacity: 1; transform: none; } }

.win {
  position: absolute; left: 50%; top: 52%; width: 72%; height: 74%; transform: translate(-50%, -50%);
  background: var(--paper); color: var(--paper-ink); border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2);
  font-size: clamp(7px, 1.05vw, 13px); text-align: left;
}
.win .chrome { height: 6.4%; background: #efebe3; display: flex; align-items: center; gap: .5em; padding: 0 1.3em; color: #6b675f; font-size: .8em; }
.win .chrome i { width: .75em; height: .75em; border-radius: 50%; background: #d6d1c7; }
.win .chrome span { margin-left: .8em; }
.win .body { padding: 4.2% 4.8%; }
.win h4 { font-size: 2.3em; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: .4em; }
.win h4 .badge { width: .78em; height: .78em; font-size: .5em; display: inline-grid; place-items: center; border-radius: 50%; background: #e5484d; color: #fff; padding: .7em; }
.win .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6em; margin-top: 1.8em; }
.win .card { border: 1px solid #ebe7df; border-radius: .7em; padding: 1.1em 1.4em; background: #fdfcfa; }
.win .card small { color: #8b867c; font-size: .82em; }
.win .card b { display: block; font-size: 1.8em; font-weight: 600; letter-spacing: -0.01em; margin-top: .15em; }
.win .card code { display: block; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.05em; margin-top: .55em; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; }
.win table { width: 100%; border-collapse: collapse; margin-top: 2em; }
.win td { border-top: 1px solid #eeeae3; padding: .95em .5em; }
.win td:first-child { font-weight: 650; }
.win td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.win td.mail { color: #4b4841; }

.freeze { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sel {
  position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0;
  box-shadow: 0 0 0 9999px rgba(4, 6, 12, 0.5);
  outline: 1.5px solid rgba(255,255,255,.95); outline-offset: 0;
  transition: opacity 0.35s var(--std);
}
.sel.on { opacity: 1; }
.sel .dim {
  position: absolute; left: 0; top: calc(100% + 8px); padding: 3px 7px; border-radius: 6px; white-space: nowrap;
  background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.sel .h { position: absolute; width: 7px; height: 7px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.sel .h:nth-of-type(2) { left: -4px; top: -4px; } .sel .h:nth-of-type(3) { right: -4px; top: -4px; }
.sel .h:nth-of-type(4) { left: -4px; bottom: -4px; } .sel .h:nth-of-type(5) { right: -4px; bottom: -4px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 7; pointer-events: none; }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 8; pointer-events: none; opacity: 0; transition: opacity .3s var(--std); filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cursor.on { opacity: 1; }
.cursor svg { position: absolute; inset: 0; }
.cursor .arrow { transition: opacity .15s; }
.cursor .cross { opacity: 0; transition: opacity .15s; }
.cursor.x .arrow { opacity: 0; }
.cursor.x .cross { opacity: 1; }

.toolbar {
  position: absolute; top: 0; left: 50%; z-index: 6; display: flex; align-items: center; gap: 1.1em;
  padding: .9em 1.4em 1em; background: #000; color: rgba(255,255,255,.88); border-radius: 0 0 16px 16px;
  font-size: clamp(8px, .95vw, 12px); font-weight: 600;
  transform: translate(-50%, -110%);
  transition: transform 0.4s var(--std);
}
.toolbar.on { transform: translate(-50%, 0); transition: transform 0.7s var(--spring); }
.toolbar svg { width: 1.3em; height: 1.3em; }
.toolbar .c { width: 1em; height: 1em; border-radius: 50%; }
.toolbar .c.act { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
.toolbar .sep { width: 1px; height: 1.2em; background: rgba(255,255,255,.18); }

/* ───────── Sections ───────── */
section.block { padding: 150px 0 0; position: relative; }
h2.title { margin-top: 18px; font-size: clamp(36px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 620; max-width: 16ch; }
h2.title .soft { color: var(--ink-3); }
.sub { margin-top: 20px; max-width: 540px; color: var(--ink-2); font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }

.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--emph), transform 1.1s var(--emph), filter 1s var(--emph); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

.panel {
  position: relative; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; isolation: isolate;
}
.panel.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--std);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(143,208,255,.09), transparent 60%);
}
.panel.spot:hover::before { opacity: 1; }

/* Shelf demo */
.shelf-scene {
  margin-top: 64px; position: relative; padding: 0 0 56px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(60% 70% at 15% 120%, rgba(201,130,90,.35), transparent 60%),
    radial-gradient(70% 70% at 80% -20%, rgba(29,49,86,.9), transparent 70%),
    #0c0f17;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.shelf {
  position: relative; margin: 0 auto; width: min(860px, calc(100% - 40px)); background: #000;
  border-radius: 0 0 30px 30px; padding: 22px 22px 18px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), inset 0 -1px 0 rgba(154,212,255,.12);
}
.shelf::before, .shelf::after { content: ""; position: absolute; top: 0; width: 16px; height: 16px; }
.shelf::before { left: -16px; background: radial-gradient(circle at 0 100%, transparent 15.5px, #000 16px); }
.shelf::after { right: -16px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, #000 16px); }
.shelf-tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; }
.shelf-tabs button { padding: 6px 12px; border-radius: 999px; color: var(--ink-3); transition: color .25s, background .25s; }
.shelf-tabs button.on { background: #1d1e23; color: var(--ink); }
 .shelf-tabs button:hover { color: var(--ink); }
.shelf-demo-label { margin-left: auto; color: var(--ink-2); font-size: 11px; }
.shelf-empty { grid-column: 1/-1; padding: 24px; color: var(--ink-2); text-align: center; }
.folder-art { display: grid; place-items: center; }
.folder-art svg { width: 40%; max-width: 62px; }
.shelf-grid .tile:disabled, .iconbtn:disabled { cursor: default; }
.shelf-grid .tile:disabled:hover, .iconbtn:disabled:hover { transform: none; }
.shelf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shelf-grid .tile {
  cursor: pointer; transition: transform 0.55s var(--spring), box-shadow .3s var(--std), opacity .4s var(--std);
}
.shelf-grid .tile:hover { transform: translateY(-3px) scale(1.025); }
.shelf-grid .tile.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,255,255,.12); }
.shelf-grid .tile .tick {
  position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.35); box-shadow: 0 0 0 1.5px rgba(255,255,255,.8) inset; z-index: 2;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #000;
  opacity: 0; transform: scale(.7); transition: opacity .25s var(--std), transform .45s var(--spring), background .2s;
}
.shelf-grid .tile:hover .tick, .shelf-grid.picking .tile .tick { opacity: 1; transform: none; }
.shelf-grid .tile.sel .tick { background: #fff; box-shadow: none; opacity: 1; transform: none; animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.shelf-grid .tile.enter { animation: tileIn .8s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(-16px) scale(.9); } }
.shelf-bar { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.shelf-bar .sp { flex: 1; }
.shelf-bar .status { font-size: 13px; color: var(--ink-3); min-width: 0; transition: color .3s; }
.shelf-bar .status b { color: var(--ink); font-weight: 600; }
.iconbtn.dim { opacity: .35; pointer-events: none; }
.iconbtn.primary { background: #f3ede1; color: #0b0b0d; }
.iconbtn.primary:hover { background: #fff; }
.shelf-caption { position: relative; text-align: center; margin-top: 30px; font-size: 14px; color: var(--ink-3); display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.shelf-caption span { display: inline-flex; gap: 8px; align-items: center; }
.toast {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 20px) scale(.96); opacity: 0;
  background: #f3ede1; color: #0b0b0d; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: all .55s var(--spring); pointer-events: none; z-index: 5; white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

.feature-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px; min-height: 210px; display: flex; flex-direction: column; }
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-top: auto; }
.feat p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 26px; transition: transform .6s var(--spring); }
.feat:hover .ico { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.feat .ico svg { width: 21px; height: 21px; color: var(--sapph-2); }

/* Real recording */
/* Redaction */
.seal { margin-top: 64px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.doc-stage {
  position: relative; padding: 48px; display: grid; place-items: center; min-height: 460px;
  background: radial-gradient(80% 80% at 50% 110%, rgba(201,130,90,.25), transparent 60%), linear-gradient(180deg, #10131c, #0b0c10);
}
.doc {
  position: relative; width: 100%; max-width: 520px; background: var(--paper); color: var(--paper-ink); border-radius: 14px;
  padding: 34px 38px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); font-size: 19px; line-height: 1;
  overflow: hidden;
}
.doc p { display: flex; align-items: center; gap: 8px; height: 46px; }
.doc p.t { font-weight: 650; font-size: 22px; height: 52px; }
.sec { position: relative; display: inline-block; padding: 6px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.sec .txt { position: relative; z-index: 1; transition: filter .9s var(--emph), opacity .5s; }
.sec::before {
  content: ""; position: absolute; inset: 0; border-radius: 6px; background: rgba(240,80,110,.12);
  box-shadow: 0 0 0 1.5px var(--red) inset; opacity: 0; transform: scale(1.18); transition: opacity .3s var(--std), transform .6s var(--spring);
}
.sec::after {
  content: ""; position: absolute; inset: 2px; border-radius: 4px; z-index: 2; opacity: 0;
  background-image: linear-gradient(90deg, rgba(160,155,148,.0), rgba(160,155,148,.0));
  transition: opacity .5s;
}
.doc.found .sec::before { opacity: 1; transform: scale(1); transition-delay: calc(var(--i) * 140ms); }
.doc.sealed .sec .txt { filter: blur(7px) saturate(0); opacity: .75; transition-delay: calc(var(--i) * 90ms); }
.doc.sealed .sec::before { opacity: 0; transform: scale(.96); transition-delay: 0s; }
.doc.sealed .sec::after {
  opacity: 1; transition-delay: calc(var(--i) * 90ms + .2s);
  background-image: repeating-linear-gradient(90deg, rgba(120,116,108,.22) 0 7px, rgba(200,196,188,.22) 7px 13px, rgba(150,146,138,.18) 13px 21px);
  filter: blur(1.5px);
}
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(59,158,255,.0) 40%, rgba(59,158,255,.18) 92%, rgba(143,208,255,.9) 100%);
  transform: translateY(-100%);
}
.doc.scanning .scanline { animation: scan 1.3s var(--std) forwards; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-100%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(440px); } }
.seal-side { padding: 34px; display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 14px; margin: -14px; border-radius: 16px; transition: background .4s var(--std); cursor: pointer; }
.step:hover { background: rgba(255,255,255,.03); }
.step.on { background: rgba(59,158,255,.08); }
.step .kbd { flex: none; }
.step .step-title { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.step .step-copy { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }
.seal-side .note { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.seal-side .note b { color: var(--ink); font-weight: 600; }

/* Tools playground */
.tools { margin-top: 64px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; }
.keyboard { padding: 30px; }
.keyboard .grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.toolkey {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 12px 12px 11px; border-radius: 14px; text-align: left;
  background: linear-gradient(180deg, #1d1e23, #15161a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 1px 0 rgba(255,255,255,.08) inset, 0 4px 0 #050506, 0 6px 14px rgba(0,0,0,.45);
  transition: transform .3s var(--spring), box-shadow .25s var(--std), background .3s;
}
.toolkey b { font-size: 17px; font-weight: 650; line-height: 1; }
.toolkey span { font-size: 12px; color: var(--ink-3); line-height: 1.15; transition: color .25s; }
.toolkey:hover { background: linear-gradient(180deg, #23252b, #191a1f); }
.toolkey.on {
  transform: translateY(3px); background: linear-gradient(180deg, #1c2a3d, #141c28);
  box-shadow: 0 0 0 1px rgba(143,208,255,.45) inset, 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 0 #050506, 0 0 30px -4px rgba(59,158,255,.45);
}
.toolkey.on span { color: var(--sapph-2); }
.keyboard .hint { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.modes { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: 0 0 0 1px var(--line) inset; font-size: 14.5px; }
.mode .keys .kbd { height: 24px; min-width: 24px; font-size: 11px; padding: 0 7px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 2px 0 #050506; }

.canvas { position: relative; min-height: 440px; display: grid; place-items: center; padding: 36px;
  background:
    radial-gradient(70% 90% at 90% 110%, rgba(122,72,128,.4), transparent 60%),
    radial-gradient(70% 90% at 0% 110%, rgba(201,130,90,.35), transparent 60%),
    linear-gradient(180deg, #121a2c, #1a1726);
}
.canvas .tname { position: absolute; top: 22px; left: 26px; font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.canvas .tname b { color: var(--ink); font-weight: 600; font-size: 15px; transition: opacity .2s; }
.mini {
  position: relative; width: 100%; max-width: 470px; aspect-ratio: 470 / 300; background: var(--paper); color: var(--paper-ink);
  border-radius: 12px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); overflow: hidden;
}
.mini .m-body { position: absolute; inset: 0; padding: 7% 7.5%; font-size: clamp(10px, 1.1vw, 13.5px); }
.mini .m-title { font-size: 1.6em; font-weight: 700; letter-spacing: -.02em; }
.mini .m-row { display: flex; justify-content: space-between; padding: .85em 0; border-top: 1px solid #eeeae3; margin-top: .3em; }
.mini .m-row:first-of-type { margin-top: 1.2em; }
.mini .m-row span:first-child { font-weight: 600; }
.mini .tgt { position: relative; display: inline-block; transition: filter .6s var(--emph), opacity .6s var(--emph); }
.mini .pix { position: absolute; inset: -2px -4px; opacity: 0; transition: opacity .4s var(--std); background-size: 9px 9px;
  background-image: linear-gradient(90deg, #8b8579 0 33%, #b9b3a7 33% 66%, #9d978b 66%), linear-gradient(#a49e92 0 50%, #c4beb2 50%); background-blend-mode: multiply; border-radius: 2px; }
.mini svg.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tile .copied { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 650; z-index: 3; animation: copied 1.1s var(--std) forwards; }
@keyframes copied { 0% { opacity: 0; } 15%, 70% { opacity: 1; } 100% { opacity: 0; } }
.tile .pinb { position: absolute; left: 7px; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--sapph); display: grid; place-items: center; z-index: 2; animation: pop .5s var(--spring); }
.tile .pinb svg { width: 11px; height: 11px; color: #fff; }
.tile .pdfov { position: absolute; inset: 0; background: rgba(0,0,0,.62); display: grid; place-items: center; font-weight: 650; font-size: clamp(14px, 2vw, 22px); letter-spacing: .03em; color: rgba(255,255,255,.92); z-index: 1; }
.doc.erased .sec .txt { opacity: 0; filter: blur(2px); transition-delay: calc(var(--i) * 90ms); }
.doc.erased .sec::before { opacity: 0; }
.mini .dimmer { position: absolute; inset: 0; pointer-events: none; }

/* Performance */

/* CTA */
.cta { padding: 170px 0 120px; text-align: center; position: relative; }
.icon3d { width: 168px; height: 168px; margin: 0 auto; perspective: 800px; }
.icon3d .in { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--emph); animation: float 6s ease-in-out infinite; }
.icon3d img { width: 100%; height: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(59,158,255,.18)); }
@keyframes float { 50% { translate: 0 -10px; } }
.cta h2 { margin: 40px auto 0; font-size: clamp(42px, 6.6vw, 88px); line-height: .95; letter-spacing: -0.045em; font-weight: 640; max-width: 12ch; }
.cta .sub { margin-inline: auto; }
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 13.5px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand { color: var(--ink-2); font-size: 14px; }
footer .brand img { width: 20px; height: 20px; }
footer nav { display: flex; gap: 22px; }
footer nav a:hover { color: var(--ink); }

/* ───────── Responsive ───────── */
@media (max-width: 1020px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .seal, .tools { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { --bar-w: calc(100% - 30px); }
  .nav-row .brand { font-size: 14px; gap: 5px; }
  .nav-row .brand img { width: 22px; height: 22px; }
  .nav-row #navDl { padding-inline: 12px; font-size: 13px; }
  .hero { padding-top: 102px; }
  .capture-controls { margin-top: 30px; }
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .shelf-demo-label { margin-left: 8px; }
  .shelf { width: calc(100% - 26px); padding-inline: 14px; }
  .shelf-tabs button { padding-inline: 9px; }
  .keyboard { padding: 18px; }
  .canvas { min-height: 310px; padding: 20px; }
  .keyboard .grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .toolkey { padding: 9px 8px; gap: 12px; }
  .toolkey span { font-size: 10.5px; }
  .modes { grid-template-columns: 1fr; }
  .doc-stage { padding: 22px; min-height: 0; }
  .doc { padding: 22px; font-size: 15px; }
  .doc p { height: 38px; }
  .toolbar .opt { display: none; }
  section.block { padding-top: 110px; }
}

@media (max-width: 360px) {
  .nav-row .brand-name { max-width: 67px; }
  .nav-row #navDl { padding-inline: 9px; }
  .shelf-demo-label { display: none; }
  .hero .cta-row { gap: 8px; }
  .hero .cta-row .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient .blob, .grain { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
.shelf-caption { transition: opacity .3s var(--std); }
.shelf-scene:has(.toast.on) .shelf-caption { opacity: 0; }
