/* Safrati landing page — dark story
   Layout: one committed "blue night" look. A Riyadh sky and one oversized
   headline, the product in a browser frame with a WhatsApp phone over it, then
   a numbered five-step story where each step pairs a line with a real screen.
   Heavy sans for the shout, serif italic (the wordmark's face) for the one
   word that matters in each headline. */

:root {
  --bg: #070C16;
  --bg-2: #0B1424;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #EEF3FB;
  --ink-2: #A9B7CC;
  --ink-3: #6F7F96;
  --brand: #6BA4F0;
  --cobalt: #1A4FD0;
  --cobalt-deep: #003F93;
  --cream: #F4ECDC;
  --cream-ink: #13243B;
  --terra: #EE8B45;
  --tile: #1A45C8;
  --bird: #F4ECDC;
  --glass: rgba(9, 16, 30, 0.66);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --band-y: clamp(80px, 11vw, 168px);
  --r-panel: clamp(28px, 4vw, 48px);
  --sky-h: clamp(380px, 46vw, 680px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--cobalt); color: #fff; }

.wrap {
  max-width: 1240px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.selectable { user-select: all; }
.center-text { text-align: center; }

/* ── type ─────────────────────────────────────────── */
.mega, .big { font-family: var(--sans); font-weight: 900; letter-spacing: -0.045em; line-height: 0.94; text-wrap: balance; }
.mega { font-size: clamp(3rem, 10.2vw, 9.25rem); }
.mega-sm { font-size: clamp(2.5rem, 7vw, 6.25rem); max-width: 14em; }
.big { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1; }
.mega em, .big em {
  font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -0.02em;
  font-size: 1.1em; line-height: 0.8; color: var(--cream);
}
.eyebrow { margin-bottom: clamp(16px, 2vw, 28px); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.fine { margin-top: 22px; font-size: 0.8125rem; color: var(--ink-3); }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 99px;
  font: 700 0.9375rem/1 var(--sans); white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1), background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(1.04); }
.btn-xl { min-height: 66px; padding: 0 38px; font-size: 1.125rem; }
.btn-cream { background: var(--cream); color: var(--cream-ink); }
.btn-line { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--cream); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.cta-row.center { justify-content: center; }

/* ── floating top bar ─────────────────────────────── */
.topbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 30;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-row {
  display: flex; align-items: center; gap: 20px; max-width: 1240px; margin-inline: auto;
  min-height: 62px; padding: 0 10px 0 16px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
}
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 34px; height: 34px; flex: none; }
.mark-tile { fill: var(--tile); }
.mark-birds { fill: none; stroke: var(--bird); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark-birds .b { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; gap: 30px; margin-inline: auto; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 2px; }

/* ── hero ─────────────────────────────────────────── */
.hero { position: relative; margin-top: -74px; padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-sky { position: absolute; inset: 0 0 auto 0; height: var(--sky-h); }
.hero-sky img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 70%; opacity: 0.9; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 12, 22, 0.2) 0%, rgba(7, 12, 22, 0.35) 45%, var(--bg) 96%); }
.hero-flock, .closing-flock { fill: none; stroke: var(--cream); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hero-flock { position: absolute; top: 22%; inset-inline-end: 9%; width: clamp(110px, 17vw, 250px); }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 2.2vw, 28px); padding-top: clamp(150px, 17vw, 250px); }
.hero-copy .eyebrow { margin: 0; color: var(--cream); }
.pre-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pre-steps li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line-2); font-weight: 700; font-size: clamp(0.9375rem, 1.5vw, 1.1875rem); }
.pre-steps .mono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--cream-ink); font-size: 0.875rem; font-weight: 600; }
.lede { max-width: 34em; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }

