/* =====================================================================
   Corvox Chat — landing
   Design tokens mirror the app's "mono" theme (app/lib/theme/tokens.dart):
   near-black surfaces, one violet accent (#7C5CFF), Inter everywhere.
   ===================================================================== */

:root {
  --accent: #7c5cff;
  --accent-2: #5ba8ff;      /* brand-blue from the logo */
  --accent-soft: rgba(124, 92, 255, .16);
  --accent-bord: rgba(124, 92, 255, .4);
  --grad: linear-gradient(135deg, #b9a6ff 0%, #7c5cff 45%, #5ba8ff 100%);

  --display: 'Inter', system-ui, sans-serif;
  --bg: #050508;
  --bg-2: #0c0c0f;
  --panel: #0c0c0f;
  --card: rgba(16, 16, 22, .58);
  --card-solid: #111115;
  --card-2: rgba(27, 27, 33, .72);
  --border: rgba(255, 255, 255, .08);
  --border-hi: rgba(255, 255, 255, .14);
  --text: #f4f4f7;
  --dim: #b4b4be;
  --faint: #8a8a96;
  --bubble-in: #22222a;
  --bubble-out: var(--accent);
  --nav-bg: rgba(5, 5, 8, .62);
  --shadow:
    0 1px 0 rgba(255, 255, 255, .07) inset,
    0 18px 48px -28px rgba(0, 0, 0, .72),
    0 0 48px -28px rgba(124, 92, 255, .35);
  --glow: 0 0 60px rgba(124, 92, 255, .22);
  --grid-line: rgba(255,255,255,.035);
  --aurora-alpha: .38;
  --glass-blur: 22px;

  --r-sm: 10px; --r: 16px; --r-lg: 20px; --r-xl: 26px;
  --container: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="light"] {
  --bg: #f4f4f7;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --card: rgba(255, 255, 255, .62);
  --card-solid: #ffffff;
  --card-2: rgba(237, 237, 240, .78);
  --border: rgba(20, 16, 40, .08);
  --border-hi: rgba(20, 16, 40, .14);
  --text: #111118;
  --dim: #5a5a64;
  --faint: #73737c;
  --bubble-in: #e7e7eb;
  --nav-bg: rgba(247, 247, 249, .7);
  --shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 18px 48px -28px rgba(20, 10, 60, .22),
    0 0 40px -24px rgba(124, 92, 255, .2);
  --glow: 0 0 60px rgba(124, 92, 255, .14);
  --grid-line: rgba(0,0,0,.045);
  --aurora-alpha: .5;
}

html.booting .nav,
html.booting .nav *,
html.booting main,
html.booting main *,
html.booting .ticker,
html.booting .ticker *,
html.booting .footer {
  animation-play-state: paused !important;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
main, .ticker, .footer { position: relative; z-index: 1; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: grad-shift 8s ease-in-out infinite;
}

/* ---------- WebGL stage ---------- */
.gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
  opacity: 0; transition: opacity .8s var(--ease);
  image-rendering: auto;
}
body.webgl .gl { opacity: 1; filter: saturate(1.18) blur(0.4px); }
body.webgl #aurora { opacity: 0; }
body.webgl .bg__grid { opacity: 0; }
body.webgl .hero { position: relative; z-index: 1; }
body.webgl .hero__copy { text-shadow: 0 10px 36px rgba(5,5,8,.55); }
.bg { z-index: -1; }
.bg__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}
body.webgl .bg__vignette {
  background:
    linear-gradient(90deg, rgba(5,5,8,.58) 0%, rgba(5,5,8,.22) 34%, transparent 54%),
    linear-gradient(180deg, transparent 78%, var(--bg) 100%);
}
html[data-theme="light"] body.webgl .bg__vignette {
  background:
    linear-gradient(90deg, rgba(247,247,249,.5) 0%, rgba(247,247,249,.18) 36%, transparent 58%),
    linear-gradient(180deg, transparent 82%, var(--bg) 100%);
}
@keyframes grad-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#aurora { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--aurora-alpha); transition: opacity .6s; }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
.bg__noise {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  transition:
    transform .2s var(--ease),
    box-shadow .2s var(--ease),
    background-color .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    filter .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(124, 92, 255, .55);
}
.btn--primary:active { transform: scale(.98); filter: brightness(.94); }
.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:active { transform: scale(.98); background: rgba(255, 255, 255, .07); }
html[data-theme="light"] .btn--ghost { background: rgba(255, 255, 255, .55); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 28px -10px rgba(124, 92, 255, .62);
  }
  .btn--ghost:hover {
    border-color: var(--border-hi);
    background: rgba(255, 255, 255, .07);
  }
}

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { border-color: var(--border-hi); background: rgba(255, 255, 255, .08); }
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  isolation: isolate;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px;
  transition: padding .3s var(--ease), background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  position: relative; padding: 8px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--dim);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--card-2); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--grad);
}
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  padding: clamp(48px, 9vh, 104px) 0 clamp(72px, 11vh, 128px);
  min-height: calc(100svh - 70px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px; font-weight: 500; color: var(--dim);
  letter-spacing: .01em;
  transition: border-color .2s, color .2s, background .2s;
  animation: fade-up .8s var(--ease) both;
}
@media (hover: hover) and (pointer: fine) {
  .eyebrow:hover { border-color: var(--accent-bord); color: var(--text); background: rgba(255, 255, 255, .07); }
  .eyebrow:hover svg { transform: translateX(2px); }
}
.eyebrow svg { width: 14px; height: 14px; flex: none; transition: transform .2s; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.45); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.hero__title {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.08; letter-spacing: -.032em; font-weight: 600;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > * , .hero__title .line { animation: rise 1s var(--ease) both; }
.hero__title .line:nth-child(2) { animation-delay: .08s; }
.hero__title .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hero__lead {
  margin-top: 20px; max-width: 520px;
  font-size: clamp(15px, 1.2vw, 17px); color: var(--dim); line-height: 1.65;
  animation: fade-up .9s .25s var(--ease) both;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: fade-up .9s .35s var(--ease) both; }
.hero__platforms {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px;
  color: var(--faint); font-size: 13px; font-weight: 500;
  animation: fade-up .9s .45s var(--ease) both;
}
.hero__platforms li { display: inline-flex; align-items: center; gap: 7px; }
.hero__platforms svg { width: 16px; height: 16px; }
.hero__platforms .soon { opacity: .55; }

/* device mock */
.hero__visual {
  position: relative;
  perspective: 1800px;
  width: 100%;
  animation: fade-up 1s .3s var(--ease) both;
}
.hero__visual::after {
  content: '';
  position: absolute; left: 12%; right: 12%; bottom: -28px; height: 48px;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,92,255,.35), transparent 70%);
  filter: blur(12px);
  pointer-events: none; z-index: -1;
}
.device {
  position: relative;
  border-radius: var(--r-xl);
  background: transparent;
  transform:
    rotateY(var(--ry, -14deg))
    rotateX(var(--rx, 8deg))
    rotateZ(var(--rz, 1.2deg));
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  will-change: transform;
}
.device__clip {
  position: relative;
  border-radius: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .08) inset,
    0 24px 64px -28px rgba(0, 0, 0, .7),
    0 0 56px -20px rgba(124, 92, 255, .28);
}
.device__bar {
  position: relative;
  display: flex; align-items: center; gap: 7px; padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg);
  min-height: 44px;
}
.device__bar .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.device__title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--faint); font-weight: 500; pointer-events: none;
}
.device__stories {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--dim); white-space: nowrap;
}
.device__stories .story-ring { padding: 1.5px; }
.device__stories .story-ring .avatar { width: 20px; height: 20px; font-size: 9px; border-width: 1.5px; }
.device__stories span { margin-left: 4px; }
.device__body { display: grid; grid-template-columns: 148px 1fr; height: 460px; }

