/* =====================================================
   משה שטרן · אתר תדמית
   שפת עיצוב: Luminous Automata (Stitch DESIGN.md)
   ===================================================== */

:root {
  --bg: #0A0A0F;
  --surface: #131318;
  --surface-2: #1b1b20;
  --surface-3: #1f1f25;
  --text: #e4e1e9;
  --text-dim: #a9a5b3;
  --amber: #FDCC00;
  --amber-soft: #ffe087;
  --amber-glow: rgba(253, 204, 0, 0.3);
  --amber-faint: rgba(253, 204, 0, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-amber: rgba(253, 204, 0, 0.2);
  --ok: #37d99a;
  --radius: 8px;
  --radius-lg: 16px;
  --container: 1200px;
  --font-display: 'Assistant', sans-serif;
  --font-body: 'Heebo', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.25; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.35; }
p { color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
.accent { color: var(--amber); }

::selection { background: var(--amber); color: #231a00; }

/* ---------- טיפוגרפיה עזר ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.idx {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--text-dim);
  border: 1px solid var(--border-amber);
  border-radius: 4px;
  padding: 1px 7px;
  margin-inline-end: 10px;
  font-size: 12px;
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 20px; font-size: 15px; }
.btn--primary {
  background: var(--amber);
  color: #231a00;
  box-shadow: 0 0 0 rgba(253, 204, 0, 0);
}
.btn--primary:hover {
  box-shadow: 0 0 24px var(--amber-glow);
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--border-amber);
  color: var(--amber-soft);
  background: transparent;
}
.btn--ghost:hover { background: var(--amber-faint); }
.btn--whatsapp {
  background: #25D366;
  color: #06240f;
  font-size: 18px;
  padding: 16px 32px;
}
.btn--whatsapp:hover {
  box-shadow: 0 0 28px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

/* ---------- זכוכית ---------- */
.glass {
  position: relative;
  background: rgba(27, 27, 32, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(225deg, var(--border-amber), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ---------- ניווט ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--amber);
}
.nav__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-amber);
  box-shadow: 0 0 12px rgba(253, 204, 0, 0.25);
}
.nav__logo span { color: var(--text); }
.nav__links {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
}
.nav__links a {
  font-size: 15.5px;
  color: var(--text-dim);
  position: relative;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  inset-inline: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; }

/* ---------- הירו ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}
.hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff 30%, var(--amber-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.hero__subtitle {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__lead {
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* פאנל "המערכת עובדת" */
.hero__panel { padding: 26px 28px; }
.panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--amber-soft);
}
.panel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.panel__log { list-style: none; }
.panel__log li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 10px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(6px);
  animation: logline 0.5s ease forwards;
}
.panel__log li:nth-child(1) { animation-delay: 0.6s; }
.panel__log li:nth-child(2) { animation-delay: 1.4s; }
.panel__log li:nth-child(3) { animation-delay: 2.2s; }
.panel__log li:nth-child(4) { animation-delay: 3.0s; }
.panel__log li:nth-child(5) { animation-delay: 4.0s; }
@keyframes logline {
  to { opacity: 1; transform: translateY(0); }
}
.panel__log li:last-child { border-bottom: none; }
.panel__punch { color: var(--amber-soft) !important; font-weight: 500; }
.ok { color: var(--ok); font-weight: 700; }
.arrow { color: var(--amber); }

/* ---------- מספרים ---------- */
.stats {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 44px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
  text-shadow: 0 0 30px var(--amber-glow);
}
.stat__label { font-size: 15px; color: var(--text-dim); }

/* ---------- סקשנים ---------- */
.section { padding: 100px 0; }
.section--tint {
  background:
    radial-gradient(800px 400px at 85% 0%, var(--amber-faint), transparent 60%),
    var(--surface);
  border-block: 1px solid var(--border);
}
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__sub { margin-top: 14px; font-size: 18px; }

/* ---------- כרטיסים ---------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 30px 28px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(253, 204, 0, 0.12);
}
.card__icon {
  font-size: 26px;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: var(--amber-faint);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; }

/* ---------- שלבים ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 34px 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 15, 0.4);
}
.step__num {
  position: absolute;
  top: -22px;
  inset-inline-start: 24px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #231a00;
  background: var(--amber);
  border-radius: var(--radius);
  box-shadow: 0 0 20px var(--amber-glow);
}
.step h3 { margin-bottom: 10px; margin-top: 6px; }
.step p { font-size: 15.5px; }

/* ---------- פרויקטים ---------- */
.project { padding: 30px 28px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(253, 204, 0, 0.1); }
.project h3 { margin-bottom: 10px; }
.project p { font-size: 15.5px; }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.tag--hot {
  background: var(--amber);
  border-color: var(--amber);
  color: #231a00;
  font-weight: 700;
}
.project--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 42px 40px;
  margin-bottom: 22px;
}
.project--featured h3 { font-size: 28px; }
.project--featured p { font-size: 16.5px; }
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--amber);
  font-weight: 700;
  font-family: var(--font-display);
}
.project__link:hover { text-decoration: underline; }
.project--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(225deg, rgba(253, 204, 0, 0.12), rgba(27, 27, 32, 0.55));
}

