/* Blink: iblinked.app
   Brand: graphite #1D1D1F, mist #F5F5F7, flash yellow #FFD60A (MessagesExtension/BubbleArt.swift). */

:root {
  --graphite: #1d1d1f;
  --ink: #0b0b0c;
  --panel: #161618;
  --panel-2: #1f1f22;
  --line: rgba(255, 255, 255, 0.08);
  --mist: #f5f5f7;
  --dim: rgba(245, 245, 247, 0.56);
  --flash: #ffd60a;
  --flash-soft: rgba(255, 214, 10, 0.16);
  --blue: #0a84ff;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--flash); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Camera flash on load */
.flash {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: #fff; opacity: 0;
}
.flash.go { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 0.6; } 100% { opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.brand-icon {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(#2c2c2e, var(--graphite) 65%); color: #fff;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12);
}
.brand-icon svg { width: 100%; height: 100%; }
.brand.small { font-size: 15px; gap: 8px; }
.brand.small .brand-icon { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--dim); }
.nav-links a:hover { color: var(--mist); }
.nav-cta {
  font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  background: var(--flash); color: var(--graphite);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 0 24px rgba(255, 214, 10, 0.4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px;
  max-width: 1180px; margin: 0 auto; padding: 120px 32px 72px;
}
.hero-glow {
  position: absolute; z-index: -1; right: -10%; top: 10%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.17), rgba(255, 214, 10, 0.04) 55%, transparent);
  filter: blur(10px); pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }

.eye-wrap { width: 92px; height: 92px; margin-bottom: 20px; }
.eye { width: 100%; height: 100%; overflow: visible; }
.eye path { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.eye .eye-dot { fill: var(--flash); }
.eye-hero { filter: drop-shadow(0 0 30px rgba(255, 214, 10, 0.15)); }

.eyebrow {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--flash); margin-bottom: 18px;
}
h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 750; letter-spacing: -0.04em; }
.one-look { position: relative; white-space: nowrap; color: var(--flash); }
.one-look-dot {
  position: absolute; left: 50%; top: -0.08em; width: 0.16em; height: 0.16em; border-radius: 50%;
  background: var(--flash); transform: translateX(-50%) scale(0);
  animation: pip 4s 1.6s ease-in-out infinite;
}
@keyframes pip { 0%, 80%, 100% { transform: translateX(-50%) scale(0); } 86% { transform: translateX(-50%) scale(1.2); } 92% { transform: translateX(-50%) scale(0.9); opacity: 1; } 97% { opacity: 0; } }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--dim); max-width: 32em; margin-top: 24px; line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px 10px 16px; border-radius: 14px;
  background: var(--mist); color: #000; font-weight: 600; font-size: 21px; line-height: 1;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.store-badge svg { width: 28px; height: 28px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; margin-bottom: 3px; letter-spacing: 0.01em; }
.store-badge:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12); }
.store-badge.big { font-size: 24px; padding: 13px 28px 13px 20px; border-radius: 16px; }
.store-badge.big svg { width: 32px; height: 32px; }
.try-hint { color: var(--dim); font-size: 15px; }
.try-arrow { display: inline-block; animation: nudge 1.4s ease-in-out infinite; color: var(--flash); }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* ---------- The phone demo ---------- */
.phone-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone {
  --w: min(320px, 78vw);
  width: var(--w); aspect-ratio: 9 / 19.2;
  position: relative; border-radius: calc(var(--w) * 0.16);
  padding: calc(var(--w) * 0.035);
  background: linear-gradient(145deg, #3a3a3d, #1a1a1c 40%, #2a2a2d);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.6),
    0 50px 100px -20px rgba(0,0,0,0.8),
    0 30px 60px -30px rgba(255, 214, 10, 0.25);
  container-type: inline-size;
  transform: rotate(-2deg);
  transition: transform 0.8s var(--ease-out);
}
.phone:hover, .phone.live { transform: rotate(0deg) translateY(-4px); }
.island {
  position: absolute; z-index: 5; top: calc(var(--w) * 0.06); left: 50%; transform: translateX(-50%);
  width: 30%; height: calc(var(--w) * 0.085); border-radius: 999px; background: #000;
}
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.13); background: #fff; color: #000;
  font-size: 4.6cqw;
}

