:root {
  --bg: #faf6ee;
  --bg-2: #f3ecdd;
  --surface: #ffffff;
  --border: #e9e1d0;
  --text: #211d16;
  --text-muted: #6b6355;
  --accent: #3b6fe0;
  --accent-dark: #2a54b8;
  --accent-soft: #e8eefd;
  --dot-1: #3b6fe0;
  --dot-2: #d97b4a;
  --dot-3: #2f9e6e;
  --dot-4: #211d16;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --bg-2: #1d1c15;
    --surface: #201f18;
    --border: #35332a;
    --text: #f2efe6;
    --text-muted: #a7a091;
    --accent: #7ea1ee;
    --accent-dark: #9cb8f2;
    --accent-soft: #26314f;
    --dot-1: #7ea1ee;
    --dot-2: #e6a06f;
    --dot-3: #5cc298;
    --dot-4: #f2efe6;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* ---- Header / Footer ---- */

header.site { border-bottom: 1px solid var(--border); }

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }

nav.site-nav { display: flex; align-items: center; gap: 26px; }

nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

nav.site-nav a:hover { color: var(--accent); }

/* ---- Language switcher ---- */

.lang { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

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

.lang-arrow { font-size: 9px; opacity: .6; transition: transform .2s; }
.lang.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(30, 24, 8, 0.16);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}

.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.lang-menu a:hover { background: var(--bg-2); color: var(--text); }
.lang-menu a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }

[dir="rtl"] .lang-menu { right: auto; left: 0; }

main { padding: 0 0 72px; }

/* ---- RTL (Arabic, Hebrew) ---- */

[dir="rtl"] { text-align: right; }

[dir="rtl"] .hero-grid,
[dir="rtl"] .feature-grid-outer,
[dir="rtl"] .showcase-grid {
  direction: ltr;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .feature-grid-outer > div,
[dir="rtl"] .showcase-copy,
[dir="rtl"] .card,
[dir="rtl"] .pricing-box,
[dir="rtl"] .req-callout,
[dir="rtl"] article.legal {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .hero-actions { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] nav.site-nav { flex-direction: row-reverse; }
[dir="rtl"] footer.site .wrap { flex-direction: row-reverse; }
[dir="rtl"] footer.site nav { flex-direction: row-reverse; }
[dir="rtl"] .pricing-box ul { padding-right: 0; }
[dir="rtl"] .menu-mock-bar { margin: 0 auto 14px 0; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 13px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

footer.site nav { display: flex; gap: 18px; }
footer.site a { color: var(--text-muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }

/* ---- Hero ---- */

.hero-section {
  background: radial-gradient(ellipse 900px 500px at 15% 0%, var(--bg-2), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-copy h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-copy p.sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 480px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cta {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 11px;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}

.cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.cta-secondary {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.cta-secondary:hover { text-decoration: underline; }

.hero-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.req-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 460px;
}

.req-note strong { color: var(--text); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.hero-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 440px;
  filter: drop-shadow(0 24px 48px rgba(30, 24, 8, 0.16));
}

/* ---- Feature section ---- */

.feature-section { padding: 84px 0; border-bottom: 1px solid var(--border); }

.feature-grid-outer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .feature-grid-outer { grid-template-columns: 1fr; gap: 32px; }
}

.feature-section h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 14px;
}

.dot-1 { background: var(--dot-1); }
.dot-2 { background: var(--dot-2); }
.dot-3 { background: var(--dot-3); }
.dot-4 { background: var(--dot-4); }

.card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---- Showcase (menu bar) ---- */

.showcase-section { padding: 84px 0; border-bottom: 1px solid var(--border); }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-grid { direction: ltr !important; }
  .showcase-visual { order: -1; }
}

.showcase-grid.reverse { direction: rtl; }
.showcase-grid.reverse > * { direction: ltr; }

.showcase-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.showcase-copy p { color: var(--text-muted); font-size: 16px; max-width: 440px; }

.menu-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(30, 24, 8, 0.18);
}

.menu-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  width: fit-content;
  margin: 0 0 14px auto;
}

.menu-mock img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

/* ---- Pricing box ---- */

.pricing-section { padding: 84px 0; }

.pricing-box {
  padding: 8px 40px 0;
  text-align: center;
}

.pricing-box .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.pricing-box .amount span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

.pricing-box ul {
  list-style: none;
  padding: 0;
  margin: 28px auto 20px;
  max-width: 340px;
  text-align: left;
}

.pricing-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.pricing-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: var(--text);
  font-size: 15px;
}

.pricing-box li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1.5;
}

.req-callout {
  margin-top: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
}

.req-callout strong { color: var(--text); }

/* ---- Legal pages ---- */

article.legal h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 48px 0 4px; }
article.legal .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 36px; }
article.legal h2 { font-size: 18px; font-weight: 700; margin: 32px 0 10px; }
article.legal p, article.legal li { color: var(--text); font-size: 15px; }
article.legal ul { padding-left: 20px; }
article.legal a { color: var(--accent); }
