/* Telbox landing — cinematic scroll narrative.
 *
 * 2026-05-19 (rev 2) — overhaul. Issues fixed: blank stretch in the
 * morning-problem act, text overlap during frame cross-fades, weak
 * motion, missing call-AI features act. Each act now has its own
 * visual world (brand register permission), with staggered reveals,
 * per-frame ambient washes, and stronger exponential ease-out.
 *
 * Palette mirrors apps/ios/Telbox/Theme/Theme.swift.
 * Legal pages use the same stylesheet via article.legal at the bottom.
 */

/* ---- Inter Display fonts ----------------------------------------- */
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/InterDisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/InterDisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/InterDisplay-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/InterDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/InterDisplay-ExtraBold.woff2") format("woff2"); }

:root {
  --brand: #7A5CFF;
  --brand-electric: #176BFF;
  --brand-cyan: #24D7FF;
  --brand-deep-purple: #B79CFF;
  --brand-dark: #5A3FE8;
  --brand-link-dark: #9F8FFF;

  --brand-gradient: linear-gradient(135deg, #24D7FF 0%, #176BFF 50%, #7A5CFF 100%);
  --brand-gradient-h: linear-gradient(90deg,  #24D7FF 0%, #176BFF 50%, #7A5CFF 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(36,215,255,0.18), rgba(122,92,255,0.12));

  --paper:    #050813;   /* deeper than navy — feels black without being #000 */
  --navy:     #070B18;
  --midnight: #0B1331;
  --surface-1:#0E1530;
  --surface-2:#151936;
  --surface-3:#1C213B;
  --ink: #F0EEFA;
  --ink-mid: #B5B3CC;
  --ink-soft: #7C7A92;
  --line: #2A2F4A;
  --line-soft: rgba(255, 255, 255, 0.06);

  --shadow-card: 0 1px 2px rgba(0,0,0,0.5), 0 18px 40px rgba(2,6,18,0.45);
  --shadow-device: 0 30px 90px rgba(2,6,18,0.75), 0 10px 30px rgba(23,107,255,0.25);

  --radius: 14px;
  --radius-lg: 28px;
  --max: 1200px;
  --max-narrow: 920px;
  --gap-lg: 96px;

  --font: "Inter Display", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-display: "Inter Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Legal pages still respect OS preference. Home is forced dark. */
@media (prefers-color-scheme: light) {
  :root:not(:has(body.home)) {
    --paper: #FFFFFF;
    --navy: #FFFFFF;
    --surface-1: #FAFAFC;
    --ink: #0F0E1A;
    --ink-mid: #4A4860;
    --ink-soft: #7C7A92;
    --line: #E6E4F0;
    --shadow-card: 0 1px 2px rgba(15,14,26,0.04), 0 8px 24px rgba(15,14,26,0.06);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `overflow-x: hidden` creates a scrolling container that BREAKS
   * position: sticky for everything inside (the stage scrolls with
   * its parent instead of pinning to the viewport). `overflow-x: clip`
   * clips the same way visually but doesn't create a scroll context.
   * Modern browsers only (Chrome 90+ / Safari 16+ / Firefox 81+); if
   * we ever need to support older Safari add a feature query. */
  overflow-x: clip;
}

a { color: var(--brand-link-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

*:focus-visible {
  outline: 2px solid var(--brand-electric);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.5rem 0.75rem;
  border: 1px solid var(--line); border-radius: 0.5rem; font-weight: 600;
}

/* Scroll-progress bar pinned to top of viewport. JS drives --scroll-pct. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: calc(var(--scroll-pct, 0) * 100%);
  background: var(--brand-gradient-h);
  box-shadow: 0 0 16px rgba(36,215,255,0.55);
  transition: width 80ms linear;
}

/* ---- Header ----------------------------------------------------- */
/* Target ONLY the top-level page header (direct child of body) so
 * nested <header> elements (e.g., <header class="tier-head"> inside
 * tier cards, or <header> blocks inside articles) don't inherit
 * page-level padding and flex behavior. Round-3 audit caught this
 * cascading into .tier-head at viewports > 1580 px and producing
 * 84-304 px of horizontal overflow into the features column. */
body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}
body > header.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 19, 0.72);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; }

header nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
header nav a { color: var(--ink-mid); font-weight: 500; font-size: 14.5px; }
header nav a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
}
.nav-cta:hover { border-color: var(--brand-link-dark); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-soft);
}
.lang-toggle a { color: var(--ink-soft); font-weight: 500; }
.lang-toggle a.lang-current { color: var(--ink); }

@media (max-width: 880px) {
  /* Use `>` direct-child combinator so the rule only hides the
   * top-level nav links, not the <a> inside .lang-toggle (which is
   * inside a <span>, so not a direct child of nav). Round-3 audit
   * caught the previous `header nav a:not(.nav-cta)` with specificity
   * (0,1,3) which beat `.lang-toggle a { display: inline }` (0,1,1)
   * and made both EN/AR pills vanish at narrow widths. */
  header nav > a:not(.nav-cta) { display: none; }
  .lang-toggle { display: inline-flex; }
}

/* ---- Acts (sections) -------------------------------------------- */

main { display: block; }
body.home main { padding: 0; }

.act {
  position: relative;
  padding: var(--gap-lg) max(24px, calc((100vw - var(--max)) / 2));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.024em;
  line-height: 1.04;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--ink);
}

