/* ===========================================================
   Flagship Fintech — Design Tokens v3
   "Black skin" — true black base, editorial typography,
   high-contrast, generous negative space.
   Inspired by: Linear, Vercel, Things, Apple, Mercury
   =========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap");

/* Cairo — self-hosted variable font (OFL, wght 200–1000). Source: google/fonts ofl/cairo → static/fonts/cairo/ */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/cairo/Cairo-Variable.ttf") format("truetype-variations"),
    url("../fonts/cairo/Cairo-Variable.ttf") format("truetype");
}

:root {
  /* ---- True black surface system ---- */
  --bg:           #000000;        /* page */
  --bg-1:         #050505;        /* nav blur */
  --bg-2:         #0a0a0c;        /* raised */
  --bg-3:         #101015;        /* card */
  --bg-4:         #16161c;        /* hover */

  /* ---- Brand (kept from existing deck identity) ---- */
  --c-blue-700:   #1f33b5;
  --c-blue-600:   #2640d4;
  --c-blue-500:   #3047db;
  --c-blue-400:   #5572f0;
  --c-sky-500:    #67c4f2;
  --c-sky-400:    var(--c-blue-400);
  --c-sky-300:    var(--c-blue-500);
  --c-ice:        #eaf7ff;
  --c-mint:       #5af2a8;       /* slightly brighter on black */
  --c-warn:       #ffb84d;
  --c-coral:      #ff7676;
  /* Extended accents — vibrant but controlled on black */
  --c-violet-500: #9d7dff;
  --c-violet-400: #c4b0ff;
  --c-amber-400:  #fbbf24;
  --c-rose-400:   #fb7185;
  --c-teal-400:   #2dd4bf;
  --c-fuchsia-500:#e879f9;

  /* ---- Hairlines (calibrated for true black) ---- */
  --line-1:       rgba(255,255,255,0.05);
  --line-2:       rgba(255,255,255,0.09);
  --line-3:       rgba(255,255,255,0.14);
  --line-4:       rgba(255,255,255,0.22);

  /* ---- Text ---- */
  --t-hi:         #ffffff;
  --t-md:         rgba(255,255,255,0.72);
  --t-lo:         rgba(255,255,255,0.46);
  --t-dim:        rgba(255,255,255,0.28);

  /* ---- Fonts ---- */
  --font-sans:    "Geist", -apple-system, system-ui, sans-serif;
  --font-mono:    "Geist Mono", "SF Mono", ui-monospace, monospace;
  --font-serif:   "Instrument Serif", "New York", "Iowan Old Style", serif;

  /* Arabic UI: local Cairo (overridden on html:lang(ar) via --font-sans) */
  --font-sans-ar: "Cairo", "Segoe UI", "Tahoma", sans-serif;

  /* ---- Type scale ---- */
  --t-mega:     clamp(4rem, 12vw, 11rem);
  --t-jumbo:    clamp(3.5rem, 8vw, 7.5rem);
  --t-display:  clamp(2.75rem, 5.5vw, 5.5rem);
  --t-h1:       clamp(2.25rem, 3.8vw, 3.75rem);
  --t-h2:       clamp(1.75rem, 2.6vw, 2.5rem);
  --t-h3:       1.5rem;
  --t-h4:       1.125rem;
  --t-lg:       1.125rem;
  --t-md:       1rem;
  --t-sm:       0.875rem;
  --t-xs:       0.75rem;
  --t-mi:       0.6875rem;

  /* ---- Spacing ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-32: 128px; --s-40: 160px;

  /* ---- Radii (smaller, more architectural) ---- */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --r-pill: 999px;

  /* ---- Motion ---- */
  --ease:        cubic-bezier(0.20, 0.0, 0.10, 1.0);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 150ms; --dur-2: 280ms; --dur-3: 480ms; --dur-4: 800ms;

  /* ---- Chromatic elevation (soft neon / bloom on true black) ---- */
  --shadow-deep:       0 28px 56px -26px rgba(0, 0, 0, 0.78);
  --glow-sky:          0 0 56px -18px rgba(103, 196, 242, 0.22);
  --glow-violet:       0 0 48px -20px rgba(157, 125, 255, 0.18);
  --glow-mint:         0 0 44px -20px rgba(90, 242, 168, 0.14);
  --glow-fuchsia:      0 0 40px -22px rgba(232, 121, 249, 0.12);
  --shadow-ambient:    var(--shadow-deep), var(--glow-sky), var(--glow-violet);
  --shadow-dropdown:   0 40px 88px -20px rgba(0, 0, 0, 0.88), var(--glow-sky), var(--glow-violet), var(--glow-mint);
  --shadow-panel:      0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.82),
                       0 0 52px -18px rgba(103, 196, 242, 0.09), 0 0 44px -22px rgba(157, 125, 255, 0.07),
                       0 0 36px -24px rgba(90, 242, 168, 0.05);
  --shadow-card:       0 22px 48px -28px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(103, 196, 242, 0.055),
                       var(--glow-violet), 0 0 40px -26px rgba(103, 196, 242, 0.06);
  --shadow-card-hover: 0 32px 56px -22px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(138, 214, 255, 0.22),
                       0 0 64px -10px rgba(103, 196, 242, 0.22), 0 0 48px -14px rgba(157, 125, 255, 0.16),
                       0 0 40px -18px rgba(90, 242, 168, 0.08);
  --shadow-nav-scrolled: 0 1px 0 rgba(103, 196, 242, 0.07), 0 18px 48px -12px rgba(0, 0, 0, 0.65),
                         0 0 40px -20px rgba(103, 196, 242, 0.08);
}

/* Page surface — partner logos & future light pages (see getPartnerLogoSrc in components.jsx) */
html[data-surface="dark"],
html:not([data-surface]) {
  color-scheme: dark;
}
html[data-surface="light"] {
  color-scheme: light;
  /* Light surface — re-map semantic tokens (inherits :root structure) */
  --bg:           #f6f7fb;
  --bg-1:         #eef0f6;
  --bg-2:         #e6e9f2;
  --bg-3:         #dde2ec;
  --bg-4:         #d2d8e5;
  --line-1:       rgba(10, 12, 24, 0.06);
  --line-2:       rgba(10, 12, 24, 0.10);
  --line-3:       rgba(10, 12, 24, 0.14);
  --line-4:       rgba(10, 12, 24, 0.22);
  --t-hi:         #0a0c18;
  --t-md:         rgba(10, 12, 24, 0.72);
  --t-lo:         rgba(10, 12, 24, 0.48);
  --t-dim:        rgba(10, 12, 24, 0.32);
  /* Accents — sky aliases map to brand blue on pale surfaces */
  --c-sky-400:    var(--c-blue-400);
  --c-mint:       #0a8f57;
  --c-warn:       #b86e00;
  --c-coral:      #c93c3c;
  /* Softer elevation on pale surfaces (replacements for dark-only shadows) */
  --shadow-deep:       0 18px 44px -22px rgba(10, 12, 24, 0.10);
  --shadow-dropdown:   0 28px 72px -16px rgba(10, 12, 24, 0.12), 0 0 0 1px rgba(10, 12, 24, 0.05);
  --shadow-ambient:    var(--shadow-deep), 0 0 48px -22px rgba(103, 196, 242, 0.10);
  --shadow-panel:      0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 16px 40px -18px rgba(10, 12, 24, 0.08),
                       0 0 32px -20px rgba(103, 196, 242, 0.08);
  --shadow-card:       0 12px 32px -18px rgba(10, 12, 24, 0.09), 0 0 0 1px rgba(10, 12, 24, 0.05);
  --shadow-card-hover: 0 22px 48px -12px rgba(10, 12, 24, 0.12), 0 0 0 1px rgba(38, 64, 212, 0.10),
                       0 0 36px -12px rgba(103, 196, 242, 0.14);
  --shadow-nav-scrolled: 0 1px 0 rgba(10, 12, 24, 0.06), 0 12px 36px -6px rgba(10, 12, 24, 0.08);
}

