/* Foretell landing — dark, confident B2B. No external assets. */

:root {
  --bg: #070a12;
  --bg-raise: #0c111f;
  --bg-card: rgba(255, 255, 255, 0.025);
  --ink: #e9ebf3;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #e8b34b;
  --accent-soft: #f2cd7e;
  --accent-ink: #1a1304;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Noto Sans Hebrew", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- language gating: exactly one language visible, driven by <html lang> ---- */
html[lang="en"] [lang="he"],
html[lang="he"] [lang="en"] { display: none; }

/* ---- a11y primitives ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(232, 179, 75, 0.35); }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================= NAV ============================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.78);
  border-bottom: 1px solid transparent;
}
@supports not (backdrop-filter: blur(14px)) {
  .nav { background: rgba(7, 10, 18, 0.96); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand-name { translate: 0 -1px; }

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-inline-start: auto;
}
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-toggle {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-toggle:hover { color: var(--ink); border-color: rgba(255,255,255,0.25); text-decoration: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { gap: 0.75rem; }
  .nav-actions { margin-inline-start: auto; }
}

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.55rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 4px 22px rgba(232, 179, 75, 0.22);
}
.btn-solid:hover { box-shadow: 0 6px 28px rgba(232, 179, 75, 0.32); }

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.92rem; border-radius: 8px; }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 11vh, 8rem) 1.25rem clamp(3.5rem, 8vh, 6rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(232, 179, 75, 0.10), transparent 62%),
    radial-gradient(900px 600px at 85% 110%, rgba(64, 99, 197, 0.12), transparent 60%);
}
#simCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.34rem 0.95rem;
  border: 1px solid rgba(232, 179, 75, 0.35);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(232, 179, 75, 0.06);
}
.hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.1rem, 5.4vw, 3.55rem);
  line-height: 1.13;
  font-weight: 760;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--accent-soft), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 660px;
  margin: 0 auto 2.1rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-chips li {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ============================ SECTIONS ============================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.4rem, 8vh, 5.5rem) 1.25rem;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 740;
  letter-spacing: -0.01em;
}
.lede { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---- steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.7rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}
.step-num {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(232, 179, 75, 0.4);
  border-radius: 8px;
  padding: 0.22rem 0.6rem;
  background: rgba(232, 179, 75, 0.07);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 0.6rem; font-size: 1.16rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

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

/* ---- pricing table ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.tiers {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.tiers th, .tiers td {
  padding: 0.95rem 1.2rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tiers thead th {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}
.tiers tbody tr:last-child th,
.tiers tbody tr:last-child td { border-bottom: 0; }
.tiers tbody th { font-weight: 700; }
.tiers tbody tr:hover { background: rgba(255, 255, 255, 0.022); }

.tier-hot {
  background: linear-gradient(90deg, rgba(232, 179, 75, 0.085), rgba(232, 179, 75, 0.025));
  box-shadow: inset 3px 0 0 var(--accent);
}
html[dir="rtl"] .tier-hot { box-shadow: inset -3px 0 0 var(--accent); }
.tier-hot:hover { background: linear-gradient(90deg, rgba(232,179,75,0.11), rgba(232,179,75,0.04)); }

.tag {
  display: inline-block;
  margin-inline-start: 0.55rem;
  padding: 0.13rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-ink);
  background: var(--accent);
  vertical-align: middle;
}

.dim { color: var(--muted); }

.footnote {
  margin: 1.3rem 0.2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 860px;
}

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 0.8rem; max-width: 860px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 0;
  transition: border-color 0.15s ease;
}
.faq-list details[open] { border-color: rgba(232, 179, 75, 0.35); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.3rem;
  font-weight: 650;
  font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---- waitlist ---- */
.waitlist-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  border: 1px solid rgba(232, 179, 75, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(620px 300px at 50% -30%, rgba(232, 179, 75, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}
.waitlist-card h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 740;
}
.waitlist-card .lede { margin-bottom: 1.9rem; }

.wl-row {
  display: flex;
  gap: 0.7rem;
  max-width: 520px;
  margin: 0 auto;
}
#wl-email {
  flex: 1;
  min-width: 0;
  padding: 0.78rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
#wl-email::placeholder { color: rgba(154, 163, 184, 0.6); }
#wl-email:focus-visible { outline-offset: 0; border-color: var(--accent); }

.hp-field { position: absolute; inset-inline-start: -9999px; top: -9999px; }

.wl-status {
  min-height: 1.5em;
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.wl-status.ok { color: #7ddc9a; }
.wl-status.err { color: #f08c8c; }
.wl-status.busy { color: var(--muted); }

.wl-privacy { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.84rem; }

@media (max-width: 560px) {
  .wl-row { flex-direction: column; }
}

/* ============================ FOOTER ============================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-weight: 600;
}
.footer .brand-mark { width: 20px; height: 20px; }
.footer-fine { margin: 0.25rem 0 0; font-size: 0.84rem; }

/* ---- motion safety ---- */
@media (prefers-reduced-motion: reduce) {
  .btn, .skip, .faq-list summary::after { transition: none; }
  .btn:hover { transform: none; }
}
