/* ─────────────────────────────────────────────────────────────────────────────────────────────────────
   QiMAP website — design tokens + layout.
   Palette and rationale: QiMap-Docs design/brand-palette-2026-09-22.md (Discord study → QiMAP ramp).
   Rule of thumb: the electric blue lives in the CANVAS (gradients, glows), gold is the BRAND ACCENT
   (never gold text on white), text on the canvas is white / tinted white, cards are glass.
   ───────────────────────────────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/rubik-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-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; }

:root {
  /* canvas — the console's night navies (base.html tokens), hue 216–222° */
  --q-canvas: #0a1220;
  --q-navy-900: #0b1220;      /* --hx-bg night */
  --q-navy-800: #0f1a2b;      /* --sidebar-bg night */
  --q-card: #121a2c;          /* --hx-card */
  --q-card-2: #172238;        /* --hx-card-2 */
  --q-card-3: #1d2b47;        /* --hx-card-3 */
  /* blue — the console's brand blue, the hot stop of every gradient */
  --q-blue-700: #1d4ed8;      /* --hx-blue-2 day */
  --q-blue: #2563eb;          /* --hx-blue day */
  --q-blue-500: #3b82f6;      /* --hx-blue-2 night */
  --q-blue-400: #60a5fa;      /* --hx-blue night — links on the canvas */
  --q-blue-300: #93c5fd;      /* --hx-link-hover night */
  --q-sky: #bfdbfe;           /* --hx-blue-text night — tinted labels */
  /* brand accent */
  --q-gold: #f5c518;
  --q-gold-2: #ffd84d;
  --q-gold-ink: #0b1220;
  /* neutrals */
  --q-ink: #111e2e;
  --q-white: #ffffff;
  --q-text: #f3f6fb;          /* --hx-ink night */
  --q-text-2: #a7b3c9;        /* --hx-ink-2 night */
  --q-text-3: #8b98b0;        /* muted, still 4.5:1 on the hot stop */
  /* glass */
  --q-glass: rgba(255, 255, 255, .06);
  --q-glass-2: rgba(255, 255, 255, .10);
  --q-glass-line: rgba(148, 163, 184, .22);   /* --hx-line-2 night family */
  /* type */
  --q-font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", Arial, sans-serif;
  --q-radius-xl: 40px;
  --q-radius-lg: 28px;
  --q-radius: 12px;
  --q-container: 1240px;
  --q-nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--q-font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--q-text);
  background: var(--q-canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The page canvas: Discord's dark → deep → hot → deep → dark arc, but in the console's own navies with the
   console blue (#2563eb) as the hot stop — CSS gradients only, no texture images. */
.canvas { position: relative; isolation: isolate; }
.canvas::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% 12%, rgba(37, 99, 235, .45), transparent 62%),
    radial-gradient(900px 600px at 8% 45%, rgba(29, 78, 216, .5), transparent 60%),
    radial-gradient(1000px 700px at 90% 78%, rgba(29, 43, 71, .9), transparent 62%),
    linear-gradient(180deg, var(--q-canvas) 0%, var(--q-navy-800) 12%, var(--q-card-3) 30%, var(--q-blue-700) 50%, var(--q-card-3) 70%, var(--q-navy-800) 88%, var(--q-canvas) 100%);
}
/* sparkles — tiny white dots, static (no motion) */
.canvas::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 8%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 32% 22%, #fff 60%, transparent 61%),
    radial-gradient(2px 2px at 71% 6%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 88% 30%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 56% 41%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 18% 63%, #fff 60%, transparent 61%),
    radial-gradient(2px 2px at 44% 77%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 80% 58%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 93% 91%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 6% 94%, #fff 60%, transparent 61%);
  background-size: 1100px 1100px;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--q-gold); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }
.container { width: min(var(--q-container), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.notfound { min-height: 100svh; }
.notfound .mark { margin: 0 auto 24px; }
.skip-link { position: absolute; top: -100px; inset-inline-start: 16px; z-index: 100; background: var(--q-gold); color: var(--q-gold-ink); padding: 12px 20px; border-radius: var(--q-radius); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ── Display type: Rubik 800/900, tight leading, uppercase in Latin (Arabic has no case) ── */
.display { font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; margin: 0; }
html[lang="ar"] .display { text-transform: none; letter-spacing: 0; line-height: 1.15; font-weight: 800; }
.display-1 { font-size: clamp(38px, 5.4vw, 72px); }
.display-2 { font-size: clamp(30px, 3.1vw, 44px); }
.display-3 { font-size: clamp(28px, 2.8vw, 40px); }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--q-text-2); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--q-gold); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--q-gold); border-radius: 2px; }