html[data-surface="light"] body {
  background:
    radial-gradient(ellipse 90% 50% at 10% -15%, rgba(48, 71, 219, 0.10), transparent 48%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(103, 196, 242, 0.08), transparent 46%),
    radial-gradient(ellipse 55% 38% at 50% 105%, rgba(157, 125, 255, 0.08), transparent 48%),
    radial-gradient(ellipse 45% 30% at 72% 40%, rgba(90, 242, 168, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 88% 72%, rgba(232, 121, 249, 0.04), transparent 45%),
    var(--bg);
}

html[data-surface="light"] :focus-visible {
  outline: 2px solid rgba(38, 64, 212, 0.55);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(103, 196, 242, 0.22), 0 0 20px rgba(157, 125, 255, 0.18);
}

html[data-surface="light"] ::selection {
  background: linear-gradient(120deg, rgba(103, 196, 242, 0.35), rgba(157, 125, 255, 0.28));
  color: var(--t-hi);
}

html[data-surface="light"] .tape {
  border-top-color: var(--line-2);
  border-bottom-color: var(--line-2);
  background: linear-gradient(
    90deg,
    rgba(48, 71, 219, 0.05) 0%,
    rgba(103, 196, 242, 0.045) 28%,
    rgba(157, 125, 255, 0.045) 52%,
    rgba(90, 242, 168, 0.04) 78%,
    rgba(251, 113, 133, 0.03) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 32px -18px rgba(103, 196, 242, 0.10),
    0 0 28px -20px rgba(157, 125, 255, 0.06);
}

html[data-surface="light"] .proof-strip {
  background:
    linear-gradient(180deg, rgba(48, 71, 219, 0.04) 0%, transparent 55%),
    linear-gradient(90deg, rgba(103, 196, 242, 0.05) 0%, rgba(157, 125, 255, 0.05) 50%, rgba(90, 242, 168, 0.04) 100%),
    var(--bg-1);
  box-shadow:
    inset 0 -1px 0 rgba(10, 12, 24, 0.05),
    0 12px 36px -24px rgba(10, 12, 24, 0.06),
    0 0 40px -22px rgba(103, 196, 242, 0.08);
}

html[data-surface="light"] .btn-primary {
  background: var(--t-hi);
  color: #fafbff;
  box-shadow:
    0 4px 18px -4px rgba(10, 12, 24, 0.18),
    0 0 28px -10px rgba(103, 196, 242, 0.2),
    0 0 22px -12px rgba(157, 125, 255, 0.12);
}

html[data-surface="light"] .btn-primary:hover {
  color: #05060a;
}

html[data-surface="light"] .chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line-2);
  box-shadow:
    0 1px 2px rgba(10, 12, 24, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 20px -8px rgba(103, 196, 242, 0.10);
}

html[data-surface="light"] .btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--t-hi);
  border-color: var(--line-3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(10, 12, 24, 0.04);
}
html[data-surface="light"] .btn-secondary:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(234, 247, 255, 0.75) 45%, rgba(243, 240, 255, 0.7) 100%);
  border-color: rgba(38, 64, 212, 0.22);
  box-shadow:
    0 0 24px -6px rgba(103, 196, 242, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

html[data-surface="light"] .btn-text:hover {
  text-shadow: none;
  color: var(--c-blue-600);
}

html[data-surface="light"] .t-eyebrow {
  text-shadow: 0 0 20px rgba(38, 64, 212, 0.10);
}
html[data-surface="light"] .serif-em {
  text-shadow: 0 0 28px rgba(38, 64, 212, 0.08);
}
html[data-surface="light"] .serif-em--primary {
  color: var(--c-blue-500);
  text-shadow: 0 0 28px rgba(48, 71, 219, 0.14);
}
html[data-surface="light"] .serif-em-dim {
  color: rgba(38, 64, 212, 0.42);
  text-shadow: none;
}

html[data-surface="light"] .catalog-card:hover {
  border-color: rgba(38, 64, 212, 0.22) !important;
  background: linear-gradient(165deg, rgba(234, 247, 255, 0.55), rgba(243, 240, 255, 0.35), rgba(255, 255, 255, 0.4) 72%) !important;
}

html[data-surface="light"] .catalog-compare thead th {
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-surface="light"] .hero-aurora {
  opacity: 0.42;
  filter: blur(72px);
}

html[data-surface="light"] .hero-mesh-fade {
  background: radial-gradient(ellipse 82% 62% at 50% 18%, transparent 0%, rgba(246, 247, 251, 0.78) 72%, rgba(230, 233, 242, 0.95) 100%);
}

html[data-surface="light"] .mockup-strip__card {
  box-shadow:
    0 10px 28px -12px rgba(10, 12, 24, 0.08),
    0 0 0 1px rgba(10, 12, 24, 0.05),
    0 0 28px -16px rgba(103, 196, 242, 0.08);
}
html[data-surface="light"] .mockup-strip__card:hover {
  border-color: rgba(38, 64, 212, 0.22);
  box-shadow:
    0 16px 36px -14px rgba(10, 12, 24, 0.10),
    0 0 0 1px rgba(38, 64, 212, 0.10),
    0 0 40px -10px rgba(103, 196, 242, 0.14);
}

html[data-surface="light"] .flow-ribbon-wrap--minimal {
  border-top-color: rgba(38, 64, 212, 0.12);
  border-bottom-color: rgba(157, 125, 255, 0.12);
  background: linear-gradient(90deg, rgba(48, 71, 219, 0.04), transparent 38%, transparent 62%, rgba(90, 242, 168, 0.04));
  box-shadow:
    0 0 28px -14px rgba(103, 196, 242, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

html[data-surface="light"] .hero-status-pill {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(10, 12, 24, 0.05),
    0 0 28px -10px rgba(103, 196, 242, 0.12);
}

html[data-surface="light"] .product-index__link--active {
  box-shadow:
    inset 0 0 64px -24px rgba(103, 196, 242, 0.08),
    inset 0 0 40px -12px rgba(157, 125, 255, 0.05),
    inset 0 -1px 0 0 rgba(38, 64, 212, 0.18),
    0 0 28px -18px rgba(90, 242, 168, 0.06);
}

html[data-surface="light"] nav[data-scrolled="true"] {
  box-shadow: var(--shadow-nav-scrolled);
}

html[data-surface="light"] .site-footer {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 -16px 40px -20px rgba(10, 12, 24, 0.06),
    0 0 40px -24px rgba(103, 196, 242, 0.08);
}

html[data-surface="light"] .cta-chrome {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 -20px 48px -28px rgba(10, 12, 24, 0.05),
    0 0 48px -26px rgba(157, 125, 255, 0.06);
}

html[data-surface="light"] .cta-vignette {
  background: radial-gradient(ellipse 62% 44% at 50% 48%, transparent 28%, rgba(238, 240, 246, 0.5) 68%, rgba(230, 233, 242, 0.88) 100%);
}

html[data-surface="light"] .team-photo-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 34%, rgba(10, 12, 24, 0.48) 100%);
}

html[data-surface="light"] .site-footer__mega {
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.78), rgba(10, 12, 24, 0.32));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-surface="light"] ::-webkit-scrollbar-thumb {
  background: rgba(10, 12, 24, 0.12);
}
html[data-surface="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(10, 12, 24, 0.22);
}

