/* Morsekey landing page. Monochrome brand: black and white, red only for danger, status shown by shape. */

:root {
  --bg: #050506;
  --bg-2: #0a0a0b;
  --panel: #0e0e10;
  --ink: #f5f5f7;
  --ink-2: rgba(245, 245, 247, .64);
  --ink-3: rgba(245, 245, 247, .4);
  --ink-4: rgba(245, 245, 247, .22);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --fill: rgba(255, 255, 255, .05);
  --danger: #ff6961;
  --danger-bg: rgba(255, 105, 97, .1);
  /* App (dark appearance) tokens, used by the product mockups. */
  --app-canvas: #1c1c1e;
  --app-surface: #2c2c2e;
  --app-text-2: #98989d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Geist Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); }
::selection { background: rgba(255, 255, 255, .9); color: #000; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 18px; height: 18px; flex: none;
  stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: #000; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 16px; }
.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ───────── Logo mark ───────── */
.mk { display: inline-block; color: var(--ink); }
.mk svg { width: 100%; height: 100%; overflow: visible; }
.mk path { fill: currentColor; }
.mk .mk-trace { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 101 101; stroke-dashoffset: 101; opacity: 0; }
.mk-nav { width: 30px; height: 13px; }
.mk-tiny { width: 18px; height: 8px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s, opacity .2s;
}
.btn .i { width: 16px; height: 16px; stroke-width: 2; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(180deg, #fff, #e4e4e7);
  color: #09090b;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 24px -6px rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 40px -6px rgba(255, 255, 255, .4); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }

/* ───────── Waitlist form ───────── */
.wl-form {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  width: min(460px, 100%);
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .3s var(--ease), background .3s;
}
.wl-form:focus-within { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 0 0 4px rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .8); }
.wl-form input[type="email"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px;
  background: none; border: 0; outline: 0; color: var(--ink); font: 500 16px var(--font);
}
.wl-form input::placeholder { color: var(--ink-3); }
.wl-form .btn { flex: none; }
.wl-msg {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px);
  font-size: 14px; color: var(--ink-2); text-align: center; min-height: 1.4em;
}
.wl-msg.is-error { color: var(--danger); }
.wl-form.is-busy .btn { opacity: .7; pointer-events: none; }
.wl-form.is-busy .btn .i { animation: nudge .8s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.wl-form.is-done { justify-content: center; }
.wl-form.is-done > :not(.wl-done) { display: none; }
.wl-done {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px;
  font-weight: 600; animation: pop .5s var(--spring) both;
}
.wl-done .i { width: 20px; height: 20px; stroke-width: 2; }
.wl-done small { font-weight: 400; color: var(--ink-2); font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }

/* ───────── Nav ───────── */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  width: min(1120px, 100% - 24px);
  margin-inline: auto;
  height: 56px; padding: 0 10px 0 18px;
  border-radius: 16px;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(14, 14, 16, .62);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 40px -16px rgba(0, 0, 0, .9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 17px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: var(--fill); }
.nav .btn { margin-left: 8px; }

/* ───────── Hero ───────── */
.hero { position: relative; padding-top: 148px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto; height: min(1200px, 140vh); z-index: -1; overflow: hidden; }
.signal-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 18%, #000 25%, transparent 78%);
  mask-image: radial-gradient(120% 75% at 50% 18%, #000 25%, transparent 78%);
}
.hero-beam {
  position: absolute; left: 50%; top: -120px; width: 1100px; height: 900px; translate: -50% 0;
  background: conic-gradient(from 180deg at 50% 0%, transparent 152deg, rgba(255, 255, 255, .07) 168deg, rgba(255, 255, 255, .13) 180deg, rgba(255, 255, 255, .07) 192deg, transparent 208deg);
  filter: blur(18px);
  -webkit-mask-image: linear-gradient(#000 30%, transparent 85%);
  mask-image: linear-gradient(#000 30%, transparent 85%);
  animation: beam 9s var(--ease-in-out) infinite alternate;
}
@keyframes beam { from { opacity: .75; rotate: -3deg; } to { opacity: 1; rotate: 3deg; } }
.hero-halo {
  position: absolute; left: 50%; top: 40px; width: 720px; height: 520px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent);
}
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-icon { position: relative; width: 116px; height: 116px; margin-bottom: 30px; perspective: 600px; }
.app-icon {
  position: relative; width: 100%; height: 100%;
  border-radius: 22.37%;
  display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 46%),
    linear-gradient(150deg, #3a3a3c 0%, #1f1f21 60%, #111113 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 0 0 1px rgba(0, 0, 0, .6), 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 90px rgba(255, 255, 255, .1);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.app-icon .mk-icon { width: 86%; height: 86%; color: #fff; }
.app-icon-sheen {
  position: absolute; inset: -40%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .22) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: sheen 7s var(--ease-in-out) 2.4s infinite;
  pointer-events: none;
}
@keyframes sheen { 0% { transform: translateX(-70%); } 22%, 100% { transform: translateX(70%); } }
.hero-icon .app-icon { animation: float 7s var(--ease-in-out) infinite; }
@keyframes float { 50% { translate: 0 -6px; } }
/* Signal pulses: two long rings, the morse M. */
.pulses span {
  position: absolute; inset: 0; border-radius: 26%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
  opacity: 0;
  animation: pulse 5.4s var(--ease) infinite;
}
.pulses span:nth-child(2) { animation-delay: .55s; }
@keyframes pulse {
  0% { opacity: 0; transform: scale(1); }
  4% { opacity: .55; }
  40%, 100% { opacity: 0; transform: scale(2.3); }
}
.pulses.is-js span { animation: pulseOnce 2.2s var(--ease) forwards; }
@keyframes pulseOnce { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }

.eyebrow-chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px 0 12px; margin-bottom: 26px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.morse-blink { display: inline-flex; gap: 3px; }
.morse-blink i { width: 9px; height: 3px; border-radius: 2px; background: var(--ink); animation: blinkM 2.4s steps(1) infinite; }
.morse-blink i:nth-child(2) { animation-delay: .3s; }
@keyframes blinkM { 0%, 24% { opacity: 1; } 25%, 100% { opacity: .25; } }

.hero-title {
  font: 640 clamp(48px, 8.4vw, 108px)/.98 var(--display);
  letter-spacing: -.048em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero-title .w {
  display: inline-block;
  padding-bottom: .06em;
  background: linear-gradient(180deg, #fff 0%, #fff 40%, #a8a8ad 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.morse-line { display: flex; justify-content: center; gap: 4px; max-width: 100%; overflow: hidden; margin-bottom: 26px; }
.morse-line .sym { height: 4px; border-radius: 2px; background: var(--ink); opacity: .2; }
.morse-line .dot { width: 4px; }
.morse-line .dash { width: 14px; }
.morse-line .gap { width: 8px; }
.morse-line .wgap { width: 18px; }
.morse-line.is-live .sym { animation: key 7s linear infinite; animation-delay: calc(var(--t) * 70ms); }
@keyframes key {
  0% { opacity: .2; }
  1% { opacity: 1; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
  7% { opacity: .5; box-shadow: none; }
  100% { opacity: .3; }
}
.hero-sub { max-width: 600px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); margin-bottom: 34px; text-wrap: pretty; }
.hero-note { margin-top: 48px; font-size: 13px; color: var(--ink-3); }

/* ───────── Product demo ───────── */
.demo { margin-top: 72px; padding-bottom: 40px; }
.demo-viewport { position: relative; perspective: 2200px; }
.demo-tilt { transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--tilt-scale, 1)); will-change: transform; }
.demo-canvas {
  --s: 1;
  position: relative; width: 1200px; height: 780px;
  transform: scale(var(--s)); transform-origin: 0 0;
  font-family: var(--font);
}
.demo-floor {
  position: absolute; left: 10%; right: 10%; bottom: -60px; height: 140px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent);
  filter: blur(20px);
}

/* Mac window */
.mac {
  position: absolute; left: 0; top: 0; width: 980px; height: 640px;
  transform-origin: 0 0;
  display: grid; grid-template-columns: 216px 270px 1fr;
  border-radius: 18px;
  background: #161618;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08),
    0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .8);
  overflow: hidden;
  font-size: 13px;
  transition: box-shadow .6s var(--ease);
}
.s-wire .mac { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .1), 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 80px rgba(255, 255, 255, .07); }
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3d; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.mac-sidebar {
  margin: 8px 0 8px 8px; padding: 14px 10px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.mac-sidebar .lights { margin: 0 0 18px 4px; }
.mac-wordmark { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; margin: 0 0 12px 6px; }
.mac-search { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--ink-3); margin-bottom: 14px; }
.mac-search .i { width: 14px; height: 14px; }
.side-list li { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 8px; color: rgba(245, 245, 247, .82); }
.side-list .i { width: 17px; height: 17px; color: var(--ink); }
.side-list li.is-selected { background: rgba(255, 255, 255, .1); }
.side-count { margin-left: auto; font-size: 11px; color: var(--ink-3); opacity: 0; transition: opacity .4s; }
.s-running .side-count { opacity: 1; }
.side-head { font-size: 11px; font-weight: 600; color: var(--ink-3); margin: 16px 0 4px 8px; }

.mac-list { padding: 18px 10px; border-right: 1px solid rgba(255, 255, 255, .06); }
.mac-list-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; font-size: 15px; font-weight: 650; }
.mac-list-head .i { width: 16px; height: 16px; color: var(--ink-2); }
.mac-list li { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.mac-list li .tile { grid-row: span 2; }
.mac-list li b { font-weight: 550; font-size: 13px; }
.mac-list li small { color: var(--ink-3); font-size: 11.5px; }
.mac-list li.is-selected { background: rgba(255, 255, 255, .08); }
.tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tile .i { width: 18px; height: 18px; }
.tile-lg { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(150deg, #3a3a3c, #1c1c1e); }
.tile-lg .i { width: 24px; height: 24px; }

.mac-detail { padding: 0 22px; display: flex; flex-direction: column; min-width: 0; }
.mac-toolbar { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 4px; }
.mac-title { font-weight: 650; font-size: 14px; margin-right: auto; }
.tb-group { display: inline-flex; gap: 14px; padding: 0 12px; height: 30px; align-items: center; border-radius: 9px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tb-group .i { width: 16px; height: 16px; color: var(--ink-2); }
.tb-run { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; background: #ededed; color: #111; font-weight: 600; transition: transform .2s, box-shadow .3s; }
.tb-run .i { width: 14px; height: 14px; stroke-width: 2; }
.console { transition: box-shadow .5s var(--ease); }
.s-wire .console { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 40px rgba(255, 255, 255, .08); }
.s-wire .run-state { color: var(--ink); }
.cmd-head { display: flex; gap: 14px; align-items: center; margin: 12px 0 14px; }
.cmd-head h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.cmd-head p { color: var(--ink-2); font-size: 13px; }
.cmd-chips { display: flex; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 7px; font-size: 11.5px; font-weight: 550; color: var(--ink-2);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.chip .i { width: 13px; height: 13px; }
.chip-danger { color: var(--danger); background: var(--danger-bg); box-shadow: inset 0 0 0 1px rgba(255, 105, 97, .25); }

/* Status shapes: outline = safe/idle, half = changes, filled = online, triangle = dangerous. */
.shape { display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.shape.half { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.shape.fill { background: currentColor; }
.shape.tri { border-radius: 0; box-shadow: none; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 10px; }

.steps { counter-reset: s; display: grid; gap: 6px; margin-bottom: 16px; }
.steps li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.steps li .i { width: 15px; height: 15px; color: var(--ink-2); }
.steps code { font-size: 12px; color: rgba(245, 245, 247, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--ink-3); padding: 2px 6px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-2); }

.console { flex: 1; display: flex; flex-direction: column; margin-bottom: 18px; border-radius: 12px; background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); overflow: hidden; min-height: 0; }
.console-head { display: flex; gap: 14px; align-items: center; height: 34px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.run-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .08); }
.s-running .run-state { color: var(--ink); }
.s-running .run-state .shape, .pulse-sq {
  width: 8px; height: 8px; border-radius: 2px; background: currentColor; box-shadow: none;
  animation: sq 1.6s var(--ease-in-out) infinite;
}
.pulse-sq { display: inline-block; flex: none; color: var(--ink); animation-delay: var(--o, 0s); }
@keyframes sq { 50% { opacity: .35; transform: scale(.8); } }
.console-body { flex: 1; position: relative; overflow: hidden; }
.console-lines { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font: 12px/1.75 var(--mono); color: rgba(245, 245, 247, .78); }
.console-lines p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lineIn .35s var(--ease) both; }
.console-lines .c-cmd { color: var(--ink-3); }
.console-lines .c-ok { color: var(--ink); }
.console-lines:empty::before { content: "Run it from here or your phone to see its output."; color: var(--ink-4); font-family: var(--font); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }

/* iPhone */
.phone {
  position: absolute; left: 890px; top: 170px; width: 280px; height: 576px; z-index: 5;
  transform-origin: 0 0;
  padding: 10px; border-radius: 50px;
  background: linear-gradient(145deg, #3a3a3c, #121214 40%, #2a2a2c);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px #000, 0 60px 100px -30px rgba(0, 0, 0, .95), -30px 30px 80px -40px rgba(0, 0, 0, .9);
}
.phone-screen { position: relative; height: 100%; border-radius: 40px; background: #000; overflow: hidden; padding: 0 14px; font-size: 12px; }
.island { position: absolute; left: 50%; top: 10px; width: 82px; height: 24px; translate: -50% 0; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px #111; z-index: 5; }
.statusbar { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 4px 10px 0 14px; font-size: 13px; }
.sb-icons { display: inline-flex; align-items: center; gap: 5px; }
.sb-icons .i { width: 14px; height: 14px; stroke-width: 2; }
.bars { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.bars i { width: 3px; border-radius: 1px; background: var(--ink); }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 8px; } .bars i:nth-child(4) { height: 10px; }
.batt { width: 22px; height: 11px; border-radius: 3.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); position: relative; }
.batt::after { content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 14px; border-radius: 1.5px; background: var(--ink); }
.ph-top { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 12px; }
.ph-top h4 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.ph-btn { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--app-surface); }
.ph-btn .i { width: 16px; height: 16px; stroke-width: 2; }
.ph-stage {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; border-radius: 18px; margin-bottom: 14px;
  background: #0b0b0c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10'%3E%3Cg fill='%23fff'%3E%3Crect x='0' y='3' width='9' height='3' rx='1.5'/%3E%3Crect x='12' y='3' width='9' height='3' rx='1.5'/%3E%3Crect x='30' y='3' width='9' height='3' rx='1.5'/%3E%3Crect x='42' y='3' width='9' height='3' rx='1.5'/%3E%3Crect x='54' y='3' width='9' height='3' rx='1.5'/%3E%3Crect x='72' y='3' width='3' height='3' rx='1.5'/%3E%3Crect x='78' y='3' width='9' height='3' rx='1.5'/%3E%3Crect x='90' y='3' width='3' height='3' rx='1.5'/%3E%3C/g%3E%3C/svg%3E") repeat;
  background-size: 120px 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}
.ph-stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0c 30%, rgba(11, 11, 12, .8) 70%, rgba(11, 11, 12, .65)); }
.ph-stage > * { position: relative; }
.ph-stage-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.ph-stage-icon .i { width: 20px; height: 20px; }
.ph-stage b { display: block; font-size: 14px; font-weight: 650; }
.ph-stage small { display: flex; align-items: center; gap: 5px; color: var(--app-text-2); font-size: 11px; }
.ph-stage small .shape { width: 7px; height: 7px; color: var(--ink); }
.ph-chev { margin-left: auto; color: var(--app-text-2); }
.ph-chev .i { width: 14px; height: 14px; }
.ph-head { font-size: 13px; font-weight: 650; margin: 0 2px 8px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ph-tile {
  position: relative; height: 94px; padding: 10px; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--app-canvas); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  transition: transform .18s var(--ease), background .4s, color .4s;
}
.ph-tile b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.ph-tile small { color: var(--app-text-2); font-size: 10.5px; }
.ph-tile-icon { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .4s; }
.ph-tile-icon .i { width: 16px; height: 16px; }
.ph-tile .spin { position: absolute; top: 14px; right: 12px; opacity: 0; }
.s-press .ph-tile[data-target="api"] { transform: scale(.94); }
.s-sending .ph-tile[data-target="api"] .spin { opacity: 1; }
.s-running .ph-tile[data-target="api"] { background: #ededed; color: #111; }
.s-running .ph-tile[data-target="api"] small { color: #555; }
.s-running .ph-tile[data-target="api"] .ph-tile-icon { background: rgba(0, 0, 0, .08); }
.s-running .ph-tile[data-target="api"] .spin { opacity: 0; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 1.75px solid rgba(255, 255, 255, .2); border-top-color: var(--ink); animation: spin .8s linear infinite; transition: opacity .3s; display: inline-block; }
@keyframes spin { to { rotate: 360deg; } }
.ph-running { position: relative; height: 44px; }
.ph-empty, .ph-run-row { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: var(--app-canvas); transition: opacity .4s, transform .4s var(--ease); }
.ph-empty { color: var(--app-text-2); font-size: 11.5px; }
.ph-run-row { opacity: 0; transform: translateY(6px); }
.ph-run-row b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.ph-run-row small { color: var(--app-text-2); font-size: 10.5px; font-family: var(--mono); }
.ph-stop { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.ph-stop .i { width: 13px; height: 13px; }
.s-running .ph-run-row { opacity: 1; transform: none; }
.s-running .ph-empty { opacity: 0; }
.ph-tabs {
  position: absolute; left: 12px; right: 12px; bottom: 14px; height: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px;
  border-radius: 18px;
  background: rgba(44, 44, 46, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.ph-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 13px; font-size: 9px; font-weight: 600; color: var(--app-text-2); }
.ph-tabs .i { width: 18px; height: 18px; }
.ph-tabs .is-on { background: rgba(255, 255, 255, .12); color: var(--ink); }

.ph-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .45s; pointer-events: none; z-index: 6; }
.ph-sheet {
  position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 7;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 16px 16px; border-radius: 34px;
  background: rgba(44, 44, 46, .96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 -20px 40px rgba(0, 0, 0, .5);
  transform: translateY(110%);
  transition: transform .6s var(--ease);
}
.s-sheet .ph-sheet { transform: none; }
.s-sheet .ph-dim { opacity: 1; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin-bottom: 14px; }
.sheet-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); margin-bottom: 10px; }
.sheet-icon .i { width: 24px; height: 24px; }
.ph-sheet h5 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.ph-sheet p { font-size: 11.5px; color: var(--app-text-2); margin-bottom: 12px; }
.danger-code { display: block; width: 100%; padding: 9px 10px; border-radius: 10px; font-size: 11px; color: var(--danger); background: var(--danger-bg); box-shadow: inset 0 0 0 1px rgba(255, 105, 97, .25); margin-bottom: 10px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sheet .chip { margin-bottom: 14px; font-size: 10px; height: 22px; }
.sheet-approve { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 42px; border-radius: 12px; background: #ededed; color: #111; font-weight: 650; font-size: 13px; transition: transform .18s var(--ease); }
.sheet-approve .i { width: 18px; height: 18px; }
.s-press2 .sheet-approve { transform: scale(.95); }
.sheet-deny { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--app-text-2); }
.faceid {
  position: absolute; left: 50%; top: 42%; z-index: 9;
  width: 118px; height: 118px; margin: -59px 0 0 -59px; border-radius: 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(40, 40, 42, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 11px; font-weight: 600; color: var(--app-text-2);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--spring);
}
.faceid-glyph { width: 56px; height: 56px; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.s-faceid .faceid { opacity: 1; transform: none; }
.s-faceid .fid-face { animation: fidScan 1.1s var(--ease-in-out) infinite; transform-origin: 12px 12px; }
@keyframes fidScan { 50% { transform: scale(.9); opacity: .55; } }
.fid-check { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1.6; }
.s-approved .fid-face { animation: none; opacity: 0; transition: opacity .2s; }
.s-approved .fid-check { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .1s; }

/* Wire: the encrypted transmission from the phone to the Mac. */
.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 4; }
.wire path { fill: none; stroke-linecap: round; }
.wire-base { stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; stroke-dasharray: 2 6; opacity: 0; transition: opacity .5s; }
.wire-flow { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 3 9 16 9 3 9 16 30; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); transition: opacity .5s; }
.s-wire .wire-base { opacity: 1; }
.s-wire .wire-flow { opacity: 1; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -95; } }
.wire-label {
  position: absolute; z-index: 11; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(20, 20, 22, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; scale: .9; transition: opacity .4s, scale .5s var(--spring);
}
.wire-label .i { width: 14px; height: 14px; stroke-width: 2; }
.s-wire .wire-label { opacity: 1; scale: 1; }
.touch {
  position: absolute; z-index: 12; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 20px rgba(255, 255, 255, .3);
  opacity: 0; transform: scale(1.3); transition: opacity .3s, transform .3s var(--ease), left .6s var(--ease), top .6s var(--ease);
  pointer-events: none;
}
.s-touch .touch { opacity: 1; transform: scale(1); }
.s-press .touch, .s-press2 .touch { transform: scale(.78); background: rgba(255, 255, 255, .45); }

/* Chapters */
.chapters { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.chapter {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 11px;
  font-size: 13.5px; font-weight: 550; color: var(--ink-3); overflow: hidden;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s, background .3s, box-shadow .3s;
}
.chapter .i { width: 16px; height: 16px; }
.chapter:hover { color: var(--ink-2); }
.chapter.is-active { color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); }
.chapter .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.chapter .bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.chapter.is-active .bar i { animation: bar var(--dur, 3s) linear forwards; }
.chapter.is-done .bar i { width: 100%; opacity: .25; }
.is-paused .chapter.is-active .bar i { animation-play-state: paused; }
@keyframes bar { to { width: 100%; } }
.chapter-toggle { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.chapter-toggle:hover { color: var(--ink); }
.chapter-toggle .i { width: 16px; height: 16px; }
.chapter-toggle .i-play, .is-paused .chapter-toggle .i-pause { display: none; }
.is-paused .chapter-toggle .i-play { display: block; }

/* ───────── Commands: rotating headline + a wall of commands ───────── */
.cmds { padding-top: 130px; }
.cmds-head { text-align: center; overflow-x: clip; }
.cmds-head h2 { font: 640 clamp(38px, 5.6vw, 72px)/1.04 var(--display); letter-spacing: -.045em; margin-bottom: 26px; }
.rotator { position: relative; display: inline-block; height: 1.08em; vertical-align: bottom; text-align: left; transition: width .55s var(--ease); }
.rot {
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #b4b4b9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rot:not(:first-child) { display: none; }
.js .rot { display: inline-block; position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(.45em); filter: blur(10px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.js .rot.is-on { opacity: 1; transform: none; filter: none; }
.js .rot.is-out { opacity: 0; transform: translateY(-.45em); filter: blur(10px); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; color: var(--ink-2); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .i { width: 17px; height: 17px; color: var(--ink); }

.wall {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 60px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}
.wc {
  position: relative; height: 116px; padding: 14px; border-radius: 18px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(180deg, #111113, #0b0b0c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .04);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background .45s, color .45s, box-shadow .45s;
}
.wc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, -100px) var(--my, -100px), rgba(255, 255, 255, .5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.wc:hover { transform: translateY(-3px); }
.wc:active { transform: scale(.97); }
.wc-icon { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); transition: background .45s; }
.wc-icon .i { width: 18px; height: 18px; }
.wc b { font-size: 13.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
.wc small { position: relative; display: block; height: 16px; font-size: 11.5px; color: var(--ink-3); transition: color .45s; }
.wc small > span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s, transform .35s var(--ease); }
.wc-run, .wc-done { opacity: 0; transform: translateY(5px); }
.wc-state { position: absolute; top: 22px; right: 16px; width: 18px; height: 18px; display: grid; place-items: center; }
.wc-state > * { position: absolute; opacity: 0; transition: opacity .3s, transform .45s var(--spring); }
.wc-state .i { width: 18px; height: 18px; stroke-width: 2.25; transform: scale(.4); }
.wc.is-running { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 34px rgba(255, 255, 255, .1); }
.wc.is-running .wc-state .spin { opacity: 1; }
.wc.is-running .wc-meta, .wc.is-done .wc-meta { opacity: 0; transform: translateY(-5px); }
.wc.is-running .wc-run { opacity: 1; transform: none; color: var(--ink); }
.wc.is-done { background: #ededed; color: #111; box-shadow: 0 0 40px rgba(255, 255, 255, .12); }
.wc.is-done small { color: #555; }
.wc.is-done .wc-icon { background: rgba(0, 0, 0, .08); }
.wc.is-done .wc-done { opacity: 1; transform: none; }
.wc.is-done .wc-state .i { opacity: 1; transform: none; }
.wall-note { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* ───────── Sections ───────── */
.section { padding: 140px 0 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px var(--mono); color: var(--ink-2); margin-bottom: 18px; letter-spacing: .02em; }
.eyebrow-morse { display: inline-flex; gap: 3px; align-items: center; }
.eyebrow-morse i { height: 3px; border-radius: 2px; background: var(--ink); }
.eyebrow-morse i.dot { width: 3px; } .eyebrow-morse i.dash { width: 10px; } .eyebrow-morse i.gap { width: 5px; background: none; }
.section-head h2 { font: 640 clamp(36px, 5.4vw, 66px)/1.02 var(--display); letter-spacing: -.045em; margin-bottom: 20px; text-wrap: balance; }
.dim { color: rgba(245, 245, 247, .38); }
.section-head > p:last-child { font-size: 18px; color: var(--ink-2); max-width: 580px; text-wrap: pretty; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card, .card {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #0f0f11, #09090a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.step-visual, .card-visual {
  position: relative; height: 270px; overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 18px 18px;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.step-copy { padding: 6px 26px 28px; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 600 13px var(--mono); background: var(--ink); color: #000; margin-bottom: 14px; }
.step-copy h3, .card-copy h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.step-copy p, .card-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

/* Step 1: menu bar */
.menubar {
  position: absolute; left: 0; right: 0; top: 26px; height: 28px; margin: 0 18px; padding: 0 12px; white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; gap: 14px; border-radius: 9px; font-size: 12px; color: rgba(245, 245, 247, .82);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.menubar b { font-weight: 650; }
.mb-apple { width: 10px; height: 12px; border-radius: 50% 50% 45% 45%; background: var(--ink-2); }
.mb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mb-right .i { width: 14px; height: 14px; }
.mb-mark { position: relative; display: grid; place-items: center; width: 30px; height: 20px; border-radius: 6px; color: var(--ink); }
.mb-mark svg { width: 20px; height: 9px; }
.mb-mark path { fill: currentColor; }
.mb-menu {
  position: absolute; right: 30px; top: 62px; width: 236px; padding: 6px;
  border-radius: 14px; background: rgba(32, 32, 34, .9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 50px -10px rgba(0, 0, 0, .8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 12px; transform-origin: 80% 0;
}
.mb-row { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 7px; color: rgba(245, 245, 247, .88); }
.mb-row .i { width: 15px; height: 15px; }
.mb-row .switch { margin-left: auto; }
.mb-status { height: 44px; }
.mb-status .shape { color: var(--ink); }
.mb-status b { display: block; font-weight: 600; }
.mb-status small { color: var(--ink-3); font-size: 11px; }
.mb-sep { height: 1px; margin: 4px 8px; background: rgba(255, 255, 255, .08); }
.mb-danger { color: var(--danger); }
.switch { position: relative; width: 28px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .18); flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch.is-on { background: #ededed; }
.switch.is-on::after { background: #111; transform: translateX(12px); }

/* Step 2: pairing */
.vis-pair { display: flex; align-items: center; justify-content: center; }
.qr-wrap { position: relative; width: 150px; height: 150px; padding: 12px; border-radius: 18px; background: #f5f5f7; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8), 0 0 60px rgba(255, 255, 255, .08); }
.qr, .qr svg { width: 100%; height: 100%; }
.qr path { fill: #0a0a0b; }
.qr-corners i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--ink); }
.qr-corners i:nth-child(1) { left: -12px; top: -12px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.qr-corners i:nth-child(2) { right: -12px; top: -12px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.qr-corners i:nth-child(3) { left: -12px; bottom: -12px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.qr-corners i:nth-child(4) { right: -12px; bottom: -12px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.qr-scan { position: absolute; left: -6px; right: -6px; top: 0; height: 2px; border-radius: 1px; background: #fff; box-shadow: 0 0 14px 3px rgba(255, 255, 255, .7); opacity: 0; }
.words { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 8px; padding: 0 30px; pointer-events: none; }
.word { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); opacity: 0; }
.word b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.glyphs { display: flex; align-items: center; gap: 2px; height: 4px; overflow: hidden; }
.glyphs i { flex: none; }
.glyphs i { height: 3px; border-radius: 2px; background: var(--ink-2); }
.glyphs i.dot { width: 3px; } .glyphs i.dash { width: 9px; } .glyphs i.gap { width: 5px; background: none; }
.words-ok { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; opacity: 0; }
.words-ok .i { width: 15px; height: 15px; color: var(--ink); }

/* Step 3: run */
.vis-run { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.run-tile {
  position: relative; display: flex; align-items: center; gap: 12px; width: 250px; padding: 14px; border-radius: 18px;
  background: var(--app-canvas); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 40px -10px rgba(0, 0, 0, .7);
  transition: background .4s, color .4s, transform .18s var(--ease);
}
.run-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .4s; }
.run-icon .i { width: 22px; height: 22px; }
.run-tile b { display: block; font-size: 14px; font-weight: 650; }
.rt-state { position: relative; display: block; height: 16px; font-size: 12px; color: var(--app-text-2); }
.rt-state span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .3s, transform .3s var(--ease); }
.rt-running, .rt-done { opacity: 0; transform: translateY(5px); }
.rt-badge { position: relative; margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; }
.rt-badge > * { position: absolute; opacity: 0; transition: opacity .3s, transform .4s var(--spring); }
.rt-badge .i { width: 20px; height: 20px; stroke-width: 2.25; transform: scale(.5); }
.tap-dot { position: absolute; left: 40px; top: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); opacity: 0; transform: scale(1.4); transition: opacity .25s, transform .25s var(--ease); }
.run-log { display: flex; flex-direction: column; gap: 2px; width: 250px; padding: 10px 12px; border-radius: 12px; font-size: 11px; color: var(--ink-2); background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.run-log span { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); white-space: pre; }
/* run loop states */
.vis-run.k-tap .tap-dot { opacity: 1; transform: scale(1); }
.vis-run.k-press .run-tile { transform: scale(.96); }
.vis-run.k-press .tap-dot { transform: scale(.8); }
.vis-run.k-running .rt-idle, .vis-run.k-done .rt-idle { opacity: 0; transform: translateY(-5px); }
.vis-run.k-running .rt-running { opacity: 1; transform: none; }
.vis-run.k-running .rt-badge .spin { opacity: 1; }
.vis-run.k-done .rt-done { opacity: 1; transform: none; }
.vis-run.k-done .rt-badge .i { opacity: 1; transform: none; }
.vis-run.k-done .run-tile { background: #ededed; color: #111; }
.vis-run.k-done .rt-state { color: #555; }
.vis-run.k-done .run-icon { background: rgba(0, 0, 0, .08); }
.vis-run.k-l1 .run-log span:nth-child(1), .vis-run.k-l2 .run-log span:nth-child(-n+2), .vis-run.k-l3 .run-log span { opacity: 1; transform: none; }

/* ───────── Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.card { transition: transform .5s var(--ease); }
.card-visual { height: 300px; }
.card-copy { padding: 4px 26px 28px; }
.card-copy h3 .i { width: 20px; height: 20px; color: var(--ink); }
/* Cursor spotlight: soft light inside, brighter border near the pointer. */
[data-spotlight]::before, [data-spotlight]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 2;
}
[data-spotlight]::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .06), transparent 45%); }
[data-spotlight]::after {
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; }

/* Recorder */
.vis-record { padding: 26px 26px 0; }
.term { width: 66%; height: 260px; border-radius: 14px; background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 30px 60px -20px rgba(0, 0, 0, .9); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.term-bar .lights i { width: 10px; height: 10px; }
.rec { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .08); }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: sq 1.2s infinite; }
.term-body { padding: 14px 16px; font-size: 12.5px; line-height: 1.85; color: rgba(245, 245, 247, .9); }
.tl { white-space: nowrap; overflow: hidden; }
.tl .ps { color: var(--ink-3); }
.tl.out { color: var(--ink-3); }
.caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js .vis-record .tl { visibility: hidden; }
.js .vis-record .tl.is-on { visibility: visible; }
.vis-record .tl.is-typing { width: 0; animation: type .9s steps(var(--n)) forwards; }
@keyframes type { to { width: calc((var(--n) + 2) * 1ch); } }
.save-card {
  position: absolute; right: 26px; top: 46px; width: 300px; padding: 14px; border-radius: 18px;
  background: rgba(36, 36, 38, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 70px -10px rgba(0, 0, 0, .9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.js .save-card { opacity: 0; transform: translateX(30px) scale(.96); }
.js .vis-record.k-save .save-card { opacity: 1; transform: none; }
.save-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.save-head b { display: block; font-size: 14px; }
.save-head small { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); }
.save-head small .i { width: 12px; height: 12px; }
.save-steps { display: grid; gap: 5px; font-size: 11.5px; margin-bottom: 12px; }
.save-steps li { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.save-steps span { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; background: rgba(255, 255, 255, .1); color: var(--ink-2); }
.save-steps em { margin-left: auto; font: 600 10px var(--font); font-style: normal; color: var(--ink-3); padding: 2px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); }
.save-foot { display: flex; justify-content: space-between; align-items: center; }
.btn-mini { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; background: #ededed; color: #111; font-size: 12px; font-weight: 650; transition: transform .2s; }
.vis-record.k-saved .btn-mini { transform: scale(.94); background: #fff; }

/* Approvals */
.vis-approve { display: grid; place-items: center; }
.ap-card { width: 270px; padding: 14px; border-radius: 20px; background: rgba(36, 36, 38, .95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -10px rgba(0, 0, 0, .9); transition: filter .4s, opacity .4s, transform .5s var(--ease); }
.ap-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.ap-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.ap-icon .i { width: 20px; height: 20px; }
.ap-top b { display: block; font-size: 14px; }
.ap-top small { font-size: 11px; color: var(--ink-3); }
.ap-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.ap-actions span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px; font-size: 12.5px; font-weight: 650; }
.ap-deny { background: rgba(255, 255, 255, .08); color: var(--ink-2); }
.ap-ok { background: #ededed; color: #111; transition: transform .2s; }
.ap-ok .i { width: 16px; height: 16px; }
.fid-big { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px; border-radius: 28px; display: grid; place-items: center; background: rgba(40, 40, 42, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 50px rgba(0, 0, 0, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .4s var(--spring); }
.fid-big svg { width: 58px; height: 58px; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.vis-approve.k-press .ap-ok { transform: scale(.94); }
.vis-approve.k-scan .ap-card { filter: blur(3px); opacity: .5; transform: scale(.97); }
.vis-approve.k-scan .fid-big { opacity: 1; transform: none; }
.vis-approve.k-scan .fid-face { animation: fidScan 1.1s var(--ease-in-out) infinite; transform-origin: 12px 12px; }
.vis-approve.k-ok .fid-face { opacity: 0; animation: none; transition: opacity .2s; }
.vis-approve.k-ok .fid-check { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .1s; }

/* Chat */
.vis-chat { padding: 22px 22px 0; }
.chat, .mcp { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 16px; font-size: 13px; line-height: 1.4; display: flex; align-items: center; gap: 6px; }
.bubble .i { width: 15px; height: 15px; }
.bubble.me { align-self: flex-end; background: #ededed; color: #111; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--app-surface); border-bottom-left-radius: 5px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--app-surface); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-3px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }
.tool { align-self: flex-start; display: flex; align-items: center; gap: 10px; width: 78%; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.tool > .i { width: 16px; height: 16px; }
.tool b { display: block; font-size: 12.5px; font-weight: 600; }
.tool small { font-size: 11px; color: var(--ink-3); }
.tool-state { margin-left: auto; position: relative; width: 18px; height: 18px; display: grid; place-items: center; }
.tool-state > * { position: absolute; transition: opacity .3s; }
.tool-state .i { width: 16px; height: 16px; stroke-width: 2.25; opacity: 0; }
.tool.is-done .spin { opacity: 0; }
.tool.is-done .tool-state .i { opacity: 1; }
.js [data-loop] [style*="--k"] { display: none; }
.js [data-loop] [style*="--k"].is-on { display: flex; animation: msgIn .45s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* Live output */
.vis-live { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; padding: 24px 24px 0; }
.live-console { border-radius: 14px; background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; display: flex; flex-direction: column; height: 262px; }
.live-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.live-head small { color: var(--ink-3); font-size: 11px; }
.live-up { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.live-body { position: relative; flex: 1; overflow: hidden; font-size: 11.5px; line-height: 1.8; color: rgba(245, 245, 247, .75); }
.live-body > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; }
.live-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lineIn .3s var(--ease) both; }
.live-body .t { color: var(--ink-4); margin-right: 8px; }
.live-body .get { color: var(--ink); }
.procs { display: flex; flex-direction: column; gap: 8px; }
.procs-head { font-size: 12px; color: var(--ink-3); margin: 4px 2px 2px; }
.proc { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: var(--app-canvas); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.proc b { display: block; font-size: 13px; font-weight: 600; }
.proc small { font-size: 10.5px; color: var(--ink-3); }
.proc-btn { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.proc-btn .i { width: 13px; height: 13px; }

/* Siri / widgets */
.vis-siri { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.widget { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 210px; padding: 10px; border-radius: 26px; background: rgba(36, 36, 38, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -10px rgba(0, 0, 0, .8); }
.w-tile { display: flex; flex-direction: column; justify-content: space-between; height: 66px; padding: 9px; border-radius: 15px; background: rgba(255, 255, 255, .07); transition: background .3s, color .3s, transform .2s; }
.w-tile .i { width: 18px; height: 18px; }
.w-tile b { font-size: 11px; font-weight: 600; }
.vis-siri.k-lit .w-tile:nth-child(2) { background: #ededed; color: #111; transform: scale(.97); }
.siri { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border-radius: 14px; background: rgba(28, 28, 30, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); max-width: 92%; }
.orb { position: relative; width: 28px; height: 28px; border-radius: 50%; flex: none; background: conic-gradient(from 0deg, #fff, #555, #ddd, #333, #fff); animation: spin 3s linear infinite; filter: blur(.5px); }
.orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #1c1c1e; filter: blur(2px); }
.vis-siri.k-listen .orb { animation-duration: 1s; box-shadow: 0 0 16px rgba(255, 255, 255, .5); }
.siri-text { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.siri-text span::after { content: ""; display: inline-block; width: 1.5px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }

/* AI apps */
.vis-mcp { padding: 22px 22px 0; }
.mcp-call { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-size: 11.5px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.mcp-tag { font-size: 10.5px; font-weight: 650; padding: 2px 6px; border-radius: 5px; background: var(--ink); color: #000; }
.mcp-wait { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 4px 2px; }
.mcp-wait .i { width: 15px; height: 15px; }
.mcp-wait .spin { width: 12px; height: 12px; }
.mcp-apps { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.mcp-apps span { font-size: 11px; font-weight: 550; color: var(--ink-3); padding: 4px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }

/* Screen */
.vis-screen { display: grid; place-items: center; }
.mini-phone { width: 290px; height: 176px; padding: 8px; border-radius: 30px; background: linear-gradient(145deg, #3a3a3c, #121214 40%, #2a2a2c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px -10px rgba(0, 0, 0, .9); }
.mini-desk { position: relative; width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: radial-gradient(120% 120% at 20% 0%, #3a3a3e, #121214 60%); }
.live-badge { position: absolute; left: 12px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; font: 600 9px var(--mono); background: rgba(0, 0, 0, .55); }
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); animation: sq 1.2s infinite; }
.mini-win { position: absolute; border-radius: 8px; background: rgba(40, 40, 44, .95); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15), 0 10px 20px rgba(0, 0, 0, .5); padding: 6px; }
.mini-win .lights { gap: 3px; }
.mini-win .lights i { width: 5px; height: 5px; }
.w1 { left: 30px; top: 34px; width: 140px; height: 100px; }
.mini-lines { display: grid; gap: 5px; margin-top: 10px; }
.mini-lines i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.mini-lines i:nth-child(2) { width: 70%; } .mini-lines i:nth-child(3) { width: 85%; }
.w2 { right: 26px; top: 52px; width: 120px; height: 76px; }
.mini-dialog { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mini-dialog small { font-size: 8px; font-weight: 600; text-align: center; }
.mini-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mini-btns i { font-style: normal; font-size: 7.5px; font-weight: 600; text-align: center; padding: 3px 0; border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background .2s, color .2s; }
.mini-btns .mini-primary { background: #ededed; color: #111; }
.vis-screen.k-click .mini-primary { background: #fff; transform: scale(.94); }
.mini-cursor { position: absolute; left: 60px; top: 120px; width: 14px; height: 14px; z-index: 4; transition: left 1s var(--ease-in-out), top 1s var(--ease-in-out); }
.mini-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #000; stroke-width: 1.5; }
.vis-screen.k-move .mini-cursor { left: 228px; top: 107px; }
.mini-tap { position: absolute; left: 230px; top: 110px; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); opacity: 0; transform: scale(.5); }
.vis-screen.k-tap .mini-tap { animation: ripple .7s var(--ease) both; }
@keyframes ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.w2 { transition: opacity .4s .2s, transform .4s .2s; }
.vis-screen.k-gone .w2 { opacity: 0; transform: scale(.9); }

/* ───────── Security ───────── */
.security { padding-top: 160px; }
.security-bg {
  position: absolute; inset: 60px 0 auto; height: 900px; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .055) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 80%);
}
.e2e {
  position: relative; display: grid; grid-template-columns: 1fr 1.3fr 1fr 1.3fr 1fr; align-items: center;
  padding: 44px 36px; border-radius: 28px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.node-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 10px; background: linear-gradient(150deg, #2c2c2e, #111113); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 40px -10px rgba(0, 0, 0, .8); }
.node-icon .i { width: 28px; height: 28px; }
.node-relay .node-icon { background: #0b0b0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ink-3); }
.node b { font-size: 15px; font-weight: 650; }
.node small { font-size: 12.5px; color: var(--ink-3); max-width: 180px; line-height: 1.4; }
.link { position: relative; height: 2px; margin: 0 6px 60px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 3px, transparent 3px 9px); }
.packet {
  position: absolute; top: 50%; left: calc(var(--p, .5) * 100%); translate: -50% -50%; opacity: var(--o, 1);
  display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 9px;
  font: 500 12px var(--mono); white-space: nowrap;
  background: #f5f5f7; color: #000; box-shadow: 0 0 30px rgba(255, 255, 255, .25);
  transition: background .3s, color .3s, box-shadow .3s;
}
.packet.is-cipher { background: #161618; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 24px rgba(0, 0, 0, .6); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.promise { padding: 26px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); box-shadow: inset 0 0 0 1px var(--line); }
.promise > .i { width: 26px; height: 26px; margin-bottom: 18px; }
.promise h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 6px; }
.promise p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.risk { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.risk-col { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; }
.risk-col + .risk-col { border-left: 1px solid var(--line); }
.risk-name { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--ink-2); margin-bottom: 8px; }
.risk-name .shape { color: var(--ink); }
.risk-col b { font-size: 16px; font-weight: 650; }
.risk-col small { font-size: 13.5px; color: var(--ink-3); }
.risk-col.is-danger { background: linear-gradient(180deg, rgba(255, 105, 97, .06), transparent); }
.risk-col.is-danger .risk-name, .risk-col.is-danger .risk-name .shape { color: var(--danger); }

/* ───────── FAQ ───────── */
.faq-section { max-width: 880px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; letter-spacing: -.015em; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, transform .4s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: var(--ink); border-radius: 1px; transition: transform .4s var(--ease); }
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus { background: var(--ink); }
.faq details[open] .plus::before, .faq details[open] .plus::after { background: #000; }
.faq details[open] .plus::after { transform: rotate(0); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 60px 26px 4px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* ───────── Final CTA ───────── */
.cta { position: relative; margin-top: 160px; padding: 150px 0 170px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 40%, rgba(255, 255, 255, .08), transparent 70%); }
.cta-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; -webkit-mask-image: radial-gradient(70% 80% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 80% at 50% 45%, #000 20%, transparent 75%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-mark { position: relative; width: min(300px, 70vw); aspect-ratio: 88 / 36; margin-bottom: 48px; }
.mk-cta { position: absolute; inset: 0; color: #fff; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .35)); }
.mk-cta svg { width: 100%; height: 100%; }
.cta-glow { position: absolute; left: 50%; top: 50%; width: 160%; height: 300%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); animation: glowM 4.8s var(--ease-in-out) infinite; }
@keyframes glowM { 0%, 100% { opacity: .5; } 8%, 18% { opacity: 1; } 22% { opacity: .55; } 28%, 38% { opacity: 1; } 45% { opacity: .5; } }
.cta h2 { font: 650 clamp(40px, 6.6vw, 84px)/1 var(--display); letter-spacing: -.05em; margin-bottom: 22px; background: linear-gradient(180deg, #fff 30%, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.cta p { font-size: 18px; color: var(--ink-2); margin-bottom: 36px; }

/* ───────── Footer ───────── */
.footer { position: relative; margin-top: 0; padding-top: 80px; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(720px, 80%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); }
.footer::after { content: ""; position: absolute; left: 50%; bottom: -40%; width: 120%; height: 90%; translate: -50% 0; z-index: -1; background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent); }
.footer-top { display: grid; grid-template-columns: 1.15fr 2fr; gap: 48px; }
.brand-lg { font-size: 22px; gap: 12px; }
.brand-lg .mk-nav { width: 40px; height: 17px; }
.footer-brand > p:not(.eyebrow-chip) { color: var(--ink-3); font-size: 15px; line-height: 1.55; margin: 16px 0 22px; max-width: 300px; }
.footer-chip { margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { font: 500 12px var(--mono); letter-spacing: .03em; color: var(--ink-3); margin-bottom: 14px; }
.footer-cols a, .footer-cols span { display: block; width: fit-content; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.footer-cols a:hover { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.to-top { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink-2); transition: color .2s; }
.to-top:hover { color: var(--ink); }
.to-top .i { width: 14px; height: 14px; stroke-width: 2; transition: transform .25s var(--ease); }
.to-top:hover .i { transform: translateY(-2px); }
.footer-morse { display: inline-flex; gap: 3px; align-items: center; margin-right: 6px; }
.footer-morse i { height: 3px; border-radius: 2px; background: var(--ink-4); }
.footer-morse i.dot { width: 3px; } .footer-morse i.dash { width: 10px; } .footer-morse i.gap { width: 6px; background: none; }

.giant { position: relative; width: min(1320px, 100% - 32px); margin: 40px auto 0; overflow: hidden; font-size: 15.4vw; --mx: 50%; --my: 50%; }
.giant-row { display: flex; align-items: center; gap: .2em; width: max-content; margin-bottom: -.12em; line-height: 1.02; white-space: nowrap; }
.giant-mark { width: 1.86em; height: .76em; flex: none; color: rgba(255, 255, 255, .11); }
.giant-mark svg { width: 100%; height: 100%; overflow: visible; }
.giant-mark path { fill: currentColor; }
.giant-mark .mk-trace { stroke: rgba(255, 255, 255, .8); stroke-width: 1; }
.giant-word { font: 700 1em/1.02 var(--display); letter-spacing: -.045em; }
.giant-word i {
  display: inline-block; font-style: normal;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17) 10%, rgba(255, 255, 255, .02) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.giant-lit { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .8s;
  -webkit-mask-image: radial-gradient(circle min(260px, 22vw) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 75%);
  mask-image: radial-gradient(circle min(260px, 22vw) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 75%); }
.giant-lit .giant-mark { color: #fff; }
.giant-lit .giant-word i { background-image: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .25) 85%); }
.giant.is-lit .giant-lit { opacity: 1; }
/* Letters rise in one by one when the footer comes into view. */
.js .giant-row:not(.giant-lit) .giant-word i { opacity: 0; transform: translateY(.3em); filter: blur(.05em); }
.js .giant.is-drawn .giant-row:not(.giant-lit) .giant-word i { animation: rise 1.1s var(--ease) calc(.25s + var(--i) * .07s) forwards; }

/* ───────── Dialog ───────── */
.modal {
  width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 26px; color: var(--ink);
  background: linear-gradient(180deg, #19191b, #0f0f11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 120px rgba(0, 0, 0, .9);
  overflow: visible;
}
.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] { animation: modalIn .45s var(--spring); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes fadeIn { from { opacity: 0; } }
.modal-close-form { position: absolute; right: 14px; top: 14px; margin: 0; }
.modal-close { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 255, 255, .06); }
.modal-close:hover { color: var(--ink); }
.modal-close .i { width: 16px; height: 16px; stroke-width: 2; }
.modal-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 30px 34px; }
.app-icon-sm { width: 72px; height: 72px; margin-bottom: 22px; }
.modal h2 { font-size: 26px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 8px; }
.modal-body > p { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }
.wl-stack { flex-direction: column; align-items: stretch; padding: 8px; }
.wl-stack input[type="email"] { height: 48px; text-align: center; }
.wl-stack .wl-msg { position: static; margin-top: 6px; min-height: 0; }
.wl-stack .wl-msg:empty { display: none; }
.wl-stack .wl-done { padding: 10px 12px; text-align: left; }

/* No-JS notices (shown when the URL hash targets them) */
.notice {
  position: fixed; left: 50%; top: 84px; z-index: 60; translate: -50% 0;
  display: none; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; max-width: calc(100% - 32px);
  background: #18181a; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, .8); font-size: 14px; font-weight: 500;
}
.notice .i { width: 18px; height: 18px; }
.notice.is-error { color: var(--danger); }
.notice:target { display: flex; }

/* Mac notification banner (approval in progress) */
.mac-banner {
  position: absolute; left: 500px; top: 60px; width: 380px; z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px;
  background: rgba(40, 40, 44, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 50px -10px rgba(0, 0, 0, .9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(-12px) scale(.97); transition: opacity .4s, transform .5s var(--ease);
}
.s-sheet .mac-banner { opacity: 1; transform: none; }
.mac-banner .mb-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.mac-banner .mb-ic .i { width: 19px; height: 19px; }
.mac-banner > div { flex: 1; min-width: 0; }
.mac-banner b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-banner small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.mb-state { position: relative; margin-left: auto; height: 20px; min-width: 140px; flex: none; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.mb-state > span { position: absolute; right: 0; top: 0; height: 20px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: opacity .3s; }
.mb-state .spin { width: 11px; height: 11px; }
.mb-state .i { width: 15px; height: 15px; color: var(--ink); }
.mb-ok { opacity: 0; color: var(--ink); }
.s-approved .mb-ok { opacity: 1; }
.s-approved .mb-wait { opacity: 0; }

/* How it works, step 1: menu bar states */
.js .vis-menubar .mb-mark { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s var(--spring), background .3s; }
.js .vis-menubar.k-mark .mb-mark { opacity: 1; transform: none; }
.vis-menubar.k-menu .mb-mark { background: rgba(255, 255, 255, .16); }
.js .vis-menubar .mb-menu { opacity: 0; transform: translateY(-8px) scale(.96); transition: opacity .3s, transform .45s var(--ease); }
.js .vis-menubar.k-menu .mb-menu { opacity: 1; transform: none; }
.js .vis-menubar .mb-awake .switch { background: rgba(255, 255, 255, .18); }
.js .vis-menubar .mb-awake .switch::after { background: #fff; transform: none; }
.js .vis-menubar.k-awake .mb-awake .switch { background: #ededed; }
.js .vis-menubar.k-awake .mb-awake .switch::after { background: #111; transform: translateX(12px); }

/* How it works, step 2: pairing states. Without JS the paired state shows. */
.vis-pair .qr-wrap { opacity: 0; }
.js .vis-pair .qr-wrap { opacity: 1; transition: opacity .5s, transform .6s var(--ease); }
.js .vis-pair.k-paired .qr-wrap { opacity: 0; transform: scale(.85); }
.vis-pair .word, .vis-pair .words-ok { opacity: 1; }
.js .vis-pair .word, .js .vis-pair .words-ok { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .5s var(--ease); }
.js .vis-pair.k-paired .word { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .09s); }
.js .vis-pair.k-ok .words-ok { opacity: 1; transform: none; }
.vis-pair.k-scan .qr-scan { animation: scan 1.5s var(--ease-in-out) forwards; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.vis-pair.k-scan .qr-corners i { animation: corners 1.5s var(--ease-in-out); }
@keyframes corners { 50% { transform: scale(.88); } }

/* ───────── Motion: intro and reveal ───────── */
.js .intro { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.js .is-ready .intro, .js.is-ready .intro { animation: rise 1s var(--ease) var(--d, 0s) forwards; }
.js .hero-title .w { opacity: 0; transform: translateY(.35em); filter: blur(14px); }
.js.is-ready .hero-title .w { animation: rise 1.1s var(--ease) calc(.75s + var(--i) * .085s) forwards; }
.js .hero-icon { opacity: 0; transform: scale(.82); filter: blur(10px); }
.js.is-ready .hero-icon { animation: iconIn 1.1s var(--ease) .05s forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes iconIn { to { opacity: 1; transform: none; filter: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wc:nth-child(n+13) { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .promises { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .e2e { grid-template-columns: 1fr; gap: 0; padding: 32px 22px; }
  .link { width: 2px; height: 70px; margin: 14px auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .25) 0 3px, transparent 3px 9px); }
  .packet { left: 50%; top: calc(var(--p, .5) * 100%); }
  .risk { grid-template-columns: 1fr; }
  .risk-col + .risk-col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 120px; }
  .hero-icon { width: 92px; height: 92px; }
  .wl-form:not(.wl-stack) { flex-direction: column; align-items: stretch; }
  .wl-form:not(.wl-stack) input[type="email"] { text-align: center; }
  .hero-note { margin-top: 44px; }
  .demo { margin-top: 56px; }
  .chapter { font-size: 12.5px; height: 36px; padding: 0 10px; }
  .chapter .i { display: none; }
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .promises { grid-template-columns: 1fr; }
  .section { padding-top: 110px; }
  .card-visual { height: 280px; }
  .vis-record { padding: 18px 18px 0; }
  .term { width: 100%; }
  .save-card { right: 14px; left: 40px; width: auto; top: 70px; }
  .vis-live { grid-template-columns: 1fr; }
  .procs { display: none; }
  .words { padding: 0 18px; }
  .mb-opt { display: none; }
  .faq summary { font-size: 16.5px; }
  .faq-a p { padding-right: 8px; }
  .cta { padding: 110px 0 130px; margin-top: 110px; }
  .cmds { padding-top: 100px; }
  .rotator { display: block; margin: 0 auto; }
  .to-top .footer-morse { display: none; }
  .facts { flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 44px; -webkit-mask-image: none; mask-image: none; }
  .wc:nth-child(n+9) { display: none; }
  .wc { height: 108px; }
  .footer { padding-top: 60px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column-reverse; align-items: flex-start; margin-top: 48px; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .js .intro, .js .hero-title .w, .js .hero-icon, .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
