/* ===== Font: IBM Plex Sans Arabic (self-hosted, SIL OFL - see assets/fonts/OFL-LICENSE.txt) ===== */
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); 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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Tokens ===== */
:root {
  --blue: #0A6CFF;
  --blue-deep: #0340C8;
  --cyan: #00B8F0;
  --navy: #0B1B4D;

  --bg: #F6F8FC;
  --bg-alt: #EDF2FB;
  --surface: #FFFFFF;
  --text: #0B1B4D;
  --text-muted: #4A5878;
  --border: #DCE4F2;
  --shadow: 0 10px 30px rgba(11, 27, 77, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 77, 0.14);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;

  --font-ar: "Plex Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif;
  --font-latin: "Plex Arabic", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font: var(--font-ar);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070D1F;
    --bg-alt: #0B1430;
    --surface: #101B3A;
    --text: #EAF0FF;
    --text-muted: #A6B3D3;
    --border: #1F2C55;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

html[lang="en"] { --font: var(--font-latin); }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ===== Background ===== */
.bg-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 18s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: #6FB2FF; top: -160px; inset-inline-end: -120px; }
.blob-2 { width: 420px; height: 420px; background: #7BE3FF; bottom: -140px; inset-inline-start: -120px; animation-delay: -6s; }
.blob-3 { width: 320px; height: 320px; background: #8C9CFF; top: 40%; inset-inline-start: 40%; opacity: .25; animation-delay: -12s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10,108,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(10,108,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 70%);
}
@media (prefers-color-scheme: dark) {
  .blob { opacity: .22; }
  .blob-3 { opacity: .14; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.06); }
  66% { transform: translate(-30px, 20px) scale(.96); }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(11,27,77,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; font-family: var(--font-latin); white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.m-main { stroke: var(--blue); }
.m-shade { stroke: var(--blue-deep); }
.main-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.main-nav a {
  position: relative; padding: 8px 12px; border-radius: 10px; color: var(--text-muted); font-weight: 500; font-size: 15px;
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: color-mix(in srgb, var(--blue) 9%, transparent); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.brand + .header-tools { margin-inline-start: auto; }
/* Language menu */
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent); }
.lang-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .chev { width: 16px; height: 16px; stroke: var(--text-muted); transition: transform .25s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 15px; cursor: pointer; outline: none; transition: background .15s, color .15s;
}
.lang-option:hover, .lang-option:focus-visible, .lang-option.kb-focus { background: color-mix(in srgb, var(--blue) 9%, transparent); }
.lang-option .lang-name { flex: 1; white-space: nowrap; }
.lang-option .lang-code {
  font-family: var(--font-latin); font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 6px; background: var(--bg-alt); color: var(--text-muted);
}
.lang-option .check { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.lang-option[aria-selected="true"] { color: var(--blue); font-weight: 700; }
.lang-option[aria-selected="true"] .check { opacity: 1; }
.lang-option[aria-selected="true"] .lang-code { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 10px 24px rgba(10,108,255,.35); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(10,108,255,.45); }
.btn-ghost { border: 1.5px solid var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ===== Hero ===== */
.hero { position: relative; padding: 72px 0 96px; min-height: calc(100vh - 72px); display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface)); color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent);
}
.hero-title { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; margin: 18px 0 18px; letter-spacing: -.5px; }
html[lang="ar"] .hero-title { letter-spacing: 0; }
.hero-title span { display: block; }
.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue-deep), var(--blue));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
.hero-lead { font-size: 19px; color: var(--text-muted); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.logo-stage { position: relative; width: min(340px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-logo { width: 72%; animation: bob 6s ease-in-out 2.4s infinite; filter: drop-shadow(0 20px 40px rgba(10,108,255,.35)); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--blue) 35%, transparent); animation: spin 40s linear infinite; }
.ring-2 { inset: 12%; border-style: solid; border-color: color-mix(in srgb, var(--cyan) 25%, transparent); animation-duration: 26s; animation-direction: reverse; }
.ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.ring-2::after { background: var(--blue); box-shadow: 0 0 16px var(--blue); top: auto; bottom: -6px; }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.65,0,.35,1) forwards; }
.d1 { animation-delay: .2s; }
.d2 { animation-delay: .9s; animation-duration: .6s; }
.d3 { animation-delay: 1.1s; }
.d4 { animation-delay: 1.8s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Floating feature chips around the logo */
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both, bob 6s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-1 { top: 8%; inset-inline-start: -6%; animation-delay: 1.9s, 2.6s; }
.chip-1 svg { stroke: #0A6CFF; }
.chip-2 { top: 46%; inset-inline-end: -10%; animation-delay: 2.1s, 3.4s; }
.chip-2 svg { stroke: #E11D48; }
.chip-3 { bottom: 6%; inset-inline-start: 2%; animation-delay: 2.3s, 4.2s; }
.chip-3 svg { stroke: #16A34A; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Sections ===== */
.section { padding: 96px 0; position: relative; }
.section-alt { background: color-mix(in srgb, var(--bg-alt) 75%, transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.kicker { display: inline-block; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: 15px; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.section-lead { color: var(--text-muted); font-size: 18px; }

/* Idea */
.idea-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.idea-grid p { color: var(--text-muted); font-size: 18px; }
.quote-card {
  margin: 0; position: relative; padding: 36px 32px 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.quote-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.quote-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 7%, transparent); inset-inline-end: -70px; bottom: -90px; }
.quote-card > * { position: relative; z-index: 1; }
.quote-icon { width: 40px; height: 40px; fill: color-mix(in srgb, var(--blue) 30%, transparent); margin-bottom: 8px; }
.quote-card blockquote { margin: 0; }
.quote-ar { font-family: var(--font-ar); font-size: 27px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; color: var(--text); }
.quote-tr { font-size: 16px; color: var(--text-muted); }
.quote-tr:empty { display: none; }
.quote-card figcaption { font-size: 14px; color: var(--blue); font-weight: 500; margin-top: 10px; }

/* Principles */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue) 40%, var(--border)); }
.p-card h3 { font-size: 20px; margin-top: 16px; }
.p-card p { color: var(--text-muted); margin: 0; font-size: 16px; }
.p-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, transparent), color-mix(in srgb, var(--cyan) 16%, transparent));
  transition: transform .4s;
}
.p-card:hover .p-icon { transform: rotate(-8deg) scale(1.08); }
.p-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 380px)); justify-content: center; gap: 22px; }
.app-card {
  display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; object-fit: cover; box-shadow: 0 6px 16px rgba(11,27,77,.15); }
