/* ============================================================
   Your Agent — Landing Page
   Palette: deep ink blue ground, signal-blue accent, soft sky highlight
   Type: IBM Plex Sans Arabic (ar) / Manrope (en) — one geometric family
   ============================================================ */

:root {
  --ink: #060B1A;
  --navy: #101B3D;
  --navy-2: #16244D;
  --signal: #2F6FED;
  --signal-2: #4C86FF;
  --sky: #8FB8FF;
  --paper: #F3F6FC;
  --paper-2: #E7EDF9;
  --ink-text: #0B1220;
  --muted: #5C6B8A;
  --muted-light: #97A6C4;
  --line: rgba(255,255,255,0.10);
  --line-dark: rgba(11,18,32,0.10);

  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-en: 'Manrope', sans-serif;

  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-ar);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[data-lang="en"] body { font-family: var(--font-en); }

/* language visibility: default shows [data-ar], hides [data-en] content of dual nodes.
   We toggle by swapping textContent via JS, so no display rules needed here. */

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- background field (subtle, used behind hero only via section bg) ---------- */
.bg-field { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,246,252,0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.wordmark {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-text);
  letter-spacing: -0.02em;
}
.wordmark.small { font-size: 16px; }
.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--ink-text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink-text);
}
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-dark); color: var(--ink-text); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% -10%, #14224A 0%, var(--ink) 55%);
  color: #fff;
  padding: 88px 0 96px;
}
html[dir="rtl"] .hero { background: radial-gradient(120% 140% at 85% -10%, #14224A 0%, var(--ink) 55%); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--sky);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.28;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--sky); }
.hero-sub {
  font-size: 17px;
  color: #C6D2EE;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.hero .btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted-light);
}
.hero-trust li { position: relative; padding-inline-start: 18px; }
.hero-trust li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal-2);
}

/* --- call card visual --- */
.hero-visual { display: flex; justify-content: center; }
.call-card {
  width: 100%;
  max-width: 340px;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.call-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted-light);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: #4CD97B; box-shadow: 0 0 0 4px rgba(76,217,123,0.18); }
.call-status { color: #E7EEFD; font-weight: 600; }
.call-timer { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.waveform { width: 100%; height: 46px; margin-bottom: 18px; color: var(--signal-2); }
.waveform .bars rect { fill: currentColor; }

.transcript { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.line {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 88%;
}
.line-caller {
  background: rgba(255,255,255,0.06);
  color: #C6D2EE;
  align-self: flex-start;
  border-start-start-radius: 4px;
}
.line-agent {
  background: var(--signal);
  color: #fff;
  align-self: flex-end;
  border-start-end-radius: 4px;
}
.call-tag {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  color: #4CD97B;
  background: rgba(76,217,123,0.12);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- section shared ---------- */
section { padding: 92px 0; }
.how, .dashboard-teaser { background: var(--paper); }
.features { background: var(--paper-2); }
.pricing { background: var(--paper); }
.demo { background: var(--navy); color: #fff; }

section h2 {
  font-size: 32px;
  max-width: 20ch;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
  margin-bottom: 52px;
}

/* ---------- how / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  border-top: 2px solid var(--line-dark);
  padding-top: 20px;
}
.step-num {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--signal);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- features ---------- */
.features h2 { margin-bottom: 56px; }
.feature-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--line-dark);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { grid-template-columns: 1fr 160px; }
.feature-row.reverse .feature-icon { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-icon {
  width: 84px; height: 84px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--signal);
}
.feature-icon svg { width: 40px; height: 40px; }
.feature-copy h3 { font-size: 21px; margin-bottom: 8px; }
.feature-copy p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }

/* ---------- dashboard teaser ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.teaser-copy h2 { margin-bottom: 16px; }
.teaser-copy p { color: var(--muted); font-size: 16px; max-width: 50ch; }

.teaser-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 26px;
}
.mini-stat { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.mini-num { font-family: var(--font-en); font-size: 30px; font-weight: 800; }
.mini-label { font-size: 13px; color: var(--muted-light); }
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  margin-bottom: 20px;
}
.mini-bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--signal-2), var(--signal));
  border-radius: 4px 4px 0 0;
  display: block;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted-light);
}
.mini-row strong { color: #fff; }

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.plan-highlight {
  border-color: var(--signal);
  border-width: 2px;
  box-shadow: 0 24px 48px rgba(47,111,237,0.14);
  transform: translateY(-6px);
}
.plan h3 { font-size: 20px; margin-bottom: 8px; }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; min-height: 42px; }
.plan-price { margin-bottom: 24px; }
.amount { font-family: var(--font-en); font-size: 34px; font-weight: 800; }
.period { color: var(--muted); font-size: 14px; }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-features li {
  font-size: 14.5px;
  color: var(--ink-text);
  padding-inline-start: 22px;
  position: relative;
}
.plan-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--signal);
}

/* ---------- demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.demo-copy h2 { color: #fff; }
.demo-copy p { color: var(--muted-light); font-size: 16px; max-width: 44ch; }
.demo-form {
  background: var(--navy-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted-light); }
.demo-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
}
.demo-form input:focus {
  outline: 2px solid var(--signal-2);
  outline-offset: 2px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: 32px 0; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.site-footer .wordmark { color: #fff; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: none; } /* mobile menu simplified: nav hidden, CTA remains */
  .hero-grid, .teaser-grid, .demo-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan-highlight { transform: none; }
  .feature-row, .feature-row.reverse { grid-template-columns: 72px 1fr; gap: 20px; }
  .feature-icon { width: 60px; height: 60px; }
  .feature-icon svg { width: 30px; height: 30px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
}
