/* انوار ملکوت ۲ — the site. Colours, fonts and shapes are the app's (app/lib/ui/theme.dart): sky #0A84FF, royal #0058C0,
   page #F5F7FB, soft cards, gradient primary buttons, round icon buttons, Farhang for titles, Vazirmatn for text. */

@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Farhang'; src: url('/fonts/farhang-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Farhang'; src: url('/fonts/farhang-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Amiri'; src: url('/fonts/amiri-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --sky: #0A84FF;
  --royal: #0058C0;
  --royal-ink: #0A4BA8;
  --indigo: #3858D0;
  --teal: #38B8C8;
  --ink: #1C1C1E;
  --text: #3A3A3C;
  --muted: #6E6E73;
  --page: #F5F7FB;
  --sky-top: #EFF4FD;
  --soft: #F1F4FA;
  --pill: #EAF2FF;
  --hair: #E3EAF7;
  --card: #FFFFFF;
  --gold: #B07A1E;
  --gold-soft: #FBF3E2;
  --green: #1B7F3B;
  --shadow-sm: 0 1px 2px rgba(16, 38, 92, .06), 0 2px 8px rgba(16, 38, 92, .05);
  --shadow: 0 2px 6px rgba(16, 38, 92, .05), 0 12px 32px rgba(29, 63, 196, .10);
  --shadow-lg: 0 6px 18px rgba(16, 38, 92, .08), 0 30px 70px rgba(29, 63, 196, .18);
  --grad: linear-gradient(135deg, #2A9BFF 0%, #0A84FF 35%, #0058C0 100%);
  --grad-soft: linear-gradient(135deg, #EAF4FF 0%, #E3EEFF 100%);
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --f-body: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --f-title: 'Farhang', 'Vazirmatn', system-ui, sans-serif;
  --f-arabic: 'Amiri', 'Farhang', serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}
html[lang="en"] { --f-title: 'Vazirmatn', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.85; color: var(--text); background: var(--page);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid rgba(10, 132, 255, .55); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--royal); color: #fff; padding: 8px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: #fff; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }

/* ------------------------------------------------------------------ header (the app's glass bar) */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(245, 247, 251, .55); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .78); border-color: var(--hair); box-shadow: 0 6px 24px rgba(16, 38, 92, .06); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.ring { position: relative; display: grid; place-items: center; border-radius: 50%; }
.ring img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .logo { inset: 13%; width: 74%; height: 74%; border-radius: 50%; object-fit: cover; }
.brand .ring { width: 44px; height: 44px; }
.brand b { font-family: var(--f-title); font-size: 22px; font-weight: 700; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--text); font-weight: 500; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--pill); color: var(--royal); }
.langs { display: flex; padding: 3px; background: var(--soft); border: 1px solid var(--hair); border-radius: 999px; flex: none; }
.langs a { font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 5px 11px; border-radius: 999px; line-height: 1.4; }
.langs a[aria-current="true"] { background: #fff; color: var(--royal); box-shadow: var(--shadow-sm); }
.langs a:hover { color: var(--royal); }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--royal); font-size: 22px; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font: 700 16.5px/1 var(--f-body); border: 0; cursor: pointer; transition: transform .18s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn .icon { font-size: 21px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(10, 132, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 132, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:active { transform: translateY(0); }
.btn-soft { color: var(--royal); background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-sm); }
.btn-soft:hover { color: var(--royal); background: var(--pill); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-sm .icon { font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: var(--pill); color: var(--royal-ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
.chip .icon { font-size: 16px; }

/* ------------------------------------------------------------------ section frame */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--royal); font-weight: 700; font-size: 14.5px; letter-spacing: .02em; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }
.head h2 { font-family: var(--f-title); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); margin-top: 10px; }
html[lang="en"] .head h2 { letter-spacing: -.02em; }
.head p { margin-top: 12px; font-size: 18px; color: var(--muted); }

/* ------------------------------------------------------------------ 1. the top: bismillah alone, then «درباره ما» */
.top {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px)); padding-bottom: clamp(24px, 4vw, 48px); isolation: isolate; overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -8%, rgba(10, 132, 255, .20), transparent 62%),
    radial-gradient(600px 420px at 0% 40%, rgba(56, 184, 200, .14), transparent 60%),
    radial-gradient(600px 420px at 100% 40%, rgba(56, 88, 208, .12), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--page) 100%);
}
.bismillah-top {
  text-align: center; font-family: var(--f-arabic); color: var(--royal); font-size: clamp(32px, 5vw, 52px); line-height: 1.7;
  margin: 0 auto clamp(18px, 3vw, 30px); text-shadow: 0 2px 18px rgba(10, 132, 255, .18);
}
.bismillah-top small { display: block; font: 500 14.5px/1.6 var(--f-body); color: var(--muted); text-shadow: none; }
/* the calligraphy (user's image, background removed in build_assets.py) */
.bismillah-top img { display: block; width: min(500px, 80vw); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 6px 18px rgba(10, 88, 192, .14)); }