.app-mono { display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700; font-family: var(--font-ar); }
.app-name { font-size: 21px; margin: 0; }
.app-desc { color: var(--text-muted); font-size: 15.5px; margin: 0; flex: 1; }
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); }
.tag-green { background: color-mix(in srgb, #16A34A 12%, transparent); color: #16A34A; }
.app-link { align-self: flex-start; font-weight: 700; font-size: 15px; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.app-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
html[dir="rtl"] .app-link svg { transform: scaleX(-1); }
.app-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .app-link:hover svg { transform: scaleX(-1) translateX(4px); }
.app-soon { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* Stats */
.section-stats { background: color-mix(in srgb, var(--bg-alt) 75%, transparent); }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat {
  position: relative; overflow: hidden; text-align: center; padding: 30px 12px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.stat::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-num { display: block; font-family: var(--font-latin); font-size: clamp(40px, 5vw, 54px); font-weight: 700; line-height: 1.15; color: var(--blue); }
.stat-label { display: block; margin-top: 8px; color: var(--text); font-weight: 500; font-size: 15.5px; }

/* Call */
.call-card {
  position: relative; text-align: center; max-width: 880px; margin: 0 auto; padding: 56px 40px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, var(--surface)), color-mix(in srgb, var(--cyan) 10%, var(--surface)));
  color: var(--text); border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--border)); box-shadow: var(--shadow-lg);
}
.call-card::before, .call-card::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--blue) 8%, transparent); }
.call-card::before { width: 300px; height: 300px; top: -120px; inset-inline-start: -100px; animation: float 14s ease-in-out infinite; }
.call-card::after { width: 220px; height: 220px; bottom: -110px; inset-inline-end: -60px; animation: float 16s ease-in-out -5s infinite; }
.call-card > * { position: relative; z-index: 1; }
.call-card p { font-size: 18px; color: var(--text-muted); max-width: 680px; margin-inline: auto; }
.call-card .btn { margin-top: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-grid > div > p { color: var(--text-muted); font-size: 18px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s, border-color .3s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.contact-card[aria-disabled="true"] { cursor: default; }
.contact-card[aria-disabled="true"]:hover { transform: none; border-color: var(--border); }
.c-icon { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); }
.c-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-body { display: flex; flex-direction: column; min-width: 0; }
.c-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.c-value { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
html[dir="rtl"] .c-value[dir="ltr"] { text-align: right; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-latin); }
.footer-made { margin: 0; color: var(--text-muted); font-size: 15px; }
.footer-links { display: flex; gap: 18px; font-weight: 500; font-size: 15px; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { margin: 0; color: var(--text-muted); font-size: 14px; font-family: var(--font-latin); }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.d-1 { --d: .08s; } .d-2 { --d: .16s; } .d-3 { --d: .24s; } .d-4 { --d: .32s; } .d-5 { --d: .4s; }

/* ===== Privacy page ===== */
.legal { padding: 56px 0 96px; }
.legal-card { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.legal-card h2 { font-size: 21px; margin-top: 2em; color: var(--blue); }
.legal-card p, .legal-card li { color: var(--text-muted); font-size: 16.5px; }
.legal-card ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.legal-card li { margin-bottom: .5em; }
.legal-card strong { color: var(--text); }
.legal-meta { display: inline-block; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); font-weight: 700; }
.summary-box { margin: 24px 0 8px; padding: 20px 22px; border-radius: 16px; background: color-mix(in srgb, var(--blue) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent); }
.summary-box ul { margin: 0; }
.summary-box li { color: var(--text); font-weight: 500; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.legal-article[hidden] { display: none; }

/* Not found */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.nf-logo { margin: 0 auto 8px; }
.nf p:not(.nf-code) { color: var(--text-muted); margin-bottom: 24px; }
.nf-code {font-family: var(--font-latin); font-size: clamp(80px, 18vw, 160px); font-weight: 700; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner, .idea-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 40px; }
  .hero-visual { order: -1; }
  .logo-stage { width: min(260px, 64vw); }
  .chip { font-size: 13px; padding: 7px 12px; }
  .chip-1 { inset-inline-start: -14%; }
  .chip-2 { inset-inline-end: -18%; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 4px; padding: 12px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
  .apps-grid { grid-template-columns: 1fr; }
  .lang-btn .lang-current { display: none; }
  .lang-btn::after { content: attr(data-code); font-family: var(--font-latin); font-size: 13px; font-weight: 700; }
  .chip-1 { inset-inline-start: -10%; }
  .chip-2 { inset-inline-end: -12%; }
  .call-card { padding: 44px 22px; }
  .brand-name { font-size: 18px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