.section-kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-link-dark);
  margin: 0 0 18px;
}
.section-kicker.accent-cyan { color: var(--brand-cyan); }

.section-title {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0 0 64px;
  max-width: 20ch;
}

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 280ms var(--ease-out-expo),
              box-shadow 280ms var(--ease-out-expo),
              filter 280ms var(--ease-out-expo);
  text-decoration: none !important;
  font-family: var(--font);
}
.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 1px 0 var(--brand-dark), 0 14px 36px rgba(23,107,255,0.40);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  border-color: rgba(255,255,255,0.16);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
}
.btn-xl { padding: 18px 32px; font-size: 17px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---- Reveal-on-scroll + stagger -------------------------------- */
/*
 * Two primitives:
 *   .reveal              — single element fade/slide-up on enter.
 *   [data-stagger] > [data-stagger-item]
 *                        — group container; children fade/slide-up
 *                          one after another when the group enters.
 *
 * Without JS, everything renders in its final state — SSR/SEO safe.
 * With JS, the `.js` class on <html> opts elements into the start
 * (hidden) state, and the IntersectionObserver in scroll.js adds
 * `.is-in` to trigger the transition. data-stagger-delay-N is set
 * by scroll.js on each child for sequencing.
 */

/* Snappier reveal: 600ms opacity, 700ms transform. The user reported
 * the rev 2 motion felt sluggish; this trims ~200-300ms off every
 * fade-in. Combined with rootMargin: 0 in scroll.js the reveals now
 * fire as the element edges enter the viewport, not 10% in. */
.reveal { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); }
.js .reveal { opacity: 0; transform: translate3d(0, 24px, 0); }
.js .reveal.is-in { opacity: 1; transform: none; }

[data-stagger-item] {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out-expo) var(--stagger-delay, 0ms),
              transform 700ms var(--ease-out-expo) var(--stagger-delay, 0ms);
}
.js [data-stagger-item] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
.js [data-stagger].is-in > [data-stagger-item] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-stagger-item] { opacity: 1; transform: none; transition: none; }
  .hero-aura, .calls-aura, .beta-aura { animation: none; }
}

/* =================================================================
   ACT 1 — HERO
   ================================================================= */

.act-hero {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 96px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%,
              rgba(23,107,255,0.22) 0%,
              rgba(36,215,255,0.08) 30%,
              rgba(5,8,19,0) 60%),
              var(--paper);
}

.hero-aura {
  position: absolute;
  inset: -25%;
  background: conic-gradient(from 200deg at 50% 40%,
              rgba(36,215,255,0.20),
              rgba(23,107,255,0.34),
              rgba(122,92,255,0.24),
              rgba(36,215,255,0.20));
  filter: blur(80px);
  opacity: 0.72;
  pointer-events: none;
  animation: aura-rotate 36s linear infinite;
  will-change: transform;
}
.hero-aura.aura-2 {
  inset: 10% -10% -30% 30%;
  background: radial-gradient(40% 40% at 50% 50%, rgba(122,92,255,0.30), transparent 70%);
  animation: aura-drift 18s ease-in-out infinite alternate;
  filter: blur(60px);
  opacity: 0.6;
}
@keyframes aura-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes aura-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1.0); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Soft brand wave at the bottom of the hero, fades into the next act */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 18vh;
  pointer-events: none;
  opacity: 0.65;
}
.hero-waves svg { width: 100%; height: 100%; display: block; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  /* Scroll-bound parallax (scroll.js writes --hero-shift + --hero-fade
   * + --hero-scale). Translates UP at ~0.5x scroll speed, shrinks
   * subtly, and fades. Cinematic departure — by the time the user is
   * past one full viewport, the hero has gracefully receded. */
  transform:
    translate3d(0, calc(var(--hero-shift, 0px) * -1), 0)
    scale(var(--hero-scale, 1));
  opacity: var(--hero-fade, 1);
  transform-origin: 50% 30%;
  will-change: transform, opacity;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}
