:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-tint: #f3f1ec;
  --espresso: #121110;
  --espresso-soft: #1c1a18;
  --ink: #121110;
  --ink-secondary: #52504b;
  --ink-muted: #848079;
  --border: #e9e5de;
  --border-strong: #d5cfc5;
  --accent: #e04f26;
  --accent-soft: #fdece6;
  --sage-bg: #e3f5ec;
  --sage-text: #157347;
  --amber-bg: #fef3dc;
  --amber-text: #9a5409;
  --red-bg: #fee2e2;
  --red-text: #b91c1c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 17, 16, 0.04), 0 4px 12px rgba(18, 17, 16, 0.025);
  --shadow-md: 0 12px 32px rgba(18, 17, 16, 0.06);
  --shadow-window: 0 28px 64px rgba(18, 17, 16, 0.18);
}

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

body {
  margin: 0;
  font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--ink);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
}

.lang-btn:hover { border-color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-full { width: 100%; padding: 12px 18px; }

.btn-primary { background: var(--ink); color: #fcfbf8; }
.btn-primary:hover { background: #332e2a; }

.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); }

.btn-white { background: #fcfbf8; color: var(--ink); }
.btn-white:hover { background: #ede8df; }

.btn-danger { background: var(--red-bg); color: var(--red-text); border-color: #fecaca; }

/* Hero */
.hero { padding: 64px 0 68px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}

.text-accent { color: var(--accent); }

.hero-lead {
  font-size: 16.5px;
  color: var(--ink-secondary);
  margin-bottom: 26px;
  max-width: 500px;
}

.inline-signup {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  max-width: 480px;
}

.inline-signup input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.signup-feedback {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sage-text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.check-icon { font-style: normal; color: var(--accent); font-weight: 700; margin-inline-end: 4px; }

/* Espresso Simulator Window */
.app-window {
  background: var(--espresso);
  color: #efeae1;
  border-radius: 20px;
  border: 1px solid #35302b;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #25211d;
  border-bottom: 1px solid #35302b;
}

.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 9px; height: 9px; border-radius: 999px; background: #4e4740; }
.window-title { font-size: 12px; font-weight: 600; color: #b5aca2; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}

.live-dot { width: 6px; height: 6px; border-radius: 999px; background: #4ade80; }

.sim-controls {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #322d28;
  background: #1a1715;
}

.sim-label { font-size: 11.5px; color: #a69e94; }
.sim-chips { display: flex; gap: 5px; }

.sim-chip {
  background: #2a2521;
  border: 1px solid #3e3832;
  color: #d6cfc6;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
}

.sim-chip.active, .sim-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pipeline { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.pipe-node {
  background: var(--espresso-soft);
  border: 1px solid #38322c;
  border-radius: 14px;
  padding: 13px;
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.node-step {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(217, 119, 70, 0.18);
  color: #f2a882;
}

.node-step.sage { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.node-meta { font-size: 11px; color: #a69e94; }

.node-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sub-box {
  background: #211e1b;
  border: 1px solid #35302b;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  color: #ded7cd;
}

.sub-box small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #9e968c;
  margin-bottom: 4px;
}

.sheet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #d6cfc6;
}

.sheet-pill {
  background: #211e1b;
  border: 1px solid #3c3630;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Interactive Visual Showcase (Instagram / Facebook / Dashboard) */
.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.showcase-tab {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.showcase-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fcfbf8;
}

.showcase-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.showcase-panel[hidden] { display: none; }

.preview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

/* Instagram Style Mock */
.ig-mock, .fb-mock {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ig-mock-head, .fb-mock-head {
  padding: 12px 16px;
  border-bottom: 1px solid #f0eeea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.ig-avatar-ring {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.fb-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.chat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafaf9;
}

.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.bubble.user {
  align-self: flex-start;
  background: #eceae5;
  color: var(--ink);
}

.bubble.ig-bot {
  align-self: flex-end;
  background: #1c1917;
  color: #fcfbf8;
}

.bubble.fb-bot {
  align-self: flex-end;
  background: #0084ff;
  color: #ffffff;
}

.bubble-cta {
  display: block;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
}

/* Dashboard + Sheets Mini Preview */
.mini-dash-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.mini-dash-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.mini-sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.mini-sheet-table th, .mini-sheet-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #efede8;
  text-align: start;
}

.mini-sheet-table th {
  background: #e5f2ea;
  color: #226642;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .preview-split, .mini-dash-grid { grid-template-columns: 1fr; }
}

/* Metrics & Sections */
.metrics-band { padding: 12px 0 40px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.metric-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.metric-val { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.metric-label { font-size: 13.5px; color: var(--ink-secondary); }

.section { padding: 68px 0; }
.section-tinted { background: var(--surface-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head-center h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.section-head-center p { font-size: 15.5px; color: var(--ink-secondary); }

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

.feature-card h3 { font-size: 19px; margin: 10px 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-secondary); }

.pill-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 7px;
}

/* CTA Banner */
.cta-banner {
  background: var(--espresso);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  color: #fcfbf8;
  box-shadow: var(--shadow-window);
}

.cta-banner h2 { color: #fcfbf8; font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.cta-banner p { color: #bfb8ae; font-size: 16px; margin-bottom: 24px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  background: var(--surface-tint);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-secondary); }
.footer-links a:hover { color: var(--ink); }

/* Legal Pages */
.legal-wrap {
  max-width: 780px;
  margin: 48px auto 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.legal-wrap h1 { font-size: 32px; margin-bottom: 12px; }
.legal-wrap h2 { font-size: 19px; margin: 26px 0 8px; }
.legal-wrap p, .legal-wrap li { font-size: 15px; color: var(--ink-secondary); }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .inline-signup { flex-direction: column; }
  .metrics-grid, .node-split { grid-template-columns: 1fr; }
}
