/* =====================================================
   BOTEN V4 — Core Design System
   Dark premium, warm gold, Hebrew-first, RTL-aware
   ===================================================== */

:root {
  color-scheme: dark;

  /* ---- Brand ---- */
  --gold-50:  #fff4dd;
  --gold-200: #ffd591;
  --gold-300: #ffc167;
  --gold-400: #f5a524;       /* primary BOTEN gold */
  --gold-500: #e08810;
  --gold-600: #b86700;
  --gold-glow: rgba(245, 165, 36, .35);

  --green-400: #25d366;       /* WhatsApp — product use only */
  --green-500: #1ea052;
  --green-deep: #075e54;

  /* ---- Surfaces (warm-toned dark) ---- */
  --bg-0: #07080b;            /* page */
  --bg-1: #0d0e12;            /* section alt */
  --bg-2: #14161c;            /* card */
  --bg-3: #1a1d25;            /* raised */
  --surface-glass: rgba(255, 250, 240, .035);
  --surface-glass-2: rgba(255, 250, 240, .06);

  /* ---- Ink ---- */
  --ink-0: #faf6ee;           /* warm white headings */
  --ink-1: #ebe6da;
  --ink-2: #aaadb6;           /* secondary */
  --ink-3: #71747e;           /* muted */
  --ink-4: #4a4d56;

  /* ---- Lines ---- */
  --line-1: rgba(255, 250, 240, .07);
  --line-2: rgba(255, 250, 240, .12);
  --line-3: rgba(255, 250, 240, .2);
  --line-gold: rgba(245, 165, 36, .3);

  /* ---- Geometry ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-2xl: 48px;
  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* ---- Type — premium Hebrew + English stack ---- */
  --font-body-he:    "Assistant", "Rubik", system-ui, sans-serif;
  --font-display-he: "Rubik", "Assistant", system-ui, sans-serif;
  --font-body-en:    "Geist", "Inter", system-ui, sans-serif;
  --font-display-en: "Instrument Serif", "Fraunces", "Times New Roman", serif;
  --font-display-en-sans: "Geist", "Inter Tight", system-ui, sans-serif;
  --font-mono:       "JetBrains Mono", ui-monospace, monospace;
  /* legacy aliases */
  --font-he: var(--font-body-he);
  --font-en: var(--font-body-en);

  /* ---- Shadows ---- */
  --shadow-card: 0 24px 60px -16px rgba(0, 0, 0, .6);
  --shadow-card-lg: 0 40px 100px -20px rgba(0, 0, 0, .75);
  --shadow-glow: 0 30px 90px -20px var(--gold-glow);
  --shadow-pop: 0 10px 32px -12px rgba(245, 165, 36, .55);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body-he);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  overflow-x: clip;
  font-feature-settings: "kern", "liga", "calt";
}
body[dir="ltr"] { font-family: var(--font-body-en); letter-spacing: -0.011em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold-400); color: var(--bg-0); }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

