/* ===== Crypto Legacy — שליטה במטבעות דיגיטליים =====
   מערכת עיצוב: שחור אובסידיאן, סגול מלכותי, זהב מט.
   נגישות: גודל בסיס 1.15rem, ניגודיות AAA, יעדי מגע 44px. */

:root {
  --bg: #0A0A0C;            /* רקע ראשי, אובסידיאן עמוק */
  --bg-alt: #121418;        /* גרפיט לחלוקת מקטעים */
  --surface: #14141D;       /* גיבוי אטום לדפדפנים ללא backdrop-filter */
  --surface-deep: #0B0B11;  /* פנים שדות קלט */

  --purple: #6A1B9A;        /* סגול מלכותי, אלמנטים מבניים */
  --purple-soft: #8E4DBA;

  --gold: #D4AF37;          /* זהב שמפניה */
  --gold-light: #F3E5AB;    /* שיא הגרדיאנט המתכתי */
  --gold-dim: rgba(212, 175, 55, 0.32);
  --champagne: linear-gradient(135deg, #C9A227 0%, #D4AF37 35%, #F3E5AB 60%, #D4AF37 100%);
  --iridium: linear-gradient(135deg, #8A95A5, #C7CED6);

  --text: #F8F9FA;          /* כותרות, ניגודיות גבוהה */
  --text-dim: #A0AAB2;      /* פסקאות, כסף עמום, עובר AAA על רקע כהה */

  /* זכוכית מחוספסת */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);

  /* זוהר רך וגדול במקום צללים חדים */
  --glow-gold: 0 40px 90px -30px rgba(212, 175, 55, 0.30);
  --glow-purple: 0 50px 130px -35px rgba(106, 27, 154, 0.42);
  --shadow-soft: 0 40px 80px -40px rgba(0, 0, 0, 0.85);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --radius: 18px;
  --nav-h: 76px;
  --font: 'Heebo', sans-serif;
  --font-display: 'Frank Ruhl Libre', 'Heebo', serif;
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }

/* עוגני המקטעים נעצרים מתחת לניווט הקבוע */
section[id] { scroll-margin-top: var(--nav-h); }

[hidden] { display: none !important; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.85;
  overflow-x: hidden;
}

::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 800px; }

.gold-text {
  font-style: normal;
  background: var(--champagne);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gold-link:hover { color: var(--gold-light); }

/* ===== מסך טעינה ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader-mark {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
  animation: markPulse 1.2s ease-in-out infinite;
}

@keyframes markPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.35); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 22px rgba(212, 175, 55, 0); }
}

/* ===== גרעיניות עדינה ===== */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== כפתורים ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.4s var(--ease);
}

.btn-gold {
  background: var(--champagne);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #0A0A0C;
  font-weight: 800;
  box-shadow: var(--glow-gold);
}

.btn-gold:hover {
  background-position: 100% 50%;
  transform: translateY(-3px);
  box-shadow: 0 44px 100px -24px rgba(212, 175, 55, 0.5);
}

.btn-purple {
  background: var(--purple);
  color: #FFFFFF;
  font-weight: 800;
}

.btn-purple:hover {
  background: #7C24B2;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(106, 27, 154, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--purple-soft);
}

.btn-ghost:hover {
  background: rgba(106, 27, 154, 0.18);
  transform: translateY(-2px);
}

.btn-nav {
  background: #4A1170;
  color: #FFFFFF;
  border: 1px solid var(--gold-dim);
  font-size: 1rem;
  padding: 10px 24px;
}

.btn-nav:hover {
  background: var(--purple);
  border-color: var(--gold);
}

.btn-lg { padding: 16px 40px; font-size: 1.12rem; min-height: 56px; }

/* ===== ניווט ===== */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  transition: height 0.3s ease;
}

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

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--gold-dim);
}

.nav-links { display: flex; gap: 6px; }

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 16px;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

/* מצב "נגלל": הניווט מתכווץ ומקבל זוהר זהוב עדין */
.nav.scrolled {
  background: rgba(5, 5, 8, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--gold-dim);
  box-shadow: 0 18px 50px -25px rgba(212, 175, 55, 0.18);
}

.nav.scrolled .nav-inner { height: 62px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ===== פתיח ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 180px 0 130px;
  overflow: hidden;
}