.hero-stage { position: relative; max-width: 1180px; margin: clamp(48px, 7vw, 96px) auto 0; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.hero-stage::before { content: ""; position: absolute; inset: -8% 6% 10%; z-index: -1; background: radial-gradient(closest-side, rgba(26, 79, 208, 0.55), transparent); filter: blur(30px); }
.browser { border-radius: clamp(12px, 1.8vw, 24px); overflow: hidden; border: 1px solid var(--line-2); background: #0B1320; box-shadow: 0 60px 140px -50px rgba(26, 79, 208, 0.7); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.browser-bar span { margin-inline: auto; padding: 4px 18px; border-radius: 99px; background: var(--surface); font-size: 0.75rem; color: var(--ink-2); }
.browser img { width: 100%; height: auto; }
.hero-phone { position: absolute; inset-inline-start: clamp(-8px, 1vw, 24px); bottom: -9%; width: clamp(120px, 21%, 250px); height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.7)); }
.hero .fine { margin-top: clamp(40px, 6vw, 84px); }

/* ── channels and connections ─────────────────────── */
.strip { padding-block: clamp(28px, 4vw, 48px); border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px clamp(28px, 6vw, 96px); }
.strip-label { margin-bottom: 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.names { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.125rem, 2vw, 1.625rem); color: var(--ink); }
.names .more { color: var(--ink-3); }

/* split hero: the line on one side, the product moving on the other */
.hero-split { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(130px, 13vw, 190px); }
.hero-split .hero-copy { align-items: flex-start; text-align: start; padding-top: 0; }
.hero-split .pre-steps { justify-content: flex-start; }
.mega-hero { font-size: clamp(2.75rem, 5.9vw, 5.75rem); }
.hero-video { position: relative; margin: 0; min-width: 0; }
.hero-video::before { content: ""; position: absolute; inset: -6% -4%; z-index: -1; background: radial-gradient(closest-side, rgba(26, 79, 208, 0.6), transparent); filter: blur(34px); }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: clamp(16px, 2.2vw, 30px); border: 1px solid var(--line-2); background: #0B1320; box-shadow: 0 50px 120px -50px rgba(26, 79, 208, 0.8); }
.hero-video figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.8125rem; color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); flex: none; }
.video-toggle { position: absolute; top: 14px; inset-inline-end: 14px; min-height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); font: 700 0.8125rem/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.video-toggle:hover { border-color: var(--cream); }
.video-sound { inset-inline: 14px auto; background: var(--cream); color: var(--cream-ink); border-color: var(--cream); }

/* names drifting past, where others put customer logos */
.marquee { padding-block: clamp(26px, 3.6vw, 44px); border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee .strip-label { margin-bottom: 18px; }
.marquee-track { display: flex; width: max-content; }
.marquee-track ul { display: flex; flex: none; gap: clamp(36px, 5vw, 72px); padding-inline-end: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.25rem, 2.4vw, 2rem); color: var(--ink-2); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: drift 38s linear infinite; } }
@keyframes drift { to { transform: translateX(-50%); } }

/* ── bands ────────────────────────────────────────── */
.band { padding-block: var(--band-y) 0; }

/* the problem: a chain that only ends after eight detours */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 0; margin-top: clamp(36px, 5vw, 72px); }
.flow li { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; font-size: clamp(0.9375rem, 1.5vw, 1.1875rem); white-space: nowrap; }
.flow li:not(:last-child) { margin-inline-end: 44px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: calc(100% + 7px); top: 50%; width: 30px; border-top: 2px dashed var(--ink-3); }
.flow .end { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.flow-notes { display: flex; flex-wrap: wrap; gap: 6px 32px; margin-top: 26px; font-weight: 700; font-style: italic; color: var(--terra); font-size: clamp(1rem, 1.5vw, 1.1875rem); }
.costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 64px); }
.costs > div { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.6vw, 34px); min-width: 0; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.costs > div:first-child { background: var(--cobalt); border-color: var(--cobalt); color: rgba(255, 255, 255, 0.86); }
.cost-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.cost-v { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 6px; }

