/* ============================================================
   אילן מבנים — עיצוב V2: מודרני, נקי, בהשראת מוצרי AI-SaaS
   לבן + אינדיגו ויברנטי + ציאן, זכוכית, צללים רכים
   ============================================================ */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #0c1428;
  --muted: #5b6478;
  --line: #e8ecf4;
  --primary: #4f46e5;
  --primary-dark: #3b32c9;
  --cyan: #06b6d4;
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --grad-btn: linear-gradient(120deg, #4f46e5, #6d28d9);
  --shadow-sm: 0 2px 10px rgba(12, 20, 40, .06);
  --shadow-md: 0 12px 34px -10px rgba(12, 20, 40, .14);
  --shadow-lg: 0 30px 70px -24px rgba(79, 70, 229, .35);
  --radius: 20px;
  --font-display: 'Rubik', 'Heebo', sans-serif;
  --font-body: 'Heebo', 'Rubik', sans-serif;
  --max-w: 1180px;
  /* כינויי תאימות לגרסה קודמת */
  --ink-soft: var(--muted);
  --amber: var(--primary);
  --terra: var(--cyan);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
  position: relative;
  z-index: 1;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
}

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

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(79, 70, 229, .55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(79, 70, 229, .6);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #c9d2e6; transform: translateY(-2px); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 236, 244, .8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}
.logo-mark { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.logo small {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .05em;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: .35rem .2rem;
  border-radius: 8px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav-cta { white-space: nowrap; padding: .65rem 1.4rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  width: 44px; height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- רקעים זוהרים ---------- */
.glow-wrap { position: relative; overflow: hidden; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.glow-indigo { background: #c7d2fe; width: 520px; height: 520px; top: -180px; inset-inline-start: -120px; }
.glow-cyan { background: #a5f3fc; width: 460px; height: 460px; top: 60px; inset-inline-end: -160px; }
.glow-violet { background: #ddd6fe; width: 420px; height: 420px; bottom: -180px; inset-inline-start: 30%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.2rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--primary);
  background: #eef2ff;
  border: 1px solid #dfe5ff;
  border-radius: 999px;
  padding: .4rem 1.1rem;
  margin-bottom: 1.4rem;
}
.hero .kicker::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 800;
  max-width: 21ch;
  margin-inline: auto;
  margin-bottom: 1.2rem;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  margin-top: 2.8rem;
}
.badge-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.badge-stat span { color: var(--muted); font-size: .93rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- סליידר לפני/אחרי ---------- */
.ba-wrap {
  max-width: 880px;
  margin: 3rem auto 0;
  position: relative;
}
.ba-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: #dfe7f2;
  user-select: none;
  touch-action: none;
}
.ba-slider .ba-before, .ba-slider .ba-after {
  position: absolute;
  inset: 0;
}
.ba-slider .ba-before img, .ba-slider .ba-after img,
.ba-slider .ba-before svg, .ba-slider .ba-after svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* --pos = מיקום הקו החוצץ באחוזים מהקצה השמאלי (פיזי, לא תלוי RTL).
   שמאל לקו = "לפני", מימין לקו = "אחרי"; הידית יושבת בדיוק על הקו. */
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(12,20,40,.12);
  cursor: ew-resize;
  z-index: 3;
}
.ba-handle::after {
  content: '⇄';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.ba-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ba-label-before { left: 14px; right: auto; background: rgba(12,20,40,.65); color: #fff; }
.ba-label-after { right: 14px; left: auto; background: rgba(255,255,255,.85); color: var(--ink); }

.float-chip {
  position: absolute;
  z-index: 4;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: float 5s ease-in-out infinite;
}
.float-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }

/* ---------- כותרות סקשן ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 5.5rem); position: relative; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(79,70,229,.35), transparent 60%),
              radial-gradient(900px 400px at 10% 110%, rgba(6,182,212,.25), transparent 60%),
              #0c1428;
  color: #eef1f8;
}
.section-head { max-width: 46rem; margin-inline: auto; margin-bottom: 3rem; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--primary);
  background: #eef2ff;
  border: 1px solid #dfe5ff;
  border-radius: 999px;
  padding: .3rem 1rem;
  margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 800; margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: #aab4cd; }
.section-dark .section-head .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #a5b4fc; }

/* ---------- סימולטור AI ---------- */
.sim-shell {
  max-width: 940px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  position: relative;
  z-index: 1;
}
.sim-steps {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.sim-step {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem 1rem;
}
.sim-step b {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: .78rem;
  display: grid;
  place-items: center;
}
.dropzone {
  border: 2px dashed #c9d2e6;
  border-radius: 20px;
  background: linear-gradient(180deg, #fafbff, #f4f6fd);
  padding: 2.6rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--primary);
  background: #eef2ff;
}
.dropzone .dz-icon {
  width: 66px; height: 66px;
  margin: 0 auto 1rem;
  border-radius: 20px;
  background: var(--grad-btn);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -10px rgba(79,70,229,.55);
}
.dropzone h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.dropzone p { color: var(--muted); font-size: .95rem; }
.dropzone input { display: none; }

.sim-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
.sim-config .field label { font-weight: 600; font-size: .93rem; margin-bottom: .3rem; display: block; }
.sim-config select {
  width: 100%;
  font: inherit;
  padding: .75rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.sim-config select:focus { outline: 2px solid var(--primary); }
.sim-actions { display: flex; gap: .8rem; align-items: center; margin-top: 1.4rem; flex-wrap: wrap; }

.sim-preview {
  margin-top: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  display: none;
}
.sim-preview img { width: 100%; max-height: 420px; object-fit: contain; background: #0c1428; }
.sim-preview .sim-remove {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  background: rgba(12,20,40,.7);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1rem;
}
.sim-status {
  display: none;
  align-items: center;
  gap: .8rem;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid #dfe5ff;
  color: var(--ink);
  font-weight: 500;
}
.sim-status.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid #dfe5ff;
  border-top-color: var(--primary);
  animation: spin .9s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sim-result { margin-top: 1.6rem; display: none; }
.sim-result h3 { text-align: center; margin-bottom: 1rem; font-size: 1.3rem; }
.sim-result .ba-wrap { margin-top: 0; }
.sim-result .ba-slider { aspect-ratio: auto; height: min(60vh, 520px); }
.sim-download { text-align: center; margin-top: 1.2rem; }

.sim-note {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin-top: 1.2rem;
}

/* ---------- שירותים ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #dfe5ff;
}
.service-card .icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: #eef2ff;
}
.service-card:nth-child(2) .icon { background: #ecfeff; }
.service-card:nth-child(3) .icon { background: #f5f3ff; }
.service-card:nth-child(4) .icon { background: #f0fdf4; }
.service-card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .97rem; }
.service-card .corner { display: none; }

/* ---------- פרויקטים ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-art {
  background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 70%);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-art svg { width: 100%; height: 100%; }
.project-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.project-body h3 { font-size: 1.2rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: .8rem; }
.tag {
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag-amber { background: #eef2ff; color: var(--primary); border-color: #dfe5ff; }
.tag-blue { background: #ecfeff; color: #0e7490; border-color: #cffafe; }
.project-body p { color: var(--muted); font-size: .95rem; }
.project-facts {
  display: flex;
  gap: 1.2rem;
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .7rem;
}
.project-facts b { color: var(--ink); font-family: var(--font-display); font-weight: 700; }

/* ---------- ציר תהליך ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
  counter-reset: step;
}
.timeline::before {
  content: '';
  position: absolute;
  inset-block: 26px;
  inset-inline-start: 26px;
  width: 2px;
  background: linear-gradient(180deg, #dfe5ff, #cffafe);
}
.step {
  position: relative;
  padding-inline-start: 4.5rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--grad-btn);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 22px -8px rgba(79,70,229,.5);
}
.step h3 { font-size: 1.22rem; margin-bottom: .3rem; }
.step p { color: var(--muted); }
.section-dark .step p { color: #aab4cd; }
.section-dark .step h3 { color: #eef1f8; }

/* ---------- בלוקים משפטיים / מדריך ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.legal-card h3 { font-size: 1.25rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.legal-card h3::before {
  content: '§';
  font-size: 1rem;
  width: 34px; height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--grad-btn);
  color: #fff;
  border-radius: 10px;
}
.legal-card p, .legal-card li { color: var(--muted); font-size: .97rem; }
.legal-card ul { padding-inline-start: 1.2rem; margin-top: .5rem; display: grid; gap: .35rem; }
.legal-card li::marker { color: var(--primary); }

.callout {
  border: 1px solid #dfe5ff;
  border-inline-start: 6px solid var(--primary);
  background: #f5f7ff;
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-block: 1.6rem;
}
.callout b { color: var(--primary); }

.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 2.6rem 0 .9rem; }
.article h3 { font-size: 1.28rem; margin: 1.8rem 0 .5rem; }
.article p, .article li { color: #3c465c; }
.article ul, .article ol { padding-inline-start: 1.4rem; display: grid; gap: .4rem; margin-block: .6rem; }
.article li::marker { color: var(--primary); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: #dfe5ff; }
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .7rem; color: var(--muted); }

/* ---------- פס נתונים ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
  text-align: center;
}
.stat-tile {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
}
.stat-tile b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  background: linear-gradient(120deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-tile span { color: #aab4cd; }

/* ---------- טופס יצירת קשר ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info ul { list-style: none; display: grid; gap: .9rem; margin-top: 1.4rem; }
.contact-info li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.contact-info li svg { flex: 0 0 auto; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: #fafbff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .75rem .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}
.form-note { font-size: .83rem; color: var(--muted); }
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  font-weight: 600;
}

/* ---------- פוטר ---------- */
.site-footer {
  background: #0c1428;
  color: #aab4cd;
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 { font-family: var(--font-display); color: #fff; margin-bottom: .8rem; font-size: 1.12rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: #aab4cd; }
.site-footer a:hover { color: #a5b4fc; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  padding-top: 1.3rem;
  font-size: .86rem;
  color: #7c86a0;
}

/* ---------- צ'אט ---------- */
.chat-fab {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 90;
  height: 58px;
  padding-inline: 1.1rem 1.4rem;
  border-radius: 999px;
  background: var(--grad-btn);
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 14px 34px -6px rgba(79,70,229,.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  animation: fab-in .5s ease both 1s, fab-nudge 5s ease-in-out 3s 2;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.03); }
.chat-fab svg { width: 26px; height: 26px; flex: 0 0 auto; }
.chat-fab-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
}
@keyframes fab-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fab-nudge {
  0%, 88%, 100% { transform: none; }
  90% { transform: rotate(-3deg) scale(1.05); }
  93% { transform: rotate(3deg) scale(1.05); }
  96% { transform: rotate(-2deg) scale(1.03); }
}
@media (max-width: 720px) {
  .chat-fab { padding-inline: 0; width: 58px; justify-content: center; }
  .chat-fab-label { display: none; }
}
.chat-fab svg path { stroke: #fff; }
.chat-fab .chat-dot {
  position: absolute;
  top: 3px; inset-inline-start: 3px;
  width: 13px; height: 13px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.chat-panel {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 98px;
  z-index: 95;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px -20px rgba(12,20,40,.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; animation: rise .3s ease both; }
.chat-head {
  background: var(--grad-btn);
  color: #fff;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.chat-head .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,.4);
  flex: 0 0 auto;
}
.chat-head .avatar svg path { stroke: #fff; }
.chat-head b { font-family: var(--font-display); font-weight: 600; }
.chat-head small { display: block; color: #dfe5ff; font-size: .78rem; }
.chat-close {
  margin-inline-start: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: #f7f8fc;
}
.msg {
  max-width: 85%;
  padding: .7rem 1rem;
  border-radius: 16px;
  font-size: .94rem;
  white-space: pre-line;
  animation: rise .25s ease both;
}
.msg-bot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-start-start-radius: 5px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.msg-user {
  background: var(--grad-btn);
  color: #fff;
  border-start-end-radius: 5px;
  align-self: flex-end;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .6rem .9rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chip {
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  border-radius: 999px;
  padding: .32rem .85rem;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { background: #eef2ff; color: var(--primary); border-color: #dfe5ff; }
.chat-input {
  display: flex;
  gap: .5rem;
  padding: .7rem .9rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-input input {
  flex: 1;
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .58rem 1.05rem;
  background: #fafbff;
}
.chat-input input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.chat-input button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad-btn);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px -6px rgba(79,70,229,.55);
}
.chat-input button svg path { stroke: #fff; }
.typing { display: inline-flex; gap: 4px; padding: .4rem .2rem; }
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- עמוד פנימי: כותרת ---------- */
.page-hero {
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: #eef2ff;
  filter: blur(80px);
  top: -240px; inset-inline-end: -120px;
}
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; position: relative; }
.breadcrumbs ol { list-style: none; display: flex; gap: .45rem; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: '‹'; margin-inline-end: .45rem; color: var(--primary); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: .7rem; position: relative; }
.page-hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 44rem; position: relative; }

/* ---------- רספונסיביות ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sim-config { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: .6rem 1.2rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: .85rem .2rem; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
