/* ================= GarageMotors Landing =================
   עיצוב בהיר לפי הסקיצה · נייבי + ענבר · Heebo · IBM Plex Mono */

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --green: #16a34a;
  --sky: #0ea5e9;
  --purple: #7c3aed;
  --mono: "IBM Plex Mono", monospace;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.16);
  --shadow-lg: 0 30px 60px -25px rgba(15, 23, 42, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcfe 0%, var(--bg) 30%, var(--bg) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; text-decoration: none; border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 15px 28px; font-size: 1.1rem; }
.btn-ico { width: 21px; height: 21px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: var(--navy);
  box-shadow: 0 8px 22px -8px rgba(245, 158, 11, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(245, 158, 11, .8); }

.btn-outline {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px -8px rgba(15,23,42,.15);
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 254, .9);
  backdrop-filter: blur(12px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 14px;
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 84px; height: 84px; border-radius: 20px; clip-path: inset(3% round 20%); }
.brand-text { line-height: 1.2; text-align: center; display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.2rem; font-weight: 900; letter-spacing: .2px; }
.brand-text small { color: var(--ink-2); font-size: .82rem; font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 1.02rem;
  padding-block: 6px; position: relative; transition: color .18s;
}
.nav-link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: var(--amber); border-radius: 2px;
  transform: scaleX(0); transition: transform .22s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; margin-block: 5px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; }

.hero-inner {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 48px; align-items: center; padding-block: 40px 70px;
}
/* בסקיצה: הטקסט מימין, המוקאפ משמאל */
.hero-copy { order: -1; }

.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 900; line-height: 1.12; letter-spacing: -.5px;
  color: var(--navy);
}
.hero-title .line { display: block; animation: rise .7s both; }
.hero-title .line:nth-child(2) { animation-delay: .12s; }
.hero-title .line:nth-child(3) { animation-delay: .24s; }
.hero-title .accent { color: var(--amber); }

.hero-sub {
  margin-top: 26px; font-size: 1.25rem; color: var(--ink-2); max-width: 30rem;
  animation: rise .7s .34s both;
}

.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; animation: rise .7s .44s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Dashboard mockup ---------- */
.hero-mock { position: relative; animation: mockIn 1s .25s both; }
@keyframes mockIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.mock-window {
  background: #fff; color: var(--ink);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15,23,42,.06);
  font-size: .78rem;
}