/* Chat */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; }
.chat-head {
  padding: 17cqw 0 3cqw; display: flex; flex-direction: column; align-items: center; gap: 1.5cqw;
  background: rgba(247, 247, 249, 0.94); border-bottom: 0.5px solid rgba(0,0,0,0.1);
}
.avatar {
  width: 14cqw; height: 14cqw; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(#a5acb8, #858b96); color: #fff; font-weight: 600; font-size: 6.5cqw;
}
.chat-name { font-size: 3.6cqw; color: #000; }
.chev { color: #b0b0b5; }
.chat-body { flex: 1; padding: 4cqw 4cqw; display: flex; flex-direction: column; gap: 1.6cqw; justify-content: flex-end; }
.stamp { text-align: center; font-size: 3cqw; color: #8e8e93; margin-bottom: 2cqw; }
.msg {
  max-width: 72%; padding: 2.2cqw 3.6cqw; border-radius: 5cqw; line-height: 1.3;
}
.msg.in { background: #e9e9eb; align-self: flex-start; border-bottom-left-radius: 1.6cqw; }
.msg.out { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 1.6cqw; }
.msg.late { opacity: 0; transform: translateY(6cqw) scale(0.8); transform-origin: bottom; transition: opacity 0.35s, transform 0.5s var(--ease-spring); max-height: 0; padding-block: 0; margin-top: -1.6cqw; }
.msg.late.show { opacity: 1; transform: none; max-height: 30cqw; padding-block: 2.2cqw; margin-top: 0; transition: opacity 0.35s, transform 0.5s var(--ease-spring), max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out), margin 0.4s; }
.msg.out.late { transform-origin: bottom right; }
.msg.in.late { transform-origin: bottom left; }

.chat-input {
  margin: 2cqw 4cqw 7cqw; padding: 2cqw 4cqw; border-radius: 999px;
  border: 0.5px solid #c7c7cc; color: #c7c7cc; font-size: 3.8cqw;
}

/* The Blink card: big "Tap to view", then collapses to a compact "Opened" chip */
.blink-card {
  position: relative; align-self: flex-start;
  width: 62cqw; height: 44cqw; border-radius: 5cqw;
  background: var(--graphite); color: #fff; overflow: visible;
  transition: width 0.55s var(--ease-spring), height 0.55s var(--ease-spring), border-radius 0.5s, transform 0.25s var(--ease-spring), background 0.4s;
}
.blink-card:active { transform: scale(0.96); }
.card-face, .card-opened {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
}
.card-face { flex-direction: column; gap: 0.6cqw; }
.card-lid { width: 22cqw; height: 22cqw; margin: -3cqw 0 -2cqw; }
.card-lid circle { animation: dotglow 2.4s ease-in-out infinite; transform-origin: 50px 33px; }
@keyframes dotglow { 50% { transform: scale(1.25); } }
.card-title { font-weight: 600; font-size: 4.6cqw; }
.card-sub { font-size: 3.2cqw; opacity: 0.6; }
.card-opened { gap: 1.4cqw; font-size: 3.8cqw; font-weight: 500; opacity: 0; transform: scale(0.6); white-space: nowrap; }
.card-opened svg { width: 7cqw; height: 7cqw; color: #8e8e93; }
.card-opened svg circle { fill: #8e8e93; }
.card-react { font-size: 4cqw; }
.card-react:empty { display: none; }
.card-pulse {
  position: absolute; inset: -1.5cqw; border-radius: 6.5cqw; pointer-events: none;
  border: 2px solid var(--flash); opacity: 0; animation: pulse 2s ease-out infinite 1.2s;
}
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.97); } 100% { opacity: 0; transform: scale(1.12); } }

.blink-card.opened {
  width: 34cqw; height: 10cqw; border-radius: 5cqw; background: #e9e9eb; color: #3a3a3c; cursor: default;
}
.blink-card.opened.has-react { width: 40cqw; }
.blink-card.opened .card-face { opacity: 0; transform: scale(0.5); }
.blink-card.opened .card-opened { opacity: 1; transform: none; transition-delay: 0.15s; }
.blink-card.opened .card-pulse, .demo-touched .card-pulse { display: none; }
.blink-card.squish { animation: squish 0.5s var(--ease-spring); }
@keyframes squish { 30% { transform: scale(1.12, 0.88); } 60% { transform: scale(0.94, 1.06); } }

/* Viewer */
.viewer {
  position: absolute; inset: 0; background: #000; z-index: 3;
  opacity: 0; visibility: hidden; transform: scale(0.4); border-radius: 10cqw;
  transition: opacity 0.3s, transform 0.5s var(--ease-out), border-radius 0.5s, visibility 0s 0.5s;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.viewer.on { opacity: 1; visibility: visible; transform: none; border-radius: 0; transition: opacity 0.25s, transform 0.5s var(--ease-out), border-radius 0.5s, visibility 0s; }
.viewer canvas { position: absolute; left: 4cqw; right: 4cqw; top: 14cqw; bottom: 8cqw; width: calc(100% - 8cqw); height: calc(100% - 22cqw); border-radius: 4cqw; }
.viewer .dust { pointer-events: none; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
.viewer.popping .photo { visibility: hidden; }
.v-top { position: absolute; top: 17cqw; left: 7cqw; right: 7cqw; display: flex; justify-content: space-between; z-index: 2; }
.v-btn, .v-ring {
  width: 10cqw; height: 10cqw; border-radius: 50%; display: grid; place-items: center;
  background: rgba(30,30,30,0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 4cqw;
}
.v-ring { position: relative; }
.v-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.v-ring circle { fill: none; stroke-width: 2.6; }
.ring-bg { stroke: rgba(255,255,255,0.25); }
.ring-fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 0; }
.ring-num { font-size: 4cqw; font-weight: 600; font-variant-numeric: tabular-nums; }
.v-caption {
  position: absolute; left: 4cqw; right: 4cqw; top: 62%; z-index: 2;
  padding: 2cqw; text-align: center; color: #fff; font-weight: 500; font-size: 4cqw;
  background: rgba(0,0,0,0.42);
}
.v-paused {
  position: absolute; top: 31cqw; left: 50%; transform: translate(-50%, -4cqw); z-index: 2;
  padding: 1.2cqw 3.2cqw; border-radius: 999px; font-size: 3.2cqw; font-weight: 600;
  background: rgba(255, 214, 10, 0.95); color: var(--graphite); opacity: 0; transition: opacity 0.2s, transform 0.3s var(--ease-spring);
}
.viewer.paused .v-paused { opacity: 1; transform: translate(-50%, 0); }
.v-reacts {
  position: absolute; bottom: 13cqw; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 2cqw; padding: 1.8cqw 3cqw; border-radius: 999px;
  background: rgba(30,30,30,0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.v-reacts button { font-size: 6cqw; line-height: 1; padding: 0.6cqw; border-radius: 50%; transition: transform 0.3s var(--ease-spring); }
.v-reacts button:hover { transform: scale(1.2); }
.v-reacts button.picked { transform: scale(1.35); background: rgba(255,255,255,0.18); }
.viewer.popping .v-top, .viewer.popping .v-caption, .viewer.popping .v-reacts { opacity: 0; transition: opacity 0.3s; }
.float-emoji { position: absolute; z-index: 4; pointer-events: none; font-size: 9cqw; animation: floatUp 1.3s var(--ease-out) forwards; }
@keyframes floatUp { 0% { transform: translate(-50%, 0) scale(0.4); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -6cqw) scale(1.2); } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -60cqw) scale(1); opacity: 0; } }

.demo-note { font-size: 14px; color: var(--dim); min-height: 40px; display: flex; align-items: center; }
.replay {
  display: none; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255, 214, 10, 0.12); color: var(--flash); border: 1px solid rgba(255, 214, 10, 0.3);
  transition: transform 0.25s var(--ease-spring), background 0.2s;
}
.replay:hover { background: rgba(255, 214, 10, 0.2); transform: scale(1.04); }
.demo-done .note-idle { display: none; }
.demo-done .replay { display: inline-block; animation: popIn 0.5s var(--ease-spring); }
@keyframes popIn { from { transform: scale(0.6); opacity: 0; } }

/* ---------- The vanishing line ---------- */
.vanish-line { position: relative; height: 240vh; }
.vanish-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; max-width: 980px; margin: 0 auto; padding: 0 32px; }
.vanish-text { font-size: clamp(30px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; }
.vanish-text .w {
  display: inline-block; color: rgba(245,245,247,0.14);
  transition: color 0.4s, filter 0.6s, opacity 0.6s, transform 0.6s;
}
.vanish-text .w.lit { color: var(--mist); }
.vanish-text .w.lit.hot { color: var(--flash); }
.vanish-text .w.gone { color: var(--mist); opacity: 0.08; filter: blur(6px); transform: translateY(-6px); }

/* ---------- Sections ---------- */
.section-title { font-size: clamp(36px, 5vw, 60px); text-align: center; letter-spacing: -0.035em; margin-bottom: 56px; }
.how, .features { max-width: 1180px; margin: 0 auto; padding: 100px 32px; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 28px; border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
}
.step:nth-child(2) { transition-delay: 0.12s; }
.step:nth-child(3) { transition-delay: 0.24s; }
.step-num {
  position: absolute; top: 24px; right: 26px; font-size: 13px; font-weight: 700; color: var(--flash);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--flash-soft);
}
.step h3 { font-size: 28px; margin: 22px 0 10px; }
.step p { color: var(--dim); font-size: 16px; }
.step-art {
  position: relative; height: 220px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #2a2a2e, #121214);
  display: grid; place-items: center;
}

/* Snap */
.vf { position: absolute; inset: 26px 40px 70px; }
.vf-c { position: absolute; width: 20px; height: 20px; border-color: rgba(255,255,255,0.5); border-style: solid; border-width: 0; }
.vf-c.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.vf-c.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.vf-c.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.vf-c.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }
.in .vf { animation: focus 3s var(--ease-out) infinite; }
@keyframes focus { 0% { transform: scale(1.15); opacity: 0.4; } 25%, 100% { transform: scale(1); opacity: 1; } }
.shutter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center;
}
.shutter span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: block; }
.in .shutter span { animation: press 3s infinite; }
@keyframes press { 0%, 30% { transform: scale(1); } 35% { transform: scale(0.82); } 42%, 100% { transform: scale(1); } }
.snap-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.in .snap-flash { animation: snapflash 3s infinite; }
@keyframes snapflash { 0%, 34% { opacity: 0; } 36% { opacity: 0.9; } 55%, 100% { opacity: 0; } }

