/* ============================================================================
   LEX WEBSITE V2 — DESIGN SYSTEM
   Single source of truth: the LEX desktop application (ui_web/style.css).
   Palette: deep navy surfaces + gold LEX identity + blue interaction/state.
   Dark-first, premium, "an AI operating system inside the browser".
   ============================================================================ */

/* ---------- 1. Design tokens (inherited verbatim from the desktop app) ---- */
:root {
  /* Surfaces */
  --bg-deep:     #070b14;
  --bg-panel:    #0d1424;
  --bg-panel-2:  #101a2e;
  --bg-elevated: #12203a;
  --border-soft: rgba(120, 160, 220, 0.14);
  --border-mid:  rgba(120, 160, 220, 0.22);

  /* Text */
  --text-main: #e7edf7;
  --text-dim:  #8c9bb5;
  --text-mute: #64748b;

  /* Identity — gold */
  --gold:        #d9a94e;
  --gold-hi:     #e8c377;
  --gold-lo:     #b8860b;
  --gold-soft:   rgba(217, 169, 78, 0.16);
  --gold-grad:   linear-gradient(135deg, #e8c377 0%, #d9a94e 55%, #b8860b 100%);

  /* Interaction / state — blue */
  --blue:       #2596ff;
  --blue-soft:  rgba(37, 150, 255, 0.14);

  /* Status */
  --green: #33c37f;
  --amber: #e0a840;
  --red:   #ef4444;
  --violet:#a78bfa;

  /* Radii (from desktop: 8 / 10 / 12 / 20 pill) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation & glow */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --glow-gold: 0 0 24px rgba(217,169,78,0.35);
  --glow-blue: 0 0 30px rgba(37,150,255,0.35);

  /* Typography (desktop uses Segoe UI / Tahoma; system stack = fast, faithful) */
  --font: "Segoe UI", Tahoma, system-ui, -apple-system, "Noto Kufi Arabic",
          "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; margin: 0 0 0.4em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--text-main); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. Ambient background (aurora, matches HUD glow language) ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(37,150,255,0.10), transparent 60%),
    radial-gradient(50% 40% at 85% 10%, rgba(217,169,78,0.08), transparent 60%),
    radial-gradient(45% 40% at 10% 25%, rgba(167,139,250,0.06), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(120,160,220,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,220,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* ---------- 4. Layout primitives ----------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px; border: 1px solid var(--gold-soft); border-radius: var(--r-pill);
  background: var(--gold-soft);
}
.section-title { font-size: clamp(28px, 4.2vw, 46px); }
.section-lead { color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 62ch; }
.center .section-lead { margin-inline: auto; }
.text-gold { color: var(--gold); }
.text-grad {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.2s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--gold-grad); color: #1a1206;
  box-shadow: 0 6px 22px rgba(217,169,78,0.30);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(217,169,78,0.5); transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 22px rgba(37,150,255,0.28); }
.btn-blue:hover { box-shadow: 0 10px 34px rgba(37,150,255,0.5); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.02); color: var(--text-main); border-color: var(--border-mid); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- 6. Cards / panels (desktop .panel) --------------------------- */
.card {
  background: linear-gradient(180deg, var(--bg-panel), rgba(13,20,36,0.72));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card--hover:hover { transform: translateY(-4px); border-color: var(--border-mid); box-shadow: var(--shadow-md); }
.card--glow:hover { border-color: rgba(217,169,78,0.4); box-shadow: var(--shadow-md), 0 0 0 1px var(--gold-soft); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--gold-soft); color: var(--gold);
  border: 1px solid rgba(217,169,78,0.28);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; }
.card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text-dim);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chip--ok { color: var(--green); border-color: rgba(51,195,127,0.3); }

/* ---------- 7. Header / navigation --------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7,11,20,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.5px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: var(--glow-gold); }
.brand .brand__name { font-size: 18px; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__link {
  padding: 9px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600;
  color: var(--text-dim); transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--text-main); background: var(--blue-soft); }
.nav__link.active { color: var(--gold); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-soft);
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
}
.lang__btn:hover { color: var(--text-main); border-color: var(--border-mid); }
.lang__btn svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  min-width: 176px; padding: 6px;
  background: var(--bg-panel-2); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 120;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; background: transparent; border-radius: var(--r-sm);
  color: var(--text-main); font-size: 14px; text-align: start;
}
.lang__item:hover { background: var(--blue-soft); }
.lang__item[aria-current="true"] { color: var(--gold); background: var(--gold-soft); }
.lang__item .flag { font-size: 17px; }

/* Mobile nav */
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-soft); color: var(--text-main);
  align-items: center; justify-content: center;
}
.nav__burger svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4,7,14,0.6); backdrop-filter: blur(6px);
}
.mobile-drawer.open { display: block; }
.mobile-drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(340px, 86vw);
  background: var(--bg-panel); border-inline-start: 1px solid var(--border-soft);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto;
}
[dir="rtl"] .mobile-drawer__panel { transform: translateX(-100%); }
.mobile-drawer.open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__link {
  padding: 14px 12px; border-radius: var(--r-sm); font-size: 16px; font-weight: 600; color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-drawer__link:hover { color: var(--gold); }
.mobile-drawer__close {
  align-self: flex-end; width: 42px; height: 42px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--border-soft); color: var(--text-main); font-size: 18px;
}