/* זוהר זהב רך מאחורי הכותרת */
.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  top: 38%;
  right: 50%;
  transform: translate(50%, -38%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.10), transparent 62%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

/* שכבת כהות מאחורי הטקסט, שומרת על ניגודיות מעל האנימציה */
.hero-contrast {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(5, 5, 8, 0.88), rgba(5, 5, 8, 0.45) 60%, transparent 100%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 3; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 44px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
  60% { box-shadow: 0 0 0 9px rgba(212, 175, 55, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 38px;
  letter-spacing: -0.02em;
}

.line-mask { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }

.line {
  display: block;
  transform: translateY(110%);
  animation: lineUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  max-width: 680px;
  margin: 0 auto 44px;
  color: var(--text-dim);
  font-size: 1.22rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  right: 50%;
  transform: translateX(50%);
  z-index: 3;
}

.scroll-line {
  width: 2px;
  height: 52px;
  margin: 0 auto;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollDrop 1.9s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ===== מקטעים ===== */
.section { position: relative; z-index: 3; padding: 168px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.32;
  margin-bottom: 24px;
}

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

.section-head .section-tag { justify-content: center; }
.section-head p { color: var(--text-dim); }

/* ===== למה עכשיו ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 96px;
  align-items: center;
}

.why-text p { color: var(--text-dim); margin-bottom: 22px; }

.why-stats { display: flex; flex-direction: column; gap: 24px; }

.stat-card {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 36px 38px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-soft), var(--glow-gold);
}

.stat-num {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  min-width: 110px;
  text-align: center;
  background: var(--champagne);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7; }

/* ===== מסלול הלמידה ===== */
.timeline { position: relative; max-width: 940px; margin: 0 auto; }

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 2px;
  transform: translateX(50%);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: var(--gold);
  transition: height 0.2s linear;
}

.tl-item {
  position: relative;
  width: 50%;
  padding-left: 54px;
  margin-bottom: 56px;
}

.tl-item:nth-child(even) {
  margin-right: 50%;
  padding-left: 0;
  padding-right: 54px;
}

.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  top: 38px;
  left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--gold);
  z-index: 2;
}

.tl-item:nth-child(even) .tl-dot { left: auto; right: -7px; }

.tl-card {
  padding: 42px 40px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease);
}

.tl-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-soft), var(--glow-gold);
}

.tl-num {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  color: var(--gold);
}

.tl-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.tl-card p { color: var(--text-dim); font-size: 1.05rem; }

/* קריאה לפעולה אחרי המסלול */
.journey-cta {
  margin-top: 80px;
  text-align: center;
  padding: 56px 36px;
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
}

.journey-cta p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ===== הגישה ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

/* רשת לא סימטרית, הכרטיס האמצעי יורד מעט לתחושה עריכותית */
.method-card:nth-child(2) { margin-top: 56px; }

.method-card {
  padding: 56px 40px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--ease);
}

.method-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-soft), var(--glow-gold);
}

.method-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.method-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.method-card p { color: var(--text-dim); font-size: 1.05rem; }

/* ===== מי מלמד ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 70px;
  align-items: center;
}

/* מסגרת זהב כפולה, סגנון גלריה מוסדית */
.photo-frame {
  padding: 14px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--surface-deep);
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  background: linear-gradient(170deg, #101018, #15101C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1rem;
}

.about-text p { color: var(--text-dim); margin-bottom: 18px; }

.about-points { list-style: none; margin-top: 20px; }

.about-points li {
  position: relative;
  padding-right: 38px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.about-points li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 900;
}

/* ===== שאלות נפוצות ===== */
.faq-list { display: flex; flex-direction: column; gap: 18px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  transition: border-color 0.25s;
}

.faq-item[open] { border-color: var(--gold-dim); }

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.18rem;
  list-style: none;
  position: relative;
  padding-left: 48px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p { margin-top: 16px; color: var(--text-dim); }

/* ===== הרשמה ===== */
.signup { padding-bottom: 140px; }

.signup-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(170deg, #0C0C13, #110D18);
  padding: 64px 48px;
  text-align: center;
  box-shadow: 0 0 90px rgba(106, 27, 154, 0.28);
}

.signup-subtitle {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 38px;
}

.signup-form {
  display: flex;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex: 1;
  min-width: 250px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface-deep);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1.12rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.signup-form input::placeholder { color: var(--text-dim); }