/* the story: five steps in order, so they are numbered */
.story .mega-sm { margin-bottom: clamp(24px, 4vw, 56px); }
.row { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(44px, 6vw, 96px); border-top: 1px solid var(--line); }
.row.flip .row-copy { order: 2; }
.row.flip { grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr); }
.row-copy { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); min-width: 0; }
.row-copy p:last-child { max-width: 30em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.row-n { display: flex; align-items: center; gap: 14px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.row-n .mono { font-size: clamp(1.5rem, 2.4vw, 2.125rem); letter-spacing: -0.04em; color: var(--brand); }
.row-n .mono::after { content: ""; display: inline-block; vertical-align: middle; width: 34px; margin-inline-start: 14px; border-top: 1px solid var(--line-2); }
.row-art { position: relative; display: grid; place-items: center; min-width: 0; }
.row-art::before { content: ""; position: absolute; inset: 4% 8%; z-index: 0; background: radial-gradient(closest-side, rgba(26, 79, 208, 0.5), transparent); filter: blur(24px); }
.row-art > * { position: relative; z-index: 1; }
.frame { width: 100%; height: auto; border-radius: clamp(12px, 1.6vw, 22px); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.ph { width: min(72%, 330px); height: auto; filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.6)); }
.pf { width: min(46%, 270px); height: auto; border: 6px solid #1B2A44; border-radius: clamp(22px, 2.6vw, 36px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8); }
.pair { display: flex; justify-content: center; align-items: center; width: 100%; }
.pair .ph { width: min(50%, 290px); }
.pair > * + * { margin-inline-start: -5%; }
.tilt-l { rotate: -4deg; }
.tilt-r { rotate: 4deg; translate: 0 7%; }

/* pinned mode (added by main.js on wide screens): the copy scrolls, one screen stays put and swaps */
.story-pinned .rows { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--line); }
.story-pinned .row, .story-pinned .row.flip { grid-column: 1; display: flex; align-items: center; min-height: 82vh; padding-block: 0; border-top: 0; opacity: 0.28; transition: opacity 0.4s; }
.story-pinned .row.flip .row-copy { order: 0; }
.story-pinned .row.is-active { opacity: 1; }
.stage { grid-column: 2; grid-row: 1 / span 5; }
.stage-pin { position: sticky; top: calc(50vh - min(36vh, 330px) + 30px); height: var(--pin-h, min(72vh, 660px)); }
.stage-pin::before { content: ""; position: absolute; inset: 6% 10%; background: radial-gradient(closest-side, rgba(26, 79, 208, 0.55), transparent); filter: blur(28px); }
.stage .row-art { position: absolute; inset: 0; opacity: 0; transform: translateY(26px) scale(0.97); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.stage .row-art::before { content: none; }
.stage .row-art.is-active { opacity: 1; transform: none; pointer-events: auto; }
.stage { --pin-h: min(72vh, 660px); }
.stage .ph { height: var(--pin-h); width: auto; max-width: none; }
.stage .pair .ph, .stage .pair .pf { height: calc(var(--pin-h) * 0.84); width: auto; max-width: none; }
.stage-count { position: absolute; inset-inline-end: 0; bottom: -34px; font-size: 0.8125rem; color: var(--ink-3); letter-spacing: 0.06em; }
.stage-count b { color: var(--brand); font-weight: 600; }
.stage-dots { position: absolute; inset-inline-start: 0; bottom: -30px; display: flex; gap: 6px; }
.stage-dots i { width: 22px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background-color 0.3s, width 0.3s; }
.stage-dots i.on { width: 44px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .stage .row-art, .story-pinned .row { transition: none; transform: none; } }

/* two sides */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 64px); }
.side { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 4vw, 52px); border-radius: var(--r-panel); min-width: 0; }
.side-cobalt { background: linear-gradient(160deg, #2460E0 0%, #1A4FD0 45%, #0F3AA6 100%); color: #fff; }
.side-cream { background: var(--cream); color: var(--cream-ink); }
.side-tag { align-self: flex-start; padding: 6px 14px; border-radius: 99px; border: 1.5px solid currentColor; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.side h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.side li { padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.side strong { font-weight: 800; }

/* second brain: three things that feed each other, in order */
.brain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: clamp(36px, 5vw, 64px); }
.brain li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 34px); min-width: 0; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.brain li:not(:last-child)::after { content: "→"; position: absolute; inset-inline-start: calc(100% + 12px); top: 50%; translate: 0 -50%; font-size: 1.25rem; color: var(--ink-3); }
[dir="rtl"] .brain li:not(:last-child)::after { content: "←"; }
.brain p { color: var(--ink-2); }
.brain-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 15px; background: var(--surface-2); color: var(--brand); font-size: 24px; }
.brain .brain-end { background: var(--cobalt); border-color: var(--cobalt); }
.brain .brain-end p { color: rgba(255, 255, 255, 0.86); }
.brain .brain-end .brain-ico { background: rgba(255, 255, 255, 0.16); color: var(--cream); }
.glyph { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }

/* who it's for */
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 56px); }
.tags li { padding: 0.4em 0.9em; border: 2px solid var(--line-2); border-radius: 99px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(1.25rem, 3.2vw, 2.75rem); }
.tags li:first-child { background: var(--cream); border-color: var(--cream); color: var(--cream-ink); }