.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0 rgba(36,215,255,0.7);
  animation: pulse 2.2s var(--ease-out-expo) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(36,215,255,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(36,215,255,0); }
  100% { box-shadow: 0 0 0 0   rgba(36,215,255,0); }
}

.hero-headline {
  font-size: clamp(54px, 10vw, 148px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 30px;
  color: var(--ink);
  max-width: 16ch;
}
.hero-headline .line {
  display: block;
}
.hero-headline em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Brand-signature gradient: one word in the headline carries the
   * Telbox mark gradient as documented identity, not decoration. */
}

.hero-sub {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.45;
  color: var(--ink-mid);
  margin: 0;
  max-width: 56ch;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--ink-soft);
  font-size: 13px;
}
.hero-meta-chip strong { color: var(--ink); font-weight: 600; }

.hero-scrollcue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}
.hero-scrollcue svg { animation: cue-bob 2.4s var(--ease-out-expo) infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(4px); opacity: 1; }
}

@media (max-width: 720px) {
  .act-hero { padding-top: 88px; padding-bottom: 120px; }
  .hero-scrollcue { display: none; }
}

/* =================================================================
   ACT 2 — THE MORNING PROBLEM (rebuilt)
   ================================================================= */

.act-problem {
  padding: 0;
  background: var(--paper);
}

/* Pin height = stage_height (100vh) + scroll-range for 4 frame
 * transitions (140vh). Tighter than rev 2's 280vh so frames advance
 * ~35vh apart (snappier). The trailing 100vh of sticky-slide-out
 * runs concurrently with the next act starting to enter from below,
 * so it never feels like blank space. */
.act-problem .pin {
  height: 240vh;
  position: relative;
}

.problem-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
  overflow: hidden;
}

/* Per-frame ambient wash — cross-fades on data-active change. */
.problem-wash {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-out-expo);
  filter: blur(80px);
  will-change: opacity;
}
.problem-wash.wash-0 { background: radial-gradient(50% 50% at 30% 50%, rgba(36,215,255,0.30), transparent 70%); }
.problem-wash.wash-1 { background: radial-gradient(50% 60% at 70% 40%, rgba(23,107,255,0.35), transparent 70%); }
.problem-wash.wash-2 { background: radial-gradient(60% 60% at 40% 60%, rgba(122,92,255,0.40), transparent 70%); }
.problem-wash.wash-3 { background:
  radial-gradient(70% 50% at 60% 40%, rgba(36,215,255,0.32), transparent 70%),
  radial-gradient(70% 50% at 30% 60%, rgba(122,92,255,0.30), transparent 70%);
}
.problem-stage[data-active="0"] .wash-0,
.problem-stage[data-active="1"] .wash-1,
.problem-stage[data-active="2"] .wash-2,
.problem-stage[data-active="3"] .wash-3 { opacity: 1; }

/* Side rail — vertical phase indicator on the left edge. */
.problem-rail {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - var(--max)) / 2));
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 3;
}
.problem-rail > span {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 400ms var(--ease-out-expo), transform 400ms var(--ease-out-expo);
}
.problem-rail > span em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  transition: color 400ms var(--ease-out-expo);
}
.problem-rail > span i {
  font-style: normal;
  font-size: 11.5px;
}
.problem-stage[data-active="0"] .problem-rail [data-rail="0"],
.problem-stage[data-active="1"] .problem-rail [data-rail="1"],
.problem-stage[data-active="2"] .problem-rail [data-rail="2"],
.problem-stage[data-active="3"] .problem-rail [data-rail="3"] {
  color: var(--ink);
  transform: translateX(4px);
}
.problem-stage[data-active="0"] .problem-rail [data-rail="0"] em,
.problem-stage[data-active="1"] .problem-rail [data-rail="1"] em,
.problem-stage[data-active="2"] .problem-rail [data-rail="2"] em,
.problem-stage[data-active="3"] .problem-rail [data-rail="3"] em {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 960px) { .problem-rail { display: none; } }

/* Sliding-window frames — each occupies the SAME absolute slot but
 * sits at translateY: +120% (below) by default. When it becomes
 * active it slides to translateY: 0 with a strong exponential ease.
 * Once it's been active and the next frame is, it goes to -120%
 * (above). The parent clips with overflow: hidden, so two frames
 * are never in the visible area at the same time. No opacity
 * overlap, no readable text collision. */
.problem-frames {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  max-width: 980px;
  min-height: 56vh;
  text-align: center;
  z-index: 2;
  overflow: hidden;
}
.problem-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  transform: translate3d(0, 120%, 0);
  /* Snappier — 600ms feels intentional rather than slow at scroll-bound
   * pace. Outgoing fades faster than incoming so they cross-fade
   * cleanly without a perceived "both visible" window. */
  transition: transform 600ms var(--ease-out-expo),
              opacity 400ms var(--ease-out-expo);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