html[data-surface="light"] .surface-glow {
  box-shadow: var(--shadow-card);
}

/* Vignettes & footer mega wordmark — shared classes (dark defaults, light tuned above) */
.hero-mesh-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, transparent 0%, rgba(0, 0, 0, 0.72) 80%);
}

.cta-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, transparent, rgba(0, 0, 0, 0.6) 80%);
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.85) 100%);
}

.site-footer__mega {
  margin: 0;
  line-height: 0.9;
  letter-spacing: -0.058em;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

html[dir="rtl"] .rail-grid {
  direction: rtl;
}
@media (max-width: 900px) {
  html[dir="rtl"] .rail-grid {
    direction: ltr;
  }
}

html[dir="rtl"] .manifesto-section .rail-grid .manifesto-section__index {
  justify-self: start;
  text-align: left;
}
@media (max-width: 900px) {
  html[dir="rtl"] .manifesto-section .rail-grid .manifesto-section__index {
    justify-self: start;
    text-align: left;
  }
}

/* ===========================================================
   Base
   =========================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  overflow-x: clip;
  max-width: 100%;
}

#root {
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}

/* Arabic locale: modern local sans; relax Geist-specific OpenType tweaks */
html:lang(ar) {
  --font-sans: var(--font-sans-ar);
}

body {
  background:
    radial-gradient(ellipse 90% 50% at 10% -15%, rgba(48, 71, 219, 0.26), transparent 48%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(103, 196, 242, 0.14), transparent 46%),
    radial-gradient(ellipse 55% 38% at 50% 105%, rgba(157, 125, 255, 0.12), transparent 48%),
    radial-gradient(ellipse 45% 30% at 72% 40%, rgba(90, 242, 168, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 88% 72%, rgba(232, 121, 249, 0.05), transparent 45%),
    var(--bg);
  color: var(--t-hi);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on, "ss03" on;
  overflow-x: hidden;
}

html:lang(ar) body {
  letter-spacing: 0;
  font-feature-settings: "kern" 1;
}

:focus-visible {
  outline: 2px solid rgba(138, 214, 255, 0.75);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(48, 71, 219, 0.28), 0 0 28px rgba(157, 125, 255, 0.22);
}

::selection {
  background: linear-gradient(120deg, rgba(103, 196, 242, 0.45), rgba(157, 125, 255, 0.38));
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===========================================================
   Layout primitives → Tailwind (@layer components in tailwind-built.css)
   Build: npm install && npm run build:css
   =========================================================== */

/* Hairline divider */
.hr {
  height: 1px; border: none; margin: 0;
  background: var(--line-1);
}

/* Tape — full-bleed hairline with side ticks */
.tape {
  position: relative;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(
    90deg,
    rgba(48, 71, 219, 0.07) 0%,
    rgba(103, 196, 242, 0.06) 28%,
    rgba(157, 125, 255, 0.06) 52%,
    rgba(90, 242, 168, 0.05) 78%,
    rgba(251, 113, 133, 0.04) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(103, 196, 242, 0.07),
    0 0 56px -22px rgba(103, 196, 242, 0.08),
    0 0 48px -24px rgba(157, 125, 255, 0.06);
}

/* ===========================================================
   Type utilities
   =========================================================== */
.t-mega    { font-size: var(--t-mega);    line-height: 0.88; letter-spacing: -0.055em; font-weight: 500; }
.t-jumbo   { font-size: var(--t-jumbo);   line-height: 0.92; letter-spacing: -0.052em; font-weight: 500; }
.t-display { font-size: var(--t-display); line-height: 0.96; letter-spacing: -0.042em; font-weight: 500; }
.t-h1      { font-size: var(--t-h1);      line-height: 1.02; letter-spacing: -0.034em; font-weight: 500; }
.t-h2      { font-size: var(--t-h2);      line-height: 1.06; letter-spacing: -0.026em; font-weight: 500; }
.t-h3      { font-size: var(--t-h3);      line-height: 1.18; letter-spacing: -0.020em; font-weight: 500; }
.t-h4      { font-size: var(--t-h4);      line-height: 1.32; letter-spacing: -0.014em; font-weight: 500; }
.t-lg      { font-size: var(--t-lg);      line-height: 1.55; font-weight: 400; }
.t-md      { font-size: var(--t-md);      line-height: 1.62; font-weight: 400; }
.t-sm      { font-size: var(--t-sm);      line-height: 1.55; font-weight: 400; }
.t-xs      { font-size: var(--t-xs);      line-height: 1.5;  font-weight: 400; }

.t-mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01" on, "ss02" on;
}
.t-serif       { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.012em; }
.t-serif-it    { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.014em; }

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-blue-400);
  font-weight: 400;
  text-shadow: 0 0 32px rgba(85, 114, 240, 0.28);
}

.t-muted { color: var(--t-md); }
.t-dim   { color: var(--t-lo); }

/* Serif italic accent inside sans headlines */
.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--c-blue-500);
  text-shadow: 0 0 40px rgba(48, 71, 219, 0.22);
}
.serif-em--primary {
  color: var(--c-blue-500);
  text-shadow: 0 0 40px rgba(48, 71, 219, 0.32);
}
.serif-em-dim {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: rgba(196, 176, 255, 0.72);
  text-shadow: 0 0 36px rgba(157, 125, 255, 0.22);
}

/* Instrument Serif has no Arabic; use Cairo for editorial spans */
html:lang(ar) .serif-em,
html:lang(ar) .serif-em-dim {
  font-family: var(--font-sans-ar);
  font-style: normal;
  letter-spacing: 0;
}
html:lang(ar) .serif-em {
  font-weight: 600;
}
html:lang(ar) .serif-em-dim {
  font-weight: 500;
}
html:lang(ar) .t-serif,
html:lang(ar) .t-serif-it {
  font-family: var(--font-sans-ar);
  font-style: normal;
  letter-spacing: 0;
}
html:lang(ar) .manifesto-pull {
  font-family: var(--font-sans-ar);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}
html:lang(ar) .manifesto-lead {
  letter-spacing: -0.015em;
}
html:lang(ar) .t-mega,
html:lang(ar) .t-jumbo,
html:lang(ar) .t-display,
html:lang(ar) .t-h1,
html:lang(ar) .t-h2,
html:lang(ar) .t-h3,
html:lang(ar) .t-h4 {
  letter-spacing: -0.02em;
}

/* ===========================================================
   Reveal
   =========================================================== */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================================================
   Inner pages — proof strip, catalog, product detail
   =========================================================== */
