/* =============================================================
   Mind Gate – styles.css
   עיצוב משותף: ערכת קוסמי-ניאון, mobile-first, RTL/LTR.
   שימוש בתכונות לוגיות (inline/block) לתמיכה דו-כיוונית.
   ============================================================= */

/* ---------- משתני מותג ---------- */
:root {
  --bg-deep: #070313;
  --bg-1: #0d0726;
  --bg-2: #160a36;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(180, 160, 255, 0.22);

  --text: #f4f1ff;          /* טקסט גוף — ניגודיות גבוהה על כהה */
  --text-soft: #c9c2e8;     /* טקסט משני */
  --text-dim: #9a93bd;

  /* גווני ניאון מהלוגו */
  --neon-purple: #a64dff;
  --neon-pink: #ff4dc0;
  --neon-cyan: #2fe6ff;
  --neon-green: #45ffb0;

  --grad-brand: linear-gradient(
    100deg,
    #a64dff 0%,
    #ff4dc0 30%,
    #2fe6ff 65%,
    #45ffb0 100%
  );
  --grad-cta: linear-gradient(100deg, #a64dff 0%, #ff4dc0 50%, #2fe6ff 100%);

  --focus: #ffd24d;         /* טבעת פוקוס — ניגודיות גבוהה */

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --tap: 44px;              /* יעד מגע מינימלי */

  --shadow-glow: 0 0 30px rgba(166, 77, 255, 0.35);
  --font: "Heebo", "Segoe UI", system-ui, -apple-system, "Arial", sans-serif;
}

/* ---------- איפוס בסיסי ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(166, 77, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 0% 10%, rgba(47, 230, 255, 0.12), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(69, 255, 176, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-deep));
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* שכבת כוכבים עדינה */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--neon-cyan);
}

/* ---------- נגישות: skip link + פוקוס ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 999;
  background: var(--bg-2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- מבנה / קונטיינר ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: 30px;
}

.section-title {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.25;
  margin: 0 0 8px;
}
.section-sub {
  color: var(--text-soft);
  margin: 0 0 18px;
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 3, 19, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  height: 40px;
  width: auto;
}

/* כלי כותרת (שפה + תפריט) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle,
.menu-toggle {
  min-width: var(--tap);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding-inline: 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-strong);
}
.menu-toggle {
  padding-inline: 0;
}

/* ניווט עליון */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
.primary-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 6px;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.primary-nav a:hover {
  color: var(--text);
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 14px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--grad-cta);
  color: #15042b;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-strong);
}
.btn-whatsapp {
  background: linear-gradient(100deg, #25d366, #128c7e);
  color: #05210f;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 40px 30px;
  text-align: center;
}
.hero__logo {
  max-width: 320px;
  margin-inline: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 26px rgba(166, 77, 255, 0.45));
}
.hero h1 {
  font-size: clamp(1.9rem, 7vw, 3.3rem);
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.hero__sub {
  color: var(--text-soft);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  max-width: 56ch;
  margin: 0 auto 30px;
}

/* --- Hero מפוצל: טקסט + תמונה --- */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}
.hero__media {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(166, 77, 255, 0.38), rgba(47, 230, 255, 0.22) 55%, rgba(69, 255, 176, 0.28));
  box-shadow: var(--shadow-glow);
  display: grid;
  place-items: center;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media-note {
  position: absolute;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  opacity: 0.92;
  pointer-events: none;
}
/* ההערה מוצגת רק כשהתמונה חסרה */
.hero__media:not(.is-empty) .hero__media-note {
  display: none;
}

@media (min-width: 860px) {
  .hero--split {
    text-align: start;
  }
  .hero--split .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }
  .hero--split .hero__logo {
    margin-inline: 0;
    max-width: 240px;
  }
  .hero--split .hero__content h1 {
    margin-inline: 0;
    max-width: 18ch;
  }
  .hero--split .hero__content .hero__sub {
    margin-inline: 0;
  }
}

/* ---------- כרטיסים (צורך ופתרון) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(6px);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}
.card h3::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-brand);
  margin-bottom: 14px;
}
.card p {
  margin: 0;
  color: var(--text-soft);
}

/* ---------- איך זה עובד ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  text-align: center;
}
.step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(166, 77, 255, 0.12);
  border: 1px solid var(--border);
}
.step__icon svg {
  width: 32px;
  height: 32px;
}
.step__num {
  display: inline-block;
  font-weight: 900;
  font-size: 0.95rem;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.step h3 {
  margin: 4px 0 10px;
  font-size: 1.15rem;
}
.step p {
  margin: 0;
  color: var(--text-soft);
}

/* ---------- הוכחה חברתית ---------- */
.proof {
  text-align: center;
}
.quote {
  max-width: 64ch;
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.quote blockquote {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.6;
}
.quote figcaption {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* ---------- טופס ---------- */
.lead {
  text-align: center;
}
.lead__card {
  max-width: 560px;
  margin: 18px auto 0;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: start;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
}
.field input::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field select:focus {
  border-color: var(--neon-cyan);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #ff6b6b;
}
.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 6px;
  color: #ff9b9b;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-send-title {
  margin: 18px 0 12px;
  font-weight: 700;
  text-align: center;
}
.form-actions {
  display: grid;
  gap: 12px;
}
.form-status {
  margin-top: 14px;
  text-align: center;
  color: var(--neon-green);
  font-weight: 700;
  min-height: 1.4em;
}

/* ---------- באנר קישור-צולב ---------- */
.cross-link {
  text-align: center;
  padding-block: 8px 0;
}
.cross-link a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: 6px;
  font-weight: 700;
}

/* ---------- כרטיסי בחירה (דף בית) ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.choice:hover,
.choice:focus-visible {
  transform: translateY(-3px);
  border-color: var(--neon-purple);
  box-shadow: var(--shadow-glow);
}
.choice h2 {
  margin: 0;
  font-size: 1.5rem;
}
.choice p {
  margin: 0;
  color: var(--text-soft);
}
.choice .choice__enter {
  margin-top: auto;
  font-weight: 800;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- מסך "בקרוב" (עסקים) ---------- */
.soon {
  text-align: center;
  min-height: 60vh;
  display: grid;
  place-content: center;
  gap: 18px;
}
.soon h1 {
  font-size: clamp(2rem, 8vw, 3.2rem);
  margin: 0;
}
.soon p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--text-soft);
}
.soon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 3, 19, 0.6);
  padding-block: 36px;
  margin-top: 20px;
}
.site-footer .container {
  display: grid;
  gap: 16px;
  text-align: center;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
}
.footer-contact a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: 8px;
  font-weight: 700;
}
.footer-contact a:hover {
  color: var(--neon-cyan);
}
.footer-rights {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- רספונסיביות ---------- */
@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 719px) {
  /* תפריט מובייל נפתח */
  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: rgba(13, 7, 38, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    padding: 10px 20px 20px;
  }
  .primary-nav.is-open {
    transform: translateY(0);
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav a {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
  }
  .primary-nav a:hover {
    background: var(--surface);
  }
}

@media (min-width: 720px) {
  .menu-toggle {
    display: none;
  }
}

/* ---------- העדפת תנועה מופחתת ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