/* The currently-active frame is at rest position. */
.problem-stage[data-active="0"] .problem-frame[data-frame="0"],
.problem-stage[data-active="1"] .problem-frame[data-frame="1"],
.problem-stage[data-active="2"] .problem-frame[data-frame="2"],
.problem-stage[data-active="3"] .problem-frame[data-frame="3"] {
  transform: none;
  opacity: 1;
}
/* Frames that have already played (data-frame index < data-active)
 * slide UP and out of the visible window. They keep opacity until
 * just past the edge so the motion reads as cinematic, not abrupt. */
.problem-stage[data-active="1"] .problem-frame[data-frame="0"],
.problem-stage[data-active="2"] .problem-frame[data-frame="0"],
.problem-stage[data-active="2"] .problem-frame[data-frame="1"],
.problem-stage[data-active="3"] .problem-frame[data-frame="0"],
.problem-stage[data-active="3"] .problem-frame[data-frame="1"],
.problem-stage[data-active="3"] .problem-frame[data-frame="2"] {
  transform: translate3d(0, -120%, 0);
  opacity: 0;
}

.frame-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.frame-num sup {
  font-size: 0.4em;
  letter-spacing: 0;
  margin-left: 4px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.frame-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}
.frame-line em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.frame-foot {
  color: var(--ink-mid);
  font-size: clamp(15px, 1.3vw, 18px);
  margin: 0;
  max-width: 52ch;
}

/* =================================================================
   ACT 3 — APP ZOOM REVEAL
   ================================================================= */

.act-zoom {
  padding: 0;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--paper) 90%);
}

.zoom-rail { height: 240vh; position: relative; }
.zoom-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
}

.zoom-copy { max-width: 38ch; }
.zoom-copy .kicker {
  color: var(--brand-cyan);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.zoom-copy h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 18px;
}
.zoom-sub {
  font-size: 18px;
  color: var(--ink-mid);
  margin: 0 0 22px;
  max-width: 46ch;
}
.zoom-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.zoom-checks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; }
.zoom-checks .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  position: relative;
  flex-shrink: 0;
}
.zoom-checks .check::after {
  content: "";
  position: absolute;
  inset: 5px 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

@media (max-width: 920px) {
  .zoom-rail { height: auto; }
  .zoom-stage {
    position: relative;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 64px;
    padding-bottom: 64px;
    height: auto;
  }
}

/* ---- iPhone preview ---------------------------------------------- */

.device-wrap {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.device-frame {
  /* Clamp the device width to viewport at very narrow widths so the
   * 320 px intrinsic frame doesn't overflow the zoom-stage gutter on
   * sub-360 px screens. Round-3 audit caught the previous fixed
   * 320 px causing 24 px of horizontal clipping at 320 px viewport. */
  --device-w: min(320px, calc(100vw - 48px));
  position: relative;
  width: var(--device-w);
  aspect-ratio: 320 / 660;
  background: linear-gradient(160deg, #2A2F4A 0%, #0E0D17 100%);
  border-radius: 48px;
  padding: 14px;
  box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255,255,255,0.08);
  /* Scroll-bound scale + tilt (driven by scroll.js) */
  transform:
    scale(var(--device-scale, 0.72))
    rotateY(var(--device-tilt, 0deg))
    rotateX(calc(var(--device-tilt, 0deg) * -0.3));
  transform-origin: center center;
  transition: transform 80ms linear;
  will-change: transform;
  z-index: 2;
}
.device-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 49px;
  background: linear-gradient(160deg, rgba(255,255,255,0.20), rgba(255,255,255,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.device-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}

.device-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 36px;
  background: linear-gradient(180deg, #070B18 0%, #0B1331 100%);
  overflow: hidden;
  font-size: 11px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.ios-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px;
  color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.ios-statusright { display: inline-flex; align-items: center; gap: 6px; }

.app-topbar {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 8px 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mid);
}
.app-back, .app-call { color: var(--brand-link-dark); }
.app-contact { display: flex; align-items: center; gap: 8px; min-width: 0; }
.contact-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-gradient);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.contact-name { color: var(--ink); font-weight: 600; font-size: 12px; }
.contact-name .role { color: var(--ink-soft); font-weight: 500; }
.contact-state { color: var(--brand-cyan); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.ind-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 6px var(--brand-cyan); }

.device-screen .msg,
.device-screen .msg-brief,
.device-screen .msg-ask { margin: 10px 12px; }

.msg { display: flex; flex-direction: column; }
.msg-in { align-items: flex-start; }
.msg-out { align-items: flex-end; }

.msg-brief {
  border: 1px solid rgba(23,107,255,0.35);
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(160deg, rgba(23,107,255,0.12), rgba(122,92,255,0.08));
}
.brief-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.brief-kicker { color: var(--brand-cyan); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brief-meta { color: var(--ink-soft); font-size: 9.5px; }
.brief-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.brief-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--ink); line-height: 1.35; }
.brief-pill {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(36,215,255,0.16);
  color: var(--brand-cyan);
  border: 1px solid rgba(36,215,255,0.30);
  line-height: 1.5;
}

.bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  line-height: 1.4;
}
.bubble-voice { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.voice-play {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: none;
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.voice-wave { width: 110px; height: 22px; color: var(--brand-link-dark); flex-shrink: 0; }
.voice-dur { color: var(--ink-soft); font-size: 10.5px; }

.msg-transcript {
  margin: 6px 0 0;
  color: var(--ink-mid);
  font-size: 10.5px;
  line-height: 1.5;
  font-style: italic;
  max-width: 92%;
}
.msg-transcript span { color: var(--brand-link-dark); font-style: normal; font-weight: 600; }

.msg-time { font-size: 9.5px; color: var(--ink-soft); margin-top: 4px; }

.bubble-text {
  background: linear-gradient(160deg, #0E4ECC, #176BFF);
  color: white;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
}
.draft-tag {
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.16);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.msg-ask {
  background: rgba(122,92,255,0.08);
  border: 1px solid rgba(122,92,255,0.28);
  border-radius: 14px;
  padding: 10px 12px;
}
.ask-head {
  display: flex; align-items: center; gap: 6px;
  color: var(--brand-deep-purple);
  font-weight: 600;
  font-size: 10.5px;
  margin-bottom: 6px;
}
.msg-ask p { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.45; }

.app-composer {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(7,11,24,0.6);
}
.composer-input {
  flex: 1;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
}
.composer-mic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: none;
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  position: relative;
}
.mic-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(23,107,255,0.7);
  animation: pulse 2.4s var(--ease-out-expo) infinite;
}

/* Floating callouts — kept clear of the device frame at all widths */
.device-callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: rgba(11,19,49,0.84);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-mid);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(2,6,18,0.45);
  opacity: 0;
  transition: opacity 800ms var(--ease-out-expo), transform 900ms var(--ease-out-expo);
  z-index: 3;
}
.device-callout strong { color: var(--ink); font-weight: 600; margin-right: 2px; }
.callout-bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Default positions: outside the device. JS adds .is-in to bring them on. */
.callout-1 { top: 6%;  left: -16px; transform: translate3d(-20%, 12px, 0); }
.callout-2 { top: 28%; right: -16px; transform: translate3d(20%, 12px, 0); }
.callout-3 { bottom: 30%; left: -16px; transform: translate3d(-20%, 12px, 0); }
.callout-4 { bottom: 6%;  right: -16px; transform: translate3d(20%, 12px, 0); }
.callout-1.is-in,
.callout-2.is-in,
.callout-3.is-in,
.callout-4.is-in { opacity: 1; transform: translate3d(0, 0, 0); }