/* who decides */
.trust { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(20px, 3vw, 36px); }
.trust-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--tile); color: var(--bird); font-size: 34px; }
.trust-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; margin-top: clamp(12px, 3vw, 36px); text-align: start; }
.trust-points > div { display: flex; flex-direction: column; gap: 8px; padding: 26px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; }
.trust-points p { color: var(--ink-2); }

/* closing */
.closing-wrap { padding: var(--band-y) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.closing { position: relative; overflow: hidden; max-width: 1360px; margin-inline: auto; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vw, 30px); padding: clamp(32px, 6vw, 96px); border-radius: var(--r-panel); background: linear-gradient(160deg, #2460E0 0%, #1A4FD0 45%, #0F3AA6 100%); color: #fff; }
.closing p { max-width: 30em; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; }
.closing-flock { position: absolute; bottom: 8%; inset-inline-end: 5%; width: clamp(110px, 22vw, 300px); opacity: 0.9; }
.closing-mail .mono { font-weight: 600; }

/* footer: the wordmark, enormous and quiet */
.footer { padding-top: 36px; overflow: hidden; font-size: 0.875rem; color: var(--ink-2); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-nav { display: flex; gap: 22px; font-weight: 600; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { color: var(--ink-3); }
.giant { margin-top: 8px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: clamp(6rem, 31vw, 30rem); line-height: 0.78; letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.07); translate: 0 12%; user-select: none; }

/* ── motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .wing { transform-box: fill-box; transform-origin: center; animation: flap 1.5s ease-in-out infinite; }
  .vee g:nth-child(3n) .wing { animation-delay: -0.5s; }
  .vee g:nth-child(3n + 1) .wing { animation-delay: -1s; }
  .vee { animation: soar 9s ease-in-out infinite alternate; }
  .hero-phone { animation: bob 7s ease-in-out infinite alternate; }
}
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }
@keyframes soar { from { transform: translate(-10px, 8px); } to { transform: translate(10px, -8px); } }
@keyframes bob { from { translate: 0 -8px; } to { translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mark-birds .b { transition: none; }
}

/* ── narrower screens ─────────────────────────────── */
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar-actions { margin-inline-start: auto; }
  .strip-row, .row, .row.flip, .hero-split { grid-template-columns: minmax(0, 1fr); }
  .mega-hero { font-size: clamp(2.75rem, 10vw, 5.75rem); }
  .row.flip .row-copy { order: 0; }
  .costs, .trust-points { grid-template-columns: minmax(0, 1fr); }
  .brain { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .brain li:not(:last-child)::after { content: "↓"; inset-inline-start: 50%; top: calc(100% + 6px); translate: -50% 0; }
  [dir="rtl"] .brain li:not(:last-child)::after { content: "↓"; }
}
@media (max-width: 640px) {
  .topbar-actions .btn-quiet { display: none; }
  .btn-xl { min-height: 56px; padding: 0 28px; font-size: 1rem; }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .flow li:not(:last-child) { margin-inline-end: 30px; }
  .flow li:not(:last-child)::after { width: 18px; inset-inline-start: calc(100% + 6px); }
  .flow li { padding: 9px 14px; }
  .hero-phone { width: 30%; bottom: -14%; }
  .footer-row { justify-content: flex-start; }
}

/* ── global-teams revision ────────────────────────── */
.hero-video figcaption { display: none; }
.logos { padding-block: clamp(28px, 4vw, 52px); border-block: 1px solid var(--line); background: var(--bg-2); text-align: center; }
.logos .strip-label { margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(28px, 5vw, 72px); }
.logo-row li { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.125rem, 2vw, 1.625rem); color: var(--ink); }
.logo-row img { width: clamp(24px, 2.4vw, 32px); height: auto; opacity: 0.92; }
.story .fine { text-align: center; margin-top: 40px; }
#platform .browser { margin-top: clamp(32px, 5vw, 64px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tiles li { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2.4vw, 30px); min-width: 0; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.tiles h3 { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 900; letter-spacing: -0.03em; }
.tiles p { color: var(--ink-2); }
.routes { margin-top: clamp(32px, 5vw, 64px); padding-block: 22px; border-block: 1px solid var(--line); overflow: hidden; }
.routes ul { display: flex; flex: none; gap: clamp(36px, 5vw, 72px); padding-inline-end: clamp(36px, 5vw, 72px); font: 500 clamp(1rem, 1.6vw, 1.375rem) var(--mono); color: var(--ink-2); white-space: nowrap; }
.routes i { font-style: normal; color: var(--brand); margin-inline: 6px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ── stock footage (Mixkit free licence) ──────────── */
.hero-sky { height: clamp(520px, 62vw, 900px); }
.hero-sky .bg-video { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.6; }
.hero-sky::after { background: linear-gradient(to bottom, rgba(7, 12, 22, 0.55) 0%, rgba(7, 12, 22, 0.45) 40%, var(--bg) 97%), linear-gradient(90deg, rgba(7, 12, 22, 0.75) 0%, transparent 60%); }
.cities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 52px); }
.cities li { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5; min-width: 0; border: 1px solid var(--line); }
.cities img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.cities li:hover img { transform: scale(1.06); }
.cities li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 12, 22, 0.85), transparent 55%); }
.cities span { position: absolute; z-index: 1; inset: auto 18px 16px; font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.125rem, 1.9vw, 1.625rem); }
.closing { isolation: isolate; }
.closing-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(26, 79, 208, 0.94) 0%, rgba(26, 79, 208, 0.78) 45%, rgba(15, 58, 166, 0.35) 100%); }
.closing-flock { display: none; }
@media (max-width: 960px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cities li { aspect-ratio: 4 / 3; } }