.proof-strip {
  border-bottom: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(48, 71, 219, 0.08) 0%, transparent 55%),
    linear-gradient(90deg, rgba(103, 196, 242, 0.04) 0%, rgba(157, 125, 255, 0.05) 50%, rgba(90, 242, 168, 0.04) 100%),
    var(--bg-1);
  padding: var(--s-5) 0;
  box-shadow:
    inset 0 -1px 0 rgba(103, 196, 242, 0.06),
    0 20px 48px -28px rgba(0, 0, 0, 0.55),
    0 0 56px -24px rgba(103, 196, 242, 0.07),
    0 0 48px -26px rgba(157, 125, 255, 0.06);
}
.proof-strip__cell:nth-child(4n + 1) { color: var(--t-hi); }
.proof-strip__cell:nth-child(4n + 2) .proof-strip__k { color: rgba(138, 214, 255, 0.85); }
.proof-strip__cell:nth-child(4n + 3) .proof-strip__k { color: rgba(196, 176, 255, 0.88); }
.proof-strip__cell:nth-child(4n) .proof-strip__k { color: rgba(90, 242, 168, 0.85); }
.proof-strip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-6) var(--s-8);
}
.proof-strip__cell { min-width: 0; }
.proof-strip__k {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--t-dim);
  margin-bottom: 6px;
}
.proof-strip__v {
  color: var(--t-md);
  line-height: 1.45;
}

.catalog-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  min-width: 520px;
}
.catalog-compare th,
.catalog-compare td {
  border: 1px solid var(--line-2);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.catalog-compare thead th {
  color: var(--t-lo);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(103, 196, 242, 0.06);
}

@media (max-width: 900px) {
  .detail-split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

.catalog-card {
  box-shadow: var(--shadow-card);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 320ms var(--ease-out);
}

.catalog-card:hover {
  border-color: rgba(138, 214, 255, 0.35) !important;
  background: linear-gradient(165deg, rgba(103, 196, 242, 0.08), rgba(157, 125, 255, 0.04), transparent 70%) !important;
  box-shadow: var(--shadow-card-hover);
}

.surface-glow {
  box-shadow: var(--shadow-card);
}

/* Pre-footer CTA band */
.cta-chrome {
  box-shadow:
    inset 0 1px 0 rgba(103, 196, 242, 0.08),
    0 -36px 72px -32px rgba(0, 0, 0, 0.55),
    0 0 72px -28px rgba(157, 125, 255, 0.09),
    0 0 56px -30px rgba(103, 196, 242, 0.07);
}

/* ===========================================================
   Hero aurora + marketing ribbons + mockup strip
   =========================================================== */
.hero-aurora {
  position: absolute;
  inset: -30% -20% 10%;
  background:
    conic-gradient(from 200deg at 50% 45%,
      rgba(48, 71, 219, 0.28),
      rgba(103, 196, 242, 0.2),
      rgba(157, 125, 255, 0.22),
      rgba(232, 121, 249, 0.14),
      rgba(90, 242, 168, 0.16),
      rgba(251, 113, 133, 0.11),
      rgba(45, 212, 191, 0.08),
      rgba(48, 71, 219, 0.24));
  filter: blur(80px);
  opacity: 0.68;
  animation: hero-aurora-spin 28s linear infinite;
  pointer-events: none;
}

@keyframes hero-aurora-spin {
  to { transform: rotate(360deg); }
}

.flow-ribbon__path {
  stroke-dasharray: 12 18;
  animation: flow-ribbon-dash 14s linear infinite;
}
.flow-ribbon__path--delay {
  animation-duration: 20s;
  animation-direction: reverse;
  opacity: 0.85;
}

.flow-ribbon-wrap--minimal {
  border-top: 1px solid rgba(103, 196, 242, 0.22);
  border-bottom: 1px solid rgba(157, 125, 255, 0.18);
  padding: 4px 0 8px;
  background: linear-gradient(90deg, rgba(48, 71, 219, 0.05), transparent 35%, transparent 65%, rgba(90, 242, 168, 0.05));
  box-shadow:
    0 0 40px -18px rgba(103, 196, 242, 0.1),
    0 0 36px -20px rgba(157, 125, 255, 0.08),
    inset 0 1px 0 rgba(138, 214, 255, 0.05);
}

@keyframes flow-ribbon-dash {
  to { stroke-dashoffset: -360; }
}

.stacked-wires-dash {
  animation: stacked-wires-dash 12s linear infinite;
}

@keyframes stacked-wires-dash {
  to { stroke-dashoffset: -80; }
}

.mockup-strip__card {
  transition: transform 280ms var(--ease-out), border-color 200ms var(--ease), box-shadow 320ms var(--ease-out);
  box-shadow:
    0 24px 48px -28px rgba(0, 0, 0, 0.65),
    0 0 44px -22px rgba(103, 196, 242, 0.08),
    0 0 36px -22px rgba(157, 125, 255, 0.06),
    0 0 28px -20px rgba(90, 242, 168, 0.04);
}
.mockup-strip__card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 214, 255, 0.45);
  box-shadow:
    0 28px 56px -32px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(157, 125, 255, 0.14),
    0 0 52px -10px rgba(103, 196, 242, 0.2),
    0 0 40px -12px rgba(157, 125, 255, 0.14),
    0 0 36px -14px rgba(90, 242, 168, 0.1),
    0 0 32px -16px rgba(232, 121, 249, 0.06);
}
.mockup-strip__img {
  transition: transform 500ms var(--ease-out);
}
.mockup-strip__card:hover .mockup-strip__img {
  transform: scale(1.03);
}

@media (max-width: 1100px) {
  .mockup-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .mockup-strip-grid {
    grid-template-columns: 1fr !important;
  }
}

