/* ============================================================
   MEETMIND — MAIN STYLESHEET v3
   Light lavender · Blue-violet + Teal accents · RTL first
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:          #EDEEFF;
  --bg-surface:  #F4F5FF;
  --bg-elevated: #FFFFFF;
  --bg-border:   rgba(79,70,229,0.14);
  --bg-border-2: rgba(79,70,229,0.26);

  --text:   #0A0A1A;
  --text-2: #4B5280;
  --text-3: #8B90B0;
  --text-4: rgba(10,10,26,0.06);

  /* Primary: blue-violet */
  --accent:       #5B4FE0;
  --accent-light: #7B70F4;
  --accent-dim:   rgba(91,79,224,0.12);
  --accent-glow:  rgba(91,79,224,0.28);

  /* Secondary: teal/cyan */
  --teal:         #06B6D4;
  --teal-dim:     rgba(6,182,212,0.12);

  /* Kept for compat */
  --violet:       #7C3AED;
  --violet-dim:   rgba(124,58,237,0.12);

  /* Status */
  --ok:   #10B981;
  --warn: #F59E0B;
  --err:  #EF4444;

  /* Gradient text (indigo→violet→teal — 3 stops for richness) */
  --grad-text: linear-gradient(135deg, #4338CA 0%, #7C3AED 45%, #06B6D4 100%);

  /* Gradient button */
  --grad-btn:  linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #0EA5E9 100%);

  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --s1:.25rem; --s2:.5rem;  --s3:.75rem; --s4:1rem;
  --s6:1.5rem; --s8:2rem;  --s10:2.5rem;--s12:3rem;
  --s16:4rem;  --s20:5rem; --s24:6rem;  --s32:8rem;

  --max-w: 1280px;
  --tight:  900px;
  --text-w: 660px;

  --r-sm:4px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-2xl:24px; --r-full:9999px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --t-fast:150ms; --t-med:300ms; --t-slow:500ms;

  --shadow-sm:  0 1px 3px rgba(10,10,26,0.06), 0 4px 16px rgba(79,70,229,0.07);
  --shadow-md:  0 2px 8px rgba(10,10,26,0.08), 0 12px 40px rgba(79,70,229,0.10), 0 0 0 1px rgba(79,70,229,0.04);
  --shadow-lg:  0 4px 16px rgba(10,10,26,0.10), 0 24px 64px rgba(79,70,229,0.12), 0 0 0 1px rgba(79,70,229,0.06);
  --shadow-glow: 0 0 40px rgba(79,70,229,0.18), 0 0 80px rgba(6,182,212,0.08);
}

[lang="ar"] {
  --font-display: 'Cairo', sans-serif;
  --font-body:    'Cairo', sans-serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.intro-active { overflow: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input  { font: inherit; border: none; outline: none; background: none; }

mark {
  background: none;
  color: var(--accent);
  font-style: normal;
}
.q-hl { color: var(--accent); }

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s6);
}
.section { padding-block: var(--s32); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.section-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--grad-btn);
  display: inline-block;
  flex-shrink: 0;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}
