/*
 * Riptide website v4. One stylesheet, no framework.
 *
 * Graphic system: the three-lane band of the brand mark (28 : 8 : 28 : 8 : 28). Lanes appear as the hero
 * ribbon, the stream-to-file diagram, eyebrow glyphs, rules and the closing download lanes. The logo itself
 * is never recoloured, filtered, blended or glowed: the brand-kit SVGs are used as delivered, and the
 * signature draw reveals the original artwork through masks (stroke-dashoffset), nothing else.
 *
 * Motion: every duration and easing is a custom property below. Only transform, opacity, clip-path and
 * stroke-dashoffset animate. A few chapters are `position: sticky` stages whose scroll progress is written
 * as --p by js/site.js (one rAF per scroll); CSS derives everything else with calc()/clamp(). Without
 * `html.anim` (no JS, or motion off: OS prefers-reduced-motion unless the visitor switched Animations on) every stage shows its end state and nothing is pinned.
 */

@font-face { font-family: "Inter"; src: url("../assets/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../assets/fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---- Tokens ------------------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --abyss: #071a26;
  --deep-teal: #075c69;
  --cyan: #00d5e8;
  --ocean: #168bff;
  --ice: #d9f8fa;

  --bg-light: #ffffff;
  --bg-ice: #ecfbfc;
  --bg-dark: #071a26;
  --bg-teal: #075c69;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --hh: 56px;
  --dir: 1;

  /* Motion system: one set of easings and durations for the whole page. */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease: var(--ease-out);
  --dur-1: 140ms;   /* hover, press, focus: never slower than 150 ms */
  --dur-2: 280ms;   /* toggles, small state changes */
  --dur-3: 560ms;   /* panels, chips */
  --dur-4: 700ms;   /* entrances: the longest one-shot, apart from the ribbon draw */
  --dur-5: 1500ms;  /* drawing the lanes */
  --stagger: 90ms;
}
:root[dir="rtl"] { --dir: -1; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-light: #071a26;
  --bg-ice: #0a2533;
  --bg-dark: #020d14;
  --bg-teal: #06424c;
}

/* Tones: each section picks one; text and accent colours follow the background. */
.tone-light, .tone-ice {
  --bg: var(--bg-light); --fg: var(--abyss); --fg2: #3a5461; --line: #d6e5ea; --soft: #eef8fa; --card: #ffffff;
  --acc: #075c69; --btn-bg: #075c69; --btn-fg: #ffffff; --focus: #168bff; --track: #e3eff2; --grid: rgba(7, 92, 105, .07);
  --logo-mark: #075c69; --logo-word: #071a26;
  background: var(--bg); color: var(--fg);
}
.tone-ice { --bg: var(--bg-ice); --soft: #ffffff; --fg2: #2f4a57; --line: #bfe4e9; }
.tone-dark, .tone-teal, :root[data-theme="dark"] .tone-light, :root[data-theme="dark"] .tone-ice {
  --bg: var(--bg-dark); --fg: #ffffff; --fg2: #a9c3cc; --line: rgba(217, 248, 250, .14); --soft: rgba(217, 248, 250, .06); --card: #0d2837;
  --acc: #00d5e8; --btn-bg: #00d5e8; --btn-fg: #071a26; --focus: #00d5e8; --track: rgba(217, 248, 250, .1); --grid: rgba(0, 213, 232, .07);
  --logo-mark: #00d5e8; --logo-word: #ffffff;
  background: var(--bg); color: var(--fg);
}
.tone-teal { --bg: var(--bg-teal); --fg2: #d2eff3; --acc: #d9f8fa; --line: rgba(255, 255, 255, .2); --soft: rgba(255, 255, 255, .08); --card: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .tone-light { --bg: var(--bg-light); }
:root[data-theme="dark"] .tone-ice { --bg: var(--bg-ice); --card: #0e2a3a; }

/* ---- Base -------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--hh); background: var(--bg-light); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--abyss); background: var(--bg-light); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:root[data-theme="dark"] body { color: #fff; }
.font-arabic body, body.font-arabic, .font-arabic { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--focus, #168bff); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; inset-inline-start: 12px; top: 12px; padding: 10px 16px; border-radius: 10px; background: var(--abyss); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }

/* ---- Type -------------------------------------------------------------------------------- */
.display, .h2, .h3 { font-weight: 800; letter-spacing: -0.04em; line-height: .98; text-wrap: balance; }
.display { font-size: clamp(2.1rem, .9rem + 3.6vw, 4.5rem); }
.h2 { font-size: clamp(1.8rem, .9rem + 2.6vw, 3.25rem); }
.h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.1; }
.font-arabic .display, .font-arabic .h2, .font-arabic .h3 { font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.5; color: var(--fg2); max-width: 36ch; text-wrap: pretty; }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--fg2); }
.font-arabic .eyebrow { font-family: var(--font-ar); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 213, 232, .22); }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 650; color: var(--acc); box-shadow: inset 0 0 0 1px currentColor; white-space: nowrap; line-height: 1; }
.text-link { color: var(--acc); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: text-decoration-thickness var(--dur-1); }
.text-link:hover { text-decoration-thickness: 3px; }
.note { font-size: .875rem; color: var(--fg2); }

/* ---- Buttons ----------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; font-weight: 650; font-size: .875rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2), box-shadow var(--dur-2); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--ease-spring); }
.btn:hover svg { transform: translateY(2px); }
.btn:active { transform: scale(.97); transition-duration: var(--dur-1); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: .9375rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .8125rem; }
@media (pointer: coarse) { .btn, .btn-sm { min-height: 44px; } .btn-lg { min-height: 48px; } }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px var(--btn-bg); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 30%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; transform: translateY(-2px); }
.btn-ghost:hover svg { transform: scale(1.12) rotate(-6deg); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; position: relative; transition: background-color var(--dur-1), transform var(--dur-2) var(--ease-spring); }
.icon-btn:hover { background: var(--soft); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }
@media (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } }

/* ---- Header ------------------------------------------------------------------------------ */
/* Always the top layer (z-index above every page layer, incl. the hero cards) and never transparent: a near-opaque
   tone-matched background plus blur, so nothing scrolls visibly through it. */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: var(--hh); isolation: isolate; color: var(--fg); background: color-mix(in srgb, var(--bg) 96%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 9%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: background-color var(--dur-3), box-shadow var(--dur-3); }
