/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("/assets/fonts/noto-naskh-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.86);
  --surface: #F4F7FB;
  --card: #FFFFFF;
  --ink: #0A2540;
  --muted: #4E5D78;
  --border: #E1E7F0;
  --border-strong: #C3CEDD;
  --accent: #1F6FEB;
  --accent-hover: #1A5FCC;
  --accent-text: #1A5FCC;
  --accent-soft: #E6F0FE;
  --on-accent: #FFFFFF;
  --hi: #3CC8F4;
  --line: #D3DCE8;
  --line-strong: #B5C3D6;
  --shadow: rgba(10, 37, 64, 0.18);
  --band: #0A2540;
  --band-ink: #F3F6FB;
  --band-muted: #B4C1D6;
  --band-card: #0F2E50;
  --band-border: #1D3D63;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar-sans: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-ar-serif: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06152A;
    --header-bg: rgba(6, 21, 42, 0.86);
    --surface: #0B1D38;
    --card: #0D2140;
    --ink: #E8EEF7;
    --muted: #9AA9C2;
    --border: #1A3052;
    --border-strong: #2B4570;
    --accent: #5B9BFF;
    --accent-hover: #7DB0FF;
    --accent-text: #7DB0FF;
    --accent-soft: #13305C;
    --on-accent: #06152A;
    --line: #1C3458;
    --line-strong: #2E4C78;
    --shadow: rgba(0, 0, 0, 0.5);
    --band: #0D2140;
    --band-ink: #E8EEF7;
    --band-muted: #9AA9C2;
    --band-card: #122A4E;
    --band-border: #1F3A64;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #06152A;
  --header-bg: rgba(6, 21, 42, 0.86);
  --surface: #0B1D38;
  --card: #0D2140;
  --ink: #E8EEF7;
  --muted: #9AA9C2;
  --border: #1A3052;
  --border-strong: #2B4570;
  --accent: #5B9BFF;
  --accent-hover: #7DB0FF;
  --accent-text: #7DB0FF;
  --accent-soft: #13305C;
  --on-accent: #06152A;
  --line: #1C3458;
  --line-strong: #2E4C78;
  --shadow: rgba(0, 0, 0, 0.5);
  --band: #0D2140;
  --band-ink: #E8EEF7;
  --band-muted: #9AA9C2;
  --band-card: #122A4E;
  --band-border: #1F3A64;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.12; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.eyebrow {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 24px; border-radius: var(--radius); font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--border-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; font-weight: 500; color: var(--accent-text); text-decoration: none;
}
.text-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover svg { transform: translateX(2px); }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* ---------- Logo mark ---------- */
.mk-line { stroke: var(--accent); stroke-width: 2; fill: none; }
.mk-node { fill: var(--ink); }
.mk-hi { fill: var(--hi); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: var(--ink); }
.brand-name-sm { font-size: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.icon-close, .icon-sun { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-inner { display: flex; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.hero-copy { position: relative; z-index: 1; flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.05; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hi); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.credentials {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
}
.credentials li { display: flex; align-items: center; gap: 8px; }
.credentials svg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.network { width: 100%; max-width: 500px; height: auto; animation: drift 14s ease-in-out infinite; }
.net-line line { stroke: var(--line); stroke-width: 1.2; }
.net-path line { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.net-node circle { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.net-halo { fill: var(--accent-soft); }
.net-core { fill: var(--accent); }
.net-hi { fill: var(--hi); }
.net-ink { fill: var(--ink); }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-tight-top { padding-top: 0; }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; display: flex; flex-direction: column; }
.section-head h2 + .lead { margin-top: 16px; font-size: 18px; }
.stack-md { display: flex; flex-direction: column; gap: 40px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }

.card { padding: 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }

/* About */
.split { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.split-head { flex: 1 1 300px; min-width: 0; }
.split-body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-lead { font-size: 21px; line-height: 1.6; }
.split-body .muted { font-size: 17px; }

/* Ripli */
.product { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.product-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.product-copy .eyebrow { margin-bottom: -12px; }
.product-title { display: flex; align-items: center; gap: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.features .card { display: flex; flex-direction: column; gap: 10px; }
.features svg { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features p { font-size: 15px; color: var(--muted); }

.logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border-strong); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.logo-placeholder-sq { width: 52px; height: 52px; border-radius: 14px; }
.logo-placeholder-wide { width: 120px; height: 44px; border-radius: 8px; }

.product-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 400px; padding: 20px;
  border-radius: 24px; background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 48px -24px var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.mock-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.mock-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.mock-id { flex: 1; display: flex; flex-direction: column; line-height: 1.4; }
.mock-id strong { font-size: 14px; }
.mock-id small { font-size: 12px; color: var(--muted); }
.mock .tag { font-size: 12px; padding: 4px 10px; }
.bubble { max-width: 80%; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.bubble-in { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: var(--surface); }
.bubble-out { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--accent); color: var(--on-accent); }
.mock-meta { align-self: flex-end; margin-top: -6px; font-size: 11px; color: var(--muted); }
.mock-chart { margin-top: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.mock-chart-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.bars i { flex: 1; border-radius: 4px; background: var(--line-strong); }
.bars .bar-accent { background: var(--accent); }
.bars .bar-hi { background: var(--hi); }

/* Trust: Meta Tech Provider */
.trust { position: relative; overflow: hidden; padding: 128px 0 112px; background: #071A33; color: #F3F6FB; }
.trust-glow { position: absolute; width: 60%; height: 90%; pointer-events: none; }
.trust-glow-a { inset-inline-start: -10%; top: -20%; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0)); }
.trust-glow-b { inset-inline-end: -12%; top: 10%; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.38), rgba(139, 92, 246, 0)); }
.trust-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 56px; }
.trust-head { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 780px; text-align: center; }
.trust-pill {
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(90deg, #2563EB, #7C3AED); color: #FFFFFF;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.trust h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; color: #FFFFFF; }
.trust-gradient { background: linear-gradient(90deg, #7DB0FF, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-lead { max-width: 40em; font-size: 18px; line-height: 1.65; color: #B4C1D6; }
.trust-cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding-block: 7px; padding-inline: 22px 7px; border-radius: 999px;
  background: #FFFFFF; color: #0A2540; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform 150ms ease;
}
.trust-cta:hover { transform: translateY(-1px); }
.trust-cta-icon { width: 38px; height: 38px; border-radius: 50%; background: #0A2540; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.trust-cta svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.trust :focus-visible { outline-color: #7DB0FF; }

.seal {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 26px 40px; border-radius: 22px; background: #FFFFFF; color: #0A2540;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.seal-text { display: flex; flex-direction: column; line-height: 1.35; }
.seal-name { font-family: var(--font-serif); font-weight: 600; font-size: 24px; }
.seal-label { font-size: 15px; font-weight: 500; color: #4E5D78; }
.seal-check {
  position: absolute; inset-inline-end: -16px; top: -16px; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #7C3AED); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #071A33;
}
.seal-check svg { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.float-tile {
  position: absolute; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: float 9s ease-in-out infinite;
}
.float-tile svg { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.float-tile-a { inset-inline-start: 32px; top: 120px; width: 112px; height: 112px; border-radius: 28px; --r: -10deg; }
.float-tile-a svg { stroke: #7DB0FF; }
.float-tile-b { inset-inline-end: 40px; top: 210px; width: 120px; height: 120px; border-radius: 30px; --r: 9deg; animation-delay: -3s; }
.float-tile-b svg { stroke: #C4B5FD; }
.float-tile-c { inset-inline-start: 150px; top: 330px; width: 64px; height: 64px; border-radius: 18px; --r: 8deg; animation-delay: -6s; }
.float-tile-c svg { stroke: #3CC8F4; stroke-width: 1.8; }
@keyframes float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-10px); }
}

.trust-points {
  width: 100%; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
}
.trust-points li { display: flex; gap: 14px; align-items: flex-start; }
.trust-points strong { display: block; font-size: 16px; color: #FFFFFF; }
.trust-points li > span:last-child > span { font-size: 14px; color: #B4C1D6; }
.tp-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tp-icon svg { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp-blue { background: rgba(91, 155, 255, 0.16); } .tp-blue svg { stroke: #7DB0FF; }
.tp-violet { background: rgba(167, 139, 250, 0.16); } .tp-violet svg { stroke: #C4B5FD; }
.tp-cyan { background: rgba(60, 200, 244, 0.16); } .tp-cyan svg { stroke: #3CC8F4; }
.tp-green { background: rgba(52, 211, 153, 0.16); } .tp-green svg { stroke: #6EE7B7; }

.policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; font-size: 15px; font-weight: 500; }
.policy-links a { min-height: 44px; display: inline-flex; align-items: center; color: #E8EEF7; text-underline-offset: 4px; }
.policy-links a:hover { color: #3CC8F4; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.partner { padding: 28px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 18px; }
.partner h3 { font-size: 21px; margin-bottom: 4px; }
.partner .muted { font-size: 15px; }
.partner-logo { height: 40px; width: auto; }
.partner-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.partner-cta { border: 1.5px dashed var(--border-strong); justify-content: center; gap: 10px; }
.partner-cta h3 { font-size: 19px; margin: 0; }

/* Contact */
.contact-panel {
  padding: 48px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px;
}
.contact-head { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-head .eyebrow { margin-bottom: 0; }
.contact-head h2 { font-size: clamp(30px, 3.6vw, 40px); }
.contact-head .btn { align-self: flex-start; margin-top: 8px; }
.facts { flex: 1 1 380px; min-width: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent-text); text-decoration: none; }
.facts dd a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-tagline { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { font-size: 13px; color: var(--muted); }
.footer-legal a { color: inherit; text-underline-offset: 3px; }
.footer-fine { max-width: 760px; font-size: 12px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .network { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .text-link svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms ease, transform 200ms ease; }
  .nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--border); }
  .nav-cta { display: inline-flex; margin-top: 16px; height: 52px; }

  .hero-inner { padding-top: 72px; padding-bottom: 72px; }
  .hero-art { position: absolute; inset-inline-end: -140px; top: -20px; width: 460px; opacity: 0.45; pointer-events: none; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  :root { --header-h: 64px; }
  .brand-name { font-size: 19px; }
  .header-cta { display: none; }

  .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  .hero-copy { gap: 20px; }
  .hero-art { inset-inline-end: -170px; top: -60px; width: 380px; }
  .pill { font-size: 12px; }
  .lead { font-size: 17px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .credentials { flex-direction: column; gap: 10px; }

  .section { padding: 72px 0; }
  .section-tight-top { padding-top: 0; }
  .about-lead { font-size: 18px; }
  .stack-lg { gap: 32px; }
  .partner { padding: 22px; }
  .contact-panel { padding: 28px 20px; border-radius: 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 960px) {
  .nav, .nav.is-open { transition: none; }
}

/* ---------- Language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; width: auto; padding: 0 10px; gap: 6px; font-size: 14px; font-weight: 600; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-chev { transition: transform 150ms ease; }
.lang-menu[open] .lang-chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px;
  padding: 6px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -16px var(--shadow);
}
.lang-list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.lang-list a:hover { background: var(--surface); }
.lang-list a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.lang-list a[lang="ar"] { font-family: var(--font-ar-sans); }

/* ---------- Partner logo in dark mode ---------- */
:root[data-theme="dark"] .partner-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .partner-logo { filter: brightness(0) invert(1); }
}

/* ---------- Right-to-left and Arabic ---------- */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
[dir="rtl"] .network { transform: scaleX(-1); animation-name: drift-rtl; }
@keyframes drift-rtl {
  0%, 100% { transform: scaleX(-1) translate(0, 0); }
  50% { transform: scaleX(-1) translate(6px, -8px); }
}
[dir="rtl"] .text-link:hover svg.flip-rtl { transform: scaleX(-1) translateX(2px); }
.ltr-inline { unicode-bidi: isolate; }

:root[lang="ar"] body { font-family: var(--font-ar-sans); font-size: 17px; line-height: 1.8; }
:root[lang="ar"] h1, :root[lang="ar"] h2 { font-family: var(--font-ar-serif); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
:root[lang="ar"] .hero h1 { line-height: 1.3; }
:root[lang="ar"] .eyebrow, :root[lang="ar"] .trust-pill { letter-spacing: 0; text-transform: none; font-size: 14px; }
:root[lang="ar"] .lead, :root[lang="ar"] .trust-lead { line-height: 1.85; }
:root[lang="ar"] .brand-name, :root[lang="ar"] .seal-name, :root[lang="ar"] #ripli-title { font-family: var(--font-serif); font-weight: 600; }

/* Russian runs longer: give headings a little more room */
:root[lang="ru"] .trust h2 { font-size: clamp(34px, 4.6vw, 60px); }
:root[lang="ru"] .nav { gap: 22px; }

@media (max-width: 1100px) {
  .float-tile { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .float-tile, [dir="rtl"] .network { animation: none; }
  .trust-cta, .lang-chev { transition: none; }
}
@media (max-width: 640px) {
  .trust { padding: 80px 0 72px; }
  .trust-inner { gap: 40px; }
  .seal { padding: 20px 26px; }
  .seal-name { font-size: 20px; }
  .trust-lead { font-size: 16px; }
  .lang-menu summary .lang-chev { display: none; }
}