/* ------------------------------------------------------------------ 2. the formal slider (the app's home slides) */
.slider-sec { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.slider { --sw: min(360px, 76vw); position: relative; }
.slider-track {
  display: flex; gap: clamp(14px, 3vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 18px calc(50% - var(--sw) / 2) 26px; scroll-padding-inline: calc(50% - var(--sw) / 2);
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
  flex: none; width: var(--sw); margin: 0; scroll-snap-align: center; border-radius: 24px; overflow: hidden; background: #fff; padding: 8px;
  border: 1px solid var(--hair); box-shadow: var(--shadow); transform: scale(.88); opacity: .5; filter: saturate(.75);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .5s, filter .5s, box-shadow .5s;
}
.slide img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 17px; background: #dfeaf7; }
.slide.is-active { transform: none; opacity: 1; filter: none; box-shadow: var(--shadow-lg); }
.slider-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #c8d6ee; cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-current="true"] { width: 26px; background: var(--grad); }
.slider-track:focus-visible { outline-offset: -3px; }

/* ------------------------------------------------------------------ 3. the app */
.hero {
  padding-block: clamp(56px, 8vw, 104px); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(10, 132, 255, .20), transparent 60%),
    radial-gradient(700px 520px at 0% 30%, rgba(56, 184, 200, .16), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(56, 88, 208, .10), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--page) 100%);
}
html[dir="ltr"] .hero { background:
    radial-gradient(900px 520px at 15% -5%, rgba(10, 132, 255, .20), transparent 60%),
    radial-gradient(700px 520px at 100% 30%, rgba(56, 184, 200, .16), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(56, 88, 208, .10), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--page) 100%); }