/* English / screenshot UI: stay LTR when document is RTL (Arabic locale) */
.ltr-mock {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Hero floating card stack — always dark UI on card chrome */
.floating-card {
  color-scheme: dark;
  --t-hi: #ffffff;
  --t-md: rgba(255, 255, 255, 0.72);
  --t-lo: rgba(255, 255, 255, 0.46);
  --t-dim: rgba(255, 255, 255, 0.28);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-3: rgba(255, 255, 255, 0.14);
  color: var(--t-md);
}

/* POS device mockup — always dark (SwitchIllustration, …) */
.pos-terminal {
  color-scheme: dark;
  --t-hi: #ffffff;
  --t-md: rgba(255, 255, 255, 0.72);
  --t-lo: rgba(255, 255, 255, 0.46);
  --t-dim: rgba(255, 255, 255, 0.28);
  --line-1: rgba(255, 255, 255, 0.05);
  --line-2: rgba(255, 255, 255, 0.09);
  --line-3: rgba(255, 255, 255, 0.14);
  --c-mint: #5af2a8;
  color: var(--t-md);
}

/* Product mockup chrome — always dark (SwitchViz, GatewayViz, …) */
.black-panel {
  color-scheme: dark;
  /* Scoped tokens: page light theme must not wash out mockup UI */
  --t-hi: #ffffff;
  --t-md: rgba(255, 255, 255, 0.72);
  --t-lo: rgba(255, 255, 255, 0.46);
  --t-dim: rgba(255, 255, 255, 0.28);
  --line-1: rgba(255, 255, 255, 0.05);
  --line-2: rgba(255, 255, 255, 0.09);
  --c-sky-500: #67c4f2;
  --c-sky-400: var(--c-blue-400);
  --c-sky-300: var(--c-blue-500);
  --c-mint: #5af2a8;
  --c-warn: #ffb84d;
  --c-coral: #ff7676;
  color: var(--t-md);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.004) 28%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, #14161c 0%, #0a0a0c 42%, #050506 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.82),
    0 0 52px -18px rgba(103, 196, 242, 0.09);
}
.black-panel__chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 16px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.black-panel__title {
  font-size: 11px;
  color: var(--t-md);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  justify-self: stretch;
  letter-spacing: 0.04em;
  opacity: 0.92;
}
.black-panel .chip--mockup {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.black-panel .chip--mockup.chip--success {
  color: var(--c-mint);
  border-color: rgba(90, 242, 168, 0.4);
  background: rgba(90, 242, 168, 0.12);
  box-shadow:
    0 0 24px -10px rgba(90, 242, 168, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.black-panel .chip--mockup.chip--success .dot {
  background: var(--c-mint);
  box-shadow: 0 0 8px rgba(90, 242, 168, 0.6);
}
.black-panel .chip--mockup.chip--info {
  color: var(--c-blue-400);
  border-color: rgba(85, 114, 240, 0.4);
  background: rgba(85, 114, 240, 0.12);
  box-shadow:
    0 0 22px -10px rgba(85, 114, 240, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.black-panel .chip--mockup.chip--warn {
  color: var(--c-warn);
  border-color: rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.1);
}
.black-panel__footer {
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(103, 196, 242, 0.04);
  border-top: 1px solid var(--line-2);
}
.viz-rule-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(10px, 2.5vw, 16px);
  row-gap: 4px;
  align-items: start;
  padding: 12px clamp(10px, 3vw, 14px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line-1);
  min-width: 0;
}
.viz-rule-row__idx {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 1px;
  font-size: 11px;
  color: var(--t-dim);
  width: 22px;
  flex-shrink: 0;
}
.viz-rule-row__cond {
  grid-column: 2;
  grid-row: 1;
  font-size: 12.5px;
  color: var(--t-md);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.35;
}
.viz-rule-row__cond-kw {
  color: var(--c-blue-400);
}
.viz-rule-row__act {
  grid-column: 2;
  grid-row: 2;
  font-size: 12.5px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.35;
}

/* ---------- Partners — infinite horizontal marquee ---------- */
.partners-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  animation: partners-marquee 52s linear infinite;
  will-change: transform;
}
.partners-carousel:hover .partners-carousel__track {
  animation-play-state: paused;
}
@keyframes partners-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-carousel__viewport {
  box-shadow:
    inset 0 0 52px -16px rgba(103, 196, 242, 0.07),
    0 0 56px -30px rgba(157, 125, 255, 0.06),
    0 0 40px -28px rgba(90, 242, 168, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .partners-carousel__track {
    animation: none !important;
  }
  .partners-carousel:hover .partners-carousel__track {
    animation-play-state: running;
  }
  .hero-aurora {
    animation: none;
    opacity: 0.35;
  }
  .flow-ribbon__path,
  .flow-ribbon__path--delay,
  .stacked-wires-dash {
    animation: none;
    stroke-dashoffset: 0;
  }
  .mockup-strip__card {
    box-shadow: 0 16px 32px -26px rgba(0, 0, 0, 0.68) !important;
  }
  .mockup-strip__card:hover {
    transform: none;
    box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.72) !important;
  }
  .mockup-strip__card:hover .mockup-strip__img {
    transform: none;
  }
}

/* ---------- Manifesto (#about) — editorial layout ---------- */
.manifesto-section {
  position: relative;
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 75% 60% at 12% 0%, rgba(48, 71, 219, 0.18), transparent 52%),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(103, 196, 242, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 42% at 55% 95%, rgba(157, 125, 255, 0.10), transparent 52%),
    radial-gradient(ellipse 40% 35% at 95% 70%, rgba(90, 242, 168, 0.07), transparent 50%);
}
.manifesto-section .rail-grid .manifesto-section__index {
  justify-self: end;
  align-self: start;
  text-align: right;
  max-width: 200px;
}
@media (max-width: 900px) {
  .manifesto-section .rail-grid .manifesto-section__index {
    justify-self: start;
    text-align: left;
    max-width: none;
  }
}

.manifesto-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: stretch;
}
.manifesto-hero__main {
  min-width: 0;
}
.manifesto-lead {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--t-hi);
  text-wrap: balance;
  max-width: 24ch;
}
.manifesto-pull {
  position: relative;
  margin: clamp(22px, 3.5vw, 36px) 0 0;
  padding-left: calc(clamp(18px, 2.5vw, 28px) + 6px);
  border-left: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.65rem, 2.85vw, 2.65rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--t-hi);
  text-wrap: pretty;
  max-width: 26ch;
}
.manifesto-pull::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #8ad6ff 0%, #9d7dff 42%, #5af2a8 100%);
  box-shadow: 0 0 20px rgba(103, 196, 242, 0.35);
}
.manifesto-pull-accent {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(115deg, #b6e7ff 0%, #8ad6ff 35%, #c4b0ff 65%, #5af2a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.manifesto-pull-rest {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.82em;
  letter-spacing: -0.02em;
  color: var(--t-md);
}
.manifesto-body {
  margin: clamp(20px, 2.5vw, 28px) 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--t-md);
  max-width: 52ch;
}
.manifesto-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 30px);
}
.manifesto-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-md);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.manifesto-pill:nth-child(3n + 1) {
  border-color: rgba(103, 196, 242, 0.35);
  color: var(--c-blue-500);
  background: rgba(103, 196, 242, 0.06);
  box-shadow: 0 0 28px -12px rgba(103, 196, 242, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.manifesto-pill:nth-child(3n + 2) {
  border-color: rgba(157, 125, 255, 0.38);
  color: var(--c-violet-400);
  background: rgba(157, 125, 255, 0.07);
  box-shadow: 0 0 28px -12px rgba(157, 125, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.manifesto-pill:nth-child(3n) {
  border-color: rgba(90, 242, 168, 0.35);
  color: rgba(180, 250, 220, 0.95);
  background: rgba(90, 242, 168, 0.06);
  box-shadow: 0 0 26px -12px rgba(90, 242, 168, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-surface="light"] .manifesto-pill {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line-3);
  color: var(--t-md);
  box-shadow:
    0 1px 2px rgba(10, 12, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-surface="light"] .manifesto-pill:nth-child(3n + 1) {
  border-color: rgba(48, 71, 219, 0.24);
  color: var(--c-blue-600);
  background: linear-gradient(145deg, rgba(234, 247, 255, 0.75), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 22px -10px rgba(48, 71, 219, 0.14);
}
html[data-surface="light"] .manifesto-pill:nth-child(3n + 2) {
  border-color: rgba(107, 79, 199, 0.28);
  color: #5c45a8;
  background: linear-gradient(145deg, rgba(243, 240, 255, 0.8), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 22px -10px rgba(157, 125, 255, 0.12);
}
html[data-surface="light"] .manifesto-pill:nth-child(3n) {
  border-color: rgba(10, 143, 87, 0.28);
  color: #0a8f57;
  background: linear-gradient(145deg, rgba(220, 252, 236, 0.65), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 20px -10px rgba(10, 143, 87, 0.1);
}

.manifesto-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(103, 196, 242, 0.24);
  border-radius: 20px;
  padding: 0;
  background:
    linear-gradient(
      165deg,
      rgba(103, 196, 242, 0.16) 0%,
      rgba(157, 125, 255, 0.08) 38%,
      rgba(3, 5, 8, 0.55) 72%,
      rgba(90, 242, 168, 0.06) 100%
    ),
    rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  box-shadow:
    0 40px 80px -48px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(157, 125, 255, 0.1),
    0 0 72px -24px rgba(103, 196, 242, 0.18),
    0 0 56px -20px rgba(232, 121, 249, 0.1),
    0 0 48px -22px rgba(90, 242, 168, 0.08);
}
.manifesto-aside--terminal {
  padding: 0;
  gap: clamp(14px, 2vw, 18px);
  justify-content: stretch;
  border: none;
  background: transparent;
  box-shadow: none;
}
.manifesto-aside--terminal::before,
.manifesto-aside--terminal::after {
  display: none;
}
html[data-surface="light"] .manifesto-aside--terminal {
  background: transparent;
  box-shadow: none;
}
.manifesto-aside__caption {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.58;
  color: var(--t-md);
  text-wrap: pretty;
}
.manifesto-aside__caption-label {
  font-family: var(--font-mono);
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-fuchsia-400);
}
html[data-surface="light"] .manifesto-aside__caption-label {
  color: #6b4fc7;
}
.manifesto-aside::before {
  content: "";
  position: absolute;
  top: -55%;
  right: -25%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(157, 125, 255, 0.2), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.manifesto-aside::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(90, 242, 168, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Mac window chrome (BlackPanel, ManifestoBootTerminal) */
.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 3px 2px 3px 0;
}
.mac-traffic-lights__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.28);
}

/* Manifesto boot terminal — macOS-style code window */
.manifesto-terminal {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: clamp(380px, 52vh, 520px);
  color-scheme: dark;
  --term-bg: #0b121e;
  --term-titlebar: #161b28;
  --term-fg: rgba(255, 255, 255, 0.88);
  --term-dim: rgba(255, 255, 255, 0.52);
  --term-sky: #5ccfe6;
  --term-mint: #5af78e;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--term-bg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 28px 72px -24px rgba(0, 0, 0, 0.75),
    0 0 80px -32px rgba(92, 207, 230, 0.12);
}
.manifesto-terminal__titlebar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 38px;
  padding-inline: clamp(20px, 3.2vw, 36px);
  background: var(--term-titlebar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.manifesto-terminal__screen {
  flex: 1;
  padding-block: clamp(28px, 3.5vw, 40px);
  padding-inline: clamp(28px, 4vw, 44px);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  color: var(--term-fg);
  background-color: var(--term-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
}
.manifesto-terminal__row {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}
.manifesto-terminal__row + .manifesto-terminal__row,
.manifesto-terminal__row + .manifesto-terminal__rule,
.manifesto-terminal__rule + .manifesto-terminal__row {
  margin-top: 0.42em;
}
.manifesto-terminal__row--prompt {
  margin-bottom: 0.55em;
  color: var(--term-fg);
}
.manifesto-terminal__user {
  color: var(--term-sky);
}
.manifesto-terminal__path {
  color: var(--term-fg);
}
.manifesto-terminal__cmd,
.manifesto-terminal__typed {
  color: var(--term-fg);
}
.manifesto-terminal__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-inline-start: 1px;
  vertical-align: -0.12em;
  background: var(--term-sky);
  box-shadow: 0 0 10px rgba(92, 207, 230, 0.55);
  animation: manifesto-terminal-cursor 1.05s step-end infinite;
}
@keyframes manifesto-terminal-cursor {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
.manifesto-terminal__row--dim {
  color: var(--term-dim);
}
.manifesto-terminal__row--sky {
  color: var(--term-sky);
}
.manifesto-terminal__row--mint {
  color: var(--term-mint);
}
.manifesto-terminal__row--script {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.45em;
  white-space: nowrap;
}
.manifesto-terminal__row--section {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.9em;
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  margin-top: 0.35em;
  margin-bottom: 0.1em;
  font-style: italic;
}
.manifesto-terminal__tag {
  flex-shrink: 0;
  color: var(--term-dim);
  font-weight: 500;
}
.manifesto-terminal__row--sky .manifesto-terminal__tag {
  color: rgba(92, 207, 230, 0.75);
}
.manifesto-terminal__name,
.manifesto-terminal__action {
  flex-shrink: 0;
  color: var(--term-fg);
  font-weight: 500;
}
.manifesto-terminal__row--echo {
  color: var(--term-sky);
  margin-top: 0.35em;
  margin-bottom: 0.15em;
  line-height: 1.5;
  white-space: pre-wrap;
}
.manifesto-terminal__leader {
  flex: 1 1 auto;
  min-width: 8px;
  height: 1px;
  align-self: center;
  margin-inline: 0.15em;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14) 0,
    rgba(255, 255, 255, 0.14) 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.85;
}
.manifesto-terminal__detail {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--term-dim);
}
.manifesto-terminal__row--sky .manifesto-terminal__detail,
.manifesto-terminal__row--mint .manifesto-terminal__detail {
  color: rgba(255, 255, 255, 0.55);
}
.manifesto-terminal__result {
  flex-shrink: 0;
  color: var(--term-mint);
  font-weight: 600;
  text-transform: lowercase;
}
.manifesto-terminal__row--sky .manifesto-terminal__result {
  color: var(--term-sky);
}
.manifesto-terminal__result--bright {
  color: var(--term-mint);
  text-transform: none;
}
.manifesto-terminal__ok {
  display: inline;
  font-weight: 600;
}
.manifesto-terminal__rule {
  border: none;
  height: 0;
  margin: 0.9em 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  background: none;
}
.manifesto-terminal__row--status {
  margin-top: 0.2em;
}
.manifesto-terminal__row--status .manifesto-terminal__tag {
  color: var(--term-mint);
}
.manifesto-terminal__row--status .manifesto-terminal__name {
  color: var(--term-fg);
}
html[data-surface="light"] .manifesto-terminal {
  border-color: rgba(48, 71, 219, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04) inset,
    0 24px 56px -28px rgba(48, 71, 219, 0.2),
    0 12px 32px -16px rgba(10, 12, 24, 0.12);
}
@media (max-width: 640px) {
  .manifesto-terminal__row--script {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 0.2em;
  }
  .manifesto-terminal__leader {
    display: none;
  }
  .manifesto-terminal__detail {
    flex: 1 1 100%;
    padding-inline-start: 2.8em;
  }
  .manifesto-terminal__name {
    flex: 1 1 auto;
  }
}
.manifesto-terminal__row--in,
.manifesto-terminal__rule--in {
  animation: manifesto-terminal-line-in 0.32s var(--ease-out) both;
}
@keyframes manifesto-terminal-line-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.manifesto-terminal__dots {
  display: inline-block;
  margin-inline-start: 0.15em;
  color: var(--term-dim);
  animation: manifesto-terminal-dots 1.2s steps(4, end) infinite;
}
@keyframes manifesto-terminal-dots {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto-terminal__cursor {
    animation: none;
    opacity: 0.85;
  }
  .manifesto-terminal__row--in,
  .manifesto-terminal__rule--in {
    animation: none;
  }
  .manifesto-terminal__dots {
    animation: none;
    opacity: 0.6;
  }
}

.manifesto-aside__viz,
.manifesto-aside__content {
  position: relative;
  z-index: 1;
}
.manifesto-aside__viz {
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 2.8vw, 28px) 0;
  border-bottom: 1px solid rgba(103, 196, 242, 0.14);
  background: linear-gradient(180deg, rgba(103, 196, 242, 0.08) 0%, transparent 100%);
}
.manifesto-stack-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(140px, 22vw, 200px);
}
.manifesto-stack-art__flow {
  stroke-dasharray: 6 10;
  animation: manifesto-stack-flow 5s linear infinite;
}
.manifesto-stack-art__flow--delay {
  animation-delay: -2.2s;
}
@keyframes manifesto-stack-flow {
  to { stroke-dashoffset: -32; }
}
.manifesto-aside__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 3vw, 30px);
}
.manifesto-aside__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.manifesto-aside__mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 14px rgba(90, 242, 168, 0.75);
}
.manifesto-aside__label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 121, 249, 0.38);
  background: rgba(232, 121, 249, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-fuchsia-400);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.manifesto-aside__text {
  margin: 0;
  flex: 1;
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.58;
  color: var(--t-hi);
  text-wrap: pretty;
  max-width: 42ch;
}
.manifesto-aside__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(20px, 2.8vw, 26px);
  padding-top: 0;
  border-top: none;
}
.manifesto-aside__stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px 13px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 280ms var(--ease), box-shadow 280ms var(--ease), transform 280ms var(--ease);
}
.manifesto-aside__stat:hover {
  transform: translateY(-1px);
}
.manifesto-aside__stat--blue {
  border-color: rgba(103, 196, 242, 0.28);
}
.manifesto-aside__stat--blue:hover {
  border-color: rgba(103, 196, 242, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 32px -12px rgba(103, 196, 242, 0.25);
}
.manifesto-aside__stat--violet {
  border-color: rgba(157, 125, 255, 0.28);
}
.manifesto-aside__stat--violet:hover {
  border-color: rgba(157, 125, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 32px -12px rgba(157, 125, 255, 0.22);
}
.manifesto-aside__stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.manifesto-aside__stat--blue .manifesto-aside__stat-icon {
  color: var(--c-blue-400);
  border-color: rgba(103, 196, 242, 0.35);
  background: linear-gradient(145deg, rgba(103, 196, 242, 0.2), rgba(48, 71, 219, 0.1));
  box-shadow: 0 0 24px -8px rgba(103, 196, 242, 0.35);
}
.manifesto-aside__stat--violet .manifesto-aside__stat-icon {
  color: var(--c-violet-400);
  border-color: rgba(157, 125, 255, 0.35);
  background: linear-gradient(145deg, rgba(157, 125, 255, 0.22), rgba(103, 196, 242, 0.08));
  box-shadow: 0 0 24px -8px rgba(157, 125, 255, 0.3);
}
.manifesto-aside__stat-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.manifesto-aside__stat-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--t-hi);
}
.manifesto-aside__stat-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-dim);
  line-height: 1.35;
}