#emailInput,
#phoneInput {
  unicode-bidi: plaintext; /* מייל ומספר טלפון מוצגים משמאל לימין גם בתוך שדה RTL */
  text-align: right;
}

/* שדה הפיתיון: מוצא מהזרימה ומהעין, אבל לא display:none (בוטים מזהים את זה) */
.signup-form .hp-field {
  position: absolute;
  inset-inline-start: -9999px; /* RTL: גלישה מעבר לקצה ההתחלה נחתכת ולא יוצרת גלילה אופקית */
  width: 1px;
  min-width: 0;
  height: 1px;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.signup-note { margin-top: 22px; font-size: 0.95rem; color: var(--text-dim); }

.signup-success { padding: 12px 0 4px; }

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 900;
}

.signup-success h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.signup-success p { color: var(--text-dim); max-width: 480px; margin: 0 auto; }

/* ===== פוטר ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
}

.footer-social { margin-bottom: 48px; }

.footer-social-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 26px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

.social-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--text-dim);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.social-item:hover,
.social-item:focus-visible {
  color: var(--text);
  background: var(--glass-strong);
}

.social-item::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%) scaleX(0.4);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-item:hover::after,
.social-item:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.social-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #fff;
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.social-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}

.social-item:hover .social-tooltip,
.social-item:focus-visible .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer-contact { margin-bottom: 22px; }

.footer-contact a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-contact a:hover { color: var(--gold); }

.footer-course {
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 26px;
}

.footer-disclaimer {
  max-width: 680px;
  margin: 0 auto 18px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.footer-copy { font-size: 0.9rem; color: var(--text-dim); }

/* ===== חשיפה בגלילה ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== הפחתת אנימציות ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .line { transform: none; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== רספונסיב ===== */
@media (max-width: 980px) {
  .why-grid, .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card:nth-child(2) { margin-top: 0; }
  .photo-frame { max-width: 360px; margin: 0 auto; }
  .stat-num { min-width: 88px; font-size: 2.8rem; }

  .timeline-line { right: 8px; transform: none; }
  .tl-item,
  .tl-item:nth-child(even) {
    width: 100%;
    margin-right: 0;
    padding-right: 44px;
    padding-left: 0;
  }
  .tl-dot,
  .tl-item:nth-child(even) .tl-dot { left: auto; right: 1px; }
}

@media (max-width: 760px) {
  /* במובייל הניווט נשאר בגובה מלא כדי שהתפריט הנפתח יישאר מיושר */
  .nav.scrolled .nav-inner { height: var(--nav-h); }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.97);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .logo-text { font-size: 0.95rem; }
  .section { padding: 110px 0; }
  .signup-card { padding: 48px 24px; }
  .journey-cta { padding: 44px 24px; }
  .hero { padding: 140px 0 100px; }
}

/* ===== קישורים משפטיים בפוטר ===== */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.footer-legal a {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--text); }

.footer-legal-sep {
  color: var(--text-dim);
  opacity: 0.45;
}

/* ===== באנר עוגיות ===== */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 32px);
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  animation: cookie-in 0.5s var(--ease);
}

.cookie-banner[hidden] { display: none; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.cookie-text a {
  color: var(--gold);
  text-decoration: none;
}

.cookie-text a:hover { color: var(--gold-light); }

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
  }
  .cookie-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ===== עמודים משפטיים ===== */
.legal-page { padding: 170px 0 100px; }

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 44px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 40px 0 14px;
}

.legal-page p,
.legal-page li {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-inline-start: 22px;
  margin-bottom: 12px;
}

.legal-placeholder {
  color: var(--gold);
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 760px) {
  .legal-page { padding: 130px 0 80px; }
}

/* ===== תפריט נגישות צף ===== */
.a11y-widget {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 950;
}

.a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  border-color: var(--gold-dim);
  transform: scale(1.06);
}

.a11y-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.a11y-menu[hidden] { display: none; }

.a11y-option,
.a11y-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.a11y-option:hover,
.a11y-option:focus-visible,
.a11y-reset:hover,
.a11y-reset:focus-visible {
  background: var(--glass-strong);
}

/* נקודת מצב: מוצגת בזהב כשהאפשרות פעילה */
.a11y-option::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  flex-shrink: 0;
}

.a11y-option[aria-pressed="true"] {
  color: var(--gold);
}

.a11y-option[aria-pressed="true"]::after {
  background: var(--gold);
  border-color: var(--gold);
}

