/* ═══════════════════════════════════════════════════════════════════════════
   סטודיו — דף תדמית. פרימיום כהה.
   פלטה: רקע near-black כחלחל, טקסט שמנת, מבטא גרדיאנט סגול→ציאן במשורה.
   כל צמדי הטקסט נמדדו ל-AA (ראו scripts/check-contrast.mjs בריפו).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── פונטים (self-hosted, OFL) ─────────────────────────────────────────── */
@font-face {
  font-family: "Assistant"; font-weight: 400; font-display: swap;
  src: url("fonts/assistant-400-hebrew.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant"; font-weight: 400; font-display: swap;
  src: url("fonts/assistant-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Assistant"; font-weight: 600; font-display: swap;
  src: url("fonts/assistant-600-hebrew.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant"; font-weight: 700; font-display: swap;
  src: url("fonts/assistant-700-hebrew.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant"; font-weight: 700; font-display: swap;
  src: url("fonts/assistant-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Frank"; font-weight: 700; font-display: swap;
  src: url("fonts/frank-700-hebrew.woff2") format("woff2");
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Frank"; font-weight: 700; font-display: swap;
  src: url("fonts/frank-700-latin.woff2") format("woff2");
}

/* ── טוקנים ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #070b14;          /* הרקע העמוק */
  --surface: #0e1522;     /* כרטיסים */
  --line: rgba(255 255 255 / .09);
  --text: #f4f1e8;        /* שמנת — 16.5:1 על הרקע */
  --muted: #aab3c2;       /* 8.1:1 על הרקע */
  --violet: #7c6cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 14px;
  --wrap: 1160px;
  --font-body: "Assistant", system-ui, sans-serif;
  --font-display: "Frank", "Assistant", serif;
}

/* ── בסיס ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
/* גרעין עדין על כל הדף — טקסטורה, לא רעש */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

/* מיקוד גלוי — תמיד */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: #06131a; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* טקסט גרדיאנט — לכותרות גדולות בלבד (AA לטקסט גדול נמדד על נקודת האמצע) */
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: normal;
}

.overline {
  font-size: .85rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}

/* ── רקע חי ─────────────────────────────────────────────────────────────── */
.mesh { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.mesh__blob {
  position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  filter: blur(90px); opacity: .16;
}
.mesh__blob--a {
  background: radial-gradient(circle at 30% 30%, var(--violet), transparent 65%);
  top: -22vmax; inset-inline-end: -12vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.mesh__blob--b {
  background: radial-gradient(circle at 60% 60%, var(--cyan), transparent 65%);
  bottom: -26vmax; inset-inline-start: -14vmax;
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vmax, 10vmax) rotate(20deg); } }
@keyframes drift-b { to { transform: translate(10vmax, -8vmax) rotate(-16deg); } }

header.top, main, footer.foot { position: relative; z-index: 2; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(7 11 20 / .72); border-bottom: 1px solid var(--line); }
.top__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 18px; min-height: 64px; padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; }
.top__nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px); }
.top__nav > a:not(.btn) {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 6px 2px; transition: color .18s;
}
.top__nav > a:not(.btn):hover { color: var(--text); }

/* ── כפתורים ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: 999px;
  min-height: 44px;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--primary {
  background: var(--grad); color: #071018;
  box-shadow: 0 6px 30px rgba(124 108 255 / .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 38px rgba(34 211 238 / .4); }
.btn--outline {
  border: 1px solid rgba(255 255 255 / .22); color: var(--text);
}
.btn--outline:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid rgba(255 255 255 / .22); color: var(--text);
  padding: 9px 20px; min-height: 40px; font-size: .95rem;
}
.btn--ghost:hover { border-color: var(--cyan); }
.btn--lg { padding: 16px 30px; font-size: 1.1rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(72px, 12vh, 140px) clamp(48px, 8vh, 90px); }
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  letter-spacing: -.01em;
  max-width: 21ch;
}
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── פס אמון ────────────────────────────────────────────────────────────── */
.trust { padding-block: 10px 30px; }
.trust__list {
  list-style: none; margin: 0; padding: 22px clamp(18px, 3vw, 34px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px;
  background: rgba(255 255 255 / .035);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.trust__list li { display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); }
.trust__num { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }

/* ── כותרות סקשן ────────────────────────────────────────────────────────── */
.sect-head { margin-block: clamp(60px, 10vh, 110px) 34px; max-width: 640px; }
.sect-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.sect-head__sub { color: var(--muted); }

/* ── מעבדת הסגנונות ─────────────────────────────────────────────────────── */
.lab__grid {
  display: grid; grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(22px, 4vw, 48px); align-items: start;
}
@media (max-width: 860px) { .lab__grid { grid-template-columns: 1fr; } }

.chipset { display: flex; flex-direction: column; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 12px; min-height: 44px;
  border: 1px solid var(--line); background: rgba(255 255 255 / .03);
  font-weight: 600; text-align: start;
  transition: border-color .18s, background .18s, transform .18s;
}
.chip:hover { border-color: rgba(255 255 255 / .3); transform: translateX(-3px); }
.chip.is-active { border-color: var(--cyan); background: rgba(34 211 238 / .08); }
.chip__dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--c1) 55%, var(--c2) 55%);
  border: 2px solid rgba(255 255 255 / .25);
}