/* ---------- 8. Hero ------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__title { font-size: clamp(34px, 6vw, 68px); letter-spacing: -0.03em; }
.hero__lead { font-size: clamp(17px, 2vw, 21px); color: var(--text-dim); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Hero visual — the HUD core ring, rebuilt in pure CSS (desktop .hub-ring) */
.hud { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(440px, 82vw); margin-inline: auto; }
.hud__ring {
  position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--blue);
  box-shadow: 0 0 30px rgba(37,150,255,0.4), 0 0 60px rgba(37,150,255,0.15), inset 0 0 30px rgba(37,150,255,0.08);
  background: radial-gradient(circle, rgba(217,169,78,0.06), transparent 65%);
  animation: hud-pulse 3.5s ease-in-out infinite;
}
.hud__ring::before { content:""; position:absolute; inset:9px; border-radius:50%; border:1px solid rgba(37,150,255,0.25); }
@keyframes hud-pulse {
  0%,100% { box-shadow: 0 0 40px rgba(37,150,255,0.30), inset 0 0 40px rgba(37,150,255,0.08); }
  50%     { box-shadow: 0 0 62px rgba(37,150,255,0.50), inset 0 0 52px rgba(37,150,255,0.15); }
}
.hud__orbit { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(37,150,255,0.16); animation: spin 18s linear infinite; }
.hud__orbit::after { content:""; position:absolute; top:-5px; left:50%; width:10px; height:10px; border-radius:50%; background: var(--gold); box-shadow: var(--glow-gold); }
.hud__orbit--2 { width: 100%; animation-duration: 26s; animation-direction: reverse; border-color: rgba(217,169,78,0.16); }
.hud__orbit--2::after { background: var(--blue); box-shadow: var(--glow-blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.hud__logo { width: 42%; filter: drop-shadow(0 0 18px rgba(217,169,78,0.55)); border-radius: 24px; position: relative; z-index: 2; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 9. Feature / value grids ------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.feature-row--rev .feature-row__media { order: -1; }
.mock {
  border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel)); box-shadow: var(--shadow-md);
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-mid); display: inline-block; }
.mock__bar i:nth-child(1){ background:#ff5f57; } .mock__bar i:nth-child(2){ background:#febc2e; } .mock__bar i:nth-child(3){ background:#28c840; }
.mock__body { padding: 18px; display: grid; gap: 12px; }
.mock__msg { padding: 12px 15px; border-radius: 14px; font-size: 14px; max-width: 82%; }
.mock__msg--user { background: var(--blue-soft); border: 1px solid rgba(37,150,255,0.25); color: #cfe6ff; margin-inline-start: auto; border-bottom-right-radius: 4px; }
.mock__msg--lex { background: var(--bg-panel); border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
[dir="rtl"] .mock__msg--user { border-bottom-right-radius:14px; border-bottom-left-radius:4px; }
.mock__chip { display:inline-flex; gap:6px; align-items:center; font-size:11.5px; color:var(--gold); }
.mock__chip svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Steps */
.step { position: relative; padding-inline-start: 58px; }
.step__num {
  position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #1a1206; background: var(--gold-grad);
  box-shadow: 0 4px 14px rgba(217,169,78,0.3);
}

/* ---------- 10. Pricing -------------------------------------------------- */
.price-toggle { display: inline-flex; padding: 5px; gap: 4px; border: 1px solid var(--border-soft); border-radius: var(--r-pill); background: var(--bg-panel); }
.price-toggle button { padding: 9px 20px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-dim); font-weight: 700; font-size: 14px; transition: 0.2s; }
.price-toggle button.active { background: var(--gold-grad); color: #1a1206; }
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card--featured { border-color: rgba(217,169,78,0.45); box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow-md); }
.price-card__tag { position: absolute; top: -12px; inset-inline-end: 22px; background: var(--gold-grad); color: #1a1206; font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: var(--r-pill); box-shadow: var(--glow-gold); }
.price-card__name { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }
.price-card__price { font-size: clamp(38px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.price-card__price span { font-size: 16px; font-weight: 600; color: var(--text-dim); }
.price-card .btn { margin-top: auto; }

/* Check-mark lists — the tick is drawn in CSS so it survives i18n re-render */
.ticks { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-inline-start: 30px; font-size: 14.5px; color: var(--text-dim); line-height: 1.5;
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background:
    var(--gold-soft)
    center / 11px 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333c37f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  border: 1px solid rgba(51,195,127,0.3);
}
.price-card .ticks { margin: 18px 0 24px; }

/* ---------- 11. FAQ / accordion ------------------------------------------ */
.faq { border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; background: var(--bg-panel); }
.faq__item + .faq__item { border-top: 1px solid var(--border-soft); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: transparent; border: 0; color: var(--text-main); font-size: 16px; font-weight: 600; text-align: start; }
.faq__q:hover { color: var(--gold); }
.faq__q .ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold); transition: transform 0.3s var(--ease); }
.faq__item.open .faq__q .ic { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq__a p { padding: 0 22px 20px; color: var(--text-dim); margin: 0; }

/* ---------- 12. Tables / status ------------------------------------------ */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
.tbl th, .tbl td { padding: 15px 18px; text-align: start; font-size: 14.5px; border-bottom: 1px solid var(--border-soft); }
.tbl th { color: var(--gold); font-weight: 700; background: var(--bg-panel); }
.tbl td { color: var(--text-dim); }
.tbl tr:last-child td { border-bottom: 0; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--bg-panel); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.status-pill--ok { color: var(--green); } .status-pill--ok .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-pill--warn { color: var(--amber); } .status-pill--warn .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.status-pill--down { color: var(--red); } .status-pill--down .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- 13. Forms ---------------------------------------------------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; font-size: 15px; color: var(--text-main);
  background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); outline: none; }
.textarea { resize: vertical; min-height: 140px; }

/* ---------- 14. Contact / info tiles ------------------------------------- */
.tile { display: flex; gap: 16px; align-items: flex-start; }
.tile__ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(37,150,255,0.28); }
.tile__ic svg { width: 22px; height: 22px; }

/* Legal / prose */
.prose { max-width: 78ch; }
.prose h2 { font-size: 24px; margin-top: 2em; color: var(--gold); }
.prose h3 { font-size: 19px; margin-top: 1.5em; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-inline-start: 20px; display: grid; gap: 8px; }
.prose a { color: var(--blue); }
.prose a:hover { text-decoration: underline; }
.legal-meta { color: var(--text-mute); font-size: 14px; }

/* ---------- 15. CTA band ------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgba(217,169,78,0.28); border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(217,169,78,0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  box-shadow: var(--shadow-lg);
}

/* ---------- 16. Footer --------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: 56px 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { color: var(--text-dim); font-size: 14.5px; max-width: 34ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); color: var(--text-mute); font-size: 13.5px; }

/* ---------- 17. Page hero (interior pages) ------------------------------- */
.page-hero { text-align: center; padding-block: clamp(64px, 10vw, 120px) clamp(24px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); }
.page-hero p { color: var(--text-dim); font-size: clamp(16px, 1.8vw, 20px); max-width: 60ch; margin-inline: auto; }

/* ---------- 18. Scroll reveal ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 19. Preloader / page transition ------------------------------ */
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--bg-deep); transition: opacity 0.5s ease, visibility 0.5s ease; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__logo { width: 76px; height: 76px; border-radius: 20px; animation: pl-float 1.6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(217,169,78,0.55)); }
.preloader__ring { position: absolute; width: 132px; height: 132px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); border-right-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes pl-float { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- 20. Responsive ---------------------------------------------- */
@media (max-width: 960px) {
  /* Full inline nav needs ~960px (6 links + brand + lang + CTA); below that,
     switch to the burger drawer so the header never overlaps or clips. */
  .nav__links { display: none; }
  .nav__actions .lang { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hud { grid-row: 1; margin-bottom: 8px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--rev .feature-row__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__actions .lang { display: none; }
  .nav__burger { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .status-line { flex-direction: column; align-items: flex-start; }
}

/* ---------- 21. RTL fine-tuning ----------------------------------------- */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] .hero__title, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .mock__bar { direction: ltr; }

/* ---- Installation Center ---- */
.muted { color: var(--text-mute); font-size: 13.5px; }
.install-card { position: relative; text-align: center; display: flex; flex-direction: column; }
.install-card .card__icon { margin-inline: auto; }
.install-card .btn { margin-top: auto; }
.install-card--rec { border-color: rgba(217,169,78,0.45); box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow-md); }
.install-rec-tag { position: absolute; top: -11px; inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--gold-grad); color: #1a1206; font-size: 10.5px; font-weight: 800; padding: 4px 12px;
  border-radius: var(--r-pill); white-space: nowrap; box-shadow: var(--glow-gold); }
[dir="rtl"] .install-rec-tag { transform: translateX(50%); }
.install-sha { margin-top: 8px; font-size: 11px; color: var(--text-mute); cursor: help; }
#installRecommend .chip { font-size: 13px; }

/* ---- Capabilities Explorer ---- */
.caps-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.caps-search { max-width: 420px; }
.caps-filters { flex-wrap: wrap; gap: 8px; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.cap-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--r-md);
  transition: border-color 0.2s, transform 0.2s;
}
.cap-card:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.cap-card__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.cap-card__title { font-size: 15px; font-weight: 600; color: var(--text-main); }
.cap-card__soon { align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--amber); background: rgba(224,168,64,0.14); padding: 2px 9px; border-radius: var(--r-pill); }
@media (max-width: 900px) { .caps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .caps-grid { grid-template-columns: 1fr; } .caps-search { max-width: 100%; } }