.mock-side { border-right: 1px solid var(--border); padding: 12px 10px; background: var(--bg); }
.mock-search { height: 30px; border-radius: 9px; background: var(--card-2); display: flex; align-items: center; padding: 0 10px; margin-bottom: 12px; }
.mock-search span { width: 50%; height: 6px; border-radius: 3px; background: var(--border-hi); }
.mock-list li {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px;
  transition: background .3s;
}
.mock-list li.active { background: var(--card-2); }
.mock-list .meta { min-width: 0; flex: 1; }
.mock-list .n { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list .p { font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list .unread { min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; animation: pop .4s var(--ease-spring) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.av-grad-1 { background: linear-gradient(135deg, #7c5cff, #5ba8ff); }
.av-grad-2 { background: linear-gradient(135deg, #ff7a59, #ffb547); }
.av-grad-3 { background: linear-gradient(135deg, #22c1c3, #3ddc84); }
.av-grad-4 { background: linear-gradient(135deg, #ff5fa2, #b96bff); }
.av-grad-5 { background: linear-gradient(135deg, #5e6ad2, #9aa5ff); }
.av-grad-6 { background: linear-gradient(135deg, #f7971e, #ffd200); color: #3a2a00; }

.mock-chat { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.mock-chat__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mock-chat__head > div:nth-child(2) { min-width: 0; flex: 1; }
.mock-chat__name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.verified svg { width: 13px; height: 13px; color: var(--accent-2); }
.mock-chat__sub { font-size: 11px; color: var(--faint); display: flex; align-items: center; gap: 5px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; }
.mock-chat__tools { margin-left: auto; display: flex; gap: 12px; color: var(--faint); }
.mock-chat__tools svg { width: 17px; height: 17px; }

.mock-msgs { flex: 1; min-height: 0; padding: 14px 26px 12px 12px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; justify-content: flex-end; }
.msg { display: flex; gap: 8px; max-width: 82%; min-width: 0; animation: msg-in .4s var(--ease) both; }
.msg.out { align-self: flex-end; flex-direction: row-reverse; max-width: 58%; margin-right: 2px; }
.msg .avatar { width: 24px; height: 24px; font-size: 10px; align-self: flex-end; }
.msg .bubble {
  position: relative; min-width: 0; width: max-content; max-width: 100%;
  padding: 8px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.4;
  background: var(--bubble-in); color: var(--text);
  border-bottom-left-radius: 6px;
  overflow-wrap: anywhere; word-break: break-word;
}
.msg.out .bubble { background: var(--accent); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.msg .bubble .who { display: block; font-size: 10.5px; font-weight: 700; color: var(--accent-2); margin-bottom: 2px; }
.msg .bubble .time { float: right; margin: 4px 0 0 8px; font-size: 9.5px; opacity: .6; white-space: nowrap; }
.msg .react {
  position: absolute; bottom: -9px; right: 8px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 1px 7px; font-size: 10px; color: var(--text);
  animation: pop .4s .3s var(--ease-spring) both;
}
.msg.out .react { right: auto; left: 8px; }
.msg .bubble.voice { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.bubble.voice .play { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.bubble.voice .play::after { content: ''; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.bubble.voice .bars { display: flex; align-items: center; gap: 2px; height: 18px; }
.bubble.voice .bars i { width: 2.5px; border-radius: 2px; background: rgba(255,255,255,.85); height: var(--h, 40%); animation: bar 1.1s ease-in-out infinite; animation-delay: var(--d, 0s); }
.bubble.voice .dur { font-size: 10px; opacity: .8; }
@keyframes bar { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1.15); } }
.msg .bubble.img { padding: 3px; border-radius: 14px; overflow: hidden; }
.bubble.img .pic {
  width: 156px; height: 138px; border-radius: 11px;
  position: relative; overflow: hidden;
  background: #0c0c0f;
}
.bubble.img .cap { padding: 5px 8px 3px; font-size: 11.5px; }

.pf-shot {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(124,92,255,.22), transparent 55%),
    #111115;
  box-shadow: inset 0 0 0 1px rgba(124,92,255,.28);
}
.pf-shot__banner {
  height: 46px;
  background: linear-gradient(135deg, #1b1038 0%, #5a3dff 48%, #7c5cff 100%);
  position: relative; overflow: hidden;
}
.pf-shot__banner::before {
  content: '';
  position: absolute; inset: -30% -10%;
  background:
    radial-gradient(circle at 20% 80%, rgba(91,168,255,.45), transparent 42%),
    radial-gradient(circle at 90% 10%, rgba(235,69,159,.35), transparent 40%);
  animation: pf-aurora 5s ease-in-out infinite alternate;
}
@keyframes pf-aurora { to { transform: translate3d(8%, -6%, 0) scale(1.08); } }
.pf-shot__x {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(8,8,12,.5);
}
.pf-shot__x::before, .pf-shot__x::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 1.2px; background: #fff; border-radius: 1px;
}
.pf-shot__x::before { transform: translate(-50%, -50%) rotate(45deg); }
.pf-shot__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pf-shot__av {
  position: absolute; left: 50%; top: 28px; z-index: 2;
  width: 34px; height: 34px; margin-left: -17px;
  border: 3px solid #111115;
  box-shadow: 0 0 0 1.5px rgba(124,92,255,.85), 0 6px 14px rgba(0,0,0,.45);
  font-size: 14px;
}
.pf-shot__body { padding: 18px 10px 6px; text-align: center; }
.pf-shot__name {
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: -.02em;
  text-shadow: 0 0 12px rgba(124,92,255,.55);
}
.pf-shot__online { margin-top: 1px; font-size: 8.5px; font-weight: 600; color: #3ddc84; }
.pf-shot__card {
  margin: 7px 0 0; padding: 5px 8px; text-align: left;
  background: rgba(124,92,255,.14);
  border: 1px solid rgba(124,92,255,.38);
  border-radius: 8px;
}
.pf-shot__card b { display: block; font-size: 7.5px; color: #a8a8b2; font-weight: 600; }
.pf-shot__card span { display: block; font-size: 9px; color: #fff; font-weight: 600; margin-top: 1px; }
.pf-shot__acts { display: flex; justify-content: center; gap: 6px; margin-top: 7px; }
.pf-shot__acts i {
  width: 28px; height: 18px; border-radius: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: #c8c8d0;
}
.pf-shot__acts svg { width: 10px; height: 10px; display: block; }
@keyframes msg-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.mock-typing { display: flex; align-items: center; gap: 3px; padding: 0 16px 6px; height: 22px; font-size: 11px; color: var(--faint); opacity: 0; transition: opacity .25s; }
.mock-typing.on { opacity: 1; }
.mock-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); animation: typing 1.2s infinite; }
.mock-typing span:nth-child(2) { animation-delay: .15s; } .mock-typing span:nth-child(3) { animation-delay: .3s; }
.mock-typing em { font-style: normal; margin-left: 6px; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.mock-compose { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; color: var(--faint); }
.mock-compose svg { width: 18px; height: 18px; flex: none; }
.mock-compose__field { flex: 1; min-height: 34px; border-radius: 12px; background: var(--card-2); padding: 8px 12px; font-size: 12.5px; color: var(--text); display: flex; align-items: center; }
.mock-compose__field:empty::before, .mock-compose__field .ph { content: 'Сообщение'; color: var(--faint); }
.caret { display: inline-block; width: 1.5px; height: 14px; background: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-call {
  position: absolute; top: 52px; right: 14px; left: 162px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--border-hi);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
  transform: translateY(-140%); opacity: 0;
  transition: transform .6s var(--ease-spring), opacity .4s;
}
.mock-call.on { transform: none; opacity: 1; }
.mock-call .avatar.ring { box-shadow: 0 0 0 3px var(--card-2), 0 0 0 5px #3ddc84; animation: ringpulse 1.2s infinite; }
@keyframes ringpulse { 50% { box-shadow: 0 0 0 3px var(--card-2), 0 0 0 7px rgba(61,220,132,.6); } }
.mock-call__text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.mock-call__text span { color: var(--faint); font-size: 11px; }
.mock-call__btns { margin-left: auto; display: flex; gap: 8px; }
.mock-call__btns span { width: 30px; height: 30px; border-radius: 50%; display: block; position: relative; }
.mock-call__btns span::before { content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/></svg>") center/contain no-repeat; }
.mock-call__btns .decline { background: #ff4d5e; } .mock-call__btns .decline::before { transform: rotate(135deg); }
.mock-call__btns .accept { background: #28c840; animation: wiggle 1s infinite; }
@keyframes wiggle { 0%,100% { transform: none; } 50% { transform: scale(1.06); } }

/* floating cards */
.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.6);
  font-size: 12px; color: var(--dim);
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
.float b { display: block; color: var(--text); font-size: 13px; }
.float--e2ee { left: -34px; bottom: 64px; }
.float--e2ee svg { width: 22px; height: 22px; color: #3ddc84; }
.story-ring { padding: 2px; border-radius: 50%; background: var(--grad); }
.story-ring.seen { background: var(--border-hi); }
.story-ring .avatar { width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--card); }
.device .mock-search,
.device .mock-list li.active,
.device .device__stories,
.device .mock-compose__field,
.device .mock-call,
.msg .react {
  background: #1b1b21;
}
html[data-theme="light"] .device .mock-search,
html[data-theme="light"] .device .mock-list li.active,
html[data-theme="light"] .device .device__stories,
html[data-theme="light"] .device .mock-compose__field,
html[data-theme="light"] .device .mock-call,
html[data-theme="light"] .msg .react {
  background: #ededf0;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 8px 0 4px;
  background: transparent;
  border: 0;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 72px;
  z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
body.webgl .ticker::before { background: linear-gradient(90deg, rgba(5,5,8,.55), transparent); }
body.webgl .ticker::after { background: linear-gradient(270deg, rgba(5,5,8,.55), transparent); }
html[data-theme="light"] body.webgl .ticker::before { background: linear-gradient(90deg, rgba(244,244,247,.55), transparent); }
html[data-theme="light"] body.webgl .ticker::after { background: linear-gradient(270deg, rgba(244,244,247,.55), transparent); }
.ticker__track {
  display: flex; align-items: center;
  width: max-content;
  animation: ticker 80s linear infinite;
  will-change: transform;
}
.ticker__track span {
  font-size: 13px; font-weight: 500; color: var(--faint);
  white-space: nowrap; letter-spacing: .04em; line-height: 1.2;
  padding: 0;
  background: none; border: 0;
}
.ticker__track span + span::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent);
  opacity: .45;
  margin: 0 18px 2px 18px;
  vertical-align: middle;
}
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }
@media (hover: hover) and (pointer: fine) {
  .ticker:hover .ticker__track { animation-play-state: paused; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--narrow { max-width: 780px; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent); margin-bottom: 12px; }
.section__head h2, .security h2, .prime h2, .final h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 48px);
  letter-spacing: -.03em; line-height: 1.12; font-weight: 600;
}
.section__head p { margin-top: 14px; font-size: 16px; color: var(--dim); max-width: 560px; line-height: 1.6; }

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

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; grid-column: span 2;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.card--wide { grid-column: span 4; }
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hi);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .1) inset,
      0 28px 56px -32px rgba(0, 0, 0, .7),
      0 0 48px -20px rgba(124, 92, 255, .32);
  }
}
.card__vis { position: relative; height: 210px; overflow: hidden; background: rgba(8, 8, 12, .35); border-bottom: 1px solid var(--border); }
.card__vis::after {
  content: ''; position: absolute; inset: auto 0 0; height: 48px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 12, .35));
}
.card__body { padding: 20px 22px 24px; }
.card__body h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.3; }
.card__body p { font-size: 14.5px; color: var(--dim); line-height: 1.6; }

/* spotlight */
.spot::before {
  content: ''; position: absolute; inset: -1px; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124,92,255,.18), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

/* generic bubbles for visuals */
.b { position: absolute; z-index: 1; padding: 9px 13px; border-radius: 16px; font-size: 12.5px; line-height: 1.35; max-width: 70%; background: var(--bubble-in); border-bottom-left-radius: 6px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.b-out { background: var(--accent); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; right: 20px; }
.b i { display: block; font-style: normal; font-size: 10.5px; color: var(--accent-2); border-left: 2px solid var(--accent-2); padding-left: 6px; margin-bottom: 4px; }
.b .react { position: absolute; bottom: -10px; left: 10px; background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; font-size: 10px; color: var(--text); }

.vis-chat .b:nth-child(1) { left: 20px; top: 22px; animation: drift 7s ease-in-out infinite; }
.vis-chat .b:nth-child(2) { top: 64px; animation: drift 7s -2s ease-in-out infinite; }
.vis-chat .b:nth-child(3) { left: 20px; top: 112px; animation: drift 7s -4s ease-in-out infinite; }
.vis-chat .b-poll { right: 20px; top: 118px; left: auto; background: var(--card-2); min-width: 210px; animation: drift 7s -1s ease-in-out infinite; }
.b-poll b { display: block; font-size: 12px; margin-bottom: 6px; }
.poll { display: flex; flex-direction: column; gap: 4px; }
.poll span { position: relative; display: block; padding: 4px 8px; border-radius: 7px; background: var(--border); font-size: 11px; overflow: hidden; }
.poll span::before { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--accent-soft); border-right: 2px solid var(--accent); animation: growbar 1.6s var(--ease) both; }
.poll span em { position: absolute; right: 8px; font-style: normal; font-weight: 700; }
@keyframes growbar { from { width: 0; } }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.vis-guild ul { padding: 12px 18px; font-size: 12.5px; color: var(--dim); }
.vis-guild li { padding: 5px 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.vis-guild li.cat { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--faint); padding-top: 8px; }
.vis-guild li.active { background: var(--card-2); color: var(--text); }
.vis-guild .badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.vis-guild .voice em { margin-left: auto; font-style: normal; font-size: 11px; }
.vis-guild .vol { width: 14px; height: 14px; border-radius: 4px; background: var(--accent-soft); position: relative; flex: none; }
.vis-guild .vol::after { content: ''; position: absolute; inset: 3px; border-radius: 2px; background: var(--accent); animation: voicepulse 1.4s infinite; }
@keyframes voicepulse { 50% { transform: scale(.6); opacity: .6; } }

.vis-call { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr auto; gap: 8px; padding: 16px; }
.vis-call .tile { position: relative; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; border: 2px solid transparent; transition: border-color .3s; }
.vis-call .tile.speaking { border-color: #3ddc84; animation: speak 1.6s infinite; }
@keyframes speak { 50% { border-color: rgba(61,220,132,.3); } }
.vis-call .mic { position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.5); }
.vis-call .mic::after { content: ''; position: absolute; inset: 4px; border-radius: 3px; background: #fff; }
.vis-call .mic.off { background: #ff4d5e; }
.vis-call .screen { background: linear-gradient(135deg, #1d1d3d, #2a2a5a); color: #b9a6ff; font-size: 11px; font-weight: 600; grid-column: span 3; height: 64px; }
.vis-call .avatar { width: 40px; height: 40px; font-size: 15px; }

.vis-story { display: grid; place-items: center; }
.story-card { width: 120px; height: 180px; border-radius: 18px; background: linear-gradient(160deg, #ff7a59, #b96bff 60%, #5ba8ff); position: relative; overflow: hidden; box-shadow: 0 20px 40px -14px rgba(185,107,255,.5); transform: rotate(-4deg); }
.story-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.4), transparent 50%); }
.story-card .progress { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; }
.story-card .progress i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.story-card .progress i::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: story 6s linear infinite; }
.story-card .progress i:nth-child(1)::after { animation-delay: 0s; } .story-card .progress i:nth-child(2)::after { animation-delay: 2s; } .story-card .progress i:nth-child(3)::after { animation-delay: 4s; }
@keyframes story { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.story-card .who { position: absolute; top: 18px; left: 10px; display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: #fff; }
.story-card .who .avatar { width: 20px; height: 20px; font-size: 9px; border: 1.5px solid #fff; }

.vis-voice { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 22px; }
.wave { display: flex; align-items: center; gap: 3px; height: 64px; }
.wave i { flex: 1; border-radius: 3px; background: var(--grad); height: var(--h); animation: bar 1.4s ease-in-out infinite; animation-delay: var(--d); opacity: .9; }
.transcript { font-size: 12.5px; color: var(--dim); padding: 10px 12px; border-radius: 10px; background: var(--card-2); border-left: 3px solid var(--accent); }

.vis-stickers { display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; padding: 16px; }
.vis-stickers span { font-size: 44px; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); animation: bob 3s ease-in-out infinite; transition: transform .3s var(--ease-spring); }
.vis-stickers span:nth-child(2n) { animation-delay: -1s; } .vis-stickers span:nth-child(3n) { animation-delay: -2s; }
.vis-stickers span:hover { transform: scale(1.25) rotate(-8deg); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

.vis-translate { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.vis-translate .b { position: static; max-width: 78%; }
.vis-translate .b-tr { border-left: 3px solid var(--accent); }
.tr-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-weight: 600; margin-left: 12px; }
.tr-arrow svg { width: 14px; height: 14px; }

/* ---------- security ---------- */
.security { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.security h2 { margin-bottom: 18px; }
.security__copy {
  padding: clamp(22px, 3.2vw, 36px);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
}
.security__copy > p { font-size: 16px; color: var(--dim); line-height: 1.65; }
.checks { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: flex; gap: 14px; }
.check-ic { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.check-ic svg { width: 15px; height: 15px; }
.checks b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.checks div span { font-size: 14px; color: var(--dim); line-height: 1.5; }
.fineprint { margin-top: 22px; font-size: 13px; color: var(--dim); border-left: 2px solid var(--accent-bord); padding-left: 12px; }
html[data-theme="light"] .security__copy > p { color: var(--dim); }
html[data-theme="light"] .checks div span { color: var(--dim); }

.security__vis {
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
}
.e2ee { display: grid; grid-template-columns: 96px 1fr 96px; align-items: center; gap: 12px; }
.e2ee__peer { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.phone { width: 96px; height: 150px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--border-hi); position: relative; padding: 14px 7px; display: flex; flex-direction: column; justify-content: flex-end; }
.phone::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 28px; height: 4px; border-radius: 2px; background: var(--border-hi); }
.phone__msg { font-size: 9.5px; line-height: 1.3; padding: 6px 8px; border-radius: 10px; background: var(--bubble-in); }
.phone__msg.out { background: var(--accent); color: #fff; border-bottom-right-radius: 3px; }
.phone__msg.in { border-bottom-left-radius: 3px; min-height: 30px; }
.e2ee__wire { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wire { width: 100%; height: 70px; overflow: visible; }
.wire path { stroke: var(--border-hi); stroke-width: 1.5; stroke-dasharray: 4 6; }
.wire .pkt { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); offset-path: path('M0 40 C 60 40, 60 10, 150 10 S 240 40, 300 40'); animation: pkt 3s linear infinite; }
.wire .pkt.p2 { offset-path: path('M0 40 C 60 40, 60 70, 150 70 S 240 40, 300 40'); animation-delay: -1.5s; fill: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-2)); }
@keyframes pkt { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.cipher { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px; color: var(--accent-2); background: var(--bg-2); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; max-width: 100%; }
.wire-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); }
.wire-label svg { width: 12px; height: 12px; }

.ratchet { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.ratchet .kicker { margin-bottom: 10px; font-size: 11px; }
.ratchet__keys { display: flex; gap: 6px; height: 34px; align-items: center; overflow: hidden; }
.ratchet__keys .key { flex: none; height: 28px; padding: 0 9px; border-radius: 7px; display: flex; align-items: center; gap: 5px; font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; border: 1px solid var(--border); color: var(--faint); background: var(--bg-2); transition: all .5s var(--ease); }
.ratchet__keys .key.live { border-color: var(--accent); color: var(--text); background: var(--accent-soft); box-shadow: 0 0 20px -4px var(--accent); }
.ratchet__keys .key.dead { opacity: .35; text-decoration: line-through; }
.ratchet__keys .key svg { width: 11px; height: 11px; }
.ratchet__note { margin-top: 10px; font-size: 12px; color: var(--faint); }
.ratchet__note b { color: var(--text); }

/* ---------- platforms ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plat {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px 22px 22px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
@media (hover: hover) and (pointer: fine) {
  a.plat:hover {
    transform: translateY(-3px);
    border-color: var(--accent-bord);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .1) inset,
      0 24px 48px -28px rgba(124, 92, 255, .4);
  }
  a.plat:hover .plat__cta svg { transform: translateY(2px); }
}
.plat.recommended { border-color: var(--accent-bord); }
.plat.recommended::after { content: 'Для вашего устройства'; position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 999px; }
.plat__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); color: var(--text); }
.plat__ic svg { width: 24px; height: 24px; }
.plat h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.plat p { font-size: 14px; color: var(--dim); line-height: 1.6; flex: 1; }
.plat__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.plat__cta svg { width: 16px; height: 16px; transition: transform .25s; }
.plat__cta.muted { color: var(--faint); }
.plat--soon { border-style: dashed; }
.plat--soon .plat__ic { color: var(--faint); }

/* ---------- prime ---------- */
.prime {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
}
.prime__glow { position: absolute; inset: -40% -20% auto; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,92,255,.28), transparent 60%);
  animation: glow-breathe 8s ease-in-out infinite; }
@keyframes glow-breathe { 50% { opacity: .7; } }
.prime__head { position: relative; text-align: center; max-width: 640px; margin: 0 auto 44px; }
.prime__head p { margin-top: 14px; color: var(--dim); font-size: 16px; line-height: 1.6; }
.prime__star { width: 56px; height: 56px; margin: 0 auto 16px; position: relative; filter: drop-shadow(0 0 18px rgba(124,92,255,.45)); }
.perks { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.perks li {
  padding: 20px; border-radius: var(--r);
  background: rgba(8, 8, 12, .28); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
@media (hover: hover) and (pointer: fine) {
  .perks li:hover { transform: translateY(-2px); border-color: var(--accent-bord); }
}
.perks svg { width: 20px; height: 20px; color: var(--accent); margin-bottom: 8px; }
.perks b { font-size: 15px; font-weight: 600; }
.perks span { font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.perks__cta { background: rgba(124,92,255,.14) !important; border-color: var(--accent-bord) !important; justify-content: center; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border-radius: var(--r); background: var(--card); border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: border-color .3s;
}
.faq details[open] { border-color: var(--border-hi); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-hi); background:
  linear-gradient(var(--text), var(--text)) center/10px 1.5px no-repeat,
  linear-gradient(var(--text), var(--text)) center/1.5px 10px no-repeat; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 22px 20px; color: var(--dim); font-size: 15px; line-height: 1.6; }

/* ---------- final ---------- */
.final {
  text-align: center; padding: clamp(40px, 6vw, 80px) 24px; border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(124,92,255,.18), transparent 70%), var(--card);
}
.final__logo { margin: 0 auto 22px; border-radius: 24px; filter: drop-shadow(0 16px 32px rgba(91,168,255,.28)); }
.final p { margin: 14px auto 0; color: var(--dim); font-size: 16px; line-height: 1.6; max-width: 520px; }
.final .hero__cta { justify-content: center; animation: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0 max(40px, env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; margin-inline: auto; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: var(--dim); }
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 13px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card { grid-column: span 1; }
  .card--wide { grid-column: span 2; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 28px 0 48px; }
  body.webgl .hero { min-height: 0; padding-bottom: 48px; }
  .hero__copy { text-align: center; min-width: 0; }
  .hero__title { font-size: clamp(34px, 8.2vw, 48px); line-height: 1.1; letter-spacing: -.028em; font-weight: 600; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__platforms { justify-content: center; }
  .hero__visual { max-width: min(620px, 92%); width: 100%; margin-inline: auto; perspective: none; }
  .eyebrow { max-width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .device { transform: none !important; }
  .float--e2ee { left: 8px; bottom: -22px; }
  .security { grid-template-columns: 1fr; gap: 28px; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 16px;
    gap: 2px;
    background: color-mix(in srgb, var(--bg-2) 94%, transparent);
    backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s, transform .25s, visibility .25s;
    max-height: min(70vh, 480px); overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 2;
  }
  body.nav-open .nav {
    background: var(--bg-2);
    border-bottom-color: var(--border);
  }
  .nav__links.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav__links a { padding: 14px 14px; font-size: 16px; }
  .nav__links a.active::after { display: none; }
  .burger { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .nav__cta { display: none; }
  body.nav-open { overflow: hidden; }
  body.webgl .bg__vignette {
    background:
      linear-gradient(180deg, rgba(5,5,8,.62) 0%, rgba(5,5,8,.28) 22%, transparent 46%),
      linear-gradient(180deg, transparent 78%, var(--bg) 100%);
  }
  html[data-theme="light"] body.webgl .bg__vignette {
    background:
      linear-gradient(180deg, rgba(247,247,249,.7) 0%, rgba(247,247,249,.28) 24%, transparent 48%),
      linear-gradient(180deg, transparent 82%, var(--bg) 100%);
  }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --glass-blur: 16px; }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 24px; }
  .section__head h2, .security h2, .prime h2, .final h2 { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; }
  .section__head p { font-size: 15.5px; }
  .hero { gap: 24px; padding: 16px 0 28px; }
  .hero__title { font-size: clamp(30px, 8.6vw, 38px); letter-spacing: -.026em; line-height: 1.12; font-weight: 600; }
  .hero__lead { font-size: 15.5px; margin-top: 16px; color: var(--dim); }
  .hero__cta { flex-direction: column; align-items: stretch; margin-top: 22px; gap: 8px; }
  .hero__cta .btn--primary { width: 100%; justify-content: center; }
  .hero__cta .btn--ghost {
    width: 100%;
    background: none; border-color: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    color: var(--dim); font-weight: 500; padding: 10px 8px; min-height: 0;
  }
  .hero__cta .btn--ghost:active { background: none; transform: none; color: var(--text); }
  .final .hero__cta .btn--ghost {
    background: rgba(255,255,255,.04);
    border-color: var(--border);
  }
  .hero__platforms { justify-content: center; gap: 10px 14px; font-size: 12px; }
  .bento, .plat-grid, .perks { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .card__body { padding: 16px 16px 20px; }
  .card__vis { height: 176px; }
  .vis-chat .b-reply,
  .vis-chat .b-out { display: none; }
  .vis-chat .b:nth-child(1) { top: 16px; left: 16px; max-width: 78%; }
  .vis-chat .b-poll { top: 68px; bottom: auto; left: 14px; right: 14px; min-width: 0; }
  .hero__visual { max-width: min(100%, 100%); }
  .device__body { grid-template-columns: 1fr; height: min(380px, 50svh); }
  .device__title, .device__bar .dot { display: none; }
  .device__stories span { display: none; }
  .device__bar { padding: 8px 10px; justify-content: flex-start; }
  .device__stories { margin-left: 0; }
  .mock-side { display: none; }
  .mock-chat__head { padding: 10px 12px; }
  .mock-chat__tools svg:last-child { display: none; }
  .mock-call { left: 10px; right: 10px; }
  .mock-call__text span { font-size: 10.5px; }
  .float { display: none; }
  .e2ee { grid-template-columns: 64px 1fr 64px; gap: 8px; }
  .phone { width: 64px; height: 108px; padding: 12px 5px; }
  .phone__msg { font-size: 8.5px; padding: 5px 6px; }
  .cipher { font-size: 10px; padding: 5px 8px; }
  .security__vis { padding: 16px; }
  .security__copy { padding: 18px; }
  .security__copy > p { font-size: 15px; color: var(--dim); }
  .checks { gap: 14px; margin-top: 22px; }
  .checks div span { color: var(--dim); }
  .prime { padding: 28px 18px; }
  .prime__head { margin-bottom: 24px; }
  .perks li { padding: 16px; }
  .plat { padding: 20px 16px; }
  .plat.recommended::after {
    font-size: 10px; font-weight: 600; top: 12px; right: 12px;
    padding: 3px 8px; max-width: 46%;
    white-space: normal; line-height: 1.25; text-align: center;
  }
  .faq summary { padding: 16px; font-size: 15px; align-items: flex-start; }
  .faq__body { padding: 0 16px 16px; font-size: 14.5px; }
  .final { padding: 28px 16px; }
  .final p { font-size: 15px; }
  .ticker { padding: 4px 0 20px; overflow: visible; }
  .ticker::before, .ticker::after { display: none; }
  .ticker__track {
    animation: none !important;
    will-change: auto;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
    padding: 0 4px;
  }
  .ticker__track span {
    font-size: 12px;
    font-weight: 500;
    color: var(--faint);
    white-space: nowrap;
  }
  .ticker__track span:nth-child(n+11) { display: none; }
  .ticker__track span + span::before { margin: 0 10px 2px 10px; opacity: .35; }
  .b-poll { min-width: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__links { margin: 0; gap: 12px 16px; }
  .btn--lg { padding: 13px 18px; font-size: 15px; min-height: 48px; }
  .icon-btn { width: 40px; height: 40px; }
  .b { font-size: 12px; max-width: 78%; }
  .card, .plat, .security__copy, .security__vis, .prime, .final, .faq details {
    background: rgba(14, 14, 20, .55);
  }
  html[data-theme="light"] .card,
  html[data-theme="light"] .plat,
  html[data-theme="light"] .security__copy,
  html[data-theme="light"] .security__vis,
  html[data-theme="light"] .prime,
  html[data-theme="light"] .final,
  html[data-theme="light"] .faq details {
    background: rgba(255, 255, 255, .58);
  }
}
@media (max-width: 430px) {
  .hero__title { font-size: clamp(28px, 9.2vw, 34px); }
  .device__body { height: min(360px, 48svh); }
  .e2ee { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .e2ee__wire { width: 100%; }
  .phone { width: 88px; height: 132px; }
  .msg.out { max-width: 72%; }
  .bubble.img .pic { width: 132px; height: 118px; }
  .hero__platforms li.soon { display: none; }
}
@media (max-width: 960px) and (max-height: 500px) {
  .hero { padding: 12px 0 24px; gap: 20px; }
  .device__body { height: min(320px, 56svh); }
  .nav__links { max-height: 60vh; }
}
@media (hover: none) {
  .btn--primary:hover, .btn--ghost:hover, .icon-btn:hover,
  .card:hover, a.plat:hover, .perks li:hover, .eyebrow:hover {
    transform: none;
    filter: none;
  }
}

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