.site-header[data-tone="light"] { --bg: var(--bg-light); --fg: var(--abyss); --fg2: #3a5461; --soft: rgba(7, 26, 38, .06); --btn-bg: #075c69; --btn-fg: #fff; --focus: #168bff; }
.site-header[data-tone="dark"], :root[data-theme="dark"] .site-header { --bg: var(--bg-dark); --fg: #fff; --fg2: #a9c3cc; --soft: rgba(217, 248, 250, .08); --btn-bg: #00d5e8; --btn-fg: #071a26; --focus: #00d5e8; }
:root[data-theme="dark"] .site-header[data-tone="light"] { --bg: var(--bg-light); }
.site-header.is-solid, .site-header.is-open { background: color-mix(in srgb, var(--bg) 98%, transparent); }
.nav { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: block; flex: none; }
.brand-logo { height: 26px; width: auto; animation: mark-in .7s var(--ease-out) .05s both; }
@keyframes mark-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.logo-dark { display: none; }
.site-header[data-tone="dark"] .logo-light, :root[data-theme="dark"] .logo-light { display: none; }
.site-header[data-tone="dark"] .logo-dark, :root[data-theme="dark"] .logo-dark { display: block; }
.nav-menu { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-links { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); }
.nav-links a, .nav-lang { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; text-decoration: none; color: var(--fg2); transition: color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1); }
.nav-links a:focus-visible, .nav-lang:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--acc, var(--cyan)); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--dur-3) var(--ease-out); }
[dir="rtl"] .nav-links a::after { transform-origin: 100% 50%; }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a:hover, .nav-lang:hover { color: var(--fg); }
.nav-links a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.nav-links a[aria-current="true"] { color: var(--fg); background: var(--bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 12%, transparent), 0 2px 6px -2px rgba(7, 26, 38, .25); }
.nav-lang { color: var(--fg); font-weight: 600; padding: 0 10px; }
.nav-lang:hover { background: var(--soft); }
.nav-actions { display: flex; align-items: center; gap: 2px; }
.nav-actions .btn { margin-inline-start: 8px; min-height: 34px; padding: 0 14px 0 12px; }
[dir="rtl"] .nav-actions .btn { padding: 0 12px 0 14px; }
.nav-actions .btn:focus-visible { outline-offset: 2px; }
.nav-actions .btn:hover svg { transform: translateY(1.5px); }
.motion-toggle .mo-off { transition: opacity var(--dur-2); }
.motion-toggle[aria-pressed="true"] { color: var(--acc, var(--fg)); }
.motion-toggle[aria-pressed="true"] .mo-off { opacity: 0; }
.motion-toggle[aria-pressed="true"] .mo-play { fill: currentColor; }
.icon-btn:focus-visible { outline-offset: 1px; }
.theme-toggle svg { position: absolute; transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-2); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-80deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(80deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, box-shadow .45s ease !important; }
.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; color: inherit; border: 0; border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close, .is-open .nav-toggle .icon-menu { display: none; }
.is-open .nav-toggle .icon-close { display: block; }
@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .nav-menu { display: none; position: absolute; inset: var(--hh) 0 auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px var(--gutter) 16px; background: var(--bg); box-shadow: 0 1px 0 var(--line, rgba(7, 26, 38, .1)), 0 20px 40px -20px rgba(0, 0, 0, .35); max-height: calc(100svh - var(--hh)); overflow-y: auto; }
  .is-open .nav-menu { display: flex; animation: menu-in var(--dur-3) var(--ease-out) both; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
  .nav-links { flex-direction: column; padding: 0; background: none; gap: 0; }
  .nav-links a { min-height: 48px; padding: 0 4px; border-radius: 0; font-size: 1.0625rem; font-weight: 650; color: var(--fg); border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
  .nav-links a[aria-current="true"] { background: var(--soft); box-shadow: none; padding-inline: 12px; border-radius: 10px; }
  .nav-lang, .icon-btn { min-height: 44px; }
  .nav-actions .btn { min-height: 44px; }
  .nav-links a::after { display: none; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { margin-inline-start: auto; }
}

/* ---- Reveal system ----------------------------------------------------------------------- */
.rise { animation: rise var(--dur-4) var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
/* Hidden start states exist only once js/site.js finished initialising (html.js-ready), so a script error can never hide content.
   Full motion slides reveals in; calm motion (the OS asks for less) keeps the same staggered reveals as plain opacity fades. */
.rv .ln > span { transition: transform .7s var(--ease-out); }
html.anim.js-ready .rv { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.anim.js-ready .rv:not(.in):not(.mask) { opacity: 0; transform: translate3d(0, 28px, 0); }
html.anim.js-ready .rv:not(.in) .ln > span, html.anim.js-ready .mask.rv:not(.in) .ln > span { transform: translateY(112%); }
html.calm.js-ready .rv { transition: opacity var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
html.calm.js-ready .rv:not(.in):not(.mask) { opacity: 0; }
html.calm .rv .ln > span { transition: opacity var(--dur-4) var(--ease-out); }
html.calm.js-ready .rv:not(.in) .ln > span { opacity: 0; }
.rv-all .rv { opacity: 1 !important; transform: none !important; }
.rv-all .rv .ln > span { transform: none !important; }

/* ---- Pinned stages ----------------------------------------------------------------------- */
/* Only the logo chapter and the app chapter are pinned, only at 900px and wider and only with full motion; every other chapter
   (and every chapter on phones or with calm motion) is a normal block whose animation plays once when it comes into view. */
.pin { --p: 1; position: relative; overflow: hidden; }
.ch .pin { display: grid; align-items: center; padding-block: clamp(48px, 6vw, 88px); }
#streams { --len: .7; } #app { --len: .45; }
@media (min-width: 900px) {
  html.anim #streams, html.anim #app { height: calc(100vh * (1 + var(--len))); }
  html.anim #streams .pin, html.anim #app .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: calc(var(--hh) + 12px) 16px; }
}
.ch-inner { position: relative; z-index: 1; display: grid; gap: clamp(16px, 2.6vw, 40px); align-items: center; }
.ch-copy { display: grid; gap: clamp(10px, 1.2vw, 16px); align-content: start; justify-items: start; }
.wash { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--wash); opacity: clamp(0, (var(--p) + .05) / -.45, 1); }
.from-light { --wash: var(--bg-light); } .from-dark { --wash: var(--bg-dark); } .from-teal { --wash: var(--bg-teal); }
/* Scroll-linked masked headline: lines rise out of their own clip as the chapter arrives. */
.pin { --t1: clamp(0, (var(--p) + .42) / .26, 1); --t2: clamp(0, (var(--p) + .34) / .26, 1); --tl: clamp(0, (var(--p) + .24) / .24, 1); }
.pin .mask .ln > span { transform: translateY(calc((1 - var(--t1)) * 112%)); }
.pin .mask .ln:nth-child(2) > span { transform: translateY(calc((1 - var(--t2)) * 112%)); }
.pin .fade { opacity: var(--tl); transform: translateY(calc((1 - var(--tl)) * 20px)); }
@media (min-width: 1024px) {
  .streams-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .speed-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .integrity-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .app-grid { grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); }
}

/* ---- Hero -------------------------------------------------------------------------------- */
/* The first screen fits short viewports: the type scale follows both width and height, the app window is sized from the
   available height, and the secondary cards are hidden when height runs out instead of overlapping. */
.hero { --hf: clamp(1.9rem, min(.8rem + 2.4vw, .6rem + 5.2vh), 3.75rem); position: relative; display: grid; align-items: center; min-height: 100vh; min-height: min(100svh, 880px); overflow: clip; padding-block: calc(var(--hh) + clamp(12px, 3vh, 36px)) clamp(24px, 5vh, 56px);
  background-image: radial-gradient(ellipse 60% 55% at 74% 46%, rgba(0, 213, 232, .13), transparent 72%), radial-gradient(ellipse 40% 40% at 8% 100%, rgba(22, 139, 255, .07), transparent 70%); }
:root[data-theme="dark"] .hero { background-image: radial-gradient(ellipse 60% 55% at 74% 46%, rgba(0, 213, 232, .1), transparent 72%), radial-gradient(ellipse 40% 40% at 8% 100%, rgba(22, 139, 255, .12), transparent 70%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 72px 72px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000, transparent 75%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.hero-bg path { stroke-width: 14; stroke-dasharray: 1 1.01; animation: lane-draw 1.4s var(--ease-out) both; }
.hero-bg path:nth-child(1) { stroke: var(--cyan); opacity: .32; animation-delay: .1s; }
.hero-bg path:nth-child(2) { stroke: var(--ocean); opacity: .24; animation-delay: .22s; }
.hero-bg path:nth-child(3) { stroke: var(--deep-teal); opacity: .2; animation-delay: .34s; }
:root[data-theme="dark"] .hero-bg path:nth-child(3) { stroke: var(--ice); opacity: .14; }
@keyframes lane-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; z-index: 1; max-width: 1680px; display: grid; gap: clamp(20px, 3vw, 40px); align-items: center; }
.hero-copy { display: grid; gap: clamp(10px, 1.8vh, 18px); justify-items: start; align-content: center; }
.hero-copy .display { font-size: var(--hf); line-height: 1.02; }
.hero-copy .ln > span { animation: line-up .7s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes line-up { from { transform: translateY(112%); } }
.hero-copy .lead { max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-family: var(--mono); font-size: .6875rem; color: var(--fg2); box-shadow: inset 0 0 0 1px var(--line); animation-duration: var(--dur-3); animation-timing-function: var(--ease-spring); }
.font-arabic .chip { font-family: var(--font-ar); font-size: .8125rem; }
.chip::before { content: ""; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: var(--cyan); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, calc(var(--hf) * 11)) minmax(0, 1fr); }
}
@media (min-width: 1900px) { .hero { --hf: 5.25rem; } .hero-grid { max-width: 1880px; } }
@media (min-width: 2300px) { .hero { --hf: 6.5rem; } .hero-grid { max-width: 2400px; } .brand-logo { height: 36px; } }
@media (max-width: 899px) {
  .hero { --hf: clamp(2.1rem, 1rem + 4.6vw, 3.6rem); padding-bottom: clamp(88px, 16vw, 130px); }
  .hero-stage { width: min(100%, 680px); margin-inline: auto; }
}

/* The real app, in a Windows-style window with a little perspective. */
.hero-stage { position: relative; justify-self: stretch; }
.persp { perspective: 1800px; perspective-origin: 32% 40%; }
.par { transform: translate3d(0, calc(var(--hp, 0) * var(--k, 0) * 1px), 0); transform: translate3d(0, round(calc(var(--hp, 0) * var(--k, 0) * 1px), 1px), 0); }
/* The window rests flat (no transform at all in its final state), so the raster is drawn 1:1 and stays sharp; the tilt exists only in the entrance keyframes. */
.win { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--card, #fff);
  box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(7, 26, 38, .55), 0 18px 36px -24px rgba(7, 26, 38, .4); }
:root[data-theme="dark"] .win { box-shadow: 0 0 0 1px rgba(217, 248, 250, .16), 0 50px 100px -40px rgba(0, 213, 232, .3), 0 24px 40px -24px rgba(0, 0, 0, .8); }
.win-hero { animation: win-in .7s var(--ease-out) .12s both; }
@media (min-width: 900px) { .hero-stage .fl-speed { inset-inline-end: 4%; top: -13%; } .hero-stage .fl-sha { inset-inline-end: 4%; bottom: -9%; } .win-hero { width: max(360px, min(100%, calc((100svh - var(--hh) - 130px) * 1.6))); width: round(down, max(360px, min(100%, calc((100svh - var(--hh) - 130px) * 1.6))), 2px); } .fl-speed { inset-inline-end: 4%; top: -13%; } .fl-sha { inset-inline-end: 4%; bottom: -9%; } }
@keyframes win-in { from { opacity: 0; transform: translate3d(0, 40px, 0) rotateY(calc(var(--dir) * -10deg)) rotateX(8deg); } to { opacity: 1; transform: none; } }
.win img { width: 100%; height: auto; aspect-ratio: 1040 / 660; }
/* The hero window is a real-HTML preview of the app (vector text, always sharp, scales with its container; the numbers come from the app's own tokens). */
.rt-q { container-type: inline-size; background: #f4f6f8; --rbg: #f4f6f8; --rs1: #fff; --rs2: #f8fafb; --rt: #121a20; --rt2: #4b5863; --rtm: #7d8b96; --rbd: rgba(16, 24, 32, .1);
  --ra: #19c6b5; --raf: #0f9a8c; --ras: rgba(25, 198, 181, .14); --ron: #042522; --rtrack: #e4eaef;
  --sd: #0f9a8c; --sdb: rgba(25, 198, 181, .14); --sw: #5f7384; --swb: rgba(95, 115, 132, .12); --sc: #1f9d64; --scb: rgba(31, 157, 100, .12); --sf: #d13f39; --sfb: rgba(209, 63, 57, .12); }
:root[data-theme="dark"] .rt-q { background: #0b0f12; --rbg: #0b0f12; --rs1: #10161b; --rs2: #0e1318; --rt: #e9eef2; --rt2: #a9b5bf; --rtm: #6d7b87; --rbd: rgba(255, 255, 255, .08);
  --raf: #5ae0d1; --ras: rgba(25, 198, 181, .12); --ron: #06201d; --rtrack: #1d272f;
  --sd: #5ae0d1; --sdb: rgba(25, 198, 181, .12); --sw: #8fa3b5; --swb: rgba(143, 163, 181, .14); --sc: #3ddc97; --scb: rgba(61, 220, 151, .12); --sf: #f2665f; --sfb: rgba(242, 102, 95, .14); }
.rt { font-size: clamp(10px, 1.66cqw, 16px); display: grid; grid-template-columns: 12em minmax(0, 1fr); grid-template-rows: 1fr auto; color: var(--rt); line-height: 1.3; text-align: start; font-variant-numeric: tabular-nums; user-select: none; }
.font-arabic .rt { font-family: var(--font-ar); }
.rt svg { flex: none; width: 1.2em; height: 1.2em; }
.rt-side { padding: 1em .8em; background: var(--rs1); border-inline-end: 1px solid var(--rbd); }
.win .rt-logo { width: auto; height: 2.5em; aspect-ratio: auto; margin: .1em 0 1.1em .3em; }
[dir="rtl"] .win .rt-logo { margin: .1em .3em 1.1em 0; }
.rt .logo-dark { display: none; }
:root[data-theme="dark"] .rt .logo-light { display: none; }
:root[data-theme="dark"] .rt .logo-dark { display: block; }
.rt-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .15em; }
.rt-nav li { display: flex; align-items: center; gap: .5em; padding: .5em .5em; border-radius: .6em; color: var(--rt2); white-space: nowrap; }
.rt-nav li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rt-nav em { font-style: normal; color: var(--rtm); font-size: .92em; }
.rt-nav .on { background: var(--ras); color: var(--raf); font-weight: 600; }
.rt-nav .on em { color: var(--raf); }
.rt-cat { margin: 1.1em .65em .4em; font-size: .92em; color: var(--rtm); }
.rt-main { min-width: 0; background: var(--rs2); }
.rt-top { display: flex; align-items: center; gap: .8em; height: 3.7em; padding-inline: 1em; background: var(--rs1); border-bottom: 1px solid var(--rbd); }
.rt-search { display: flex; align-items: center; gap: .55em; flex: 0 1 17em; min-width: 0; padding: .55em .8em; border: 1px solid var(--rbd); border-radius: .55em; color: var(--rtm); white-space: nowrap; overflow: hidden; }
.rt-add { margin-inline-start: auto; padding: .6em .95em; border-radius: .55em; background: var(--ra); color: var(--ron); font-weight: 600; white-space: nowrap; }
.rt-title { display: flex; align-items: baseline; gap: .55em; margin: 0; padding: 1em 1.1em .7em; }
.rt-title b { font-size: 1.35em; font-weight: 650; letter-spacing: -.01em; }
.rt-title em { font-style: normal; color: var(--rtm); font-size: 1.1em; }
.rt-row { display: grid; grid-template-columns: minmax(0, 1fr) 7.4em 7.8em 5.9em 7.6em; gap: .6em; align-items: center; padding-inline: 1.1em; min-height: 3.5em; border-top: 1px solid var(--rbd); background: var(--rs1); white-space: nowrap; }
.rt-cols { min-height: 2.4em; background: var(--rs2); color: var(--rtm); font-size: .92em; }
.rt-n { display: flex; align-items: center; gap: .75em; min-width: 0; }
.rt-n > span { display: grid; min-width: 0; }
.rt-n b, .rt-n small { overflow: hidden; text-overflow: ellipsis; }
.rt-n b { font-weight: 550; }
.rt-n small { color: var(--rtm); font-size: .92em; }
.rt .rt-fi { box-sizing: border-box; width: 2.25em; height: 2.25em; padding: .5em; border-radius: .6em; background: color-mix(in srgb, var(--c, #c9a24a) 16%, transparent); color: var(--c, #c9a24a); }
.rt-row:nth-child(4) { --c: #c9a24a; } .rt-row:nth-child(5) { --c: #1f9d64; } .rt-row:nth-child(6) { --c: #a06be0; } .rt-row:nth-child(7) { --c: #c9a24a; } .rt-row:nth-child(8) { --c: #7d8b96; } .rt-row:nth-child(9) { --c: #c9a24a; } .rt-row:nth-child(10) { --c: #7d8b96; }
.rt-sz, .rt-sp { overflow: hidden; text-overflow: ellipsis; color: var(--rt2); }
.rt-pg { display: flex; align-items: center; gap: .6em; color: var(--rt2); }
.rt-pg i { flex: 1; height: .5em; border-radius: .3em; background: var(--rtrack); overflow: hidden; -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(12.5% - .16em), transparent 0 12.5%); mask: repeating-linear-gradient(90deg, #000 0 calc(12.5% - .16em), transparent 0 12.5%); }
.rt-pg b { display: block; position: relative; overflow: hidden; height: 100%; background: var(--sd); transform: scaleX(calc(var(--p) / 100)); transform-origin: 0 50%; animation: rt-fill 1.3s var(--ease-out) both; animation-delay: calc(.5s + var(--i, 0) * .08s); }
[dir="rtl"] .rt-pg b { transform-origin: 100% 50%; }
.rt-pg > span { min-width: 2.5em; text-align: end; }
.rt-c .rt-pg b { background: var(--sc); } .rt-f .rt-pg b { background: var(--sf); } .rt-w .rt-pg b { background: var(--sw); }
.rt-d .rt-pg b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: rt-shim 2.6s linear 1.8s infinite; }
@keyframes rt-fill { from { transform: scaleX(0); } }
@keyframes rt-shim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.rt-st { display: inline-flex; align-items: center; gap: .4em; justify-self: start; max-width: 100%; padding: .3em .7em .3em .55em; border-radius: 999px; font-size: .92em; font-weight: 500; overflow: hidden; }
.rt-st > span { overflow: hidden; text-overflow: ellipsis; }
.rt-st svg { width: 1.1em; height: 1.1em; }
.rt-d .rt-st { color: var(--sd); background: var(--sdb); } .rt-w .rt-st { color: var(--sw); background: var(--swb); } .rt-c .rt-st { color: var(--sc); background: var(--scb); } .rt-f .rt-st { color: var(--sf); background: var(--sfb); }
.rt-c .rt-pg > span { color: var(--sc); }
.rt-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: .7em; height: 2.5em; padding-inline: 1em; background: var(--rs1); border-top: 1px solid var(--rbd); color: var(--rtm); font-size: .95em; }
.rt-foot b { color: var(--rt); font-weight: 600; margin-inline-end: 1.2em; }
.rt-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--ra); }
@container (max-width: 820px) { .rt-row { grid-template-columns: minmax(0, 1fr) 7.8em 5.9em 8.8em; } .rt-sz, .rt-cols span:nth-child(2) { display: none; } }
@container (max-width: 600px) { .rt { grid-template-columns: minmax(0, 1fr); } .rt-side { display: none; } }
@container (max-width: 470px) { .rt-row { grid-template-columns: minmax(0, 1fr) 7.4em 5em 8.2em; } }
@container (max-width: 380px) { .rt-row { grid-template-columns: minmax(0, 1fr) 6.2em 3.4em; } .rt-sp, .rt-st > span, .rt-cols span:nth-child(4), .rt-cols span:nth-child(5) { display: none; } .rt-row .rt-st { padding: .3em; } }
.tb { display: flex; align-items: center; gap: 8px; height: 34px; padding-inline: 12px; background: #eef3f5; color: #3a5461; border-bottom: 1px solid rgba(7, 26, 38, .08); font-size: .75rem; font-weight: 500; }
:root[data-theme="dark"] .tb { background: #0a1e2b; color: #a9c3cc; border-bottom-color: rgba(217, 248, 250, .1); }
.tb img { width: 16px; height: 16px; aspect-ratio: auto; }
.tb-c { display: flex; gap: 20px; margin-inline-start: auto; }
.tb-c i { position: relative; width: 10px; height: 10px; }
.tb-c i:nth-child(1)::before { content: ""; position: absolute; inset-inline: 0; top: 5px; height: 1px; background: currentColor; }
.tb-c i:nth-child(2) { border: 1px solid currentColor; }
.tb-c i:nth-child(3)::before, .tb-c i:nth-child(3)::after { content: ""; position: absolute; left: -1px; top: 5px; width: 12px; height: 1px; background: currentColor; transform: rotate(45deg); }
.tb-c i:nth-child(3)::after { transform: rotate(-45deg); }

/* Floating simulation elements: a download card, a speed readout and a SHA-256 chip. */
.fl { position: absolute; z-index: 3; transform: translate3d(0, calc(var(--hp, 0) * var(--k, 0) * 1px), 0); transform: translate3d(0, round(calc(var(--hp, 0) * var(--k, 0) * 1px), 1px), 0); }
.fl-in { animation: float-in var(--dur-4) var(--ease-spring) both; animation-delay: var(--d, 0s); }
@keyframes float-in { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.94); } }
/* Every card sits inside the stage, which sits inside the hero's padding: nothing can reach the header. */
.fl-dl { inset-inline-start: -4%; bottom: -3%; width: min(300px, 62%); }
.fl-speed { inset-inline-end: 3%; top: 3%; }

.fl-sha { inset-inline-end: 2%; bottom: 12%; }
@media (min-width: 900px) and (max-height: 720px) { .fl-speed, .fl-sha { display: none; } .fl-dl { width: 250px; } }
@media (min-width: 900px) and (max-height: 560px) { .fl-dl { display: none; } }
.sim, .spd, .sha { background: var(--card); color: var(--fg); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 28px 50px -24px rgba(7, 26, 38, .5); }
:root[data-theme="dark"] .sim, :root[data-theme="dark"] .spd, :root[data-theme="dark"] .sha { box-shadow: 0 0 0 1px rgba(217, 248, 250, .18), 0 28px 50px -24px rgba(0, 0, 0, .8); }
.sim { display: grid; gap: 8px; padding: 10px 12px; font-size: .8125rem; }
.sim-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
.sim-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--acc); }
.sim-ico svg { width: 18px; height: 18px; }
.sim-name { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); line-height: 1.3; }
.sim-name > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.sim-name span { color: var(--fg2); font-size: .6875rem; }
.sim-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.sim-bar i { display: block; height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.sim-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--ocean), var(--cyan)); transform-origin: 0 50%; }
[dir="rtl"] .sim-bar b { background: linear-gradient(270deg, var(--ocean), var(--cyan)); transform-origin: 100% 50%; }
.sim-foot { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.sim-pct { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; }
.sim-state { color: var(--acc); font-weight: 650; white-space: nowrap; }
.sim-conns { margin-inline-start: auto; white-space: nowrap; flex: none; color: var(--fg2); font-size: .75rem; }
.spd { display: grid; gap: 0; min-width: 150px; padding: 8px 12px 6px; overflow: hidden; }
.spd-l { font-size: .75rem; font-weight: 600; color: var(--fg2); }
.spd-n b { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spd-n small { font-size: .8125rem; color: var(--fg2); }
.spd-g { width: 100%; height: 24px; overflow: hidden; fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spd-g path { vector-effect: non-scaling-stroke; }
.spd-g g { animation: spd-move 1.6s linear infinite; }
@keyframes spd-move { to { transform: translateX(-80px); } }
.sha { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-spring); }
.sha-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); }
.sha-ico svg { width: 16px; height: 16px; }
.sha-t { display: grid; line-height: 1.25; }
.sha-t b { font-size: .8125rem; }
.sha-t code { font-size: .6875rem; color: var(--fg2); }
.js-ready .sha:not(.is-on) { opacity: 0; transform: scale(.9) translateY(8px); }
@media (max-width: 899px) {
  .fl-dl { inset-inline-start: 2%; bottom: -10%; width: min(280px, 74%); }
  .fl-speed { top: -7%; inset-inline-end: 2%; }
  .fl-sha { bottom: auto; top: 26%; inset-inline-end: 2%; }
}
@media (max-width: 420px) { .sim-ico { display: none; } .sim-head { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--hh) + 10px); }
  .hero-copy { gap: 14px; }
  .chips { display: none; }
  .ctas { gap: 8px; }
  .ctas .btn-lg { min-height: 50px; padding: 0 16px; font-size: .9375rem; gap: 8px; }
  .fl-speed, .fl-sha { display: none; }
  .fl-dl { inset-inline-start: 4%; bottom: -16%; }
}