.a11y-reset {
  color: var(--text-dim);
  border-top: 1px solid var(--glass-border);
  border-radius: 0 0 10px 10px;
  margin-top: 4px;
}

/* ===== מצבי נגישות ===== */
html.a11y-font { font-size: 120%; }

html.a11y-contrast {
  --bg: #000000;
  --bg-alt: #000000;
  --surface: #0a0a0a;
  --surface-deep: #000000;
  --text: #ffffff;
  --text-dim: #e8ebee;
  --border: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --gold: #ffd75e;
  --gold-dim: rgba(255, 215, 94, 0.5);
  --purple-soft: #c79bff;
}

html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  color: var(--gold-light) !important;
}

/* ===== תיבת הסכמה לדיוור (חוק הספאם) ===== */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 4px auto 0;
  text-align: right;
  cursor: pointer;
  position: relative;
}

.consent-row input[type="checkbox"] {
  position: absolute;
  top: 2px;
  inset-inline-start: 0; /* RTL: יושב בדיוק מעל התיבה המצוירת בצד ימין */
  width: 20px;
  height: 20px;
  min-width: 0;  /* מבטל את min-width: 250px של .signup-form input */
  min-height: 0; /* מבטל את min-height: 56px של .signup-form input */
  flex: none;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.consent-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--surface-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, border-color 0.2s;
  pointer-events: none;
}

.consent-box svg {
  width: 12px;
  height: 12px;
  color: #0A0A0C;
  opacity: 0;
  transition: opacity 0.15s;
}

.consent-row input:checked + .consent-box {
  background: var(--gold);
  border-color: var(--gold);
}

.consent-row input:checked + .consent-box svg { opacity: 1; }

.consent-row input:focus-visible + .consent-box {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}

.consent-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ===== רקע שיידר WebGL (shader-background.js) ===== */
#shader-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== פתיח קולנועי (intro.js) ===== */
/* בזמן הפתיח: הגלילה נעולה ואנימציות הכניסה של ההירו מושהות */
html.intro-active,
html.intro-open,
html.intro-active body,
html.intro-open body {
  overflow: hidden;
}

html.intro-active .line,
html.intro-active .reveal-up {
  animation-play-state: paused;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 980; /* מעל הכול חוץ ממסך הטעינה (1000) */
  background: transparent;
  overscroll-behavior: contain;
  touch-action: none;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

/* שני חצאי "הדלתות": מוצגים רק בשלב הפתיחה */
.intro-half {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  display: none;
  will-change: transform;
}

.intro-half-left { left: 0; }
.intro-half-right { right: 0; }

.intro-half canvas {
  position: absolute;
  top: 0;
  height: 100%;
}

.intro-half-left canvas { left: 0; }
.intro-half-right canvas { right: 0; }

.intro.splitting .intro-video { display: none; }
.intro.splitting .intro-half { display: block; }

/* פס האור בין הדלתות */
.intro-seam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(212, 175, 55, 0) 0%,
    var(--gold-light) 30%,
    #FFFFFF 50%,
    var(--gold-light) 70%,
    rgba(212, 175, 55, 0) 100%);
  box-shadow:
    0 0 24px 6px rgba(212, 175, 55, 0.55),
    0 0 90px 30px rgba(212, 175, 55, 0.35);
  will-change: transform, opacity;
}

/* רמז גלילה */
.intro-hint {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  transition: opacity 0.6s var(--ease);
}

.intro.moved .intro-hint { opacity: 0; }

.intro-chevron {
  width: 12px;
  height: 12px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
  animation: introChevron 1.6s ease-in-out infinite;
}

@keyframes introChevron {
  0%, 100% { transform: translateY(0) rotate(-45deg); opacity: 1; }
  50% { transform: translateY(7px) rotate(-45deg); opacity: 0.4; }
}

/* כפתור דילוג */
.intro-skip {
  position: absolute;
  bottom: 48px;
  inset-inline-start: 36px;
  min-width: 88px;
  min-height: 48px;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.intro-skip:hover,
.intro-skip:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
  outline: none;
}

/* סיום: דהייה החוצה */
.intro-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}

@media (max-width: 760px) {
  .intro-hint { bottom: 96px; padding: 14px 26px; font-size: 0.95rem; }
  .intro-skip { bottom: 32px; inset-inline-start: 20px; }
}
