/* ============================================================
   علاءالدین / Alaedin — Persian-first AI landing page
   Dark theme · RTL · self-hosted Vazirmatn (no Google Fonts CDN)
   Motion: transform/opacity only. Reduced-motion + JS-off safe.
   ============================================================ */

/* ---------- Self-hosted variable font ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ---------- Design tokens (authoritative brand) ---------- */
:root {
  --bg: #1e1f23;
  --bg-deep: #17181b;
  --surface: #303133;
  --surface-2: #3a3b41;
  --surface-3: #45464d;

  --brand: #9c9aff;       /* periwinkle — primary accent, used for ALL primary CTAs */
  --brand-hi: #b4b2ff;
  --gold: #ffd743;        /* accent only — never the primary CTA */
  --genie-blue: #6fa8ff;
  --success: #2fcb7a;

  --text: #f4f4f8;
  --muted: #a9a9b6;
  --muted-2: #82828f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.5);
  --glow-brand: 0 20px 64px rgba(156, 154, 255, 0.32);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* provider monogram colors */
  --gpt: #10a37f;
  --claude: #d97757;
  --gemini: #4285f4;
  --grok: #e6e6e6;
  --deepseek: #4d6bfe;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Global overflow guard — nothing may exceed the viewport width */
html, body { overflow-x: hidden; max-width: 100vw; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
svg { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 200;
  background: var(--brand); color: #14151a; font-weight: 700;
  padding: 10px 18px; border-radius: var(--r-sm);
  transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus { inset-block-start: 12px; }

:focus-visible {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 820px; }

.section { padding-block: clamp(60px, 9vw, 110px); position: relative; }
.section.how { background: var(--bg-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  font-weight: 800;
}
.hero-kicker { display: block; color: var(--brand); font-size: 0.62em; font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.grad {
  background: linear-gradient(95deg, var(--brand-hi), var(--genie-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.18rem; }

.text-brand { color: var(--brand); }
.text-muted-h { color: var(--muted); font-weight: 700; }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--brand-hi);
  background: rgba(156, 154, 255, 0.1);
  border: 1px solid rgba(156, 154, 255, 0.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(156,154,255,0.18); }

/* ---------- Buttons (single primary identity sitewide) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-sm { padding: 9px 17px; font-size: 0.92rem; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  color: #16161d;
  box-shadow: 0 8px 24px rgba(156, 154, 255, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(156, 154, 255, 0.46); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ---------- Provider monograms ---------- */
.mk {
  display: inline-grid; place-items: center;
  width: 1.55em; height: 1.55em; border-radius: 7px;
  font-weight: 800; font-size: 0.8em; color: #fff; flex: none;
}
.mk-gpt { background: var(--gpt); }
.mk-claude { background: var(--claude); }
.mk-gemini { background: var(--gemini); }
.mk-grok { background: var(--grok); color: #16161d; }
.mk-deepseek { background: var(--deepseek); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(23, 24, 27, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 22px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-size: 0.96rem; font-weight: 600; transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* nav toggle label (hidden on desktop, shown on mobile) */
.nav-toggle-label { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle-label span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
#mobile-menu { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(48px, 7vw, 92px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 520px at 78% 12%, rgba(156, 154, 255, 0.22), transparent 60%),
    radial-gradient(560px 480px at 12% 90%, rgba(111, 168, 255, 0.14), transparent 60%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); margin-top: 20px; max-width: 540px; }
.hero-sub b { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.micro-trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 22px; color: var(--muted); font-size: 0.95rem; font-weight: 500;
}
.micro-trust i { color: var(--brand); font-style: normal; }
.micro-trust span { display: inline-flex; align-items: center; }

/* hero art */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.genie-stage { position: relative; width: min(340px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.genie-stage .aura {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(156,154,255,0.55), rgba(111,168,255,0.16) 58%, transparent 72%);
  filter: blur(4px);
}
.genie-stage .orbit-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(156, 154, 255, 0.28);
}
.genie {
  position: relative; z-index: 2; width: 78%; height: auto;
  filter: drop-shadow(0 20px 46px rgba(111, 168, 255, 0.4));
  animation: bob 6s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.spark { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(255,215,67,0.8); opacity: 0.9; }
.spark.s1 { top: 12%; left: 16%; animation: tw 3.2s ease-in-out infinite; }
.spark.s2 { top: 70%; left: 8%; background: var(--brand-hi); box-shadow: 0 0 12px var(--brand); animation: tw 2.6s ease-in-out infinite 0.4s; }
.spark.s3 { top: 26%; right: 10%; background: var(--genie-blue); box-shadow: 0 0 12px var(--genie-blue); animation: tw 3.6s ease-in-out infinite 0.8s; }
@keyframes tw { 0%,100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.5); opacity: 1; } }

.chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(48, 49, 51, 0.92); border: 1px solid var(--border-strong);
  padding: 7px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-md); backdrop-filter: blur(6px);
}
.chip .mk { font-size: 0.72em; }
.chip-1 { top: 6%; right: -6%; animation: floaty 5s var(--ease) infinite; }
.chip-2 { top: 44%; left: -10%; animation: floaty 5.6s var(--ease) infinite 0.6s; }
.chip-3 { bottom: 8%; right: -2%; animation: floaty 6.2s var(--ease) infinite 1.1s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* hero product mock (router-in-action) */
.app-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.app-top .app-title { margin-inline-start: auto; font-size: 0.86rem; font-weight: 700; color: var(--muted); }
.app-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.bubble { padding: 11px 14px; border-radius: 14px; font-size: 0.94rem; max-width: 88%; }
.bubble.user { align-self: flex-start; background: var(--brand); color: #16161d; font-weight: 600; border-end-start-radius: 4px; }
.bubble.ai { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--border); border-end-end-radius: 4px; min-width: 60%; display: flex; flex-direction: column; gap: 8px; }
.ai-mk { display: inline-flex; }
.ai-mk img { width: 22px; height: 22px; border-radius: 6px; }
.line { height: 9px; border-radius: 5px; background: linear-gradient(90deg, var(--surface-3), rgba(255,255,255,0.06)); }
.line.code { background: linear-gradient(90deg, rgba(111,168,255,0.4), rgba(111,168,255,0.12)); }
.line.w50 { width: 50%; } .line.w60 { width: 60%; } .line.w70 { width: 70%; }
.line.w80 { width: 80%; } .line.w90 { width: 90%; } .line.w100 { width: 100%; }

.router-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-end;
  background: rgba(47, 203, 122, 0.12); border: 1px solid rgba(47, 203, 122, 0.3);
  color: var(--success); padding: 7px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
}
.router-pill b { color: var(--text); }
.router-pill svg { width: 16px; height: 16px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { border-block: 1px solid var(--border); background: var(--bg-deep); }
.trust-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 28px 40px; padding-block: 28px; }
.trust-stat { display: flex; flex-direction: column; }
.trust-stat .num { font-size: 1.9rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.trust-stat .lbl { color: var(--muted); font-size: 0.85rem; opacity: 0.65; }

.trust-seals { display: flex; gap: 14px; flex-wrap: wrap; }
.seal {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.875rem; padding: 0.65rem 1rem;
  text-decoration: none; color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-width: 180px;
}
.seal:hover { background: rgba(156,154,255,0.10); border-color: rgba(156,154,255,0.30); }
.seal .ic {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ic.enamad { background: rgba(47,203,122,0.15); color: #2FCB7A; }
.ic.zibal  { background: rgba(111,168,255,0.15); color: #6FA8FF; }
.seal .ic svg { width: 18px; height: 18px; }
.seal .tx { display: flex; flex-direction: column; gap: 0.1rem; }
.seal .tx b { font-size: 0.875rem; font-weight: 700; }
.seal .tx span { font-size: 0.75rem; opacity: 0.6; }
.seal.sm .tx b { font-size: 0.85rem; }

.powered-by { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-inline-start: auto; }
.powered-by .pb-label { color: var(--muted-2); font-size: 0.85rem; }
.pb { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.pb .mk { font-size: 0.74em; }

/* ============================================================
   HOW THE ROUTER WORKS
   ============================================================ */
.router-steps { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: stretch; gap: 14px; }
.rstep {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; text-align: center;
}
.rstep.highlight { border-color: rgba(156,154,255,0.4); background: linear-gradient(180deg, rgba(156,154,255,0.1), var(--surface)); box-shadow: var(--glow-brand); }
.rstep .rnum {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 1.3rem; font-weight: 800; color: var(--brand-hi);
}
.rstep.highlight .rnum { background: rgba(156,154,255,0.16); border-color: rgba(156,154,255,0.4); }
.rstep .rnum img { width: 34px; height: 34px; }
.rstep h3 { margin-bottom: 8px; }
.rstep p { color: var(--muted); font-size: 0.96rem; }
.rarrow { display: grid; place-items: center; color: var(--brand); }
.rarrow svg { width: 30px; height: 30px; }
.how-note { text-align: center; margin-top: 26px; color: var(--muted-2); font-size: 0.95rem; }

/* ============================================================
   SEE IT IN ACTION
   ============================================================ */
.see-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { display: flex; flex-direction: column; gap: 12px; }
.shot figcaption { text-align: center; color: var(--muted-2); font-size: 0.86rem; font-weight: 600; }
.shot .app-card { max-width: none; height: 100%; }
.shot.light .app-card { background: #f3f3f7; border-color: rgba(0,0,0,0.08); }
.shot.light .app-top { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
.shot.light .app-dot { background: #cfcfd8; }
.shot.light .app-title { color: #6a6a78; }
.shot.light .bubble.user { background: var(--brand); }
.shot.light .bubble.ai { background: #fff; border-color: rgba(0,0,0,0.07); }
.shot.light .line { background: linear-gradient(90deg, #d9d9e2, #ececf2); }

.preset-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; height: 100%; box-shadow: var(--shadow-sm); }
.preset-card h3 { margin-bottom: 6px; }
.preset-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.pchip { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 8px 13px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; transition: border-color 0.18s, transform 0.16s var(--ease); }
.pchip:hover { border-color: var(--brand); transform: translateY(-2px); }
.placeholder-note { text-align: center; color: var(--muted-2); font-size: 0.82rem; margin-top: 22px; }

/* ============================================================
   MODELS
   ============================================================ */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.model-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.model-card.featured {
  grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  border-color: rgba(156,154,255,0.4);
  background: linear-gradient(110deg, rgba(156,154,255,0.12), var(--surface) 55%);
  box-shadow: var(--glow-brand);
}
.mhead { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.model-card.featured .mhead { margin-bottom: 0; }
.mlogo { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; flex: none; }
.mlogo.genie-logo { background: rgba(156,154,255,0.16); padding: 4px; }
.mlogo.genie-logo img { width: 100%; height: 100%; }
.mhead h3 { font-size: 1.16rem; }
.maker { font-size: 0.82rem; color: var(--muted-2); }
.badge-smart { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--brand-hi); background: rgba(156,154,255,0.16); padding: 3px 10px; border-radius: 999px; margin-top: 3px; }
.model-card p { color: var(--muted); font-size: 0.96rem; }
.model-card.featured p { margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: #16161d; background: linear-gradient(180deg, var(--brand-hi), var(--brand)); font-weight: 700; padding: 11px 20px; border-radius: 999px; white-space: nowrap; transition: transform 0.18s var(--ease); }
.card-link:hover { transform: translateY(-2px); }
.card-link svg { width: 16px; height: 16px; }

.maker-note {
  display: flex; gap: 11px; margin-top: 26px; padding: 16px 18px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--muted); font-size: 0.88rem; line-height: 1.7;
}
.maker-note svg { width: 20px; height: 20px; flex: none; color: var(--muted-2); margin-top: 2px; }

/* ============================================================
   USE CASES
   ============================================================ */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; transition: border-color 0.2s, transform 0.2s var(--ease); }
.uc:hover { border-color: var(--brand); transform: translateY(-3px); }
.uc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(156,154,255,0.12); color: var(--brand-hi); margin-bottom: 14px; }
.uc-ic svg { width: 23px; height: 23px; }
.uc h3 { margin-bottom: 5px; }
.uc p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: border-color 0.2s, transform 0.2s var(--ease); }
.feature:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.feature .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(156,154,255,0.12); color: var(--brand-hi); margin-bottom: 16px; }
.feature .ic svg { width: 25px; height: 25px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

.inline-cta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px;
  margin-top: 40px; padding: 26px 30px; text-align: center;
  background: linear-gradient(100deg, rgba(156,154,255,0.1), rgba(111,168,255,0.06));
  border: 1px solid rgba(156,154,255,0.22); border-radius: var(--r-lg);
}
.inline-cta p { font-size: 1.12rem; font-weight: 700; }

/* ============================================================
   COMPARISON
   ============================================================ */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.cmp-hint { display: none; } /* mobile-only scroll hint, shown in ≤768 block */
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--border); font-size: 0.98rem; }
.cmp-table thead th { background: var(--surface); font-size: 0.92rem; color: var(--muted); font-weight: 700; }
.cmp-table thead .col-win { background: linear-gradient(180deg, rgba(156,154,255,0.16), var(--surface)); color: var(--text); }
.th-genie { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.cmp-table tbody th { font-weight: 700; color: var(--text); background: rgba(255,255,255,0.02); }
.cmp-table td.win { color: var(--text); font-weight: 600; }
.cmp-table td.win::before { content: "✓ "; color: var(--success); font-weight: 800; }
.cmp-table td.lose { color: var(--muted-2); }
.cmp-table td.lose::before { content: "✕ "; color: #e07a7a; font-weight: 700; }
.cmp-table tbody tr td.win { background: rgba(156,154,255,0.06); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 24px 22px; }
.quote-mk { position: absolute; top: 6px; inset-inline-end: 18px; font-size: 3.4rem; line-height: 1; color: rgba(156,154,255,0.28); font-family: Georgia, serif; }
.tcard blockquote { color: var(--text); font-size: 1rem; margin-bottom: 20px; position: relative; z-index: 1; }
.who { display: flex; align-items: center; gap: 12px; }
.who .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #16161d; flex: none; }
.who b { display: block; font-size: 0.94rem; }
.who span { font-size: 0.8rem; color: var(--muted-2); }
.av1 { background: var(--brand); } .av2 { background: var(--gold); } .av3 { background: var(--genie-blue); }
.av4 { background: var(--success); } .av5 { background: var(--brand-hi); } .av6 { background: var(--claude); color:#fff; }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px; transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.dl-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dl-card.primary { border-color: rgba(156,154,255,0.45); background: linear-gradient(180deg, rgba(156,154,255,0.12), var(--surface)); box-shadow: var(--glow-brand); }
.dl-card .ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(156,154,255,0.12); color: var(--brand-hi); margin-bottom: 16px; }
.dl-card .ic svg { width: 25px; height: 25px; }
.dl-card h3 { margin-bottom: 7px; }
.dl-card p { color: var(--muted); font-size: 0.9rem; }
.dl-tag { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 0.72rem; font-weight: 700; color: #16161d; background: var(--gold); padding: 3px 10px; border-radius: 999px; }

/* ============================================================
   PRICING RESERVED
   ============================================================ */
.pricing-reserved { background: var(--bg-deep); }
.pricing-reserved .section-head { border: 1px dashed var(--border-strong); border-radius: var(--r-xl); padding: 48px 28px; margin-bottom: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 1.04rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--brand); transition: transform 0.25s var(--ease); flex: none; }
.faq-item .chev svg { width: 20px; height: 20px; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { text-align: center; }
.cta-card {
  max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 64px) 30px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(156,154,255,0.18), var(--surface) 62%);
  border: 1px solid rgba(156,154,255,0.3); border-radius: var(--r-xl);
  box-shadow: var(--glow-brand);
}
.cta-card .genie-sm { width: 92px; height: 92px; margin: 0 auto 18px; filter: drop-shadow(0 14px 30px rgba(111,168,255,0.45)); }
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.cta-card .hero-actions { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-block: 54px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.94rem; max-width: 340px; margin-bottom: 18px; }
.footer-seals { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; color: var(--muted); font-size: 0.93rem; padding-block: 6px; transition: color 0.18s; }
.footer-col a:hover { color: var(--brand-hi); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; color: var(--muted-2); font-size: 0.86rem; }
.footer-bottom .contact a { color: var(--brand-hi); }
.trademark { color: var(--muted-2); font-size: 0.78rem; line-height: 1.7; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ============================================================
   REVEAL ANIMATIONS (JS-on only; JS-off ⇒ always visible)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .micro-trust { justify-content: center; }
  .hero-art { margin-top: 18px; }
  .router-steps { grid-template-columns: 1fr; }
  .rarrow { transform: rotate(-90deg); }
  .model-card.featured { grid-template-columns: 1fr; text-align: center; }
  .model-card.featured .mhead { justify-content: center; }
  .see-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hide-sm { display: none; }
  .nav-toggle-label { display: flex; }
  .nav { position: relative; }
  /* hamburger X animation (purely CSS, no menu control) */
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* mobile menu visual styles (display controlled by JS) */
  #mobile-menu {
    flex-direction: column; gap: 0.75rem; padding: 1.25rem;
    background: var(--surface); border-radius: 1rem;
    position: absolute; top: 64px; right: 0; left: 0; z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  #mobile-menu a {
    font-size: 1.1rem; padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: inherit; text-decoration: none;
  }
  #mobile-menu .btn { margin-top: 0.5rem; width: 100%; text-align: center; justify-content: center; }

  .models-grid, .uc-grid, .features-grid, .tcols { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .powered-by { margin-inline-start: 0; }
}

@media (max-width: 440px) {
  .chip { font-size: 0.78rem; padding: 6px 10px; }
  .chip-1 { right: -2%; } .chip-2 { left: -4%; } .chip-3 { right: 2%; }
}

/* ============================================================
   REDUCED MOTION — kill all non-essential motion
   ============================================================ */
@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE RESPONSIVE FIXES (≤768px) — single consolidated block
   ============================================================ */
@media (max-width: 768px) {
  /* 3 — section containers + heading wrapping */
  .wrap { padding-inline: 1.25rem; max-width: 100%; }
  h1, h2, h3, .section-head h2, .section-head p { word-break: break-word; overflow-wrap: break-word; }

  /* 2 — hero: stack copy over art */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; max-width: 100%; }
  .hero-art { order: 2; width: 100%; margin-inline: auto; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .genie-stage { max-width: 280px; margin: 0 auto; }
  .app-card { width: 100%; max-width: 360px; margin: 1.5rem auto 0; }

  /* 14 — nav: RTL order + hamburger */
  .nav { display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; position: relative; }
  .brand { order: 1; }
  .nav-toggle-label { order: 2; display: flex; }
  .nav-cta { order: 3; }
  .nav-links { display: none; }
  .hide-sm { display: none !important; }

  /* 4 — models grid */
  .models-grid { grid-template-columns: 1fr; }
  .model-card.featured { grid-column: 1; grid-template-columns: 1fr; text-align: center; }
  .model-card.featured .mhead { justify-content: center; }

  /* 5 — comparison table (horizontal scroll + hint) */
  .cmp-hint { display: block; font-size: 0.75rem; color: var(--brand); text-align: right; margin-bottom: 0.5rem; }
  .cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp-table { min-width: 480px; font-size: 0.8rem; }

  /* 6 — use cases: 2 columns */
  .uc-grid { grid-template-columns: 1fr 1fr; }

  /* 7 — features grid */
  .features-grid { grid-template-columns: 1fr; }

  /* 8 — download grid */
  .dl-grid { grid-template-columns: 1fr; }

  /* 9 — see it in action */
  .see-grid { grid-template-columns: 1fr; }
  .shot { width: 100%; }

  /* 10 — router steps: vertical flow */
  .router-steps { display: flex; flex-direction: column; align-items: center; }
  .rstep { width: 100%; max-width: 420px; }
  .rarrow { transform: rotate(90deg); }

  /* 11 — testimonials */
  .tcols { grid-template-columns: 1fr; }

  /* 12 — footer grid */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* 13 — trust strip */
  .trust-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .trust-seals { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
  .seal { min-width: unset; width: 100%; }
  .powered-by { flex-wrap: wrap; justify-content: center; margin-inline-start: 0; }
}