/* ---- Streams: the logo draw, then three lanes into one file ----------------------------- */
.streams .pin, #streams .pin { --s1: 1; --s2: 1; --s3: 1; --r1: 0; --r2: 0; --r3: 0; --ms: 1; --mx: 0; --my: 0; --lg: 1; --l0: 1; --l1: 1; --l2: 1; --fc: 1; --msd: 1.45; }
html.anim.js-ready #streams .pin, html.calm.js-ready #streams .pin { --s1: .3; --s2: .33; --s3: .37; --ms: calc(var(--msd) * 1.12); --mx: 265.5; --my: 22.7; --lg: 0; --l0: 0; --l1: 0; --l2: 0; --fc: 0; }
html.calm.js-ready #streams .pin { --mx: 0; --my: 0; }
.st-visual { position: relative; container-type: inline-size; width: 100%; max-width: 780px; justify-self: center; direction: ltr; }
.hl { width: 100%; }
.hl-svg { width: 100%; height: auto; overflow: visible; }
.hl-mark { transform-box: view-box; transform-origin: 206.5px 154.3px; transform: translate(calc(var(--mx) * 1px), calc(var(--my) * 1px)) scale(var(--ms)); }
.hl-mark use { fill: var(--logo-mark); }
.hl-st { transform-box: view-box; transform-origin: 206.5px 154.3px; }
.hl-st1 { transform: rotate(calc(var(--r1) * 1deg)); }
.hl-st2 { transform: rotate(calc(var(--r2) * 1deg)); }
.hl-st3 { transform: rotate(calc(var(--r3) * 1deg)); }
.hl-ms { fill: none; stroke: #fff; stroke-width: 21; stroke-dasharray: 1 2; stroke-linejoin: round; }
.hl-ms1 { stroke-dashoffset: calc(1 - var(--s1)); }
.hl-ms2 { stroke-dashoffset: calc(1 - var(--s2)); }
.hl-ms3 { stroke-dashoffset: calc(1 - var(--s3)); }
.hl-g { fill: var(--logo-word); transform: translateY(calc((1 - clamp(0, var(--lg) * 1.9 - var(--i) * .17, 1)) * 230px)); }
/* The lanes continue the three streams of the R's stem (same 14.93-unit lanes, 19.2-unit pitch) down and into the file. */
.st-lanes { position: relative; width: 100%; height: auto; margin-top: -7.246%; overflow: visible; fill: none; }
.ln-g path { stroke: var(--cyan); stroke-width: 14.93; stroke-dasharray: 1 1.02; }
.ln-g .ln1 { stroke-dashoffset: calc(1 - var(--l0)); }
.ln-g .ln2 { stroke-dashoffset: calc(1 - var(--l1)); }
.ln-g .ln3 { stroke-dashoffset: calc(1 - var(--l2)); }
.ln-flow { stroke: rgba(255, 255, 255, .55); stroke-width: 3; stroke-dasharray: .015 .075; stroke-linecap: round; opacity: calc(var(--l2) * var(--l2)); animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -.09; } }
.file-chip { position: absolute; right: 0; top: 47.7cqw; width: 36cqw; min-width: 124px; display: flex; align-items: center; gap: max(6px, 1.4cqw); padding: max(7px, 1.4cqw); border-radius: 14px; background: var(--card); color: #fff; box-shadow: inset 0 0 0 1.5px var(--cyan);
  opacity: var(--fc); transform: translate3d(calc((1 - var(--fc)) * 24px), -50%, 0) scale(calc(.92 + var(--fc) * .08)); transform-origin: right center; }