/* ── Buttons — 12px radius, 16–18px text; gold primary with navy ink (console rule), blue secondary ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border-radius: var(--q-radius); font: inherit; font-size: 18px; font-weight: 500; line-height: 1.2; cursor: pointer; border: 0; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--q-gold); color: var(--q-gold-ink); font-weight: 600; box-shadow: 0 10px 30px -14px rgba(245, 197, 24, .6); }
.btn-gold:hover { background: var(--q-gold-2); color: var(--q-gold-ink); }
.btn-blue { background: var(--q-blue); color: var(--q-white); }
.btn-blue:hover { background: var(--q-blue-700); }
.btn-ghost { background: var(--q-glass); color: var(--q-text); border: 1px solid var(--q-glass-line); }
.btn-ghost:hover { background: var(--q-glass-2); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 16px; border-radius: 16px; }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ── Nav: transparent over the hero, 80px ── */
.nav { position: absolute; top: 0; inset-inline: 0; height: var(--q-nav-h); z-index: 20; display: flex; align-items: center; }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.brand img, .brand svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: 16px; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 16px; color: var(--q-text); }
.nav-links a:hover { background: var(--q-glass); text-decoration: underline; text-underline-offset: 4px; }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--q-glass-line); border-radius: 16px; overflow: hidden; background: var(--q-glass); }
.lang button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border: 0; background: transparent; color: var(--q-text-2); cursor: pointer; min-width: 44px; }
.lang button[aria-pressed="true"] { background: var(--q-gold); color: var(--q-gold-ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--q-glass-line); background: var(--q-glass); color: var(--q-text); cursor: pointer; align-items: center; justify-content: center; }

/* ── Hero ── */
.hero { position: relative; padding: calc(var(--q-nav-h) + 56px) 0 72px; min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-copy .lede { margin-top: 22px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--q-text-3); }
.hero-art { position: relative; min-height: 520px; }