@media (max-width: 1180px) { .device-callout { display: none; } }

/* =================================================================
   ACT 4 — CALLS (NEW)
   ================================================================= */

.act-calls {
  position: relative;
  padding: 140px max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(36,215,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--midnight) 100%);
}

.calls-aura {
  position: absolute;
  inset: -30% -30% auto auto;
  width: 70%;
  height: 70%;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(122,92,255,0.40), transparent 70%),
    radial-gradient(40% 40% at 70% 30%, rgba(23,107,255,0.30), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.85;
  animation: aura-drift 22s ease-in-out infinite alternate;
}

.calls-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(440px, 1.2fr);
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.calls-copy { max-width: 44ch; }
.calls-headline {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.0;
  margin: 0 0 20px;
}
.calls-headline .ghost {
  display: block;
  color: var(--ink-mid);
  font-weight: 700;
}
.calls-sub {
  font-size: 18px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 44ch;
}
.calls-cta { margin-top: 4px; }

/* ---- Call mock-up ------------------------------------------------ */

.call-mock {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    linear-gradient(160deg, #0B1331 0%, #0E1530 100%);
  border: 1px solid rgba(122,92,255,0.30);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow:
    0 30px 80px rgba(2,6,18,0.55),
    0 0 0 1px rgba(36,215,255,0.10) inset,
    0 -8px 40px rgba(122,92,255,0.20) inset;
}

.call-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.call-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--ink-mid);
}
.call-chip strong { color: var(--ink); font-weight: 600; }
.call-chip .ind-dot { background: #FF5470; box-shadow: 0 0 6px rgba(255,84,112,0.6); }
.call-chip-net { color: var(--brand-cyan); }
.call-chip-net strong { color: var(--brand-cyan); }
.call-chip-sec { color: var(--brand-deep-purple); }
.call-chip-sec strong { color: var(--brand-deep-purple); }

/* Sweeping waveform */
.call-wave {
  position: relative;
  height: 80px;
  margin: 0 -2px 18px;
  overflow: hidden;
}
.call-wave svg { width: 100%; height: 100%; display: block; }
.call-wave-mask {
  position: absolute;
  top: 0; bottom: 0;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(36,215,255,0) 0%,
    rgba(36,215,255,0.18) 50%,
    rgba(122,92,255,0.18) 90%,
    rgba(122,92,255,0) 100%);
  animation: wave-sweep 4s var(--ease-out-quart) infinite;
  will-change: transform;
}
@keyframes wave-sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(420%);  }
}