/* דפדפן מדומה לקייס המרכזי */
.mock-browser {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
}
.mock-browser__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
}
.mock-browser__bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.mock-browser__bar i:first-child { background: var(--amber); }
.mock-browser__body { padding: 18px; display: grid; gap: 10px; }
.mock-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}
.mock-line.w60 { width: 60%; background: var(--amber-faint); }
.mock-line.w90 { width: 90%; }
.mock-line.w75 { width: 75%; }
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.mock-grid i {
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

/* ---------- עדויות ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
/* כשיש תמונות אמיתיות (גבהים שונים) - פריסת masonry בעמודות */
.testimonials__grid.is-masonry {
  display: block;
  columns: 3;
  column-gap: 22px;
}
.is-masonry .shot { margin-bottom: 22px; break-inside: avoid; }
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shot:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 0 30px rgba(253, 204, 0, 0.12); }
.shot img { display: block; width: 100%; height: auto; }
.shot--placeholder {
  aspect-ratio: 9 / 12;
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: var(--border-amber);
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.015) 0 12px,
    transparent 12px 24px
  );
}
.shot--placeholder .shot__inner {
  text-align: center;
  color: var(--text-dim);
  padding: 20px;
}
.shot--placeholder .shot__icon { font-size: 34px; display: block; margin-bottom: 10px; opacity: 0.7; }
.shot--placeholder p { font-size: 14px; }

/* ---------- אודות ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: center;
}
.about__photo { position: relative; justify-self: center; }
.about__frame {
  width: min(320px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(253, 204, 0, 0.18), transparent 55%),
    var(--surface-3);
  border: 1px solid var(--border-amber);
  box-shadow: 0 0 60px rgba(253, 204, 0, 0.18);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__placeholder {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.55;
}
.about__text h2 { margin-bottom: 20px; }
.about__text p { margin-bottom: 16px; }
.about__strengths { display: grid; gap: 14px; margin: 24px 0; }
.strength {
  padding: 20px 22px;
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  background: var(--amber-faint);
}
.strength h3 { color: var(--amber-soft); font-size: 17.5px; margin-bottom: 8px; }
.strength p { font-size: 15px; margin-bottom: 0; }
.about__points { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.about__points li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }

/* ---------- צור קשר ---------- */
.contact { padding-bottom: 120px; }
.contact__card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 52px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(253, 204, 0, 0.12), transparent 60%),
    rgba(27, 27, 32, 0.7);
}
.contact__who {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.contact__who img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-amber);
  box-shadow: 0 0 20px rgba(253, 204, 0, 0.25);
}
.contact__who h2 { margin-bottom: 0; }
.contact__card h2 { margin-bottom: 16px; }
.contact__card p { font-size: 17px; }
.contact__note { margin-top: 12px; font-size: 14.5px !important; color: var(--amber-soft) !important; }
.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.contact__actions .btn { justify-content: center; }

/* ---------- פוטר ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--surface);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__tag { color: var(--text-dim); font-size: 14.5px; }
.footer__copy { margin-inline-start: auto; color: var(--text-dim); font-size: 14px; }

/* ---------- כפתור וואטסאפ צף ---------- */
.fab {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #06240f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fab:hover { transform: scale(1.08); box-shadow: 0 0 28px rgba(37, 211, 102, 0.5); }

/* ---------- אנימציית חשיפה ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .panel__log li { animation: none; opacity: 1; transform: none; }
}

/* ---------- רספונסיב ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { max-width: 560px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .project--featured { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid.is-masonry { columns: 2; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 70px; }
  .hero__lead { font-size: 16.5px; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials__grid.is-masonry { columns: 1; }
  .contact__card { grid-template-columns: 1fr; padding: 36px 26px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { margin-inline-start: 0; }

  .nav__links {
    position: fixed;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    /* רקע אטום בכוונה: backdrop-filter מקונן (בתוך ה-header) לא מצויר אמין */
    background: #0c0c12;
    padding: 26px 24px 34px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { font-size: 18px; }
  .nav__inner .btn { margin-inline-start: auto; }
  .nav__burger {
    display: grid;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav__burger span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