/* ── Feature cards: glass, r=40, alternating media/copy ── */
.features { padding: 20px 0 40px; display: grid; gap: 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border-radius: var(--q-radius-xl); background: var(--q-glass); border: 1px solid var(--q-glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); }
.feature.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.feature.reverse .media { order: 2; }
.feature .copy { padding: 16px 24px; }
.feature .copy p { margin: 16px 0 0; font-size: 19px; line-height: 1.45; color: var(--q-text-2); }
.feature .copy .display-2 { text-wrap: balance; }
.media { position: relative; min-height: 420px; border-radius: 32px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 28px; }
/* media panels: navy → console blue at different depths; one gold panel for the brand section */
.media-blue { background: linear-gradient(160deg, #0a1220 0%, #1d2b47 50%, #2563eb 100%); }
.media-blue-2 { background: linear-gradient(160deg, #0a1220 0%, #172238 45%, #1d4ed8 100%); }
.media-sky { background: linear-gradient(160deg, #0f1a2b 0%, #1d2b47 40%, #3b82f6 100%); }
.media-gold { background: linear-gradient(160deg, #0a1220 0%, #1d2b47 45%, #f5c518 100%); }
.media-navy { background: linear-gradient(160deg, #0a1220 0%, #121a2c 55%, #26365a 100%); }
.media-deep { background: linear-gradient(200deg, #1d4ed8 0%, #172238 45%, #0a1220 100%); }

/* product mocks (pure CSS/SVG, no real data) — night console cards: #121a2c / #172238 / #1d2b47 */
.mock { background: var(--q-card); color: var(--q-text); border: 1px solid var(--q-glass-line); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); overflow: hidden; }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--q-glass-line); font-size: 13px; font-weight: 600; color: var(--q-text-2); }
.mock-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--q-card-3); }
.mock-head .dot.on { background: var(--q-gold); }
.mock-search { width: min(360px, 100%); }
.mock-search .field { margin: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--q-card-2); border: 1px solid var(--q-glass-line); font-size: 15px; color: var(--q-text-2); }
.mock-search .field b { color: var(--q-text); }
.mock-list { list-style: none; margin: 0; padding: 0 14px 14px; display: grid; gap: 8px; }
.mock-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--q-card-2); font-size: 14px; }
.mock-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(96, 165, 250, .16); color: var(--q-blue-400); font-weight: 800; }
.mock-list .ic.g { background: rgba(245, 197, 24, .18); color: var(--q-gold-2); }
.mock-list .ic.t { background: rgba(74, 222, 128, .14); color: #86efac; }
.mock-list .name { font-weight: 600; color: var(--q-text); }
.mock-list .sub { display: block; font-size: 12px; color: var(--q-text-2); font-weight: 400; }
.mock-list .dist { font-size: 12px; color: var(--q-text-2); font-variant-numeric: tabular-nums; }
.mock-route { width: min(380px, 100%); }
.mock-route .modes { display: flex; gap: 8px; padding: 14px 14px 0; }
.mock-route .mode { flex: 1; padding: 10px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 600; background: var(--q-card-2); color: var(--q-text-2); }
.mock-route .mode.on { background: var(--q-gold); color: var(--q-gold-ink); }
.mock-route .route-steps { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; font-size: 14px; }
.mock-route .route-steps li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; }
.mock-route .route-steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--q-blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.mock-route .route-steps .n.end { background: var(--q-gold); color: var(--q-gold-ink); }
.mock-route .eta { margin: 0 14px 14px; padding: 12px 14px; border-radius: 12px; background: rgba(96, 165, 250, .14); color: var(--q-sky); font-weight: 700; display: flex; justify-content: space-between; font-size: 15px; }
.mock-share { width: min(340px, 100%); }
.mock-share .place { display: flex; gap: 12px; padding: 14px; align-items: center; }
.mock-share .thumb { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #1d4ed8, #60a5fa); display: grid; place-items: center; }
.mock-share .place b { display: block; font-size: 15px; }
.mock-share .place span { font-size: 13px; color: var(--q-text-2); }
.mock-share .link { margin: 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--q-navy-900); border: 1px solid var(--q-glass-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--q-sky); direction: ltr; text-align: left; }
.mock-share .apps { display: flex; gap: 10px; padding: 14px; }
.mock-share .apps span { flex: 1; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.mock-share .apps .app-wa { background: #25d366; } .mock-share .apps .app-tg { background: var(--q-blue); } .mock-share .apps .app-copy { background: var(--q-card-3); }
.mock-heat { width: min(400px, 100%); }
.mock-heat .grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 14px; }
.mock-heat .grid i { display: block; aspect-ratio: 1; border-radius: 3px; background: rgba(96, 165, 250, var(--a, .1)); }
.mock-heat .grid i.h { background: rgba(245, 197, 24, var(--a, .6)); }
.mock-heat .grid .l0 { --a: .06; } .mock-heat .grid .l1 { --a: .12; } .mock-heat .grid .l2 { --a: .2; } .mock-heat .grid .l3 { --a: .3; } .mock-heat .grid .l4 { --a: .42; }
.mock-heat .grid .l5 { --a: .55; } .mock-heat .grid .l6 { --a: .68; } .mock-heat .grid .l7 { --a: .8; } .mock-heat .grid .l8 { --a: .9; } .mock-heat .grid .l9 { --a: 1; }
.mock-heat .legend { display: flex; justify-content: space-between; padding: 0 14px 14px; font-size: 12px; color: var(--q-text-2); }
.mock-code { width: min(400px, 100%); background: var(--q-navy-900); color: var(--q-sky); border: 1px solid var(--q-glass-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.7; padding: 18px 20px; border-radius: 18px; direction: ltr; text-align: left; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8); }
.mock-code .k { color: var(--q-gold); } .mock-code .c { color: var(--q-text-3); } .mock-code .s { color: var(--q-blue-300); }
.chips { display: flex; flex-direction: column; gap: 12px; width: min(360px, 100%); }
.chip { background: var(--q-card); color: var(--q-text); border: 1px solid var(--q-glass-line); border-radius: 16px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .8); }
.chip small { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--q-text-2); text-transform: uppercase; }

/* ── Marquee band ── */
.marquee { padding: 36px 0; margin: 40px 0; background: rgba(10, 18, 32, .6); border-block: 1px solid var(--q-glass-line); overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font-weight: 900; font-size: clamp(28px, 3.4vw, 48px); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
html[lang="ar"] .marquee-track span { text-transform: none; font-weight: 800; }
.marquee-track svg { width: 40px; height: 40px; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ── Closing CTA ── */
.cta { text-align: center; padding: 60px 0 40px; }
.cta .display-1 { font-size: clamp(32px, 4.4vw, 60px); text-wrap: balance; }
.cta .lede { margin: 20px auto 0; max-width: 620px; }
.cta .btn { margin-top: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px auto 0; max-width: 980px; text-align: start; }
.step { padding: 22px 24px; border-radius: var(--q-radius-lg); background: var(--q-glass); border: 1px solid var(--q-glass-line); }
.step b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--q-gold); color: var(--q-gold-ink); font-weight: 800; margin-bottom: 12px; }
.step p { margin: 0; color: var(--q-text-2); font-size: 16px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }

/* ── Footer: the canvas navy, columns, giant wordmark ── */
.footer { background: var(--q-canvas); padding: 72px 0 0; margin-top: 60px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h3 { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--q-blue-400); margin: 0 0 14px; }
html[lang="ar"] .footer h3 { letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { color: var(--q-text-2); font-size: 16px; }
.footer li a:hover { color: var(--q-text); text-decoration: underline; text-underline-offset: 4px; }
.footer .brand { font-size: 24px; }
.footer .tag { margin: 16px 0 0; color: var(--q-text-3); font-size: 15px; max-width: 320px; }
.footer .lang { margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--q-glass-line); color: var(--q-text-3); font-size: 14px; }
.wordmark { margin-top: 24px; display: block; width: 100%; height: auto; }

/* ── Illustration bits (hero) ── */
.phone { position: absolute; inset-inline-end: 6%; top: 0; width: min(300px, 46%); aspect-ratio: 9 / 19; border-radius: 40px; background: var(--q-navy-900); padding: 12px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(148, 163, 184, .26); transform: rotate(-4deg); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: var(--q-card-2); }
.phone .screen svg { width: 100%; height: 100%; }
.float-card { position: absolute; background: var(--q-card); color: var(--q-text); border: 1px solid var(--q-glass-line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); font-size: 14px; }
.float-card b { display: block; font-size: 16px; }
.float-card .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--q-text-2); font-size: 13px; }
.float-card .pill { background: var(--q-gold); color: var(--q-gold-ink); padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.float-a { inset-inline-start: 2%; top: 56px; width: 250px; }
.float-b { inset-inline-start: 12%; bottom: 20px; width: 260px; }
.float-b .modes { display: flex; gap: 6px; margin-top: 10px; }
.float-b .modes span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; background: var(--q-card-2); font-size: 12px; font-weight: 600; color: var(--q-text-2); }
.float-b .modes span.on { background: var(--q-blue); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: grid; position: absolute; top: var(--q-nav-h); inset-inline: 24px; padding: 12px; gap: 4px; background: rgba(10, 18, 32, .97); border: 1px solid var(--q-glass-line); border-radius: 20px; margin: 0; }
  .nav.open .nav-links a { display: block; padding: 12px 16px; font-size: 18px; }
  .hero-grid, .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .media { order: 0; }
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero-art { min-height: 560px; margin-top: 8px; }
  .phone { inset-inline-end: 50%; transform: translateX(50%) rotate(-4deg); width: min(280px, 60%); }
  html[dir="rtl"] .phone { transform: translateX(-50%) rotate(-4deg); }
  .float-a { inset-inline-start: 0; top: 30px; }
  .float-b { inset-inline-start: auto; inset-inline-end: 0; bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { width: calc(100% - 32px); }
  .feature { padding: 16px; gap: 8px; border-radius: 28px; }
  .feature .copy { padding: 12px 8px 8px; }
  .media { min-height: 360px; padding: 18px; border-radius: 22px; }
  .hero-art { min-height: 520px; }
  .float-a, .float-b { width: 210px; }
  .btn { width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-end .lang { display: none; }
}