/* Wider footer collapses gracefully */
@media (max-width: 1040px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
   V2.1 — Cinematic hero, visual story, interactive demo, founder, investors
   ============================================================================ */

/* Glass utility (used by cinematic chips, demo, founder) */
.glass {
  background: linear-gradient(180deg, rgba(18,26,44,0.72), rgba(13,20,36,0.62));
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

/* ---- Cinematic hero scene ---- */
.hero--cine { padding-block: clamp(72px, 11vw, 132px) clamp(40px, 7vw, 84px); }
.hero--cine .hero__title { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.04; }
.cine {
  position: relative; width: min(540px, 88vw); aspect-ratio: 1; margin-inline: auto;
  overflow: visible;
}
#hero-canvas { position: absolute; inset: 0; z-index: 1; transition: transform 0.25s var(--ease); }
.cine__core { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.cine__halo {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,169,78,0.22), transparent 68%);
  filter: blur(6px); animation: cine-breathe 6s ease-in-out infinite;
}
@keyframes cine-breathe { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }
.cine__eagle {
  position: relative; width: 30%; border-radius: 22px; z-index: 3;
  filter: drop-shadow(0 0 22px rgba(217,169,78,0.6));
  transition: transform 0.25s var(--ease);
  animation: cine-float 7s ease-in-out infinite;
}
@keyframes cine-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.cine__dev {
  position: absolute; z-index: 4; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 13px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
  color: var(--text-main); cursor: default;
  background: linear-gradient(180deg, rgba(18,26,44,0.82), rgba(13,20,36,0.72));
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  animation: cine-dev 5s ease-in-out infinite;
}
.cine__dev svg { width: 16px; height: 16px; color: var(--gold); }
.cine__dev:nth-child(2) { animation-delay: 0.6s; }
.cine__dev:nth-child(3) { animation-delay: 1.2s; }
.cine__dev:nth-child(4) { animation-delay: 1.8s; }
.cine__dev:nth-child(5) { animation-delay: 2.4s; }
@keyframes cine-dev { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-54%); } }
.cine-caption { text-align: center; margin-top: 20px; color: var(--text-dim); font-size: 14px; }
.cine-caption b { color: var(--gold); font-weight: 700; }
@media (max-width: 620px) {
  .cine { width: min(360px, 84vw); }
  .cine-caption { margin-top: 30px; }
}
@media (max-width: 520px) {
  .cine__dev { padding: 7px; }
  .cine__dev span { display: none; }
}