.seg {
  display: inline-flex; margin-top: 18px; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; background: rgba(255 255 255 / .03);
}
.seg__btn {
  padding: 8px 22px; border-radius: 999px; font-weight: 600; color: var(--muted);
  min-height: 40px;
}
.seg__btn.is-active { background: var(--grad); color: #071018; }
.lab__note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

.lab__stage { display: grid; justify-items: center; }
.device { margin: 0; width: 100%; }
.device--desktop {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255 255 255 / .14);
  box-shadow: 0 30px 80px rgba(0 0 0 / .5), 0 0 60px rgba(124 108 255 / .12);
  background: #0a0f1a;
}
.device__chrome {
  display: flex; gap: 7px; padding: 12px 16px;
  background: rgba(255 255 255 / .05); border-bottom: 1px solid var(--line);
}
.device__chrome i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255 255 255 / .18); }
.device--phone {
  max-width: 320px; border-radius: 38px; overflow: hidden;
  border: 8px solid #1a2130;
  box-shadow: 0 30px 80px rgba(0 0 0 / .5), 0 0 60px rgba(34 211 238 / .12);
}
.device__screen { position: relative; }
.device__screen img { transition: opacity .28s ease; }
.device__screen img.is-swapping { opacity: 0; }

/* ── כרטיסי "מה מקבלים" ─────────────────────────────────────────────────── */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px;
}
.card {
  padding: 26px 24px; border-radius: var(--radius);
  background: rgba(255 255 255 / .035);
  border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124 108 255 / .5); background: rgba(255 255 255 / .05); }
.card svg {
  width: 30px; height: 30px; margin-bottom: 14px;
  fill: none; stroke: var(--cyan); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ── שלבים ──────────────────────────────────────────────────────────────── */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
  position: relative;
}
.step {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255 255 255 / .03);
}
.step__num { font-family: var(--font-display); font-size: 2.6rem; display: block; margin-bottom: 8px; }
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ── מי אנחנו ───────────────────────────────────────────────────────────── */
.who { margin-top: clamp(60px, 10vh, 110px); }
.who__card {
  border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(124 108 255 / .1), rgba(34 211 238 / .05) 60%, transparent);
}
.who__card h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.who__card p:last-child { color: var(--muted); max-width: 62ch; margin: 0; }

/* ── שאלות נפוצות ───────────────────────────────────────────────────────── */
.faq__list { display: grid; gap: 12px; max-width: 820px; }
.faq__item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255 255 255 / .035);
  transition: border-color .2s, background .2s;
}
.faq__item:hover { border-color: rgba(255 255 255 / .22); }
.faq__item[open] { border-color: rgba(124 108 255 / .45); background: rgba(255 255 255 / .05); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px clamp(18px, 3vw, 26px); min-height: 44px;
  font-weight: 700; font-size: 1.05rem; cursor: pointer;
  list-style: none;                 /* מסתיר את המשולש של פיירפוקס */
}
.faq__item summary::-webkit-details-marker { display: none; }
/* חץ מצייר משני גבולות — נשאר "v" בכל כיוון כתיבה */
.faq__item summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__a { padding: 0 clamp(18px, 3vw, 26px) 20px; color: var(--muted); max-width: 66ch; }
.faq__a p { margin: 0; }

/* ── יצירת קשר ──────────────────────────────────────────────────────────── */
.contact { margin-block: clamp(60px, 10vh, 110px); }
.contact__card {
  text-align: center; border-radius: 22px;
  padding: clamp(38px, 7vw, 72px) clamp(20px, 5vw, 60px);
  border: 1px solid rgba(255 255 255 / .14);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(124 108 255 / .18), transparent 70%),
    rgba(255 255 255 / .03);
}
.contact__card h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.contact__card > p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.contact__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px;
}

/* ── פוטר ───────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 26px 34px; color: var(--muted); font-size: .92rem; }
.foot__row { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: baseline; justify-content: space-between; }
.foot p { margin: 0; }
.a11y-note { width: 100%; }
.a11y-note summary { cursor: pointer; font-weight: 600; margin-top: 6px; }
.a11y-note div { max-width: 70ch; padding-top: 8px; }

/* ── אנימציות חשיפה ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
/* בלי JS — הכל גלוי */
.no-js .reveal { opacity: 1; transform: none; }

/* ── הפחתת תנועה: הכל סטטי, הכל גלוי ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mesh__blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .chip { transition: none; }
  .device__screen img { transition: none; }
  .faq__item, .faq__item summary::after { transition: none; }
}