.call-participants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.participant {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.participant-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.participant-self .participant-avatar { background: linear-gradient(160deg, #176BFF, #7A5CFF); }
.participant-peer .participant-avatar { background: linear-gradient(160deg, #24D7FF, #176BFF); }
.participant-name { color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.participant-lang {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--ink-mid);
}
.participant-state { color: var(--brand-cyan); font-size: 11.5px; font-weight: 500; }

.call-caption {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.caption-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.caption-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  background: rgba(36,215,255,0.14);
  color: var(--brand-cyan);
  border: 1px solid rgba(36,215,255,0.30);
}
.caption-ar { color: var(--ink-mid); direction: rtl; }
.caption-ar .caption-tag { background: rgba(122,92,255,0.14); color: var(--brand-deep-purple); border-color: rgba(122,92,255,0.30); }
.caption-en .caption-tag { background: rgba(36,215,255,0.14); }

.call-suggest {
  position: relative;
  background: linear-gradient(160deg, rgba(23,107,255,0.20), rgba(122,92,255,0.10));
  border: 1px solid rgba(23,107,255,0.40);
  border-radius: 14px;
  padding: 14px 16px;
}
.suggest-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.call-suggest p { margin: 0 0 12px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.call-suggest strong { font-weight: 700; }
.suggest-actions { display: flex; gap: 8px; }
.sg-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.sg-btn-primary { background: var(--brand-gradient); border-color: transparent; color: white; }

/* Call sub-features grid (under both columns) */
.call-feats {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.call-feats li {
  position: relative;
  padding: 22px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 320ms var(--ease-out-expo), border-color 320ms var(--ease-out-expo);
}
.call-feats li:hover { transform: translateY(-2px); border-color: rgba(36,215,255,0.40); }
.cf-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  display: inline-block;
}
.call-feats h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.call-feats p { font-size: 13.5px; line-height: 1.5; color: var(--ink-mid); margin: 0; }

@media (max-width: 1080px) {
  .calls-inner { grid-template-columns: 1fr; gap: 40px; }
  .call-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .call-feats { grid-template-columns: 1fr; }
  .call-participants { grid-template-columns: 1fr; }
}

/* =================================================================
   ACT 5 — FEATURES (numbered ladder)
   ================================================================= */

.act-features {
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--paper);
}

.feature-ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--max);
}

.feature {
  display: grid;
  grid-template-columns: 92px 1fr minmax(220px, 320px);
  gap: 32px;
  align-items: center;
  padding: 38px 0;
  border-top: 1px solid var(--line-soft);
}
.feature:first-child { border-top: 0; }

.feature-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.feature h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
}
.feature p {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
  max-width: 56ch;
}

.feature-chip {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mid);
}
.chip-transcript { display: flex; flex-direction: column; gap: 6px; }
.chip-transcript .chip-row { display: flex; gap: 8px; align-items: baseline; }
.chip-transcript em {
  font-style: normal; font-weight: 700; color: var(--brand-cyan);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  flex-shrink: 0; width: 22px;
}
.chip-brief { line-height: 1.7; color: var(--ink); }
.chip-brief .brief-pill { margin: 0 6px 0 0; }
.chip-draft .draft-tag { display: inline-block; margin-bottom: 6px; }
.chip-draft { color: var(--ink); }
.chip-ask { line-height: 1.6; color: var(--ink); }
.chip-ask .ask-q {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--brand-deep-purple);
  font-size: 12px;
  background: rgba(122,92,255,0.10);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.chip-ask .ask-a { display: block; color: var(--ink-mid); margin-top: 6px; font-size: 12.5px; }
.chip-sign { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-cyan); font-weight: 600; }

@media (max-width: 880px) {
  .feature { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: 18px 16px; }
  .feature-num { font-size: 44px; }
  .feature-chip { grid-column: 1 / -1; }
}

/* =================================================================
   ACT 6 — PRIVACY POSTURE (drenched)
   ================================================================= */