html[data-surface="light"] .manifesto-aside {
  border-color: rgba(48, 71, 219, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(234, 247, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.98) 48%,
      rgba(243, 240, 255, 0.9) 100%
    );
  box-shadow:
    0 16px 48px -28px rgba(48, 71, 219, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(48, 71, 219, 0.06);
}
html[data-surface="light"] .manifesto-aside::before {
  background: radial-gradient(circle, rgba(157, 125, 255, 0.12), transparent 68%);
}
html[data-surface="light"] .manifesto-aside::after {
  background: radial-gradient(circle, rgba(90, 242, 168, 0.08), transparent 70%);
}
html[data-surface="light"] .manifesto-aside__label {
  border-color: rgba(107, 79, 199, 0.28);
  background: rgba(243, 240, 255, 0.9);
  color: #6b4fc7;
}
html[data-surface="light"] .manifesto-aside__text {
  color: var(--t-hi);
}
html[data-surface="light"] .manifesto-aside__viz {
  border-bottom-color: rgba(48, 71, 219, 0.1);
  background: linear-gradient(180deg, rgba(234, 247, 255, 0.65) 0%, transparent 100%);
}
html[data-surface="light"] .manifesto-stack-art .manifesto-stack-art__base-label,
html[data-surface="light"] .manifesto-stack-art text {
  fill: rgba(10, 12, 24, 0.45);
}
html[data-surface="light"] .manifesto-stack-art .manifesto-stack-art__top-label {
  fill: var(--c-blue-600);
}
html[data-surface="light"] .manifesto-aside__stat {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line-3);
  box-shadow:
    0 1px 2px rgba(10, 12, 24, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-surface="light"] .manifesto-aside__stat--blue {
  border-color: rgba(48, 71, 219, 0.2);
}
html[data-surface="light"] .manifesto-aside__stat--violet {
  border-color: rgba(107, 79, 199, 0.22);
}
html[data-surface="light"] .manifesto-aside__stat--blue .manifesto-aside__stat-icon {
  color: var(--c-blue-600);
  background: linear-gradient(145deg, rgba(234, 247, 255, 0.9), rgba(255, 255, 255, 0.95));
}
html[data-surface="light"] .manifesto-aside__stat--violet .manifesto-aside__stat-icon {
  color: #5c45a8;
  background: linear-gradient(145deg, rgba(243, 240, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.manifesto-ribbon-wrap {
  margin-top: clamp(40px, 5vw, 56px);
}
.manifesto-ribbon-wrap .flow-ribbon-wrap {
  margin-top: 0;
}

.manifesto-tri {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.manifesto-tri__cell {
  padding: 36px 28px 8px 0;
  border-right: 1px solid var(--line-2);
}
.manifesto-tri__cell:nth-child(1) {
  background: linear-gradient(180deg, rgba(48, 71, 219, 0.06) 0%, transparent 55%);
}
.manifesto-tri__cell:nth-child(2) {
  background: linear-gradient(180deg, rgba(103, 196, 242, 0.06) 0%, transparent 55%);
}
.manifesto-tri__cell:nth-child(3) {
  background: linear-gradient(180deg, rgba(157, 125, 255, 0.07) 0%, transparent 55%);
}
.manifesto-tri__cell:nth-child(n + 2) {
  padding-left: 28px;
}
.manifesto-tri__cell:last-child {
  border-right: none;
}
.manifesto-tri__copy {
  margin-top: 16px;
  color: var(--t-md);
  line-height: 1.58;
}

@media (max-width: 900px) {
  .manifesto-hero {
    grid-template-columns: 1fr;
  }
  .manifesto-aside {
    min-height: 0;
  }
  .manifesto-aside__stats {
    grid-template-columns: 1fr;
  }
  .manifesto-tri {
    grid-template-columns: 1fr;
  }
  .manifesto-tri__cell {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
    padding: 28px 0 8px;
  }
  .manifesto-tri__cell:nth-child(n + 2) {
    padding-left: 0;
  }
  .manifesto-tri__cell:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-stack-art__flow {
    animation: none;
  }
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  --py: 11px; --px: 18px;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: var(--py) var(--px);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
  user-select: none;
}
.btn-primary {
  background: var(--t-hi);
  color: var(--bg);
  box-shadow:
    0 6px 22px -6px rgba(255, 255, 255, 0.14),
    0 0 32px -12px rgba(103, 196, 242, 0.14),
    0 0 28px -14px rgba(157, 125, 255, 0.1);
}
.btn-primary:hover {
  background: linear-gradient(125deg, #b6e7ff 0%, #8ad6ff 26%, #c4b0ff 58%, #7ee8d0 88%, #5af2a8 100%);
  color: #030508;
  transform: translateY(-1px);
  box-shadow:
    0 14px 44px -12px rgba(103, 196, 242, 0.5),
    0 0 36px -10px rgba(157, 125, 255, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--t-hi);
  border-color: var(--line-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 24px -14px rgba(103, 196, 242, 0.06);
}
.btn-secondary:hover {
  background: linear-gradient(145deg, rgba(103, 196, 242, 0.08) 0%, rgba(157, 125, 255, 0.06) 55%, rgba(90, 242, 168, 0.05) 100%);
  border-color: rgba(138, 214, 255, 0.42);
  box-shadow: 0 0 28px -8px rgba(103, 196, 242, 0.12);
}
.btn-text {
  background: transparent;
  color: var(--t-hi);
  padding: 4px 0;
  border-radius: 0;
  position: relative;
}
.btn-text::after {
  content: ""; position: absolute; left: 0; right: 22px; bottom: 0;
  height: 1px; background: var(--line-3);
  transition: background 200ms var(--ease);
}
.btn-text:hover { color: var(--c-blue-500); text-shadow: 0 0 24px rgba(48, 71, 219, 0.28); }
.btn-text:hover::after { background: var(--c-blue-400); box-shadow: 0 0 12px rgba(85, 114, 240, 0.45); }

.btn-sm { --py: 7px; --px: 12px; font-size: 12.5px; }
.btn-lg { --py: 14px; --px: 22px; font-size: 14.5px; }

/* ===========================================================
   Chip
   =========================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.025);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--t-md);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    0 0 22px -8px rgba(103, 196, 242, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.chip .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-mint);
}

/* ---------- Wordmark — theme-aware wide logo ---------- */
.wordmark {
  line-height: 0;
}
.wordmark__img--on-light {
  display: none;
}
html[data-surface="light"] .wordmark__img--on-dark {
  display: none;
}
html[data-surface="light"] .wordmark__img--on-light {
  display: block;
}

/* ---------- Global chrome: nav, home product grid, footer ---------- */
nav[data-scrolled="true"] {
  box-shadow: var(--shadow-nav-scrolled);
}

.hero-status-pill {
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 36px -10px rgba(103, 196, 242, 0.15),
    0 0 28px -12px rgba(90, 242, 168, 0.1);
}

.product-index__link {
  transition: background 400ms var(--ease), box-shadow 400ms var(--ease);
}
.product-index__link--active {
  background: rgba(255, 255, 255, 0.025);
}
html[data-surface="light"] .product-index__link--active {
  background: rgba(0, 0, 0, 0.02);
}

.site-footer {
  box-shadow:
    inset 0 1px 0 rgba(103, 196, 242, 0.08),
    0 -28px 56px -30px rgba(0, 0, 0, 0.55),
    0 0 64px -28px rgba(157, 125, 255, 0.08),
    0 0 48px -28px rgba(103, 196, 242, 0.07);
}

/* ===========================================================
   Animations
   =========================================================== */
@keyframes float-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(103,196,242,0.32), 0 0 0 0 rgba(157,125,255,0.18); }
  100% { box-shadow: 0 0 0 12px rgba(103,196,242,0), 0 0 0 20px rgba(157,125,255,0); }
}
@keyframes dash { to { stroke-dashoffset: -1000; } }
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ===========================================================
   404 — not found
   =========================================================== */
.not-found {
  position: relative;
  overflow: hidden;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(64px, 10vw, 120px);
  min-height: min(78vh, 880px);
}

.not-found__glow {
  position: absolute;
  inset: -12% 8% auto;
  height: min(52vh, 520px);
  background:
    radial-gradient(ellipse 70% 55% at 18% 40%, rgba(48, 71, 219, 0.22), transparent 68%),
    radial-gradient(ellipse 55% 48% at 82% 28%, rgba(103, 196, 242, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 36% at 50% 88%, rgba(157, 125, 255, 0.1), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

.not-found__code {
  margin: clamp(12px, 2vw, 20px) 0 0;
  font-size: clamp(9rem, 32vw, 20rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  background: linear-gradient(
    168deg,
    rgba(138, 214, 255, 0.98) 0%,
    rgba(103, 196, 242, 0.92) 28%,
    rgba(157, 125, 255, 0.88) 62%,
    rgba(232, 121, 249, 0.72) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 80px rgba(103, 196, 242, 0.22);
  user-select: none;
}

html[data-surface="light"] .not-found__code {
  background: linear-gradient(
    168deg,
    rgba(48, 71, 219, 0.95) 0%,
    rgba(64, 96, 232, 0.9) 35%,
    rgba(103, 196, 242, 0.85) 70%,
    rgba(90, 120, 255, 0.78) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.not-found__title {
  margin-top: clamp(8px, 1.5vw, 16px);
}

.not-found__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .not-found__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

.not-found__panel {
  min-width: 0;
}

.not-found__trace {
  padding: 18px 20px 20px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.not-found__trace-line {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(138, 214, 255, 0.12);
}

.not-found__trace-line:last-of-type {
  border-bottom: none;
}

.not-found__trace-text {
  color: rgba(214, 232, 255, 0.82);
  word-break: break-word;
}

.not-found__trace-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 214, 255, 0.14);
}

.not-found__trace-result {
  color: var(--c-warn, #ffb84d);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.not-found__trace-cursor {
  width: 7px;
  height: 14px;
  background: rgba(103, 196, 242, 0.85);
  animation: manifesto-terminal-cursor 1.05s step-end infinite;
}

.not-found__suggest {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.not-found__suggest-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-lo);
  margin-bottom: 12px;
}

.not-found__suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.not-found__suggest-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--t-md);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}

.not-found__suggest-link:hover {
  border-color: rgba(103, 196, 242, 0.35);
  color: var(--t-hi);
  background: rgba(103, 196, 242, 0.06);
}

html[data-surface="light"] .not-found__suggest-link {
  background: rgba(15, 23, 42, 0.02);
}

html[data-surface="light"] .not-found__suggest-link:hover {
  background: rgba(48, 71, 219, 0.05);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary:hover {
    transform: none;
  }
  nav[data-scrolled="true"] {
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.55) !important;
  }
  .catalog-card,
  .catalog-card:hover {
    box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.7) !important;
  }
  .surface-glow {
    box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.7) !important;
  }
  .cta-chrome {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }
  .product-index__link--active {
    box-shadow: inset 0 0 48px -20px rgba(103, 196, 242, 0.06) !important;
  }
  .site-footer {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }
  .hero-status-pill {
    box-shadow: none !important;
  }
  .partners-carousel__viewport {
    box-shadow: none !important;
  }
  .btn-primary,
  .btn-primary:hover {
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45) !important;
  }
}