.hero::before { /* faint stars, like the app's Hafez page */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 32% 68%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 72% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 86% 64%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 52% 40%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 92% 34%, #fff 50%, transparent 52%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bismillah { font-family: var(--f-arabic); color: var(--royal); font-size: clamp(24px, 3vw, 32px); line-height: 1.6; }
.bismillah small { display: block; font-family: var(--f-body); font-size: 14px; color: var(--muted); line-height: 1.5; }
.hero h1 { font-family: var(--f-title); font-weight: 700; font-size: clamp(50px, 8vw, 92px); line-height: 1.15; margin-top: 6px; }
.hero h1 .num { vertical-align: .08em; margin-inline-start: .12em; }
html[lang="en"] .hero h1 { letter-spacing: -.035em; font-size: clamp(38px, 4.9vw, 64px); white-space: nowrap; }
@media (max-width: 420px) { html[lang="en"] .hero h1 { white-space: normal; } }
.hero h1 .num {
  display: inline-grid; place-items: center; width: 1.08em; height: 1.08em; border-radius: 50%; color: #fff; background: var(--grad);
  font-size: .62em; font-family: var(--f-body); box-shadow: 0 10px 26px rgba(10, 132, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.tagline { margin-top: 18px; font-size: clamp(18px, 1.9vw, 21px); font-weight: 500; color: var(--ink); line-height: 1.95; max-width: 640px; }
.tagline b { color: var(--royal-ink); font-weight: 700; }
.lead { margin-top: 14px; color: var(--text); max-width: 640px; }
.offline-line { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; color: var(--green); font-weight: 600; max-width: 640px; }
.offline-line .icon { font-size: 22px; margin-top: 4px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .chips { margin-top: 20px; }

/* phones */
.phone {
  --w: 300px; position: relative; width: var(--w); aspect-ratio: 9 / 19.2; margin: 0; padding: calc(var(--w) * .035); border-radius: calc(var(--w) * .15);
  background: linear-gradient(145deg, #2b3242, #0c111c 55%, #262d3b); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone::after { /* side button */ content: ''; position: absolute; inset-inline-end: -3px; top: 22%; width: 3px; height: 13%; border-radius: 3px; background: #1a2030; }
.screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .118); overflow: hidden; background: var(--top, #fff); display: flex; flex-direction: column; }
.status { flex: none; height: calc(var(--w) * .094); display: flex; align-items: center; justify-content: space-between; padding-inline: calc(var(--w) * .075); color: var(--status, #1c1c1e); font: 600 calc(var(--w) * .043)/1 var(--f-body); direction: ltr; }
.status .island { width: 28%; height: 56%; border-radius: 999px; background: #05070c; }
.status .sig { display: flex; gap: 4px; align-items: center; }
.status .sig svg { height: calc(var(--w) * .04); width: auto; fill: currentColor; }
.screen > img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.phone.sm { --w: 236px; }
.phone.xs { --w: 200px; }

.hero-visual { position: relative; height: clamp(520px, 52vw, 640px); display: grid; place-items: center; }
.hero-visual .phone.front { --w: clamp(250px, 24vw, 300px); z-index: 2; transform: translateX(calc(var(--side) * 9%)) rotate(calc(var(--side) * -2deg)); }
.hero-visual .phone.back { --w: clamp(210px, 20vw, 252px); position: absolute; z-index: 1; opacity: .96; transform: translateX(calc(var(--side) * -52%)) translateY(6%) rotate(calc(var(--side) * 7deg)); filter: saturate(1.05); }
html[dir="rtl"] .hero-visual { --side: 1; }
html[dir="ltr"] .hero-visual { --side: -1; }
.glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(10, 132, 255, .30), rgba(56, 184, 200, .14) 45%, transparent 70%); filter: blur(10px); z-index: 0; }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow);
  font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.5; animation: bob 6s ease-in-out infinite;
}
.float-card .ring { width: 46px; height: 46px; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.float-card .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: 22px; }
.float-card.f1 { inset-inline-end: 2%; top: 10%; }
.float-card.f2 { inset-inline-start: 0; bottom: 13%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* about (the app's «درباره ما», at the top) */
.about { margin-top: clamp(40px, 6vw, 72px); }
.about-card {
  position: relative; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px) clamp(22px, 6vw, 72px); overflow: hidden;
}
.about-card::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--teal), var(--sky), var(--royal), var(--indigo)); }
.about-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.about-top .ring { width: 92px; height: 92px; }
.about-top h2 { font-family: var(--f-title); font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--sky); margin: 4px 0 6px; }
.ornament::before, .ornament::after { content: ''; height: 1.5px; width: min(160px, 22vw); background: linear-gradient(90deg, transparent, rgba(10, 132, 255, .45)); }
.ornament::after { transform: scaleX(-1); }
.ornament .icon { font-size: 18px; }
.about-card .bism { font-family: var(--f-arabic); font-size: clamp(22px, 2.6vw, 28px); color: var(--royal); text-align: center; }
.about-body { margin: 18px auto 0; max-width: 820px; }
.about-body p { text-align: justify; text-align-last: center; line-height: 2.2; font-size: clamp(16.5px, 1.5vw, 18.5px); color: var(--ink); margin-bottom: 18px; }
html[lang="en"] .about-body p { text-align: start; text-align-last: auto; line-height: 1.8; hyphens: auto; }
.about-close { text-align: center; font-family: var(--f-title); font-size: clamp(21px, 2.4vw, 26px); color: var(--royal); margin-top: 8px; }
html[lang="en"] .about-close { font-style: italic; font-family: var(--f-body); font-weight: 500; }

/* ------------------------------------------------------------------ stats */
.stats { margin-top: clamp(28px, 4vw, 40px); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-sm); }
.stat { text-align: center; padding: 18px 8px; border-radius: 18px; }
.stat:hover { background: var(--soft); }
.stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.25; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; font-size: 14px; color: var(--muted); font-weight: 500; line-height: 1.5; margin-top: 4px; }