.act-privacy {
  position: relative;
  padding: 160px max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(122,92,255,0.20), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(36,215,255,0.16), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, #0A0E1F 50%, var(--paper) 100%);
}

.privacy-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 90%);
          mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}

.privacy-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; }

.privacy-headline {
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 18ch;
}
.privacy-headline .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-sub {
  font-size: 19px;
  color: var(--ink-mid);
  margin: 0 0 64px;
  max-width: 54ch;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.privacy-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    rgba(11,19,49,0.40);
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.privacy-card .card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.privacy-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
}
.privacy-card p {
  color: var(--ink-mid);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
.privacy-card .card-spec {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.privacy-card .card-spec li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.privacy-card .card-spec li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

.privacy-card-feature {
  border-color: rgba(36,215,255,0.40);
  background:
    linear-gradient(160deg, rgba(36,215,255,0.10), rgba(122,92,255,0.06)),
    rgba(11,19,49,0.60);
  box-shadow: 0 24px 50px rgba(23,107,255,0.20);
}
.privacy-card-feature .card-eyebrow { color: var(--brand-cyan); }

@media (max-width: 960px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   ACT 7 — CONSUMER TIERS
   ================================================================= */

.act-tiers {
  padding-top: 140px;
  padding-bottom: 140px;
  background: var(--paper);
}

.tier-ladder {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tier {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 36px;
  align-items: start;
  padding: 32px 36px;
  background: rgba(14,21,48,0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 320ms var(--ease-out-expo),
              border-color 320ms var(--ease-out-expo),
              box-shadow 320ms var(--ease-out-expo);
}
.tier:hover { transform: translateY(-2px); border-color: var(--ink-soft); }

/* Tier head: explicit grid with name / line / price stacked, locked
 * gaps so the price never floats away from the description. */
.tier-head { display: flex; flex-direction: column; gap: 14px; }
.tier-head > div { display: flex; flex-direction: column; gap: 6px; }
.tier-name {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.tier-flag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(36,215,255,0.14);
  color: var(--brand-cyan);
  border: 1px solid rgba(36,215,255,0.30);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-line { color: var(--ink-mid); font-size: 15.5px; margin: 0; max-width: 36ch; line-height: 1.45; }

.tier-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 0;
}
.price-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-cycle { color: var(--ink-soft); font-size: 14px; }

/* Features column: align to top of the row, never center. Removes the
 * "features floating halfway down the card" effect seen on shorter
 * tiers in rev 2. */
.tier-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  align-self: start;
}
.tier-feats li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-mid);
}
.tier-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--brand-gradient);
  opacity: 0.85;
}

.tier-feature {
  border-color: rgba(23,107,255,0.55);
  background:
    linear-gradient(160deg, rgba(23,107,255,0.12), rgba(122,92,255,0.06)),
    rgba(14,21,48,0.70);
  box-shadow: 0 24px 56px rgba(23,107,255,0.20);
}
.tier-feature .price-num { color: var(--ink); }

@media (max-width: 920px) {
  .tier { grid-template-columns: 1fr; padding: 24px; }
  .tier-feats { grid-template-columns: 1fr; }
}

.tiers-meta {
  max-width: var(--max);
  margin: 32px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* =================================================================
   ACT 8 — ENTERPRISE
   ================================================================= */

.act-enterprise {
  position: relative;
  padding: 160px max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(23,107,255,0.22), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(122,92,255,0.20), transparent 60%),
    linear-gradient(180deg, #0A0E1F 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}

.enterprise-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.020) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 40%, transparent 90%);
          mask-image: radial-gradient(60% 60% at 50% 30%, #000 40%, transparent 90%);
  pointer-events: none;
}

.enterprise-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; }

.enterprise-title {
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.0;
  margin: 0 0 24px;
}
.enterprise-sub {
  font-size: 19px;
  color: var(--ink-mid);
  margin: 0 0 72px;
  max-width: 56ch;
}

.ent-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.ent {
  position: relative;
  padding: 32px 30px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    rgba(14,21,48,0.70);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ent-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.ent-name { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.ent-price { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--ink-mid); }
.ent-price span { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.ent-price em { font-style: normal; font-size: 14px; color: var(--ink-soft); }
.ent-desc { color: var(--ink-mid); font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 48ch; }
.ent-spec {
  list-style: none; padding: 0; margin: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.ent-spec li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-mid); }
.ent-spec li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 6px; height: 6px;
  background: var(--brand-cyan);
  border-radius: 50%;
}

.ent-headliner {
  background:
    linear-gradient(160deg, rgba(23,107,255,0.18), rgba(122,92,255,0.10)),
    rgba(14,21,48,0.80);
  border-color: rgba(23,107,255,0.50);
  box-shadow: 0 30px 80px rgba(23,107,255,0.26);
}
.ent-headliner .ent-tag { color: var(--brand-cyan); }
.ent-headliner .ent-name { font-size: 36px; }