/* Send */
.mini-card {
  width: 150px; height: 104px; border-radius: 16px; background: var(--graphite);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.5), inset 0 0 0 0.5px rgba(255,255,255,0.12);
  font-size: 13px;
}
.mini-card svg { width: 54px; height: 54px; margin: -8px 0 -6px; }
.in .mini-card { animation: swoosh 3s var(--ease-out) infinite; }
@keyframes swoosh {
  0% { transform: translate(-140%, 40px) rotate(-12deg) scale(0.6); opacity: 0; }
  30% { transform: translate(6%, -6px) rotate(2deg) scale(1.04); opacity: 1; }
  40%, 85% { transform: none; opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

/* Poof */
.poof-card {
  position: absolute; width: 150px; height: 104px; border-radius: 16px; background: var(--graphite);
  display: grid; place-items: center; color: #fff; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12);
}
.poof-card svg { width: 60px; height: 60px; }
.poof-chip {
  position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: #3a3a3c; color: #e5e5ea; font-size: 14px; font-weight: 500; opacity: 0;
}
.poof-chip svg { width: 22px; height: 22px; color: #8e8e93; }
.poof-chip svg circle { fill: #8e8e93; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--flash); opacity: 0; }
.in .poof-card { animation: poofCard 3.2s var(--ease-spring) infinite; }
.in .poof-chip { animation: poofChip 3.2s var(--ease-spring) infinite; }
.in .spark { animation: spark 3.2s var(--ease-out) infinite; }
.s1 { --x: -80px; --y: -50px; } .s2 { --x: 80px; --y: -56px; } .s3 { --x: -96px; --y: 20px; }
.s4 { --x: 96px; --y: 24px; } .s5 { --x: -30px; --y: -84px; width: 5px; height: 5px; } .s6 { --x: 36px; --y: 76px; width: 5px; height: 5px; }
@keyframes poofCard { 0%, 30% { transform: scale(1); opacity: 1; } 38% { transform: scale(1.1); } 46% { transform: scale(0.2); opacity: 0; } 100% { opacity: 0; transform: scale(0.2); } }
@keyframes poofChip { 0%, 44% { opacity: 0; transform: scale(0.4); } 56%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes spark { 0%, 40% { opacity: 0; transform: none; } 44% { opacity: 1; } 70%, 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.3); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: 30px; border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  grid-column: span 2; min-height: 280px;
}
.tile h3 { font-size: 26px; margin-bottom: 10px; }
.tile p { color: var(--dim); font-size: 16px; }
.tile-shot { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.tile-hold { grid-column: span 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tile-devices { grid-column: span 4; }

.pill-btn {
  margin-top: 22px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--mist); color: #000; transition: transform 0.25s var(--ease-spring);
}
.pill-btn:hover { transform: scale(1.04); }
.pill-btn:active { transform: scale(0.96); }

/* Screenshot try */
.shot-stage { position: relative; height: 260px; display: grid; place-items: center; }
.mini-phone {
  position: relative; width: 130px; height: 250px; border-radius: 24px; padding: 6px; background: #2a2a2d;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.mini-photo, .thumb-photo {
  width: 100%; height: 100%; border-radius: 19px;
  background:
    radial-gradient(circle at 58% 62%, #fff8d6 0 9%, #ffd27a 10%, transparent 26%),
    linear-gradient(180deg, #2b1b5a 0%, #8a3a8f 38%, #ff7a59 66%, #ffc46b 78%, #4a2a5e 79%, #2a1840 100%);
}
.mini-cap, .shot-thumb .mini-cap {
  position: absolute; left: 6px; right: 6px; top: 64%; text-align: center; font-size: 10px; font-weight: 500; color: #fff;
  background: rgba(0,0,0,0.45); padding: 3px 0;
}
.shot-flash { position: absolute; inset: -30px; background: #fff; opacity: 0; pointer-events: none; border-radius: 28px; }
.shot-flash.go { animation: flash 0.6s ease-out; }
.shot-thumb {
  position: absolute; right: 0; bottom: 0; width: 86px; height: 166px; border-radius: 16px; padding: 4px;
  background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  opacity: 0; transform: translate(-60px, -40px) scale(1.5); pointer-events: none;
}
.shot-thumb .thumb-photo { background: #000; border-radius: 12px; }
.shot-thumb .mini-cap { left: 4px; right: 4px; font-size: 7px; }
.shot-thumb.go { animation: thumb 3.6s var(--ease-out) forwards; }
@keyframes thumb {
  0% { opacity: 0; transform: translate(-60px, -40px) scale(1.5); }
  15% { opacity: 1; transform: translate(-60px, -40px) scale(1.5); }
  35%, 85% { opacity: 1; transform: rotate(4deg); }
  100% { opacity: 0; transform: translateX(120px) rotate(10deg); }
}

/* Hold ring */
.hold-ring {
  position: relative; width: 150px; height: 150px; margin-top: auto; border-radius: 50%;
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.3s var(--ease-spring);
}
.hold-ring.held { transform: scale(0.94); }
.hold-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold-ring circle { fill: none; stroke-width: 7; }
.hr-bg { stroke: rgba(255,255,255,0.1); }
.hr-fg { stroke: var(--mist); stroke-linecap: round; stroke-dasharray: 326.7; transition: stroke 0.2s; }
.hold-ring.held .hr-fg { stroke: var(--flash); }
.hr-num { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; margin-top: -12px; }
.hr-label { position: absolute; bottom: 38px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.hold-ring.held .hr-label { color: var(--flash); }

/* Reactions */
.react-row { display: flex; gap: 10px; margin-top: 22px; }
.react-row button {
  font-size: 26px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}
.react-row button:hover { transform: scale(1.15) rotate(-6deg); background: rgba(255,255,255,0.12); }
.react-row button:active { transform: scale(0.9); }
.react-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 7px 14px; border-radius: 999px;
  background: #3a3a3c; color: #e5e5ea; font-size: 14px; font-weight: 500;
}
.react-chip svg { width: 22px; height: 22px; color: #8e8e93; }
.react-chip svg circle { fill: #8e8e93; }
.react-chip-r { display: inline-block; }
.react-chip-r.bump { animation: squish 0.5s var(--ease-spring); }
.tile-react .float-emoji { font-size: 34px; }

/* Music */
.eq { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-bottom: 26px; }
.eq i { width: 10px; border-radius: 5px; background: var(--flash); height: 20%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.8s; }
.eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.2s; }
.eq i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.9s; }
.eq i:nth-child(5) { animation-delay: -0.45s; animation-duration: 1.1s; }
@keyframes eq { 50% { height: 100%; } }

/* Groups */
.faces { display: flex; margin-bottom: 30px; }
.faces span {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
  margin-right: -12px; border: 3px solid var(--panel-2); color: #fff; font-size: 20px;
  background: linear-gradient(#a5acb8, #858b96); position: relative;
}
.faces span:nth-child(2) { background: linear-gradient(#ff9f6b, #ff6b6b); }
.faces span:nth-child(3) { background: linear-gradient(#7ad0ff, #3a8bff); }
.faces span:nth-child(4) { background: linear-gradient(#b38bff, #7a5cff); }
.faces span::after {
  content: ""; position: absolute; right: -2px; top: -2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--flash); border: 2px solid var(--panel-2); transform: scale(0);
}
.in .faces span::after { animation: seen 4s var(--ease-spring) infinite; }
.in .faces span:nth-child(2)::after { animation-delay: 0.3s; }
.in .faces span:nth-child(3)::after { animation-delay: 0.6s; }
.in .faces span:nth-child(4)::after { animation-delay: 0.9s; }
@keyframes seen { 0%, 10% { transform: scale(0); } 18%, 80% { transform: scale(1); } 90%, 100% { transform: scale(0); } }

/* Save */
.day-bar { margin-top: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.day-bar span { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--flash), #ffb340); transform-origin: left; }
.in .day-bar span { animation: drain 6s linear infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Devices */
.devices { display: flex; align-items: flex-end; gap: 28px; margin-top: 34px; }
.devices svg { height: 74px; width: auto; fill: none; stroke: rgba(245,245,247,0.6); stroke-width: 2.5; }
.devices svg .fill { fill: rgba(245,245,247,0.6); stroke: none; }
.devices svg:nth-child(1) { height: 70px; } .devices svg:nth-child(2) { height: 84px; } .devices svg:nth-child(3) { height: 70px; } .devices svg:nth-child(4) { height: 56px; }
.in .devices svg { animation: hop 4s var(--ease-spring) infinite; }
.in .devices svg:nth-child(2) { animation-delay: 0.15s; } .in .devices svg:nth-child(3) { animation-delay: 0.3s; } .in .devices svg:nth-child(4) { animation-delay: 0.45s; }
@keyframes hop { 0%, 12%, 100% { transform: none; stroke: rgba(245,245,247,0.6); } 6% { transform: translateY(-8px); stroke: var(--flash); } }

/* ---------- Privacy ---------- */
.privacy {
  position: relative; max-width: 1180px; margin: 40px auto; padding: 80px 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.cipher-wrap {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1;
  background: #0f0f10; border: 1px solid var(--line);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 100%);
}
.cipher {
  margin: 0; position: absolute; inset: 0; padding: 20px; overflow: hidden;
  font: 500 14px/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: rgba(245,245,247,0.22);
  white-space: pre-wrap; word-break: break-all;
}
.cipher b { color: var(--flash); font-weight: 600; }
.privacy h2 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.035em; }
.dim { color: var(--dim); }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.facts li { position: relative; padding-left: 30px; color: var(--dim); font-size: 17px; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--flash); box-shadow: 0 0 14px rgba(255, 214, 10, 0.6);
}
.facts b { color: var(--mist); font-weight: 600; }

/* ---------- Final ---------- */
.final { position: relative; text-align: center; padding: 140px 32px 160px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.final-glow {
  position: absolute; z-index: -1; left: 50%; top: 40%; width: 900px; max-width: 160vw; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.14), transparent);
}
.eye-final { width: 160px; height: 160px; margin-bottom: 16px; cursor: pointer; }
.final h2 { font-size: clamp(42px, 7vw, 92px); letter-spacing: -0.045em; }
.final .lede { margin: 20px auto 40px; }

/* ---------- Footer ---------- */
.foot {
  max-width: 1180px; margin: 0 auto; padding: 32px 32px 48px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--dim);
}
.foot nav { display: flex; gap: 24px; }
.foot a:hover { color: var(--mist); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 56px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  .try-arrow { transform: rotate(90deg); animation: none; }
  .hero-glow { right: auto; left: 5%; top: 45%; width: 90%; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .step:nth-child(n) { transition-delay: 0s; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile-hold { grid-column: span 1; }
  .tile-shot, .tile-devices { grid-column: span 2; }
  .privacy { grid-template-columns: 1fr; }
  .cipher-wrap { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hero { padding: 96px 16px 56px; }
  .eye-wrap { width: 76px; height: 76px; }
  .try-hint { width: 100%; }
  .vanish-sticky { padding: 0 16px; }
  .how, .features { padding: 72px 16px; }
  .section-title { margin-bottom: 36px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile, .tile-hold, .tile-shot, .tile-devices { grid-column: span 1; min-height: 0; padding: 24px; }
  .tile-shot { grid-template-columns: 1fr; }
  .tile-hold .hold-ring { margin-top: 22px; }
  .devices { gap: 18px; }
  .privacy { padding: 56px 16px; gap: 36px; }
  .final { padding: 100px 16px 120px; }
  .eye-final { width: 120px; height: 120px; }
  .foot { padding: 28px 16px 40px; flex-direction: column; align-items: flex-start; }
}

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