/* ===== Page background atmosphere ===== */
.page-atmosphere {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px circle at 80% -10%, rgba(245,165,36,0.08), transparent 50%),
    radial-gradient(1200px circle at -10% 30%, rgba(245,165,36,0.045), transparent 55%),
    radial-gradient(800px circle at 50% 100%, rgba(245,165,36,0.03), transparent 55%);
}
.page-grain {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Ensure content sits above atmosphere */
.site-shell { position: relative; z-index: 2; }

/* ===== Type primitives ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-300);
  background: linear-gradient(180deg, rgba(245,165,36,.08), rgba(245,165,36,.03));
  border: 1px solid var(--line-gold);
  border-radius: 999px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold-400);
  box-shadow: 0 0 10px var(--gold-400);
}

.h-display {
  font-family: var(--font-display-he);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  text-wrap: balance;
}
body[dir="ltr"] .h-display {
  font-family: var(--font-display-en);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-style: italic;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.04;
}
.h-section {
  font-family: var(--font-display-he);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  text-wrap: balance;
}
body[dir="ltr"] .h-section {
  font-family: var(--font-display-en);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
.h-card {
  font-family: var(--font-display-he);
  font-weight: 700;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink-0);
}
body[dir="ltr"] .h-card { font-family: var(--font-display-en-sans); font-weight: 600; letter-spacing: -0.022em; }

.lede {
  font-size: clamp(16px, 1.2vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
  max-width: 58ch;
}
.lede strong { color: var(--ink-1); font-weight: 600; }

.gold { color: var(--gold-300); }
.warm-white { color: var(--ink-0); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background .2s, border-color .2s, box-shadow .25s;
  border: 1px solid transparent;
}
body[dir="ltr"] .btn { font-family: var(--font-en); font-weight: 600; }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: #1a1100;
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -10px rgba(245,165,36,.7), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-ghost {
  background: var(--surface-glass);
  border-color: var(--line-2);
  color: var(--ink-0);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  background: var(--surface-glass-2);
}
.btn-wa {
  background: linear-gradient(180deg, var(--green-400), var(--green-500));
  color: #042b1a;
  box-shadow: 0 10px 28px -10px rgba(37,211,102,.5);
}

/* ===== Containers ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
}
.section-tight {
  padding-block: clamp(60px, 7vw, 100px);
}

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; inset-block-start: 0;
  z-index: 50;
  background: rgba(7, 8, 11, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-block-end: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.topbar.scrolled {
  background: rgba(7, 8, 11, 0.85);
  border-block-end-color: var(--line-1);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding-inline: var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(245,165,36,.45), transparent 65%),
    rgba(255, 250, 240, 0.05);
  border: 1px solid var(--line-gold);
  box-shadow: 0 0 22px rgba(245,165,36,.18), inset 0 1px 0 rgba(255,255,255,.05);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand-mark img { width: 32px; height: 32px; object-fit: contain; }
.brand-text strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-text small {
  display: block;
  margin-block-start: 3px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav {
  display: flex; align-items: center; justify-content: center;
  gap: 32px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--ink-0); }
.nav a::after {
  content: '';
  position: absolute;
  inset-block-end: -2px; inset-inline: 50%;
  height: 1px;
  background: var(--gold-400);
  transition: inset .25s var(--ease-out);
}
.nav a:hover::after { inset-inline: 0; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-glass);
  border: 1px solid var(--line-1);
  padding: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: color .2s, background .2s;
}
.lang-switch a.active {
  color: var(--bg-0);
  background: var(--ink-0);
  font-weight: 600;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
}

/* ===== Section headers ===== */
.section-head {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 760px;
  margin-block-end: clamp(40px, 5vw, 64px);
}
.section-head .lede { color: var(--ink-2); }

/* ===== Cards ===== */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,250,240,.04), rgba(255,250,240,.015)) padding-box,
    linear-gradient(180deg, rgba(255,250,240,.18), rgba(255,250,240,.04)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .3s var(--ease-out), border-color .25s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245,165,36,.18), rgba(245,165,36,.04));
  border: 1px solid var(--line-gold);
  display: grid; place-items: center;
  color: var(--gold-300);
  margin-block-end: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
  margin-block-end: 8px;
  color: var(--ink-0);
}
body[dir="ltr"] .card h3 { font-family: var(--font-en); font-weight: 600; }
.card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ===== Footer ===== */
.site-footer {
  border-block-start: 1px solid var(--line-1);
  padding-block: 48px 28px;
  margin-block-start: 80px;
  position: relative; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-block-end: 16px;
  font-weight: 500;
}
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer li a {
  color: var(--ink-1);
  font-size: 14px;
  transition: color .2s;
}
.site-footer li a:hover { color: var(--gold-300); }
.site-footer .colophon {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding: 24px var(--pad-x) 0;
  border-block-start: 1px solid var(--line-1);
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== Mobile bottom CTA ===== */
.mobile-cta {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 16px;
  z-index: 60;
  display: none;
  background: rgba(13, 14, 18, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.mobile-cta-text { font-size: 13px; color: var(--ink-1); font-weight: 500; }
.mobile-cta .btn { padding: 10px 18px; font-size: 13px; }
@media (max-width: 720px) { .mobile-cta { display: flex; } body { padding-block-end: 80px; } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