[dir="rtl"] .file-chip { direction: rtl; }
.fc-ico { display: grid; place-items: center; flex: none; width: max(24px, 4.6cqw); height: max(24px, 4.6cqw); border-radius: 50%; background: var(--cyan); color: var(--abyss); }
.fc-ico svg { width: 60%; height: 60%; }
.fc-t { display: grid; min-width: 0; line-height: 1.3; }
.fc-t b { font-size: max(11px, 2.1cqw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-t span { font-size: max(10px, 1.7cqw); color: #a9c3cc; }
@media (max-width: 560px) { .fc-t span { display: none; } .file-chip { width: 40cqw; } }

/* ---- Product experience ------------------------------------------------------------------ */
.stage3d { width: 100%; perspective: 1600px; perspective-origin: 50% 0; }
.win-app { --w3: clamp(0, (var(--p) + .1) / .6, 1); width: 100%; max-width: 880px; margin-inline-start: auto; transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--w3)) * 26deg)) rotateY(calc(var(--dir) * (1 - var(--w3)) * -12deg)) translateY(calc((1 - var(--w3)) * 8vh)) scale(calc(.8 + var(--w3) * .2)); }
.win-shot { position: relative; }
@media (min-width: 1024px) { .app-grid { margin-inline-end: calc(var(--gutter) * -.6); } }