/* ── tabs: pick who you are, the message changes ──── */
.tabset { margin-top: clamp(28px, 4vw, 52px); }
.tablist { display: flex; flex-wrap: wrap; gap: 10px; }
.tablist button { padding: 0.42em 0.95em; border: 2px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--ink); cursor: pointer; font: 800 clamp(1.0625rem, 2.3vw, 2rem)/1.1 var(--sans); letter-spacing: -0.03em; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1); }
.tablist button:hover { border-color: var(--cream); transform: translateY(-2px); }
.tablist button[aria-selected="true"] { background: var(--cream); border-color: var(--cream); color: var(--cream-ink); }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 18px; padding: clamp(24px, 4vw, 52px); border-radius: var(--r-panel); background: linear-gradient(160deg, #2460E0 0%, #1A4FD0 45%, #0F3AA6 100%); }
.tabpanel + .tabpanel { margin-top: 14px; }
.tab-line { font-weight: 900; letter-spacing: -0.04em; line-height: 1; font-size: clamp(1.75rem, 3.8vw, 3.25rem); text-wrap: balance; }
.tab-points { display: flex; flex-direction: column; gap: 10px; }
.tab-points li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24); font-weight: 700; font-size: clamp(1rem, 1.35vw, 1.1875rem); }
.tab-points li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: var(--cream-ink); font-size: 0.8125rem; font-weight: 900; }
#compliance .tabpanel { background: var(--surface); border: 1px solid var(--line); }
#compliance .tab-points li { background: var(--surface-2); border-color: var(--line); }
@media (prefers-reduced-motion: no-preference) { .tabpanel:not([hidden]) { animation: tabin 0.35s cubic-bezier(0.22, 1, 0.36, 1); } }
@keyframes tabin { from { opacity: 0.4; transform: translateY(10px); } }
@media (max-width: 760px) { .tabpanel { grid-template-columns: minmax(0, 1fr); } }