/* ------------------------------------------------------------------ persons */
.persons { background: linear-gradient(180deg, var(--page), #EEF3FC 60%, var(--page)); }
.person-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person {
  position: relative; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; transition: transform .25s, box-shadow .25s;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.avatar { width: 112px; height: 112px; border-radius: 50%; padding: 4px; background: linear-gradient(140deg, var(--sky), var(--indigo)); box-shadow: 0 10px 24px rgba(29, 63, 196, .22); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.person h3 { font-family: var(--f-title); font-size: 24px; font-weight: 700; line-height: 1.55; }
html[lang="en"] .person h3 { font-size: 21px; }
.person .role { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.75; }
.ticks .icon { color: var(--sky); font-size: 19px; margin-top: 4px; }

/* ------------------------------------------------------------------ features (bento) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--hair); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4e2fa; }
.feature.wide { grid-column: span 2; }
.f-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--royal); background: var(--grad-soft); border: 1px solid #dbe8ff; margin-bottom: 16px; }
.feature:nth-child(3n+2) .f-ico { color: #0E8A9A; background: linear-gradient(135deg, #E6F8FA, #DDF2F6); border-color: #cdeef3; }
.feature:nth-child(3n) .f-ico { color: var(--indigo); background: linear-gradient(135deg, #EEF0FF, #E6E9FF); border-color: #dde2ff; }
.feature h3 { font-size: 18.5px; font-weight: 700; }
.feature p { margin-top: 8px; font-size: 15.5px; color: var(--muted); line-height: 1.8; }

/* ------------------------------------------------------------------ showcase rows */
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.show-row:nth-child(even) .show-visual { order: 2; }
.show-visual { position: relative; display: grid; place-items: center; padding-block: 24px; }
.show-visual .blob { position: absolute; width: min(440px, 92%); aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--grad-soft); z-index: 0; }
.show-row:nth-child(2) .blob { background: linear-gradient(135deg, #E6F8FA, #DCEFF7); }
.show-row:nth-child(3) .blob { background: linear-gradient(135deg, #EEF0FF, #E3E8FF); }
.show-row:nth-child(4) .blob { background: linear-gradient(135deg, #FFF7E8, #FCEFD6); }
.show-visual .phone { z-index: 1; }
.show-text h3 { font-family: var(--f-title); font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; margin-top: 8px; }
.show-text .sub { font-size: 19px; color: var(--muted); margin-top: 8px; }
.show-text .ticks { margin-top: 22px; gap: 12px; }
.show-text .ticks li { font-size: 16.5px; }

/* ------------------------------------------------------------------ scenes carousel */
.scenes { background: linear-gradient(180deg, var(--page), #EBF1FC); overflow: hidden; }
.carousel { position: relative; }
.track { /* full bleed: the row runs to the screen's edges, its first card lines up with the content */
  --edge: max(var(--gutter), calc(50vw - var(--wrap) / 2 + var(--gutter)));
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 12px var(--edge) 30px; margin-inline: calc(50% - 50vw); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.scene { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.scene figcaption { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.car-btns { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair); background: #fff; color: var(--royal); font-size: 22px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s, transform .2s; }
.round:hover { background: var(--pill); transform: translateY(-2px); }
html[dir="rtl"] .round .flip { transform: scaleX(-1); }

/* ------------------------------------------------------------------ install */
.install-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.dl-card {
  position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--r-lg); padding: 32px; color: #fff; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, #2E9DFF 0%, #0A84FF 30%, #0058C0 75%, #233FB8 100%); box-shadow: var(--shadow-lg);
}
.dl-card::before { content: ''; position: absolute; inset: -40% -30% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); z-index: -1; }
.dl-card .ring { width: 84px; height: 84px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.dl-card h3 { color: #fff; font-family: var(--f-title); font-size: 28px; font-weight: 700; margin-top: 18px; }
.dl-card .meta { color: rgba(255, 255, 255, .86); font-size: 15px; margin-top: 6px; }
.dl-card .btn { margin-top: 22px; width: 100%; background: #fff; color: var(--royal); box-shadow: 0 10px 26px rgba(0, 20, 80, .25); }
.dl-card .btn:hover { color: var(--royal); background: #F4F8FF; }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.qr img { width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.qr p { font-size: 14.5px; line-height: 1.75; color: #fff; }
.platform-note { display: none; margin-top: 14px; font-size: 14px; line-height: 1.7; color: #fff; background: rgba(0, 20, 80, .22); padding: 10px 14px; border-radius: 14px; }
.not-android .platform-note { display: block; }
.is-android .qr { display: none; }
.sha { margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.sha code { display: block; margin-top: 6px; font: 500 11.5px/1.55 ui-monospace, Consolas, monospace; word-break: break-all; color: #fff; background: rgba(0, 20, 80, .22); padding: 8px 10px; border-radius: 10px; direction: ltr; text-align: left; }
.sha button { margin-top: 8px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 14px; font: 600 13px/1.6 var(--f-body); cursor: pointer; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 19px; background: var(--grad); box-shadow: 0 8px 18px rgba(10, 132, 255, .32); }
.step h3 { font-size: 18.5px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--text); font-size: 16px; line-height: 1.9; }
.after { display: flex; gap: 14px; align-items: flex-start; margin-top: 4px; padding: 18px 22px; border-radius: var(--r); background: #EAF7EE; color: #1d5a32; border: 1px solid #cfe9d7; font-size: 15.5px; line-height: 1.85; }
.after .icon { font-size: 24px; color: var(--green); margin-top: 2px; }

/* ------------------------------------------------------------------ contact */
.contact { background: linear-gradient(180deg, var(--page), #EEF3FC); }
.link-groups { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.link > span { min-width: 0; }
.link-group h3 { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.links { display: grid; gap: 12px; }
.link {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--hair); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.link:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d4e2fa; }
.brand-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 26px; flex: none; }
.brand-ico.telegram { background: linear-gradient(140deg, #37AEE2, #1E96C8); }
.brand-ico.eitaa { background: linear-gradient(140deg, #F7943A, #E8682A); }
.link b { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.link small { display: block; color: var(--muted); font-size: 13.5px; direction: ltr; text-align: start; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.link .go { margin-inline-start: auto; color: var(--placeholder, #3F8FE8); font-size: 20px; }

.source-card { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 22px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--hair); box-shadow: var(--shadow-sm); }
.source-card img { width: 58px; height: 58px; flex: none; }
.source-card h3 { font-size: 18px; }
.source-card p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.source-card .btn { margin-inline-start: auto; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; color: rgba(255, 255, 255, .86); background: linear-gradient(160deg, #0A6BE0 0%, #0058C0 45%, #2A3FB0 100%); padding-block: 56px 30px; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); z-index: -1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .ring { width: 56px; height: 56px; background: #fff; }
.site-footer .brand b { font-size: 26px; }
.site-footer p { margin-top: 14px; font-size: 15px; line-height: 1.9; max-width: 440px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 6px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: rgba(255, 255, 255, .86); font-size: 15px; }
.site-footer a:hover { color: #fff; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom .closing { font-family: var(--f-title); font-size: 18px; color: #fff; }
html[lang="en"] .foot-bottom .closing { font-family: var(--f-body); font-style: italic; font-size: 16px; }

.to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .person { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .nav, .site-header .langs { display: none; }
  .menu-btn { display: grid; }
  .site-header .hdr-dl { display: none; }
  .hero-grid, .install-grid, .link-groups, .person-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { text-align: center; }
  .hero h1, .cta, .hero .chips { justify-content: center; }
  .tagline, .lead, .offline-line { margin-inline: auto; }
  .offline-line { justify-content: center; text-align: start; }
  .hero-visual { height: 560px; }
  .show-row { grid-template-columns: 1fr; }
  .show-row:nth-child(even) .show-visual { order: 0; }
  .show-text { text-align: center; }
  .show-text .ticks { justify-items: center; }
  .show-text .ticks li { text-align: start; max-width: 520px; }
  .show-text .eyebrow { justify-content: center; }
  .dl-card { position: relative; top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature.wide { grid-column: auto; }
  /* phones: icon beside the title, the text under both — half the height of a stacked card */
  .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; }
  .feature .f-ico { width: 44px; height: 44px; border-radius: 14px; font-size: 22px; margin: 0; }
  .feature p { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; }
  .head { margin-bottom: 28px; }
  .head p { font-size: 16.5px; }
  .section { padding-block: 56px; }
  .show-row { padding-block: 18px; gap: 22px; }
  .show-visual .phone { --w: 236px; }
  .show-text h3 { font-size: 26px; }
  .show-text .sub { font-size: 16.5px; }
  .show-text .ticks li { font-size: 15.5px; }
  .tagline { font-size: 17.5px; }
  .lead { font-size: 15.5px; }
  .person { padding: 22px; text-align: center; justify-items: center; }
  .person .ticks { justify-items: start; text-align: start; }
  .avatar { width: 96px; height: 96px; }
  .person h3 { font-size: 21px; }
  .dl-card { padding: 24px; }
  .dl-card h3 { font-size: 24px; }
  .step { padding: 18px; gap: 14px; }
  .step .n { width: 40px; height: 40px; font-size: 17px; }
  .step p { font-size: 15px; }
  .about-card { padding: 26px 18px; }
  .about-body p { text-align: justify; }
  .poster-row:not(.many) { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; margin-inline: calc(50% - 50vw); padding: 10px var(--gutter) 28px; scrollbar-width: none; }
  .poster-row:not(.many) .poster { flex: none; width: 74vw; scroll-snap-align: center; transform: none !important; }
  .scene { scroll-snap-align: center; }
  .phone.sm { --w: 210px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 470px; }
  .hero-visual .phone.front { --w: 228px; }
  .hero-visual .phone.back { --w: 186px; }
  .float-card { font-size: 13px; padding: 9px 12px; }
  .float-card.f1 { top: 2%; }
  .float-card.f2 { bottom: 4%; }
  .cta .btn { width: 100%; }
  .person { padding: 24px; }
  .about-body p { font-size: 16.5px; }
  .source-card { flex-wrap: wrap; }
  .source-card .btn { margin-inline-start: 0; width: 100%; }
  .qr { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* mobile menu sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(12, 22, 48, .35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet .panel {
  position: absolute; inset-inline: 10px; top: 10px; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow-lg);
  animation: drop .22s ease-out;
}
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
.sheet .panel-head { display: flex; align-items: center; justify-content: space-between; }
.sheet nav { display: grid; margin-top: 10px; }
.sheet nav a { padding: 13px 10px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--soft); }
.sheet .langs { margin-top: 14px; justify-content: center; }
.sheet .langs a { flex: 1; text-align: center; font-size: 15px; padding: 8px; }
.sheet .btn { width: 100%; margin-top: 14px; }

/* ------------------------------------------------------------------ the app's home slides */
.slides { padding-top: clamp(40px, 6vw, 72px); }
.poster-row { display: flex; justify-content: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.poster { margin: 0; width: min(330px, 78vw); border-radius: 26px; overflow: hidden; background: #dfeaf7; box-shadow: var(--shadow-lg); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.poster img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.poster-row:not(.many) .poster:nth-child(odd) { transform: rotate(calc(var(--tilt, 1) * 2deg)) translateY(8px); }
.poster-row:not(.many) .poster:nth-child(even) { transform: rotate(calc(var(--tilt, 1) * -2deg)); }
html[dir="ltr"] .poster-row { --tilt: -1; }
.poster:hover { transform: translateY(-6px) rotate(0) !important; }
.poster-row.many { /* more than three: a full-bleed row that scrolls */
  --edge: max(var(--gutter), calc(50vw - var(--wrap) / 2 + var(--gutter)));
  flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(50% - 50vw); padding: 14px var(--edge) 34px; scroll-padding-inline: var(--edge);
}
.poster-row.many::-webkit-scrollbar { display: none; }
.poster-row.many .poster { flex: none; width: min(300px, 72vw); scroll-snap-align: start; }
.poster-btns[hidden] { display: none; }
