/* The public website. Same palette and font as the studio; RTL and LTR via logical properties. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f8f8;
  --surface: #ffffff;
  --border: #e2e8ea;
  --text: #10181c;
  --muted: #56636b;
  --accent: #0f766e;
  --accent-2: #115e59;
  --accent-soft: #e3f3f1;
  --on-accent: #ffffff;
  --hero-1: #0d5f59;
  --hero-2: #0a3d3a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(4, 32, 29, .28);
  --radius: 16px;
  --font: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1114; --bg-alt: #10181c; --surface: #141d22; --border: #24323a;
    --text: #e7eef0; --muted: #9fb0b7; --accent: #2dd4bf; --accent-2: #5eead4;
    --accent-soft: #0f2e2b; --on-accent: #04201d; --hero-1: #0b3b38; --hero-2: #071f1d;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1114; --bg-alt: #10181c; --surface: #141d22; --border: #24323a;
  --text: #e7eef0; --muted: #9fb0b7; --accent: #2dd4bf; --accent-2: #5eead4;
  --accent-soft: #0f2e2b; --on-accent: #04201d; --hero-1: #0b3b38; --hero-2: #071f1d;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px;
  line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.big { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn.light { background: #fff; color: #0a3d3a; border-color: #fff; }
.ghost { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600;
  cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.ghost:hover { color: var(--text); background: var(--bg-alt); }
.ghost.icon { display: inline-grid; place-items: center; padding: 8px; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand b { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; flex: none; }
.mark svg { stroke-width: 2.4; width: 20px; height: 20px; }
.mark-logo { width: 38px; height: 38px; object-fit: contain; flex: none; }
.links { display: flex; gap: 22px; margin-inline-start: 12px; }
.links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(45, 212, 191, .28), transparent 60%),
  linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.01em; }
.hero .lead { font-size: 18px; opacity: .88; margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn:not(.primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.hero .btn.primary { background: #fff; border-color: #fff; color: #0a3d3a; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero .ticks li { opacity: .92; }

/* The phone */
.phone { background: #efeae2; color: #111; border-radius: 28px; box-shadow: var(--shadow-lg);
  border: 8px solid #0b1f1d; overflow: hidden; max-width: 420px; width: 100%; justify-self: center; }
.phone-head { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; padding: 12px 14px; }
.phone-head b { display: block; font-size: 15px; }
.phone-head small { display: block; font-size: 12px; opacity: .8; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  font-weight: 700; color: #053; flex: none; }
.phone-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 430px; }
.phone-foot { font-size: 11.5px; color: #667; text-align: center; padding: 6px 10px 10px; }
.bubble { max-width: 86%; padding: 8px 11px; border-radius: 10px; font-size: 14px; line-height: 1.5;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.me { background: #d9fdd3; align-self: flex-start; }
.bubble.bot { background: #fff; align-self: flex-end; }
[dir="ltr"] .bubble.me { align-self: flex-end; }
[dir="ltr"] .bubble.bot { align-self: flex-start; }
.bubble.done { border-inline-start: 3px solid #16a34a; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; background: #eef7f5; color: #0a5c55; border: 1px solid #cfe9e5; border-radius: 999px; padding: 2px 9px; }
.draft { align-self: flex-end; width: 92%; background: #fff; border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); border-top: 3px solid #0f766e; font-size: 13.5px; }
[dir="ltr"] .draft { align-self: flex-start; }
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.pill { font-size: 11.5px; font-weight: 600; background: #fff4d6; color: #8a5a00; padding: 1px 8px; border-radius: 999px; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed #e6e6e6; }
.line.muted { color: #667; }
.line.total { font-weight: 700; border-bottom: 0; padding-top: 6px; }
.draft-actions { display: flex; gap: 8px; margin-top: 8px; }
.draft-actions .b { flex: 1; text-align: center; padding: 6px; border-radius: 8px; border: 1px solid #ddd; font-weight: 600; font-size: 13px; }
.draft-actions .b.ok { background: #0f766e; color: #fff; border-color: #0f766e; }
#demo [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
#demo [data-step].in { opacity: 1; transform: none; }

/* ── Strip ───────────────────────────────────────────────────── */
.strip { border-bottom: 1px solid var(--border); background: var(--bg); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding-top: 18px;
  padding-bottom: 18px; color: var(--muted); font-weight: 600; font-size: 15px; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.section-head p, .section .lead { color: var(--muted); font-size: 17px; margin-top: 12px; }

.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dept, .feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.dept:hover { transform: translateY(-2px); border-color: var(--c, var(--accent)); }
.dept h3, .feature h3 { font-size: 18px; margin-top: 14px; }
.dept p, .feature p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); }
.dept .ficon { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.example { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); font-size: 14px; }
.example small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.section .ticks li { color: var(--text); }
.route-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.route-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.route-row .who { padding: 9px 12px; border-radius: 10px; background: var(--bg-alt); font-weight: 600; }
.route-row .to { padding: 9px 12px; border-radius: 10px; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); }
.arrow { color: var(--muted); font-weight: 700; }
[dir="rtl"] .route-row .arrow { transform: scaleX(-1); }
.route-handoff { margin-top: 8px; padding: 14px; border-radius: 12px; background: #efeae2; display: flex;
  flex-direction: column; gap: 8px; color: #111; }
.bubble.small { font-size: 13.5px; }
.ho-line { align-self: center; display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600;
  background: #fff; border-radius: 999px; padding: 3px 12px; color: #0a5c55; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  counter-reset: none; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); }
.steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--accent); color: var(--on-accent); }
.steps h3 { margin-top: 14px; font-size: 18px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards3.four { grid-template-columns: repeat(4, 1fr); }

.cta { padding: 0 0 88px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff; border-radius: 22px;
  padding: 40px 44px; }
.cta-box h2 { font-size: 30px; }
.cta-box p { opacity: .85; margin-top: 6px; }
.footer { border-top: 1px solid var(--border); padding: 26px 0; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Smaller screens ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .links { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .dept-grid, .cards3, .cards3.four, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-row { gap: 8px; height: 60px; }
  .brand small { display: none; }
  .brand > span:last-child { display: none; }   /* the mark alone: the hero names the studio */
  .ghost { padding: 8px 6px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 14px; }
  .hero-grid { padding-top: 44px; padding-bottom: 52px; }
  .hero .lead { font-size: 16.5px; }
  .dept-grid, .cards3, .cards3.four, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .phone-body { min-height: 400px; }
  .cta-box { padding: 30px 24px; }
  .route-row { grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: 14px; }
}