[lang="ar"] .section-title { letter-spacing: 0; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.font-mono { font-family: var(--font-mono); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--r-full);
  padding: 0.875rem 1.75rem;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--white {
  background: #ffffff;
  color: var(--accent);
  border: 1.5px solid var(--bg-border-2);
  box-shadow: var(--shadow-sm);
}
.btn--white:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--orange {
  background: var(--grad-btn);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--bg-border-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── DOTS ─────────────────────────────────────────────────── */
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot--red    { background: #FF5F57; }
.dot--yellow { background: #FFBD2E; }
.dot--green  { background: #28CA41; }

/* ── USP BADGES ──────────────────────────────────────────── */
.usp-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3);
  padding: var(--s1) var(--s3);
  border: 1px solid var(--bg-border); border-radius: var(--r-full);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.usp-badge--orange {
  border-color: var(--accent-dim); color: var(--accent);
  background: rgba(91,79,224,0.06);
}
.usp-badge--violet {
  border-color: var(--teal-dim); color: var(--teal);
  background: rgba(6,182,212,0.06);
}

/* ── LANG TOGGLE ─────────────────────────────────────────── */
.lang-btn {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--text-3); padding: var(--s1) var(--s3);
  border: 1px solid var(--bg-border); border-radius: var(--r-full);
  background: var(--bg-elevated); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ═══════════════════════════════════════════════════════════
   INTRO SCREEN — stays dark (Three.js cinematic)
═══════════════════════════════════════════════════════════ */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.intro-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* (il-* phase label classes removed — replaced by ifb floating badges) */

.intro-skip {
  position: absolute;
  bottom: var(--s8);
  inset-inline-end: var(--s8);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 8px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.intro-skip.visible { opacity: 1; pointer-events: auto; }
.intro-skip:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.65);
}

/* ── INTRO FLOATING BADGES ──────────────────────────────── */
.intro-float { position: absolute; inset: 0; pointer-events: none; }

.ifb {
  position: absolute;
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(10, 8, 26, 0.78);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  padding: 14px 18px 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.04);
  min-width: 200px;
  max-width: 260px;
}
.ifb.floating { animation: ifbFloat 3.6s ease-in-out infinite; }
@keyframes ifbFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

/* Inner row: icon + body */
.ifb__row { display: flex; align-items: center; gap: 12px; }

/* Caption line below */
.ifb__cap {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.38);
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: normal;
}

.ifb__icon-wrap {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ifb__icon-wrap--red    { background: rgba(239,68,68,0.9); color: #fff; }
.ifb__icon-wrap--violet { background: linear-gradient(135deg,#4F46E5,#7C3AED); color: #fff; }
.ifb__icon-wrap--dark   { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.14); }
.ifb__icon-wrap--light  { background: #fff; color: #111; border-radius: 8px; }
.ifb__icon-wrap--purple { background: #611f69; color: #fff; }

.ifb__body { display: flex; flex-direction: column; gap: 3px; }
.ifb__title { color: rgba(255,255,255,0.96); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.ifb__sub   { color: rgba(255,255,255,0.45); font-size: 0.68rem; }
.ifb__label-sm { color: rgba(255,255,255,0.5); font-size: 0.68rem; }
.ifb__code  { color: rgba(6,182,212,0.85); }

.ifb__rec-dot {
  display: inline-block; width: 7px; height: 7px;
  background: #EF4444; border-radius: 50%;
  animation: blink 1s step-end infinite;
  margin-inline-end: 5px; vertical-align: middle;
}
.ifb__check { color: #10B981; font-size: 1rem; flex-shrink: 0; font-weight: 700; }

/* Mini waveform bars */
.ifb__minibars {
  display: flex; align-items: center; gap: 3px; height: 24px; flex-shrink: 0;
}
.ifb__minibars span {
  display: block; width: 4px; border-radius: 3px;
  background: rgba(79,70,229,0.7);
  animation: minibar 0.8s ease-in-out infinite alternate;
}
.ifb__minibars span:nth-child(1){ height:7px;  animation-delay:0s; }
.ifb__minibars span:nth-child(2){ height:14px; animation-delay:0.1s; }
.ifb__minibars span:nth-child(3){ height:22px; animation-delay:0.05s; background: rgba(91,79,224,0.9); }
.ifb__minibars span:nth-child(4){ height:16px; animation-delay:0.15s; }
.ifb__minibars span:nth-child(5){ height:24px; animation-delay:0.08s; background: rgba(6,182,212,0.85); }
.ifb__minibars span:nth-child(6){ height:12px; animation-delay:0.12s; }
.ifb__minibars span:nth-child(7){ height:7px;  animation-delay:0.2s; }
@keyframes minibar { from { opacity:.45; transform: scaleY(0.35); } to { opacity:1; transform: scaleY(1); } }

/* Desktop positions */
.ifb--rec     { bottom: 26%; left:  6%; }
.ifb--wave    { bottom: 15%; left:  6%; flex-direction: row; align-items: center; min-width: 0; max-width: none; padding: 10px 14px; }
.ifb--wave .ifb__cap { display: none; }
.ifb--ai      { top: 36%; left:  4%; }
.ifb--reading { top: 55%; left:  5%; }
.ifb--gh      { top: 36%; right: 4%; }
.ifb--t1      { top: 20%; right: 5%; }
.ifb--t2      { top: 37%; right: 5%; }
.ifb--notion  { bottom: 26%; right: 5%; }
.ifb--slack   { bottom: 14%; right: 5%; }

/* Dots typing animation */
.ifb__dots { display: inline-block; animation: dotdot 1.5s steps(4) infinite; }
@keyframes dotdot { 0%{clip-path:inset(0 100% 0 0)} 33%{clip-path:inset(0 66% 0 0)} 66%{clip-path:inset(0 33% 0 0)} 100%{clip-path:inset(0 0 0 0)} }

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .ifb { min-width: 170px; max-width: 220px; padding: 12px 15px 10px; font-size: 0.72rem; }
  .ifb__title { font-size: 0.72rem; }
  .ifb__sub, .ifb__label-sm { font-size: 0.62rem; }
  .ifb__cap  { font-size: 0.6rem; }
  .ifb__icon-wrap { width: 28px; height: 28px; }
  /* Reposition for narrower screens */
  .ifb--rec     { bottom: 22%; left:  3%; }
  .ifb--wave    { bottom: 13%; left:  3%; }
  .ifb--ai      { top: 32%; left:  3%; }
  .ifb--reading { top: 50%; left:  3%; }
  .ifb--gh      { top: 32%; right: 3%; }
  .ifb--t1      { top: 18%; right: 3%; }
  .ifb--t2      { top: 36%; right: 3%; }
  .ifb--notion  { bottom: 22%; right: 3%; }
  .ifb--slack   { bottom: 12%; right: 3%; }
}

/* ── MOBILE (≤ 600px) ── */
@media (max-width: 600px) {
  .ifb {
    min-width: 150px; max-width: 185px;
    padding: 10px 12px 9px; font-size: 0.68rem;
    border-radius: 12px;
  }
  .ifb__row { gap: 8px; }
  .ifb__icon-wrap { width: 26px; height: 26px; border-radius: 8px; }
  .ifb__title { font-size: 0.68rem; }
  .ifb__sub, .ifb__label-sm, .ifb__cap { font-size: 0.58rem; }
  .ifb__check { font-size: 0.85rem; }
  /* On mobile: only show left-side OR right-side, not all 9 */
  .ifb--reading, .ifb--t2, .ifb--slack { display: none; }
  /* Reposition the remaining */
  .ifb--rec     { bottom: 30%; left: 4%; }
  .ifb--wave    { bottom: 19%; left: 4%; }
  .ifb--ai      { top: 30%; left: 4%; }
  .ifb--gh      { top: 30%; right: 4%; }
  .ifb--t1      { top: 18%; right: 4%; }
  .ifb--notion  { bottom: 30%; right: 4%; }
}

/* ── NAV — centered liquid glass pill ──────────────────────── */
.nav {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: var(--s4);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: 10px 18px;
  max-width: 780px;
  width: 100%;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--r-full);
  box-shadow:
    0 4px 24px rgba(79,70,229,0.10),
    0 1px 4px rgba(10,10,26,0.05),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(79,70,229,0.06);
  transition: box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.nav.scrolled .nav__pill {
  background: rgba(255,255,255,0.80);
  box-shadow:
    0 8px 40px rgba(79,70,229,0.15),
    0 2px 8px rgba(10,10,26,0.08),
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -1px 0 rgba(79,70,229,0.08);
}
.nav__logo { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
.nav__wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; color: var(--text); letter-spacing: -0.02em;
}
[lang="ar"] .nav__wordmark { letter-spacing: 0; }
.nav__wordmark--accent { color: var(--accent); }
.nav__links { display: flex; gap: var(--s6); flex: 1; justify-content: center; }
.nav__links a {
  font-size: 0.875rem; color: var(--text-2);
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.nav__links a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.nav__cta { padding: 0.5rem 1.1rem; font-size: 0.8125rem; }

@media (max-width: 768px) {
  .nav { top: 10px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__pill { gap: var(--s4); padding: 8px 14px; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: var(--bg);
}

/* Soft glow layers */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__glow--orange {
  width: 70vw; height: 60vw;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(79,70,229,0.22) 0%,
    rgba(124,58,237,0.10) 40%,
    transparent 70%);
  filter: blur(80px);
  inset-inline-start: -14vw;
  top: -8vh;
  animation: glowPulse 8s ease-in-out infinite;
}
.hero__glow--violet {
  width: 55vw; height: 55vw;
  background: radial-gradient(ellipse at 60% 60%,
    rgba(6,182,212,0.18) 0%,
    rgba(14,165,233,0.08) 50%,
    transparent 70%);
  filter: blur(70px);
  inset-inline-end: -12vw;
  bottom: 0;
  animation: glowPulse 10s ease-in-out infinite reverse;
}

/* Subtle dot-grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(91,79,224,0.10) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

@keyframes glowPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.08); }
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
  padding-block: var(--s16);
}
.hero__copy { display: flex; flex-direction: column; gap: var(--s6); }

/* Eyebrow */
.hero-eyebrow {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--text-3); letter-spacing: 0.04em;
}
.hero-eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: blink 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-eyebrow__badge {
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(91,79,224,0.22);
  border-radius: var(--r-full);
  font-size: 0.6875rem; padding: 2px 8px; font-weight: 600;
}

@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.15; } }

/* Headline */
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  display: flex; flex-direction: column; gap: 0.04em;
}
[lang="ar"] .hero-h1 { letter-spacing: 0; line-height: 1.2; }
.hero-h1__line { display: block; color: var(--text); }
.hero-h1__word--accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.word { display: inline-block; }

/* Sub */
.hero-sub { font-size: 1.0625rem; color: var(--text-2); line-height: 1.75; max-width: var(--text-w); }

/* CTA form */
.hero-cta-wrap { display: flex; flex-direction: column; gap: var(--s4); }
.hero-form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero-form__input {
  flex: 1; min-width: 200px;
  padding: 0.875rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--bg-border-2);
  border-radius: var(--r-full);
  color: var(--text); font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.hero-form__input::placeholder { color: var(--text-3); }
.hero-trust { font-size: 0.8rem; color: var(--text-3); line-height: 1.6; }
.waitlist-success { font-size: 0.9375rem; color: var(--ok); padding: var(--s3) 0; }
.waitlist-error   { font-size: 0.8125rem; color: var(--err); margin-top: var(--s2); }

/* USP mini row */
.hero-usps { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.hero-usp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3);
  padding: 5px 12px;
  border: 1px solid var(--bg-border); border-radius: var(--r-full);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.hero-usp svg { flex-shrink: 0; color: var(--text-3); }
.hero-usp--orange {
  border-color: var(--accent-dim); color: var(--accent);
  background: rgba(91,79,224,0.06);
}
.hero-usp--orange svg { color: var(--accent); }

/* Hero visual window */
.hero-visual { position: relative; }
.hero-visual__glow {
  position: absolute;
  inset: -25% -20%;
  background: radial-gradient(ellipse, rgba(79,70,229,0.18) 0%, rgba(6,182,212,0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
}
.hero-visual__window {
  position: relative;
  background: var(--bg-elevated);
  border: 1.5px solid var(--bg-border-2);
  outline: 1px solid rgba(255,255,255,0.6);
  outline-offset: -1px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.hero-visual__titlebar {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--bg-border);
}
.hero-visual__title { margin-inline-start: var(--s3); font-size: 0.6875rem; color: var(--text-3); }
.hero-visual__rec   { margin-inline-start: auto; font-size: 0.625rem; color: var(--err); animation: blink 1s step-end infinite; }
.hero-visual__body  { padding: var(--s6); min-height: 160px; position: relative; background: #fff; }
#waveform-canvas { width: 100%; height: 110px; }

/* Task list */
.task-list { display: none; flex-direction: column; gap: var(--s3); }
.task-list.visible { display: flex; }
.task-list__item {
  display: flex; align-items: flex-start; gap: var(--s3);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.task-list__item.shown { opacity: 1; transform: none; }
.task-list__check { font-size: 0.8125rem; color: var(--ok); flex-shrink: 0; margin-top: 1px; }
.task-list__check--dim { color: var(--text-3); }
.task-list__item .font-mono { font-size: 0.78125rem; color: var(--text-2); line-height: 1.6; }

/* Floating badges */
.hero-badge {
  position: absolute;
  display: flex; align-items: center; gap: var(--s2);
  background: #fff;
  border: 1.5px solid var(--bg-border);
  border-radius: var(--r-lg);
  padding: var(--s2) var(--s3);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-2);
  box-shadow: var(--shadow-md);
  animation: badgeFloat 4s ease-in-out infinite;
}
.hero-badge--tl { top: -14px; inset-inline-start: -10px; }
.hero-badge--br { bottom: -14px; inset-inline-end: -10px; animation-delay: 2s; }
.hero-badge__icon { font-size: 0.875rem; }
.hero-badge__icon--ok { color: var(--ok); }
.hero-badge__icon-box {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.hero-badge__icon-box--violet { background: var(--grad-btn); }
.hero-badge__icon-box--green  { background: linear-gradient(135deg, #10B981, #059669); }

@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding-block: 110px var(--s16); min-height: auto; }
  .hero-h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-form { flex-direction: column; }
  .hero-form__input { min-width: unset; width: 100%; }
  .hero-form .btn { width: 100%; justify-content: center; }
  .hero-usps { gap: var(--s2); }
  .hero-usp { font-size: 0.7rem; padding: 4px 10px; }
}

/* ── PROBLEM ─────────────────────────────────────────────── */
.problem {
  position: relative; overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.problem__bg-number {
  position: absolute;
  inset-inline-end: -4%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 28vw, 26rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none; user-select: none;
  letter-spacing: -0.05em;
}
.problem__inner {
  max-width: var(--tight);
  display: flex; flex-direction: column; gap: var(--s8);
}
.problem__inner .section-title { margin-top: var(--s3); }
.problem__quote {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--text-2); line-height: 1.8;
  border-inline-start: 3px solid transparent;
  border-image: var(--grad-btn) 1;
  padding-inline-start: var(--s8);
  max-width: 680px;
}
[lang="ar"] .problem__quote { font-style: normal; }
.problem__attr { font-size: 0.8rem; color: var(--text-3); letter-spacing: 0.04em; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how__header { text-align: center; margin-bottom: var(--s20); }
.how__header .section-label { justify-content: center; }
.how__header .section-title { margin-top: var(--s4); }
.how__steps { position: relative; display: flex; flex-direction: column; gap: var(--s24); }
.how__track {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--bg-border);
  transform: translateX(-50%); z-index: 0;
}
.how__track-fill {
  width: 100%; height: 0%;
  background: var(--grad-btn);
  border-radius: 2px;
}
.step { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s12); align-items: center; position: relative; z-index: 1; }
.step--right .step__visual { order: -1; }
[dir="rtl"] .step--right .step__visual { order: 0; }
[dir="rtl"] .step--left  .step__visual { order: 1; }

.step__num {
  display: block; font-size: 2.5rem; font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1; margin-bottom: var(--s3);
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700;
  margin-bottom: var(--s3); color: var(--text);
}
.step__body { font-size: 1rem; color: var(--text-2); line-height: 1.75; margin-bottom: var(--s4); }
.step__usp { margin-top: var(--s2); }

/* Mock windows — white with rich border + inset top-light */
.mock-window {
  background: #fff;
  border: 1.5px solid var(--bg-border-2);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  direction: ltr;
  transition: box-shadow 0.3s ease;
}
.mock-window:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(79,70,229,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
}
.mock-window__bar {
  display: flex; align-items: center; gap: var(--s2);
  padding: 0.5rem var(--s4);
  background: var(--bg-surface); border-bottom: 1px solid var(--bg-border);
}
.mock-window__body {
  padding: 1.25rem var(--s6); font-size: 0.75rem;
  display: flex; flex-direction: column; gap: var(--s2); text-align: left;
}
.mock-rec { display: flex; align-items: center; gap: var(--s3); color: var(--text); }
.mock-rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--err); animation: blink 1s ease-in-out infinite; }
.mock-caption { color: var(--text-3); font-size: 0.6875rem; }
.mock-bar { height: 3px; background: var(--bg-border); border-radius: 2px; margin-top: var(--s2); }
.mock-bar__fill { height: 100%; background: var(--grad-btn); border-radius: 2px; }
.mock-connected { color: var(--text-2); }
.mock-ok { color: var(--ok); }
.mock-pushing { color: var(--text-2); }
.mock-stats { display: flex; gap: var(--s4); color: var(--text-3); font-size: 0.6875rem; flex-wrap: wrap; }
.mock-header { color: var(--text-3); letter-spacing: 0.1em; font-size: 0.6875rem; }
.mock-tasks { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.mock-task { display: flex; align-items: center; gap: var(--s3); color: var(--text-2); font-size: 0.75rem; }
.mock-badge { font-size: 0.625rem; padding: 2px 5px; border-radius: var(--r-sm); font-weight: 600; flex-shrink: 0; }
.mock-badge--high { background: var(--accent-dim); color: var(--accent); }
.mock-badge--med  { background: rgba(245,158,11,0.12); color: var(--warn); }
.mock-badge--low  { background: var(--bg-surface); color: var(--text-3); border: 1px solid var(--bg-border); }

@media (max-width: 768px) {
  .step { grid-template-columns: 1fr; }
  .step--right .step__visual { order: 0; }
  [dir="rtl"] .step--left  .step__visual { order: 0; }
  .how__track { display: none; }
}

/* ── DEMO ────────────────────────────────────────────────── */
.demo { background: var(--bg-surface); }
.demo__header { text-align: center; margin-bottom: var(--s16); }
.demo__header .section-label { justify-content: center; }
.demo__header .section-title { margin-top: var(--s4); }
.demo__window {
  max-width: 820px; margin-inline: auto;
  background: #fff;
  border: 1.5px solid var(--bg-border-2); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.9);
  direction: ltr;
}
.demo__titlebar {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s6);
  background: var(--bg-surface); border-bottom: 1px solid var(--bg-border);
}
.demo__titlebar-label { margin-inline-start: var(--s4); font-size: 0.6875rem; color: var(--text-3); }
.demo__body { padding: var(--s6) var(--s8); display: flex; flex-direction: column; gap: var(--s8); }
@media (max-width: 640px) {
  .demo__body { padding: var(--s4); gap: var(--s6); }
  .demo__window { border-radius: var(--r-lg); }
  .demo { padding-inline: 0; }
}
.demo__panel { display: flex; flex-direction: column; gap: var(--s3); }
.demo__panel-label { font-size: 0.6875rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.demo__line { font-size: 0.8125rem; line-height: 1.65; color: var(--text); }
.demo__ts { color: var(--text-3); margin-inline-end: var(--s3); }
.demo__speaker { color: var(--accent); margin-inline-end: var(--s2); }
.demo__speaker--you { color: var(--text-3); }
.demo__transcript-text { color: var(--text-2); }
.demo__cursor { color: var(--text-2); animation: blink 0.8s step-end infinite; }
.demo-tasks { display: flex; flex-direction: column; gap: 1.25rem; }
.demo-task {
  display: flex; gap: var(--s4); align-items: flex-start;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-task.shown { opacity: 1; transform: none; }
.demo-task__check { color: var(--ok); font-size: 0.875rem; flex-shrink: 0; margin-top: 2px; }
.demo-task__title { font-size: 0.8125rem; color: var(--text); font-weight: 600; }
.demo-task__ctx   { font-size: 0.75rem; color: var(--text-3); margin-top: var(--s1); }
.demo-task__badge { font-size: 0.6875rem; padding: 1px 5px; border-radius: var(--r-sm); margin-inline-start: var(--s2); }
.demo-task__badge--high { background: var(--accent-dim); color: var(--accent); }
.demo-task__badge--med  { background: rgba(245,158,11,0.12); color: var(--warn); }
.demo-task__badge--low  { background: var(--bg-surface); color: var(--text-3); border: 1px solid var(--bg-border); }
.demo__gh-line { font-size: 0.8125rem; color: var(--text-2); }
.demo__gh-linked { color: var(--ok); }

/* ── FEATURES / TERMINAL ─────────────────────────────────── */
.features {
  background: #fff;
  border-top: 1px solid var(--bg-border);
}
.features__header { text-align: center; margin-bottom: var(--s16); }
.features__header .section-label { justify-content: center; }
.features__header .section-title { margin-top: var(--s4); }

/* Terminal — keeps dark style for code aesthetic */
.terminal {
  max-width: 820px; margin-inline: auto;
  background: #0D0D1A;
  border: 1.5px solid rgba(91,79,224,0.25); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(91,79,224,0.08), 0 24px 64px rgba(10,10,26,0.18);
  direction: ltr;
}
.terminal__bar {
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: #181828; border-bottom: 1px solid rgba(91,79,224,0.18);
}
.terminal__bar-label { margin-inline-start: var(--s4); font-size: 0.6875rem; color: rgba(255,255,255,0.3); }
.terminal__body { padding: var(--s6) var(--s8); font-size: 0.8125rem; line-height: 1.75; min-height: 320px; }
.term-line         { opacity: 0; display: block; white-space: pre-wrap; }
.term-line.visible { opacity: 1; }
.term-prompt   { color: rgba(255,255,255,0.45); }
.term-ok       { color: #10B981; }
.term-header   { color: #fff; letter-spacing: 0.06em; font-weight: 600; }
.term-divider  { color: rgba(91,79,224,0.4); }
.term-task-high{ color: #7B70F4; }
.term-task-med { color: #F59E0B; }
.term-task-low { color: rgba(255,255,255,0.35); }
.term-detail   { color: rgba(255,255,255,0.3); }
.term-final    { color: #10B981; font-weight: 600; }
.term-cursor   { color: rgba(255,255,255,0.45); animation: blink 0.8s step-end infinite; }

/* Feature pills */
.features__pills {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  margin-top: var(--s8);
  max-width: 820px; margin-inline: auto;
}
.feature-pill {
  font-family: var(--font-mono); font-size: 0.78125rem; color: var(--text-3);
  padding: var(--s2) var(--s4);
  border: 1.5px solid var(--bg-border); border-radius: var(--r-full);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  cursor: default;
}
.feature-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.feature-pill--orange { border-color: var(--accent-dim); color: var(--accent); background: rgba(91,79,224,0.05); }
.feature-pill--violet { border-color: var(--teal-dim); color: var(--teal); background: rgba(6,182,212,0.05); }
.feature-pill--green  { border-color: rgba(16,185,129,0.2); color: var(--ok); background: rgba(16,185,129,0.05); }

/* ── STATS ───────────────────────────────────────────────── */
.stats {
  background: var(--bg);
  border-top: 1px solid var(--bg-border);
  position: relative; overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(91,79,224,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s8);
  text-align: center; position: relative;
}
.stat__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: var(--s3); letter-spacing: -0.03em;
}
.stat__label { font-size: 0.875rem; color: var(--text-3); line-height: 1.45; }

@media (max-width: 768px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ── QUOTE STRIP ─────────────────────────────────────────── */
.quote-strip {
  background: #fff;
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}
.quote-strip__inner {
  max-width: var(--tight); margin-inline: auto;
  display: flex; flex-direction: column; gap: var(--s6);
}
.quote-strip__mark {
  font-size: 5rem; line-height: 0.8;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}
.quote-strip__text { font-size: clamp(1.125rem, 2.5vw, 1.5rem); line-height: 1.75; color: var(--text-2); }
.quote-strip__author { font-size: 0.8125rem; color: var(--text-3); letter-spacing: 0.04em; }

/* ── FINAL CTA ───────────────────────────────────────────── */
.cta-final {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #3730A3 0%, #6D28D9 45%, #0E7490 100%);
}
.cta-final__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 70%, rgba(255,255,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 25%, rgba(6,182,212,0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(124,58,237,0.15) 0%, transparent 50%);
  background-size: 200% 200%;
  pointer-events: none;
}
.cta-final__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--s8);
}
.cta-final__headline { max-width: 760px; }
.cta-final__headline .section-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  /* Force white text on dark gradient background — override gradient-text */
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.cta-line { display: block; }
.cta-final__sub {
  font-size: 1.0625rem; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 500px;
}
.cta-final__sub strong { color: #fff; }
.cta-final__form { max-width: 560px; width: 100%; }
.cta-final__form .hero-form { justify-content: center; }
.cta-final__form .hero-form__input {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
  border-width: 1.5px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
}
.cta-final__form .hero-form__input::placeholder { color: rgba(255,255,255,0.55); }
.cta-final__form .hero-form__input:focus {
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.24);
  outline: none;
}
.cta-final__form .btn--orange {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-final__form .btn--orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.cta-final__perks {
  display: flex; flex-wrap: wrap; gap: var(--s6); justify-content: center;
  font-size: 0.8125rem; color: rgba(255,255,255,0.65); letter-spacing: 0.025em;
}
.cta-final .section-label { color: rgba(255,255,255,0.65); }
.cta-final .section-label::before { background: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  .cta-final__headline .section-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .cta-final__form .hero-form { flex-direction: column; }
  .cta-final__form .hero-form__input { min-width: unset; width: 100%; }
  .cta-final__form .hero-form .btn { width: 100%; justify-content: center; }
  .cta-final__perks { gap: var(--s4); font-size: 0.75rem; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--bg-border);
  padding-block: var(--s8);
}
.footer__inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--s4);
}
.footer__copy { font-size: 0.8rem; color: var(--text-3); }
.footer__links { display: flex; gap: var(--s6); }
.footer__links a { font-size: 0.875rem; color: var(--text-3); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--accent); }

@media (max-width: 768px) { .footer__inner { flex-direction: column; text-align: center; } }

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