/* ---- Visual story blocks ---- */
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story-row--rev .story-row__media { order: -1; }
.story-figure {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg);
  border: 1px solid var(--border-soft); overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(37,150,255,0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  display: grid; place-items: center;
}
.story-figure img { width: 34%; filter: drop-shadow(0 0 20px rgba(217,169,78,0.5)); }
.story-figure .ring-deco { position: absolute; border: 1px solid rgba(37,150,255,0.18); border-radius: 50%; }
.story-figure .ring-deco.r1 { width: 60%; aspect-ratio: 1; animation: spin 26s linear infinite; }
.story-figure .ring-deco.r2 { width: 82%; aspect-ratio: 1; border-color: rgba(217,169,78,0.14); animation: spin 40s linear infinite reverse; }

/* ---- Interactive multi-device demo ---- */
.demo-shell { max-width: 900px; margin-inline: auto; }
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-panel); border: 1px solid var(--border-soft);
  transition: 0.2s;
}
.demo-tab svg { width: 16px; height: 16px; }
.demo-tab:hover { color: var(--text-main); border-color: var(--border-mid); }
.demo-tab.active { color: #1a1206; background: var(--gold-grad); border-color: transparent; box-shadow: var(--glow-gold); }
.demo-frame {
  border: 1px solid var(--border-soft); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel)); box-shadow: var(--shadow-md);
}
.demo-frame__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border-soft);
}
.demo-frame__now { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.demo-frame__now svg { width: 17px; height: 17px; color: var(--gold); }
.demo-frame__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.demo-frame__body { padding: 22px; display: grid; gap: 14px; }
.demo-msg { padding: 13px 16px; border-radius: 15px; font-size: 14.5px; max-width: 78%; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: demo-in 0.5s var(--ease) forwards; }
.demo-msg--user { background: var(--blue-soft); border: 1px solid rgba(37,150,255,0.25); color: #cfe6ff; margin-inline-start: auto; border-bottom-right-radius: 4px; }
.demo-msg--lex { background: var(--bg-panel); border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
[dir="rtl"] .demo-msg--user { border-bottom-right-radius: 15px; border-bottom-left-radius: 4px; }
.demo-msg:nth-child(2) { animation-delay: 0.1s; }
.demo-msg:nth-child(3) { animation-delay: 0.5s; }
.demo-msg:nth-child(4) { animation-delay: 0.7s; }
@keyframes demo-in { to { opacity: 1; transform: none; } }
.demo-note { text-align: center; margin-top: 20px; color: var(--gold); font-weight: 600; font-size: 14.5px; }

/* ---- Founder ---- */
.founder-card { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.founder-portrait {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); display: grid; place-items: center;
  background: radial-gradient(circle, rgba(217,169,78,0.14), transparent 68%), var(--bg-panel-2);
  border: 1px solid rgba(217,169,78,0.3);
}
.founder-portrait img { width: 52%; filter: drop-shadow(0 0 22px rgba(217,169,78,0.55)); }
.founder-portrait .fr-ring { position: absolute; inset: 14px; border: 1px solid rgba(217,169,78,0.28); border-radius: 50%; animation: spin 30s linear infinite; }
.founder-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.founder-name { font-size: clamp(24px, 3vw, 32px); }

/* ---- Investors roadmap timeline ---- */
.road { display: grid; gap: 0; margin-top: 12px; }
.road__item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; }
.road__item + .road__item { border-top: 1px solid var(--border-soft); }
.road__node {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #1a1206; background: var(--gold-grad); box-shadow: 0 4px 14px rgba(217,169,78,0.3);
}
.road__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.road__head h3 { font-size: 18px; margin: 0; }
.road__status { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); }
.road__status--done { color: var(--green); background: rgba(51,195,127,0.14); }
.road__status--now { color: var(--gold); background: var(--gold-soft); }
.road__status--prog { color: var(--blue); background: var(--blue-soft); }
.road__item p { color: var(--text-dim); margin: 0; font-size: 14.5px; }

.invest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 26px); }

@media (max-width: 860px) {
  .story-row { grid-template-columns: 1fr; }
  .story-row--rev .story-row__media { order: 0; }
  .founder-card { grid-template-columns: 1fr; text-align: center; }
  .founder-portrait { width: min(260px, 70vw); margin-inline: auto; }
  .founder-meta { justify-content: center; }
  .invest-grid { grid-template-columns: 1fr; }
}