.mock-topbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; padding: 10px 14px;
}
.mock-logo img { width: 26px; height: 26px; border-radius: 7px; }
.mock-topbar strong { font-size: .88rem; }
.mock-nav { display: flex; gap: 3px; }
.mock-nav i {
  font-style: normal; color: #94a3b8; padding: 4px 8px; border-radius: 8px; font-size: .72rem;
}
.mock-nav i.on { background: var(--amber); color: var(--navy); font-weight: 700; }
.mock-far { margin-inline-start: auto; color: #94a3b8; font-size: .72rem; }

.mock-body { padding: 14px; background: #f1f3f6; display: grid; gap: 12px; }

.mock-search { display: flex; gap: 8px; }
.mock-search-field {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; color: var(--muted);
}
.mock-search-btn { background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 18px; font-weight: 700; }

.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat {
  background: #fff; border-radius: 12px; padding: 10px 12px; text-align: end;
  border-inline-end: 4px solid var(--sc, var(--amber));
  box-shadow: 0 3px 10px -6px rgba(15,23,42,.15);
}
.stat b { font-size: 1.4rem; font-family: var(--mono); display: block; line-height: 1.2; }
.stat small { color: var(--muted); }

.mock-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; direction: ltr; }
.mock-cols > * { direction: rtl; }
.mock-side { display: grid; gap: 12px; align-content: start; }

.mock-panel { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 3px 10px -6px rgba(15,23,42,.15); }
.mock-panel-title { font-weight: 800; margin-bottom: 8px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.mock-chips span {
  border: 1.5px solid var(--cc, var(--line)); color: var(--cc, var(--muted));
  border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: .68rem; background: #fff;
}
.mock-chips .chip-active { background: var(--amber); border-color: var(--amber); color: var(--navy); }

.mock-card {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.plate {
  font-family: var(--mono); font-weight: 700; letter-spacing: 1px;
  background: #ffd60a; border: 2px solid #111; border-radius: 6px;
  padding: 3px 10px; font-size: .8rem; direction: ltr; white-space: nowrap;
}
.mock-card-info { flex: 1; line-height: 1.35; }
.mock-card-info small { color: var(--muted); }
.mock-wo { font-family: var(--mono); color: var(--muted); font-size: .72rem; }
.mock-status { background: var(--amber); color: var(--navy); font-weight: 800; border-radius: 999px; padding: 4px 11px; font-size: .7rem; white-space: nowrap; }

.mock-mini { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 3px 10px -6px rgba(15,23,42,.15); }
.mock-mini b { display: block; margin-bottom: 2px; }
.mock-mini small { color: var(--muted); }
.mock-mini .ok { font-style: normal; background: var(--green); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .68rem; font-weight: 700; margin-inline-end: 6px; }

/* ---------- Sections shared ---------- */
section { scroll-margin-top: 90px; }

/* ---------- Features ---------- */
.features { padding-block: 20px 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 24px 20px;
  border: 1px solid var(--line); box-shadow: 0 4px 14px -10px rgba(15,23,42,.12);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(245,158,11,.55);
}
.feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.feature-ico { color: var(--navy-2); flex: none; }
.feature-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; }
.feature-card p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Vision ---------- */
.vision { padding-block: 40px; }

.vision-card {
  background: var(--card); border-radius: 24px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 40px; align-items: center; padding: 48px 56px;
}
/* בסקיצה: הטקסט מימין, האיור משמאל */
.vision-copy { order: -1; }

.vision-art img {
  width: min(400px, 100%); margin-inline: auto;
  clip-path: inset(3.5% round 24%);
  transition: transform .3s ease;
}
.vision-art:hover img { transform: scale(1.02); }

.vision-copy h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.35; margin-bottom: 22px; color: var(--navy); }
.accent-underline {
  display: inline-block;
  border-bottom: 5px solid var(--amber);
  padding-bottom: 4px;
}
.vision-copy p { color: var(--ink-2); font-size: 1.12rem; max-width: 34rem; }
.vision-copy strong { color: var(--navy); }

/* ---------- Duo cards ---------- */
.duo { padding-block: 40px; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.duo-card {
  position: relative; background: var(--card); border-radius: 20px; padding: 30px 32px;
  border: 1px solid var(--line); box-shadow: 0 4px 14px -10px rgba(15,23,42,.12);
  transition: transform .22s ease, box-shadow .22s ease;
}
.duo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.duo-card h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 20px; }

.duo-head { display: flex; align-items: center; gap: 14px; }
.duo-head h3 { margin-bottom: 0; }
.duo-card .duo-head { margin-bottom: 20px; }

.duo-body { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.duo-body-comm { grid-template-columns: 1fr auto auto; }

.check-list { list-style: none; display: grid; gap: 13px; }
.check-list li { position: relative; padding-inline-start: 30px; font-weight: 500; color: var(--ink-2); }
.check-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--green); font-weight: 900; font-size: 1.05rem;
}

.phone-mock {
  width: 190px; background: #fff; border: 1.5px solid var(--line); border-radius: 22px;
  padding: 12px; box-shadow: var(--shadow); font-size: .76rem;
}
.phone-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: .8rem; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.phone-head img { width: 20px; height: 20px; border-radius: 6px; }
.phone-bubble {
  background: #f1f5f9; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px;
  padding: 10px 12px; line-height: 1.55; color: var(--ink-2);
}
.phone-bubble .link { color: var(--blue); text-decoration: underline; direction: ltr; unicode-bidi: embed; font-size: .72rem; }

