  :root {
    --bg: #0a0c10;
    --bg-panel: #12161d;
    --bg-panel-2: #171c25;
    --border: #242b36;
    --text: #f1f4f8;
    --text-dim: #9aa5b3;
    --accent: #00e5ff;
    --accent-dim: #00b8cc;
    --accent-soft: #6be9ff;
    --amber: #ff7a3d;
    --radius: 16px;
    --max: 1120px;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: clip; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
  }
  h1, h2, h3, .brand-word, .banner .tag { font-family: 'Space Grotesk', 'Inter', sans-serif; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img { max-width: 100%; display: block; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

  /* ── Ambient background glows ── */
  .glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
  .glow-cyan { background: radial-gradient(circle, rgba(0,229,255,0.35), transparent 70%); }
  .glow-amber { background: radial-gradient(circle, rgba(255,122,61,0.22), transparent 70%); }

  header.nav {
    position: sticky; top: 0; z-index: 40;
    background: rgba(10,12,16,0.78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  /* ── Logo mark ── */
  .brand { display: flex; align-items: center; gap: 11px; }
  .brand-mark {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: linear-gradient(160deg, #182029, #0a0d12);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset, 0 4px 14px rgba(0,229,255,0.18);
    display: flex; align-items: center; justify-content: center;
  }
  .brand-mark svg { display: block; }
  .brand-word { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; line-height: 1; display: flex; flex-direction: column; }
  .brand-word .w1 { color: var(--text); }
  .brand-word .w2 {
    font-size: 10px; font-weight: 600; letter-spacing: 0.22em; margin-top: 3px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  nav.links { display: flex; gap: 26px; }
  nav.links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
  nav.links a:hover { color: var(--text); text-decoration: none; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px;
    font-weight: 600; font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
  }
  .btn-primary { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #05171c; box-shadow: 0 8px 24px rgba(0,229,255,0.28); }
  .btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
  .btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border); }
  .btn-ghost:hover { border-color: var(--text-dim); text-decoration: none; }

  /* ── Hero ── */
  .hero { position: relative; padding: 52px 0 60px; text-align: center; overflow: hidden; }
  .hero .eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--bg-panel-2); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    margin-bottom: 4px; position: relative; z-index: 1;
  }
  .hero h1 {
    position: relative; z-index: 1;
    font-size: 54px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; text-wrap: balance;
    background: linear-gradient(180deg, #ffffff 0%, #c2cedb 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero h1 .accent {
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 60%, var(--accent-dim) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 0 46px rgba(0,229,255,0.4);
  }
  .hero p.lead { position: relative; z-index: 1; font-size: 19px; color: var(--text-dim); max-width: 620px; margin: 0 auto 34px; }
  .hero .cta { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .hero .hint { position: relative; z-index: 1; margin-top: 14px; font-size: 13px; color: var(--text-dim); }

  .hero-visual { position: relative; height: 260px; max-width: 620px; margin: 4px auto 0; display: flex; align-items: flex-end; justify-content: center; z-index: 1; }
  .gram-ring { position: absolute; bottom: 0; left: 50%; width: 0; height: 0; animation: gram-spin 22s linear infinite; }
  .gram-bar { position: absolute; bottom: 0; left: -1.5px; width: 3px; border-radius: 2px; background: linear-gradient(to top, rgba(0,229,255,0.05), var(--accent-soft)); transform-origin: bottom center; }
  @keyframes gram-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .orb {
    position: absolute; bottom: -46px; left: 50%; transform: translateX(-50%);
    width: 208px; height: 208px; border-radius: 50%;
    background: radial-gradient(circle at 42% 30%, #eafeff 0%, #79edff 20%, var(--accent) 46%, #0077a0 76%, #012c3d 100%);
    box-shadow: 0 0 60px 10px rgba(0,229,255,0.55), 0 0 140px 50px rgba(0,229,255,0.22), inset 0 -18px 40px rgba(0,0,0,0.35);
    z-index: 2;
  }
  .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 38% 24%, rgba(255,255,255,0.55), transparent 30%); }
  .car-wrap { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; }
  .car-bob { animation: car-bob 2.6s ease-in-out infinite; }
  @keyframes car-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }
  .wheel { transform-origin: center; animation: wheel-spin 0.9s linear infinite; }
  @keyframes wheel-spin { to { transform: rotate(360deg); } }

  /* ── Cinematic banner ── */
  .banner { position: relative; height: 62vh; min-height: 420px; max-height: 640px; overflow: hidden; }
  .banner img { width: 100%; height: 100%; object-fit: cover; }
  .banner .scrim {
    position: absolute; inset: 0;
    background:
      linear-gradient(0deg, rgba(4,5,7,0.97) 0%, rgba(4,5,7,0.4) 40%, transparent 78%),
      linear-gradient(100deg, rgba(4,5,7,0.65) 0%, transparent 46%);
  }
  .banner .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px 48px; }
  .banner .content .inner { max-width: var(--max); margin: 0 auto; }
  .banner h2 { font-size: 38px; margin: 0 0 10px; max-width: 560px; text-wrap: balance; }
  .banner p { font-size: 17px; color: var(--text-dim); max-width: 480px; margin: 0; }
  .banner .tag {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    background: rgba(0,229,255,0.12); border: 1px solid rgba(0,229,255,0.35); color: var(--accent-soft);
    padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  }

  section { position: relative; padding: 80px 0; border-top: 1px solid var(--border); overflow-x: clip; }
  h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
  p.section-lead { color: var(--text-dim); font-size: 16px; max-width: 620px; margin: 0 0 44px; }

  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
  .feature {
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; min-width: 0; transition: border-color 0.2s, transform 0.2s;
  }
  .feature:hover { border-color: rgba(0,229,255,0.4); transform: translateY(-3px); }
  .feature .icon {
    width: 42px; height: 42px; border-radius: 11px;
    background: var(--bg-panel-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; margin-bottom: 16px;
  }
  .feature h3 { font-size: 17px; margin: 0 0 8px; }
  .feature p { font-size: 14px; color: var(--text-dim); margin: 0; }

  /* ── Screens: illustrated device mockups (not photo composites) ── */
  .screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .device-stage {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    background: radial-gradient(circle at 50% 15%, rgba(0,229,255,0.10), transparent 60%), var(--bg-panel);
    border: 1px solid var(--border); border-radius: 22px; padding: 36px 24px 28px;
  }
  .device-mock {
    width: 250px; background: linear-gradient(160deg, #1c2229, #0c1015);
    border-radius: 24px; padding: 9px;
    box-shadow: 0 26px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .device-mock .screen {
    aspect-ratio: 3 / 4; border-radius: 17px; position: relative; overflow: hidden;
    background: radial-gradient(circle at 30% 0%, #131a22 0%, #05070a 72%);
    display: flex; align-items: flex-end; justify-content: center; padding: 14px 14px 14%;
  }
  .device-mock .screen::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 74%, rgba(0,229,255,0.16), transparent 55%);
  }
  .device-card {
    position: relative; width: 88%; background: rgba(22,26,32,0.96);
    border: 1px solid rgba(255,255,255,0.09); border-radius: 11px; padding: 10px 11px;
    box-shadow: 0 0 46px rgba(0,229,255,0.22);
  }
  .device-card .row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .device-card .pulse {
    width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0,229,255,0.6); animation: dev-pulse 1.8s infinite;
  }
  @keyframes dev-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.55); }
    70% { box-shadow: 0 0 0 8px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
  }
  .device-card .status { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
  .device-card .heard { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 4px; white-space: nowrap; }
  .device-card .reply { font-size: 10px; color: var(--text-dim); white-space: nowrap; }

  /* Done / matched state (mirrors AssistantCard's MATCHED colour, #00D66E) */
  .device-card.done { box-shadow: 0 0 46px rgba(0,214,110,0.22); }
  .device-card.done .pulse { background: #00d66e; box-shadow: none; animation: none; }
  .device-card.done .check {
    width: 16px; height: 16px; border-radius: 50%; background: #00d66e;
    display: flex; align-items: center; justify-content: center; flex: none;
  }
  .device-card.done .check svg { width: 9px; height: 9px; }
  .device-card.done .status { color: #00d66e; }
  .device-mock.done .screen::before { background: radial-gradient(circle at 50% 74%, rgba(0,214,110,0.16), transparent 55%); }
  .device-caption { text-align: center; font-size: 14px; color: var(--text-dim); }
  .device-caption b { color: var(--text); }

  .download-panel {
    background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-panel-2) 100%);
    border: 1px solid var(--border); border-radius: 22px;
    padding: 52px; text-align: center; position: relative; z-index: 1;
  }
  .download-panel h2 { margin-bottom: 10px; }
  .download-panel p { color: var(--text-dim); margin: 0 0 28px; }
  .version-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 14px; font-size: 13px; color: var(--text-dim); margin-bottom: 20px;
  }
  .version-pill b { color: var(--text); }
  .install-steps {
    text-align: left; max-width: 480px; margin: 32px auto 0;
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px 24px;
  }
  .install-steps ol { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; }
  .install-steps li { margin-bottom: 8px; }
  .install-steps li:last-child { margin-bottom: 0; }

  .compat-note {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--bg-panel); border: 1px solid var(--border); border-radius: 12px;
    padding: 16px 18px; margin-top: 24px; font-size: 13px; color: var(--text-dim); text-align: left;
    max-width: 620px; margin-left: auto; margin-right: auto;
  }

  footer { border-top: 1px solid var(--border); padding: 32px 0; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
  footer p { font-size: 13px; color: var(--text-dim); margin: 0; }
  footer .foot-links { display: flex; gap: 20px; }
  footer .foot-links a { font-size: 13px; color: var(--text-dim); }
  footer .foot-links a:hover { color: var(--text); }
  footer .made-by { text-align: center; font-size: 10px; opacity: 0.8; color: var(--text-dim); margin: 22px 0 0; }
  footer .made-by .heart { color: #ff4d6d; }

  @media (max-width: 900px) {
    .screens { grid-template-columns: 1fr; }
  }
  @media (max-width: 860px) {
    .features { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .hero h1 { font-size: 34px; }
    .hero p.lead { font-size: 16px; }
    .features { grid-template-columns: 1fr; }
    .download-panel { padding: 32px 20px; }
    nav.links { display: none; }
    .banner h2 { font-size: 28px; }
    .banner { height: 52vh; }
  }

  /* ── Added for the two language builds ── */
  .dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; margin: 0 auto; }
  .dl-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
  .dl-card h3 { margin: 0 0 4px; font-size: 18px; }
  .dl-card .meta { color: var(--text-dim); font-size: 13px; margin: 0 0 16px; }
  .dl-card .btn { width: 100%; justify-content: center; }
  .dl-card .dl-note { color: var(--text-dim); font-size: 12px; margin: 12px 0 0; }
  .lang-link { color: var(--text-dim); font-size: 14px; font-weight: 500; margin-inline-end: 16px; }
  .prose { max-width: 760px; }
  .prose h3 { margin: 28px 0 6px; font-size: 18px; }
  .prose p, .prose li { color: var(--text-dim); }
  [dir="rtl"] .install-steps { text-align: right; }
  [dir="rtl"] .install-steps ol { padding-left: 0; padding-right: 20px; }
  [dir="rtl"] .compat-note { text-align: right; }
  [dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: 'Noto Kufi Arabic', 'Inter', sans-serif; }
  @media (max-width: 600px) { .dl-grid { grid-template-columns: 1fr; } }

  /* Arabic: the banner's text sits on the right, so the shade that keeps it readable goes there too. */
  [dir="rtl"] .banner .scrim {
    background:
      linear-gradient(0deg, rgba(4,5,7,0.97) 0%, rgba(4,5,7,0.4) 40%, transparent 78%),
      linear-gradient(260deg, rgba(4,5,7,0.7) 0%, transparent 50%);
  }
  /* Arabic letters reach higher and lower than Latin ones: the big headline needs more room between its lines. */
  [dir="rtl"] .hero h1 { line-height: 1.5; }
  /* The menu links sit on the page's centre line (like everything below them), not halfway between
     the logo and the buttons, which differ in width. */
  .nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav .wrap > :first-child { justify-self: start; }
  .nav .wrap > :last-child { justify-self: end; grid-column: 3; }