/* ---- Speed -------------------------------------------------------------------------------- */
.sim-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 44ch; font-size: .875rem; color: var(--fg2); }
.race { display: grid; gap: clamp(12px, 2vh, 20px); }
.race-top { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.race-pct { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.5rem); font-weight: 800; line-height: .85; letter-spacing: -0.05em; color: var(--acc); font-variant-numeric: tabular-nums; }
.race-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--mono); font-size: .8125rem; color: var(--fg2); font-variant-numeric: tabular-nums; }
.race-meta b { color: var(--fg); }
.lanes { display: grid; gap: clamp(7px, 1.2vh, 11px); }
.lane { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 12px; align-items: center; font-family: var(--mono); font-size: .6875rem; color: var(--fg2); font-variant-numeric: tabular-nums; }
.lane-track { position: relative; height: 10px; border-radius: 5px; background: var(--track); }
.pc { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: inherit; overflow: hidden; }
.pc i { display: block; height: 100%; background: linear-gradient(90deg, var(--ocean), var(--cyan)); transform-origin: 0 50%; }
[dir="rtl"] .pc i { background: linear-gradient(270deg, var(--ocean), var(--cyan)); transform-origin: 100% 50%; }
.pc.stolen i { background: var(--ice); }
.hd { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.hd::after { content: ""; position: absolute; top: 50%; inset-inline-start: 0; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0, 213, 232, .35), 0 0 18px 4px rgba(0, 213, 232, .8); }
.filebar { position: relative; height: clamp(26px, 4.2vh, 42px); margin-top: 6px; border-radius: 10px; background: var(--track); overflow: hidden; }
.filebar .pc { border-radius: 0; }

/* ---- Integrity ---------------------------------------------------------------------------- */
.panels { display: grid; gap: clamp(10px, 1.2vw, 14px); }
.panel { position: relative; display: grid; gap: 8px; padding: clamp(14px, 1.6vw, 20px); border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.panel-h { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.font-arabic .panel-h { letter-spacing: 0; }
.panel-p { color: var(--fg2); font-size: .9375rem; max-width: 52ch; }
.rs { --cut: 0; }
.rs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rs-file { font-weight: 700; font-size: .9375rem; direction: ltr; font-family: var(--mono); }
.rs-state { display: grid; }
.st { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; justify-self: end; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 650; background: var(--soft); visibility: hidden; }
.st b { font-variant-numeric: tabular-nums; font-family: var(--mono); font-weight: 600; }
.rs[data-phase="run"] .st-run, .rs[data-phase="cut"] .st-cut, .rs[data-phase="res"] .st-res, .rs[data-phase="done"] .st-done { visibility: visible; }
.st-cut { background: var(--abyss); color: #fff; }
.st-done { background: var(--deep-teal); color: #fff; }
:root[data-theme="dark"] .st-cut { background: #fff; color: var(--abyss); }
:root[data-theme="dark"] .st-done { background: var(--cyan); color: var(--abyss); }
.rs-bar { position: relative; height: clamp(40px, 7vh, 64px); border-radius: 12px; background: var(--track); overflow: hidden; }
.rs-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep-teal), var(--cyan)); transform-origin: 0 50%; transition: filter var(--dur-2); }
[dir="rtl"] .rs-fill { background: linear-gradient(270deg, var(--deep-teal), var(--cyan)); transform-origin: 100% 50%; }
.rs[data-phase="cut"] .rs-fill { filter: grayscale(1) brightness(.75); }
.rs-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), color-mix(in srgb, var(--card) 75%, transparent) calc(5% - 2px) 5%); pointer-events: none; }
.rs-mark { position: absolute; z-index: 1; top: 0; bottom: 0; inset-inline-start: 62%; width: 3px; background: var(--fg); opacity: .9; }
.rs-bytes { font-family: var(--mono); font-size: clamp(.8125rem, .7rem + .5vw, 1rem); color: var(--fg2); font-variant-numeric: tabular-nums; }
.rs-bytes b { color: var(--fg); font-weight: 600; }
.rs-cut { position: absolute; inset: 0; background: var(--abyss); opacity: var(--cut); pointer-events: none; }
:root[data-theme="dark"] .rs-cut { background: #000; }
/* Verify panel: always a deep-teal "stamp", whatever the theme. */
.vf { --v: 1; --fg: #fff; --fg2: #d2eff3; --acc: #d9f8fa; --line: rgba(255, 255, 255, .2); background: var(--deep-teal); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .vf { background: #06424c; }
.vf-body { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); margin-top: 6px; }
.vf-check { flex: none; width: clamp(72px, 12vh, 112px); height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; --vc: clamp(0, (var(--v) - .15) / .3, 1); --vk: clamp(0, (var(--v) - .42) / .2, 1); --vx: clamp(0, (var(--v) - .55) / .15, 1); --vm: clamp(0, (var(--v) - .68) / .15, 1); }
.vf-check circle { stroke: var(--ice); stroke-width: 6; stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--vc)); transform: rotate(-90deg); transform-origin: center; }
.vf-check path { stroke: #fff; stroke-width: 9; stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--vk)); }
.vf-text { display: grid; gap: 8px; min-width: 0; --vx: clamp(0, (var(--v) - .55) / .15, 1); --vm: clamp(0, (var(--v) - .68) / .15, 1); }
.vf-file { font-family: var(--mono); font-size: .9375rem; font-weight: 600; }
.vf-ext { display: inline-block; color: var(--fg2); opacity: calc(1 - var(--vx)); transform: translateX(calc(var(--vx) * 14px)); text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor calc(var(--vx) * 100%), transparent); }
.vf-hash { font-family: var(--mono); font-size: clamp(.6875rem, .55rem + .5vw, .8125rem); line-height: 1.5; letter-spacing: .02em; word-break: break-all; max-width: 40ch; }
.vf-scr { color: var(--fg2); opacity: .7; }
.vf-match { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--deep-teal); font-weight: 750; font-size: .875rem; opacity: var(--vm); transform: scale(calc(.9 + var(--vm) * .1)); }
.vf-match svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .vf-match { background: var(--cyan); color: var(--abyss); }

/* ---- Blocks (unpinned) -------------------------------------------------------------------- */
.block { position: relative; padding-block: clamp(48px, 6vw, 92px); }
.block-head { display: grid; gap: 10px; justify-items: start; margin-bottom: clamp(20px, 3vw, 40px); }
.faq .block-head { margin-bottom: 0; }