.duo-badges { display: flex; flex-direction: column; gap: 12px; }
.app-badge {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-weight: 800; font-size: .76rem;
  box-shadow: 0 6px 14px -8px rgba(15,23,42,.35);
}
.app-badge.wa { background: #25d366; color: #fff; }
.app-badge.wa svg { width: 28px; height: 28px; }
.app-badge.sms { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }

.new-tag {
  background: var(--amber); color: var(--navy); font-weight: 900;
  padding: 4px 15px; border-radius: 6px; transform: rotate(-6deg);
  box-shadow: 0 6px 14px -6px rgba(245,158,11,.8); flex: none;
}
.ai-art { width: 185px; }
.ai-art .ai-orbits { animation: spin 26s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA ---------- */
.cta { padding-block: 40px 60px; }
.cta-inner {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-copy { text-align: center; max-width: 36rem; margin-inline: auto; }
.cta-copy h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; line-height: 1.4; color: var(--navy); }
.cta-copy p { color: var(--ink-2); font-weight: 500; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: transparent; color: var(--ink); }
.footer-trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-block: 26px 30px;
}
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; }
.trust-item svg { width: 32px; height: 32px; color: var(--navy-2); flex: none; }
.trust-item span { display: grid; line-height: 1.35; }
.trust-item b { font-size: 1rem; }
.trust-item small { color: var(--muted); }

.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 18px; text-align: center; color: var(--muted); font-size: .9rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2) { transition-delay: .08s; }
.feature-grid .reveal:nth-child(3) { transition-delay: .16s; }
.feature-grid .reveal:nth-child(4) { transition-delay: .24s; }
.feature-grid .reveal:nth-child(5) { transition-delay: .32s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 30px 60px; gap: 44px; }
  .hero-mock { max-width: 680px; margin-inline: auto; }
  .vision-card { grid-template-columns: 1fr; text-align: center; gap: 32px; padding: 40px 32px; }
  .vision-copy p { margin-inline: auto; }
  .vision-copy .accent-underline { margin-inline: auto; }
}

@media (max-width: 860px) {
  .brand { flex-direction: row; gap: 10px; }
  .brand-logo { width: 52px; height: 52px; border-radius: 14px; }
  .brand-text { text-align: start; }

  .main-nav {
    position: absolute; top: 100%; inset-inline: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px 6vw 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -25px rgba(15,23,42,.4);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .main-nav.open { transform: none; }
  .nav-link { padding: 12px 6px; font-size: 1.1rem; }
  .nav-toggle { display: block; }

  .feature-grid { grid-template-columns: 1fr; }
  .duo-grid { grid-template-columns: 1fr; }
  .duo-body, .duo-body-comm { grid-template-columns: 1fr; }
  .phone-mock, .ai-art { margin-inline: auto; }
  .duo-badges { flex-direction: row; justify-content: center; }
  .footer-trust { grid-template-columns: 1fr; gap: 22px; }
  .cta-inner { padding: 36px 26px; justify-content: center; text-align: center; }
  .cta-copy { order: -1; }
  .cta-inner .btn { flex: 1 1 100%; justify-content: center; }
  .mock-nav, .mock-far { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Mobile fine-tuning ---------- */
@media (max-width: 640px) {
  .hero-inner { padding-block: 22px 48px; gap: 36px; }
  .hero-sub { font-size: 1.12rem; }
  .hero-actions .btn { flex: 1 1 100%; }

  /* המוקאפ: שני מונים בשורה במקום ארבעה, ופאנלים בטור אחד — מונע גלישה אופקית */
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-cols { grid-template-columns: 1fr; }
  .mock-panel { order: -1; }
  .mock-side { grid-template-columns: 1fr 1fr; }
  .mock-card { flex-wrap: wrap; }
  .mock-card-info { flex-basis: 100%; order: 3; }

  .feature-card { padding: 22px 20px; }
  .vision-card { padding: 32px 22px; }
  .vision-copy h2 { font-size: 1.5rem; }
  .duo-card { padding: 26px 20px; }
  .duo-card h3 { font-size: 1.2rem; }
  .brand-logo { width: 46px; height: 46px; border-radius: 12px; }
  .brand-text strong { font-size: 1.05rem; }
}