.tabpanel[hidden] { display: none; }

/* pinned story on phones: the screen sticks to the top, the steps scroll under it */
.story-pinned-m .rows { display: block; border-top: 0; }
.story-pinned-m .stage { position: sticky; top: 76px; z-index: 5; --pin-h: 42vh; padding-block: 10px 40px; background: linear-gradient(to bottom, var(--bg) 88%, transparent); }
.story-pinned-m .stage-pin { position: relative; top: auto; height: var(--pin-h); }
.story-pinned-m .row, .story-pinned-m .row.flip { min-height: 62vh; align-items: flex-start; padding-top: 12px; }
.story-pinned-m .stage .frame { width: auto; max-width: 100%; max-height: var(--pin-h); }
.story-pinned-m .stage-dots { bottom: -22px; } .story-pinned-m .stage-count { bottom: -26px; }

/* audience panels: footage with the line over it, the three points beside */
.tabpanel-media { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; padding: 12px; gap: 12px; background: var(--surface); border: 1px solid var(--line); }
.tab-media { position: relative; overflow: hidden; border-radius: calc(var(--r-panel) - 12px); min-height: clamp(260px, 34vw, 440px); background: #0B1320; display: flex; align-items: flex-end; }
.tab-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tab-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 12, 22, 0.92) 0%, rgba(7, 12, 22, 0.35) 55%, rgba(26, 79, 208, 0.25) 100%); }
.tab-media .tab-line { position: relative; z-index: 1; padding: clamp(20px, 3vw, 40px); max-width: 15em; }
.tabpanel-media .tab-points { justify-content: center; padding: clamp(8px, 1.6vw, 20px); gap: 12px; }
.tabpanel-media .tab-points li { padding: clamp(16px, 1.8vw, 24px); border-radius: 22px; background: var(--surface-2); border-color: var(--line); font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); }
@media (prefers-reduced-motion: no-preference) {
  .tabpanel-media:not([hidden]) .tab-points li { animation: pointin 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .tabpanel-media:not([hidden]) .tab-points li:nth-child(2) { animation-delay: 0.08s; }
  .tabpanel-media:not([hidden]) .tab-points li:nth-child(3) { animation-delay: 0.16s; }
  .tabpanel-media:not([hidden]) .tab-media video { animation: zoomin 7s ease-out both; }
  #who-word { display: inline-block; }
  #who-word.swap { animation: wordin 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
}
@keyframes pointin { from { opacity: 0; transform: translateX(24px); } }
@keyframes zoomin { from { transform: scale(1.08); } }
@keyframes wordin { from { opacity: 0; transform: translateY(0.25em); } }
@media (max-width: 760px) { .tabpanel-media { grid-template-columns: minmax(0, 1fr); } }

.tile-ico { width: 46px; height: 46px; padding: 11px; margin-bottom: 10px; border-radius: 15px; background: rgba(107, 164, 240, 0.14); color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile-flock { stroke-width: 10; }
.tiles li { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s; }
.tiles li:hover { transform: translateY(-4px); border-color: var(--line-2); }

.cities-title { margin-top: clamp(48px, 7vw, 96px); }
.cities-title + .cities { margin-top: clamp(20px, 3vw, 36px); }
/* pinned story: the copy of the active step rises in; the screens trade places with more travel */
.story-pinned .row .row-copy { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); transform: translateY(18px); }
.story-pinned .row.is-active .row-copy { transform: none; }
.stage .row-art { transform: translateX(60px) scale(0.9) rotate(2deg); transition: opacity 0.45s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.stage .row-art.was { transform: translateX(-60px) scale(0.9) rotate(-2deg); }
.stage .row-art.is-active { transform: none; }
.story-pinned-m .stage { --pin-h: 40vh; padding-block: 8px 34px; }
.story-pinned-m .row, .story-pinned-m .row.flip { min-height: 46vh; padding-top: 6px; }
.story-pinned-m .row:last-of-type { min-height: 40vh; }
@media (prefers-reduced-motion: reduce) { .story-pinned .row .row-copy, .stage .row-art, .stage .row-art.was { transition: none; transform: none; } }

.story { overflow-x: clip; }
.story-pinned-m .stage { padding-block: 8px 50px; }

.tour-video { position: relative; margin: clamp(28px, 4vw, 56px) 0 0; }
.tour-video::before { content: ""; position: absolute; inset: -5% 4%; z-index: -1; background: radial-gradient(closest-side, rgba(26, 79, 208, 0.55), transparent); filter: blur(40px); }
.tour-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-panel); border: 1px solid var(--line-2); background: #0B1320; }

/* city cards: a row you swipe */
.cities { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cities li { flex: 0 0 clamp(220px, 24vw, 300px); aspect-ratio: 4 / 5; scroll-snap-align: start; }
@media (max-width: 960px) { .cities { display: flex; } .cities li { flex-basis: 62vw; aspect-ratio: 4 / 5; } }

/* footer: the flock you can play with */
.brandplay { position: relative; margin-top: 18px; touch-action: pan-y; }
.brandplay svg { display: block; width: 100%; height: auto; max-height: 460px; overflow: visible; }
.brandplay-word { font-family: var(--serif); font-weight: 600; font-size: 330px; letter-spacing: -8px; }
.brandplay-hint { position: absolute; inset: auto 0 10px; text-align: center; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
@media (hover: none) { .brandplay-hint { visibility: hidden; } .brandplay-hint::after { content: "Touch the birds"; visibility: visible; position: absolute; inset: 0; } }
.brandplay-hint { position: static; margin: 6px 0 18px; }

/* Book a demo form (same rules as the cinematic page) */
.closing.closing-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; justify-content: stretch; }
.closing-copy { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); min-width: 0; }
.demo-points { display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.demo-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-end: 12px; border-radius: 50%; background: var(--cream); color: var(--cream-ink); font-size: 0.8125rem; font-weight: 900; }
.demo-form, .demo-done { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: 30px; background: rgba(7, 12, 22, 0.72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); min-width: 0; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.demo-form input, .demo-form select { min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: 600 1rem var(--sans); }
.demo-form input:focus, .demo-form select:focus { outline: none; border-color: var(--cream); }
.demo-form select option { color: #13243B; }
.demo-form .btn { margin-top: 6px; border: 0; cursor: pointer; }
.demo-times[hidden], .demo-form[hidden], .demo-done[hidden], .demo-done .btn[hidden] { display: none; }
.demo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-times { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-times legend { padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.demo-zone { font-weight: 600; color: var(--ink-3); }
.demo-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.demo-days::-webkit-scrollbar { display: none; }
.demo-day { flex: 0 0 auto; scroll-snap-align: start; min-width: 64px; min-height: 60px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: 700 0.8125rem var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.demo-day b { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.02em; }
.demo-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 172px; overflow-y: auto; padding-right: 2px; }
.demo-slot { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: 700 0.9375rem var(--mono); cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.demo-day:hover, .demo-slot:hover { border-color: var(--cream); }
.demo-day:active, .demo-slot:active { transform: scale(0.96); }
.demo-day[aria-pressed="true"], .demo-slot[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--cream-ink); }
.demo-day:focus-visible, .demo-slot:focus-visible, .demo-skip:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.demo-skip { align-self: flex-start; padding: 6px 0; border: 0; background: none; color: var(--ink-2); font: 600 0.875rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-skip[aria-pressed="true"] { color: var(--cream); }
.demo-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.closing .demo-form .demo-fine { font-size: 0.8125rem; line-height: 1.5; }
.demo-fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.demo-done:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .demo-day, .demo-slot { transition: none; } }
.demo-error { color: var(--terra); font-weight: 700; font-size: 0.9375rem; }
.demo-fine { font-size: 0.8125rem; color: var(--ink-3); }
.demo-done h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 900; letter-spacing: -0.03em; }
@media (max-width: 860px) { .closing.closing-form { grid-template-columns: minmax(0, 1fr); } }