/* Features: varied panels */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.bp { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(16px, 1.8vw, 24px); border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.bp:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 50%, var(--line)), 0 30px 60px -36px rgba(7, 26, 38, .4); }
.anim .bp.rv.in:hover { transform: translateY(-4px); }
.bp p { color: var(--fg2); max-width: 40ch; }
.bp-copy { display: grid; gap: 8px; justify-items: start; }
.bp-shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.bp-details { grid-column: span 7; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); min-height: clamp(300px, 28vw, 400px); padding-bottom: 0; }
.bp-details .bp-shot { align-self: end; margin-top: 12px; margin-inline-end: clamp(0px, 1vw, 12px); }
.bp-details .bp-shot img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px var(--line), 0 -10px 40px -20px rgba(7, 26, 38, .35); }
.bp-junk { grid-column: span 5; --fg: #fff; --fg2: #a9c3cc; background: var(--abyss); color: #fff; align-content: space-between; }
:root[data-theme="dark"] .bp-junk { background: #020d14; }
.strikes { display: grid; gap: 2px; }
.strikes li { position: relative; justify-self: start; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.font-arabic .strikes li { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.strikes span { background: linear-gradient(var(--cyan), var(--cyan)) no-repeat left 0 top 56% / 0 .09em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .8s var(--ease-io) calc(.4s + var(--i) * .16s), color .8s calc(.4s + var(--i) * .16s); }
[dir="rtl"] .strikes span { background-position: right 0 top 62%; }
.in .strikes span, html:not(.anim):not(.js-ready) .strikes span, .rv-all .strikes span { background-size: 100% .09em; color: #a9c3cc; }
.bp-add { grid-column: span 5; background: var(--bg-ice); }
:root[data-theme="dark"] .bp-add { background: var(--card); }
.bp-langs { grid-column: span 7; min-height: 250px; align-content: end; }
.bp-langs .bw { position: absolute; inset: 0; display: grid; align-content: start; justify-items: start; padding: 18px clamp(20px, 2.6vw, 36px); pointer-events: none; overflow: hidden; }
.bp-langs .bw span { font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); font-weight: 800; line-height: .95; letter-spacing: -0.05em; color: var(--fg); opacity: .06; white-space: nowrap; }
.bp-langs .bw .font-arabic { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; justify-self: end; }
.duo { position: relative; z-index: 1; height: clamp(110px, 12vw, 170px); }
.duo img { position: absolute; top: 0; width: 56%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 26px 50px -26px rgba(7, 26, 38, .55); transition: transform var(--dur-4) var(--ease-out); }
.duo-en { inset-inline-start: 4%; transform: rotate(-2deg); }
.duo-ar { inset-inline-end: 4%; top: 22px; transform: rotate(2deg); }
.bp-langs:hover .duo-en { transform: translateY(-6px) rotate(-3deg); }
.bp-langs:hover .duo-ar { transform: translateY(-2px) rotate(3deg); }
.bp-video { grid-column: span 6; background: var(--abyss); --fg: #fff; --fg2: #a9c3cc; --acc: #00d5e8; color: #fff; }
:root[data-theme="dark"] .bp-video { background: #0d2c3a; }
.vid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; background: rgba(217, 248, 250, .06); box-shadow: inset 0 0 0 1px rgba(217, 248, 250, .12); }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--cyan); clip-path: polygon(30% 22%, 30% 78%, 78% 50%); transition: transform var(--dur-3) var(--ease-spring); }
.bp-video:hover .play { transform: scale(1.12); }
[dir="rtl"] .play { transform: scaleX(-1); }
[dir="rtl"] .bp-video:hover .play { transform: scaleX(-1) scale(1.12); }
.vbars { display: grid; gap: 7px; }
.vbars i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ocean), var(--cyan)); transform-origin: 0 50%; animation: vbar 3.2s var(--ease-io) infinite alternate; }
[dir="rtl"] .vbars i { transform-origin: 100% 50%; }
.vbars i:nth-child(1) { width: 92%; } .vbars i:nth-child(2) { width: 74%; animation-delay: -.8s; } .vbars i:nth-child(3) { width: 58%; animation-delay: -1.6s; }
@keyframes vbar { from { transform: scaleX(.45); } to { transform: scaleX(1); } }
.bp-user { grid-column: span 6; background: var(--deep-teal); --fg2: #d2eff3; --fg: #fff; color: #fff; align-content: space-between; }
:root[data-theme="dark"] .bp-user { background: #06424c; }
.path { display: block; font-size: clamp(1rem, .6rem + 1.5vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; color: #d9f8fa; }
.path::after { content: ""; display: inline-block; width: .5ch; height: 1em; margin-inline-start: 4px; vertical-align: -.12em; background: var(--cyan); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bp-research { grid-column: span 7; }
.bp-torrent { grid-column: span 5; }
.bp-menus { grid-column: span 5; }
.bp-privacy { grid-column: span 7; }
@media (max-width: 1023px) {
  .bp-details, .bp-junk, .bp-add, .bp-langs, .bp-video, .bp-user, .bp-research, .bp-torrent, .bp-menus, .bp-privacy { grid-column: 1 / -1; }
  .bp-details { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
}
@media (max-width: 640px) {
  .bp-details { grid-template-columns: 1fr; }
  .bp-details .bp-shot { max-width: 260px; justify-self: center; margin-inline-end: 0; }
}

/* Compare */
.vs { display: grid; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.vs-row:last-child { border-bottom: 1px solid var(--line); }
.vs-head { display: none; border-top: 0; padding-block: 0 12px; font-size: .8125rem; font-weight: 600; color: var(--fg2); }
.font-arabic .vs-head { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: .875rem; }
.vs-f { font-size: .875rem; font-weight: 600; color: var(--fg2); }
.font-arabic .vs-f { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: .875rem; }
.vs-r { position: relative; padding-inline-start: 16px; font-size: clamp(1rem, .95rem + .35vw, 1.2rem); font-weight: 700; letter-spacing: -0.015em; }
.vs-r::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: linear-gradient(var(--cyan) 0 30%, transparent 30% 35%, var(--ocean) 35% 65%, transparent 65% 70%, var(--deep-teal) 70%); }
.vs-p { padding-inline-start: 16px; color: var(--fg2); font-size: .9375rem; }
.vs-head .vs-r { font-size: .8125rem; font-weight: 600; }
.vs-head .vs-r::before { display: none; }
.vs-head .vs-r, .vs-head span:last-child { color: var(--fg); }
.footnote { margin-top: 12px; font-size: .875rem; color: var(--fg2); max-width: 60ch; }
@media (min-width: 760px) {
  .vs-row, .vs-head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding-block: 14px; }
  .vs-head { display: grid; }
  .vs-row:not(.vs-head) { transition: background-color var(--dur-2); }
  .vs-row:not(.vs-head):hover { background: var(--soft); }
  .vs-head span:first-child { visibility: hidden; }
  .vs-p, .vs-r { padding-inline-start: 0; }
  .vs-r { padding-inline-start: 16px; }
}
@media (max-width: 759px) { .vs-p::before { content: attr(data-l); display: block; font-size: .75rem; color: var(--fg2); opacity: .8; } }

/* Open source */
.open-grid { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .open-grid { grid-template-columns: 1.1fr .9fr; } }
.open-col { display: grid; gap: 14px; align-content: start; justify-items: start; }
.open-col > p:not(.eyebrow) { color: var(--fg2); font-size: 1rem; max-width: 40ch; }
.open-col .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.open-links { display: flex; flex-wrap: wrap; gap: 12px; }
.licenses { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; }
.licenses a { color: var(--fg2); text-underline-offset: .2em; transition: color var(--dur-1); }
.licenses a:hover { color: var(--fg); }
.term { display: grid; gap: 6px; width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: .8125rem; overflow-x: auto; }
.term-l { font-size: .75rem; font-weight: 600; color: var(--fg2); }
.font-arabic .term-l { font-family: var(--font-ar); letter-spacing: 0; text-transform: none; font-size: .8125rem; }
.term code { white-space: nowrap; color: #fff; }
@media (max-width: 560px) { .term { grid-template-columns: minmax(0, 1fr); } .term code { white-space: normal; overflow-wrap: anywhere; } }
.term .p { color: var(--cyan); margin-inline-end: 8px; }
.fb-links { display: grid; width: 100%; border-top: 1px solid var(--line); }
.fb-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; transition: padding var(--dur-2) var(--ease-out); }
.fb-links a:hover { padding-inline-start: 8px; }
.fb-links svg { width: 22px; height: 22px; transition: transform var(--dur-2) var(--ease-out); }
[dir="rtl"] .fb-links svg { transform: scaleX(-1); }
.fb-links a:hover svg { transform: translateX(6px); }
[dir="rtl"] .fb-links a:hover svg { transform: scaleX(-1) translateX(6px); }

/* FAQ */
.faq-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: start; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-block: 10px; cursor: pointer; list-style: none; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 700; letter-spacing: -0.01em; transition: color var(--dur-1), padding var(--dur-2) var(--ease-out); }
.faq-item summary:hover { color: var(--acc); padding-inline-start: 6px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; flex: none; transition: transform var(--dur-3) var(--ease-spring); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] p { animation: faq-in var(--dur-3) var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq-item p { padding-bottom: 14px; color: var(--fg2); font-size: .9375rem; max-width: 60ch; }

/* Rules: the three-lane band used as a divider */
.rule { display: block; width: min(100%, 360px); height: 14px; background: linear-gradient(to bottom, var(--cyan) 0 4px, transparent 4px 5px, var(--ocean) 5px 9px, transparent 9px 10px, var(--deep-teal) 10px 14px); -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); transform-origin: 0 50%; }
[dir="rtl"] .rule { transform-origin: 100% 50%; -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }
html:is(.anim, .calm).js-ready .rule.rv:not(.in) { opacity: 1; transform: scaleX(0); }
html:is(.anim, .calm) .rule.rv { transition: transform .7s var(--ease-out); }

/* Download */
.cta { overflow: hidden; }
.dl-wrap { position: relative; width: 100%; max-width: 860px; }
/* The three lanes run UNDER the portable-zip card (card above, with a solid background) and leave from its end side, climbing off the edge of the band (decorative, desktop only). */
.cta-lines { position: absolute; z-index: 0; inset-inline-start: calc(100% - 190px); top: calc(50% - 300px); width: 900px; height: 420px; pointer-events: none; }
.cta-lines svg { display: block; width: 900px; height: 420px; fill: none; overflow: visible; }
.cta-lines path { stroke-width: 14px; stroke-dasharray: 1 1.01; transition: stroke-dashoffset 2.4s var(--ease-out); }
.cta-lines path:nth-child(1) { stroke: var(--cyan); opacity: .75; }
.cta-lines path:nth-child(2) { stroke: var(--ocean); opacity: .65; transition-delay: .15s; }
.cta-lines path:nth-child(3) { stroke: var(--ice); opacity: .35; transition-delay: .3s; }
html:is(.anim, .calm).js-ready .cta:not(.in) .cta-lines path { stroke-dashoffset: 1; }
[dir="rtl"] .cta-lines svg { transform: scaleX(-1); }
@media (max-width: 1099px) { .cta-lines { display: none; } }
.cta-inner { position: relative; display: grid; gap: clamp(10px, 1.4vw, 16px); justify-items: start; }
.dl-grid { position: relative; z-index: 1; display: grid; gap: 10px; width: 100%; margin-top: 4px; }
@media (min-width: 720px) { .dl-grid { grid-template-columns: 1.2fr 1fr; } }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 14px 18px; border-radius: 16px; text-decoration: none; background: linear-gradient(rgba(217, 248, 250, .06), rgba(217, 248, 250, .06)), var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.dl:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.dl:active { transform: translateY(-1px) scale(.99); }
.dl-main { background: var(--cyan); color: var(--abyss); box-shadow: none; }
.dl-main:hover { box-shadow: 0 24px 50px -24px var(--cyan); }
.dl-ico { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(217, 248, 250, .1); }
.dl-main .dl-ico { background: var(--abyss); color: var(--cyan); }
.dl-ico svg { width: 24px; height: 24px; transition: transform var(--dur-3) var(--ease-spring); }
.dl:hover .dl-ico svg { transform: translateY(3px); }
.dl-t { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em; }
.dl-s { font-size: .875rem; opacity: .85; }
.dl-f { font-family: var(--mono); font-size: .75rem; opacity: .7; overflow-wrap: anywhere; justify-self: start; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ext { display: grid; gap: 10px; width: 100%; max-width: 860px; margin-top: clamp(14px, 2vw, 24px); padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid var(--line); justify-items: start; }
.ext-copy { display: grid; gap: 6px; }
.ext-copy p { color: var(--fg2); max-width: 44ch; }

/* Alpha 4: the primary button shows the version; the "more" row under the feature panels; what's new / always up to date; the Chrome install steps. */
.btn .ver, .dl-t .ver { font-family: var(--mono); font-size: .75rem; font-weight: 500; opacity: .8; }
.new-block { margin-top: clamp(28px, 4vw, 56px); }
.new-title { margin-bottom: clamp(12px, 1.6vw, 20px); }
.bp-new { align-content: space-between; }
.bp-new .bp-shot { align-self: end; }
.bp-new .bp-shot img { display: block; }
.policy { margin-top: clamp(14px, 1.8vw, 22px); max-width: 62ch; color: var(--fg2); font-size: .9375rem; }
.more { display: grid; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(12px, 1.6vw, 20px); }
@media (min-width: 800px) { .more { grid-template-columns: repeat(3, 1fr); } }
/* Features row: five cards, three then two wider ones, so no row is left with a gap. */
@media (min-width: 560px) and (max-width: 799px) { .features .more { grid-template-columns: 1fr 1fr; } .features .more li:last-child { grid-column: 1 / -1; } }
@media (min-width: 800px) { .features .more { grid-template-columns: repeat(6, 1fr); } .features .more li { grid-column: span 2; } .features .more li:nth-child(n+4) { grid-column: span 3; } }
.more li { display: grid; gap: 8px; align-content: start; padding: clamp(16px, 2vw, 24px); border-radius: 20px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.more p { color: var(--fg2); font-size: .9375rem; }
.more code { justify-self: start; font-family: var(--mono); font-size: .8125rem; padding: 2px 8px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.upd-grid { display: grid; gap: clamp(16px, 2.4vw, 32px); width: 100%; max-width: 860px; margin-top: clamp(10px, 1.6vw, 20px); }
@media (min-width: 720px) { .upd-grid { grid-template-columns: 1.1fr 1fr; } }
.whats-new, .always-up { display: grid; gap: 8px; align-content: start; justify-items: start; }
.whats-new ul { display: grid; gap: 4px; }
.whats-new li { position: relative; padding-inline-start: 18px; color: var(--fg2); font-size: .9375rem; }
.whats-new li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 2px; border-radius: 2px; background: var(--cyan); }
.always-up p { color: var(--fg2); font-size: .9375rem; max-width: 44ch; }
.steps { display: grid; gap: 6px; max-width: 60ch; }
.steps ol { display: grid; gap: 4px; padding-inline-start: 1.4em; list-style: decimal; color: var(--fg2); font-size: .9375rem; }
.steps li::marker { color: var(--cyan); font-weight: 700; }

/* ---- Footer ------------------------------------------------------------------------------ */
.site-footer { padding-block: 32px 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } .footer-meta, .footer-legal { grid-column: 1 / -1; } }
.footer-brand { display: grid; gap: 8px; justify-items: start; color: var(--fg2); }
.footer-logo { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-start; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; color: var(--fg2); text-decoration: none; font-weight: 550; font-size: .9375rem; transition: color var(--dur-1); }
.footer-links a:hover { color: var(--fg); }
.footer-legal { margin: 0; font-size: .8125rem; color: var(--fg2); max-width: 70ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--fg2); }

/* ---- Legal and 404 ----------------------------------------------------------------------- */
.page-plain { min-height: 100vh; }
.page-plain .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 10%, transparent); }
.legal-hero { padding-block: calc(var(--hh) + clamp(32px, 5vw, 64px)) clamp(24px, 3vw, 40px); }
.legal-hero .h2 { max-width: 12ch; }
.legal-updated { margin-top: 20px; max-width: 60ch; color: var(--fg2); font-size: .9375rem; }
.legal { padding-block: clamp(24px, 4vw, 48px); }
.legal > * { max-width: 760px; }
.legal-lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.6; font-weight: 550; padding-bottom: 12px; }
.legal-section { padding-top: 22px; }
.legal-section h2 { margin-bottom: 10px; font-size: 1.375rem; letter-spacing: -0.015em; }
.legal-section p { margin-bottom: 12px; color: var(--fg2); line-height: 1.65; overflow-wrap: anywhere; }
.nf { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; gap: clamp(28px, 5vw, 56px); padding-block: 48px; overflow: hidden; }
.nf-code { font-size: clamp(7rem, 30vw, 22rem); font-weight: 800; line-height: .8; letter-spacing: -0.07em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.nf-blocks { display: grid; gap: 32px; }
@media (min-width: 720px) { .nf-blocks { grid-template-columns: 1fr 1fr; } }
.nf-block { display: grid; gap: 12px; justify-items: start; }
.nf-block .h3 { color: #fff; }
.nf-block p { color: var(--fg2); }

/* ---- Reduced motion, lite level and phones ------------------------------------------------ */
/* html[data-motion] comes from the OS setting or the visitor's own Animations switch (never the raw media query), so forcing motion
   on with an OS "reduce" setting leaves no reduce-only rule behind. Calm keeps every non-spatial animation (fades, progress bars
   filling, counters, the SHA-256 digest resolving, the stroke draws, the hero simulation) and drops the spatial ones: parallax, the 3D
   tilt, large slides, scroll-scrubbed pinned stages and endless loops. */
@keyframes fade-soft { from { opacity: 0; } }
html.calm .rise, html.calm .fl-in, html.calm .win-hero { animation-name: fade-soft; }
html.calm .hero-copy .ln > span { animation-name: fade-soft; }
html.calm .win-app, html.calm .hero .par, html.calm .hero .fl { transform: none; }
html.calm .rt-d .rt-pg b::after, html.calm .spd-g g, html.calm .ln-flow, html.calm .vbars i, html.calm .path::after { animation: none; }
html.calm .pin .mask .ln > span { transform: none; opacity: var(--t1); }
html.calm .pin .mask .ln:nth-child(2) > span { opacity: var(--t2); }
html.calm .pin .fade { transform: none; }
/* Lite level (weak device, data saver, or a session the frame monitor measured as slow): same content, less work. */
html[data-level="lite"] .win-app, html[data-level="lite"] .hero .par, html[data-level="lite"] .hero .fl { transform: none; }
html[data-level="lite"] .rt-d .rt-pg b::after, html[data-level="lite"] .spd-g g, html[data-level="lite"] .ln-flow, html[data-level="lite"] .vbars i { animation: none; }
html[data-level="lite"] .hero-bg path:nth-child(3) { display: none; }
html[data-level="lite"] .win { box-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgba(7, 26, 38, .4); }
/* Opening animations wait for the page font (head script adds html.ready); without JS they simply run. */
.js:not(.ready) :is(.rise, .hero-copy .ln > span, .win-hero, .fl-in, .brand-logo, .hero-bg path, .rt-pg b) { animation-play-state: paused; }
/* A hidden tab runs nothing. */
html.tab-hidden *, html.tab-hidden *::before, html.tab-hidden *::after { animation-play-state: paused !important; }
/* The one-time hint for visitors whose system asks for reduced motion. It floats under the header, so it never moves the layout. */
.mo-hint { position: absolute; z-index: 2; top: calc(100% + 8px); inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 2 * var(--gutter))); padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--card, #fff); color: var(--fg); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(7, 26, 38, .45); animation: fade-soft var(--dur-3) var(--ease-out) both; }
.mo-hint[hidden] { display: none; }
.mo-hint p { margin: 0; font-size: .8125rem; line-height: 1.4; }
.mo-hint .btn { flex: none; }
.rel-pill { position: relative; z-index: 2; margin-block-start: calc(var(--hh) + 10px); margin-inline-start: var(--gutter); inline-size: fit-content; display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 2 * var(--gutter)); padding: 3px; padding-inline-start: 14px; border-radius: 999px; background: var(--card, #fff); color: var(--fg); font-size: .8125rem; line-height: 1.3; box-shadow: 0 0 0 1px var(--line), 0 10px 26px -16px rgba(7, 26, 38, .4); }
.rel-pill[hidden], html.rel-seen .rel-pill, html:not(.js) .rel-pill { display: none; }
/* the pill takes its own row above the hero, so the hero only needs its normal breathing room under it */
html.js:not(.rel-seen) .rel-pill:not([hidden]) + .hero { padding-block-start: clamp(14px, 3vh, 32px); }
.rel-link { color: inherit; text-decoration: none; padding-block: 4px; }
.rel-link b { font-weight: 600; color: var(--acc, #075C69); }
.rel-link:hover b { text-decoration: underline; }
.rel-x { flex: none; width: 28px; height: 28px; }
html.anim .rel-pill { animation: fade-soft var(--dur-3) var(--ease-out) both; }
@media (max-width: 520px) { .rel-link span { display: block; } }
:root[data-theme="dark"] .rel-pill { background: #0d2837; box-shadow: 0 0 0 1px rgba(217, 248, 250, .18), 0 10px 26px -16px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .rel-link b { color: #00D5E8; }
:root[data-theme="dark"] .mo-hint { background: #0d2837; box-shadow: 0 0 0 1px rgba(217, 248, 250, .18), 0 18px 40px -18px rgba(0, 0, 0, .8); }
@media (max-width: 699px) {
  #streams .pin { --msd: 1.7; }
  .hero-bg path:nth-child(3) { display: none; }
}
/* Pause the endless loops while their chapter is off-screen (js/site.js toggles .off). */
.off .ln-flow, .off .vbars i, .off .spd-g g, .off .rt-d .rt-pg b::after { animation-play-state: paused; }

/* Off-screen chapters skip style, layout and paint until they come near (pinned chapters have an
   explicit height, so offsets stay exact; the unpinned blocks remember their last size). */
.ch, .block, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---- Launch page: proof strip, Research and extension sections ----------------- */
.hero .win-shot img { border-radius: 0; }
.proof { padding-block: clamp(18px, 2.4vw, 30px); border-block: 1px solid var(--line); }
.proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.proof-list li { display: grid; gap: 4px; align-content: start; padding-inline-start: 14px; border-inline-start: 3px solid var(--cyan); }
.proof-list b { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--acc); font-variant-numeric: tabular-nums; }
.proof-list span { font-size: .875rem; line-height: 1.4; color: var(--fg2); max-width: 28ch; }
@media (min-width: 800px) { .proof-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) {
  .split-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-rev .split-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
}
.split-copy { display: grid; gap: clamp(12px, 1.6vw, 18px); justify-items: start; align-content: center; }
.split-copy .lead { max-width: 44ch; }
.ticks { display: grid; gap: 10px; max-width: 52ch; }
.ticks li { position: relative; padding-inline-start: 26px; color: var(--fg2); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 213, 232, .18); }
.points { display: grid; gap: 14px; max-width: 52ch; }
.points li { display: grid; gap: 2px; padding-inline-start: 14px; border-inline-start: 3px solid var(--cyan); }
.points .h3 { font-size: 1.0625rem; letter-spacing: -.02em; }
.points p { color: var(--fg2); font-size: .9375rem; }
.install-line, .privacy-line { max-width: 52ch; font-size: .9375rem; color: var(--fg2); }
.privacy-line { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.privacy-line svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--acc); }
.split-shots { display: grid; gap: clamp(10px, 1.4vw, 18px); align-content: center; min-width: 0; }
.split-shots img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -44px rgba(7, 26, 38, .55); background: var(--card); }
.split-shots .shot-small { width: 78%; justify-self: end; margin-top: -8%; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(7, 26, 38, .6); }
.ext-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.ext-pair img { width: 100%; }
@media (max-width: 959px) { .split-shots .shot-small { margin-top: 0; width: 100%; } }
@media (max-width: 560px) { .ext-pair { grid-template-columns: minmax(0, 1fr); } .ext-pair img:first-child { max-width: 320px; } }

.features-new .new-title { margin-bottom: clamp(6px, 1vw, 12px); }
.features-new .bento.new { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.features-new .bp-new { grid-column: span 6; }
@media (min-width: 800px) {
  .features-new .bp-new { grid-column: span 3; }
  .features-new .bp-settings { grid-column: span 6; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; }
  .features-new .bp-settings .bp-copy { align-self: center; }
}
.midcta-inner { display: grid; gap: 20px; align-items: center; }
.midcta .lead { margin-top: 8px; max-width: 46ch; }
@media (min-width: 800px) { .midcta-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.privacy-sec .footnote { margin-top: 18px; }

/* Download section: the release details fold away like the FAQ (same item style). */
.dl-folds { width: 100%; max-width: 860px; margin-top: clamp(14px, 2vw, 24px); text-align: start; }
.dl-folds .faq-item { display: block; justify-items: normal; max-width: none; margin: 0; padding: 0; border-top: 0; }
.dl-folds summary .h3 { font: inherit; letter-spacing: inherit; line-height: inherit; }
.dl-folds .faq-item > :not(summary) { margin-bottom: 14px; }
.dl-folds .faq-item[open] > :not(summary) { animation: faq-in var(--dur-3) var(--ease-out) both; }
.dl-folds .always-up p { max-width: 60ch; }