@media (max-width: 960px) { .ent-grid { grid-template-columns: 1fr; } }

.ent-foot {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(14,21,48,0.50);
}
.ent-foot p { margin: 0; color: var(--ink-mid); font-size: 15.5px; }

/* =================================================================
   ACT 9 — FINAL CTA
   ================================================================= */

.act-beta {
  position: relative;
  padding: 160px max(24px, calc((100vw - var(--max)) / 2)) 180px;
  text-align: center;
  overflow: hidden;
  background: var(--paper);
}
.beta-aura {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 30deg at 50% 50%,
              rgba(36,215,255,0.18),
              rgba(23,107,255,0.32),
              rgba(122,92,255,0.24),
              rgba(36,215,255,0.18));
  filter: blur(80px);
  opacity: 0.6;
  animation: aura-rotate 40s linear infinite;
  pointer-events: none;
}

/* Vertical brand-gradient bars at the base — voice motif */
.beta-bars {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  height: 96px;
  align-items: end;
  pointer-events: none;
  opacity: 0.35;
  filter: blur(0.5px);
}
.beta-bars span {
  width: 8px;
  background: var(--brand-gradient);
  border-radius: 4px 4px 0 0;
  animation: bar-bounce 3.6s var(--ease-out-quart) infinite;
}
.beta-bars span:nth-child(1)  { height: 30%; animation-delay: 0s; }
.beta-bars span:nth-child(2)  { height: 60%; animation-delay: 0.15s; }
.beta-bars span:nth-child(3)  { height: 40%; animation-delay: 0.30s; }
.beta-bars span:nth-child(4)  { height: 80%; animation-delay: 0.45s; }
.beta-bars span:nth-child(5)  { height: 55%; animation-delay: 0.60s; }
.beta-bars span:nth-child(6)  { height: 90%; animation-delay: 0.75s; }
.beta-bars span:nth-child(7)  { height: 50%; animation-delay: 0.90s; }
.beta-bars span:nth-child(8)  { height: 75%; animation-delay: 1.05s; }
.beta-bars span:nth-child(9)  { height: 35%; animation-delay: 1.20s; }
.beta-bars span:nth-child(10) { height: 65%; animation-delay: 1.35s; }
.beta-bars span:nth-child(11) { height: 45%; animation-delay: 1.50s; }
.beta-bars span:nth-child(12) { height: 70%; animation-delay: 1.65s; }
.beta-bars span:nth-child(13) { height: 40%; animation-delay: 1.80s; }
@keyframes bar-bounce {
  0%, 100% { transform: scaleY(0.55); }
  50%      { transform: scaleY(1);    }
}

.beta-inner {
  max-width: var(--max-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.beta-headline {
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  max-width: 16ch;
}

.beta-sub {
  font-size: 19px;
  color: var(--ink-mid);
  max-width: 52ch;
  margin: 0;
}
.beta-meta { font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; }
.beta-meta a { color: var(--ink-mid); }

/* ---- Footer --------------------------------------------------- */
footer {
  background: #030611;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: var(--ink-mid); }
.footer-nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- RTL adjustments -------------------------------------------- */
[dir="rtl"] .lang-toggle { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .hero-eyebrow { padding: 6px 10px 6px 14px; }
[dir="rtl"] .problem-rail { left: auto; right: max(24px, calc((100vw - var(--max)) / 2)); }
[lang="ar"], [dir="rtl"] {
  font-family: -apple-system, "SF Arabic", "Noto Naskh Arabic", "Geeza Pro", "Inter Display", system-ui, sans-serif;
}

/* =================================================================
   LEGAL PAGES — utilitarian style
   ================================================================= */

body:not(.home) section {
  padding: var(--gap-lg) max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
}
body:not(.home) section:last-of-type { border-bottom: 0; }
body:not(.home) main { padding: 0 max(24px, calc((100vw - var(--max)) / 2)); }

article.legal {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 24px;
  font-size: 16.5px;
  line-height: 1.62;
}
article.legal h1 { font-size: 36px; margin-bottom: 8px; }
article.legal h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
article.legal h3 { font-size: 18px; margin-top: 24px; }
article.legal p, article.legal li { color: var(--ink-mid); }
article.legal ul { padding-left: 22px; margin: 12px 0 16px; }
article.legal hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
article.legal .updated { color: var(--ink-soft); font-style: italic; }
article.legal a { color: var(--brand-link-dark); }
@media (prefers-color-scheme: light) {
  body:not(.home) article.legal a { color: var(--brand-dark); }
}
[dir="rtl"] article.legal { text-align: right; }
