/* ========================================================================
   PreBuy — Landing Page
   Brand colors pulled from the Flutter app:
   primary  #8000FF · gradient #AB56FF→#5E00BA · logo rainbow gradient
   header navy #0b1426
   ======================================================================== */

:root {
  --purple:        #8000FF;
  --purple-deep:   #5E00BA;
  --purple-light:  #AB56FF;
  --navy:          #0b1426;
  --navy-2:        #11203a;
  --ink:           #1a1330;
  --text:          #2a2540;
  --text-soft:     #5b5570;
  --line:          #ece8f5;
  --bg:            #ffffff;
  --bg-soft:       #f7f4fc;
  --radius:        18px;
  --radius-pill:   999px;
  --shadow:        0 18px 50px rgba(94, 0, 186, .14);
  --shadow-sm:     0 8px 24px rgba(26, 19, 48, .08);
  --maxw:          1200px;
  --grad:          linear-gradient(135deg, var(--purple-light), var(--purple-deep));
  --grad-text:     linear-gradient(95deg, #8A30D9 0%, #7C3AED 50%, #5E00BA 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
}

.section { padding-block: clamp(56px, 9vw, 110px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 17px);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn.sm  { padding: 12px 24px; font-size: 15px; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(123, 58, 237, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(123, 58, 237, .45); }

.btn-outline {
  background: #fff;
  color: var(--purple);
  border-color: var(--purple-light);
}
.btn-outline:hover { transform: translateY(-2px); background: var(--bg-soft); }

.btn-light { background: #fff; color: var(--purple-deep); }
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

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

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  max-width: none;                            /* span full width → items hit the corners */
  padding-inline: clamp(20px, 4vw, 56px);
}
.brand-logo { height: 38px; width: auto; }
.header-tagline {
  color: #d9d4ec;
  font-weight: 600;
  font-size: clamp(13px, 1.4vw, 16px);
  text-align: start;
}
.header-login {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-pill);
  padding: 7px 17px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.header-login:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-1px);
}
.header-login:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 3px;
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* 16:9 so the WHOLE background image (1920×1080) is visible, never cropped */
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 540px;
  background-color: #e9e2f6;            /* fallback until image loads */
  background-image: url('assets/landing_background.jpg');
  background-size: cover;               /* matches 16:9 → fills with no crop */
  background-position: center;
  background-repeat: no-repeat;
}
.hero-inner {
  display: flex;
  justify-content: flex-start;          /* flex-start = RIGHT edge in RTL */
  width: 100%;
  max-width: none;                      /* drop the 1200px cap so copy can move right */
  padding-inline-start: clamp(40px, 6vw, 110px);  /* right gutter in RTL */
}
.hero-copy {
  max-width: 600px;
  text-align: right;
  margin-inline-start: 0;               /* hug the right edge */
}

.hero-title {
  font-size: clamp(34px, 4.6vw, 64px);  /* thin line — 64px in Figma */
  line-height: 1.1;
  font-weight: 200;                     /* Heebo ExtraLight */
  color: #15101f;
  text-align: right;
}
.hero-title .grad-text {
  display: block;
  margin-top: 2px;
  font-weight: 900;                     /* Heebo Black */
  font-size: clamp(28px, 3.7vw, 52px);  /* purple line — 52px in Figma */
  line-height: 1.1;
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-soft);
  max-width: 30em;
  margin-inline-start: auto;            /* keep block aligned to the right */
}
.hero-sub strong { color: var(--ink); font-weight: 800; }
.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-cta.center { justify-content: center; }

/* ========================================================================
   PARTNERS / TRUSTED BY
   ======================================================================== */
.partners {
  background: #fff;
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.partners-title {
  text-align: center;
  font-weight: 800;            /* Heebo ExtraBold */
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  color: var(--ink);
}
.wordmark-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 38px);
  margin-top: clamp(26px, 4vw, 44px);
}
.malls-row { margin-top: clamp(18px, 2.5vw, 30px); gap: clamp(24px, 4vw, 56px); }
.wm {
  font-family: 'Inter', 'Heebo', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1;
  color: #d3d3db;              /* muted grey wordmark */
  white-space: nowrap;
  transition: color .25s ease;
}
.wordmark-row .wm:hover { color: #a9a9b4; }
.wm-bold   { font-weight: 900; }
.wm-italic { font-style: italic; font-weight: 800; }
.wm-serif  { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
.wm-mall   { font-family: 'Heebo', sans-serif; font-weight: 700; }

/* ========================================================================
   PROBLEM
   ======================================================================== */
.problem { background: #fff; padding-top: clamp(32px, 4vw, 52px); }
.eyebrow.bare {                          /* "הבעיה" — Heebo Bold 700, 36px */
  background: none;
  padding: 0;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  color: var(--purple);
  margin-bottom: 18px;
}
.problem .section-head h2 {              /* Heebo ExtraBold 800, 48px, lh 120%, black */
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  color: #000;
}
.problem .section-head p {               /* Heebo Regular 400, 18px, lh 150%, #666 */
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.5;
  font-weight: 400;
  color: #666;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 64px);
  max-width: 1040px;
  margin-inline: auto;
  direction: ltr;            /* place cards L→R: chart | megaphone | persons (persons rightmost) */
}
.problem-item { text-align: center; direction: rtl; }
.problem-icon {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
}
.problem-icon img { width: 100%; height: 100%; }
.problem-item h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.problem-item p {
  color: var(--text-soft);
  font-size: clamp(15px, 1.6vw, 16.5px);
  max-width: 26em;
  margin-inline: auto;
}

/* ========================================================================
   SECTION HEAD
   ======================================================================== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--purple);
  background: var(--bg-soft);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.8vw, 18px);
}

/* ========================================================================
   SOLUTION
   ======================================================================== */
.solution {
  background: rgba(128, 0, 255, .08);          /* #8000FF @ 8% */
  padding-block: clamp(48px, 6vw, 80px);
}
.solution-title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}
.grad-prebuy {
  background: linear-gradient(90deg, #FF8AFF 0%, #C44DFF 45%, #8000FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
}
.solution-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  direction: ltr;                              /* image left, features right */
}
.solution-visual img { width: 100%; height: auto; display: block; }

.solution-features {
  list-style: none;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
}
.sol-feature {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sol-icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(128, 0, 255, .12);
}
.sol-icon img { width: 30px; height: 30px; }
.sol-text { text-align: right; flex: 1; }
.sol-text h3 {                 /* Heebo ExtraBold 800, 18px, lh 100%, #8000FF */
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 10px;
}
.sol-text p {                  /* Heebo Regular 400, 15px, #666 */
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  color: #666;
}

/* ========================================================================
   WHY IT WORKS
   ======================================================================== */
.why { background: #fff; }
.why .section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  color: #000;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
}
.why-card {
  background: #f6f6fb;
  border-radius: 22px;
  padding: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 26px);
  text-align: center;
}
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(26, 19, 48, .06);
}
.why-icon img { width: 30px; height: 30px; }
.why-card h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #666;
  max-width: 22em;
  margin-inline: auto;
}

/* ========================================================================
   AUDIENCE  (dark section)
   ======================================================================== */
.audience { background: var(--navy); }
.audience .section-head { margin-bottom: clamp(56px, 7vw, 92px); }
.audience .eyebrow.light { color: #fff; }
.audience .section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.aud-item { text-align: center; }
.aud-icon {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
}
.aud-icon img { width: 100%; height: 100%; }
.aud-item h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.aud-item p {
  font-size: 15px;
  line-height: 1.5;
  color: #9aa1b8;
  max-width: 22em;
  margin-inline: auto;
}

/* ========================================================================
   CTA BAND
   ======================================================================== */
/* ========================================================================
   CONTACT / DEMO
   ======================================================================== */
.contact { background: #fff; }
.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  direction: ltr;                         /* form left, image right */
}
.demo-form-side { direction: rtl; text-align: right; }
.demo-form-side h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.demo-sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--text-soft);
}
.demo-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; }
.field input {                          /* H 56px · radius 12px · pad 20px · #F7F9FC */
  width: 100%;
  height: 56px;
  font-family: inherit;
  font-size: 15px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: #F7F9FC;
  text-align: right;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #9a9aae; }
.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 4px rgba(171, 86, 255, .14);
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  color: #e23744;
  text-align: right;
}
.field.invalid .field-error { display: block; }
.field.invalid input {
  border-color: #e23744;
  background: #fff5f6;
}
.form-status {
  grid-column: 1 / -1;
  margin-top: 4px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
}
.form-status.success { color: #1a7f37; }
.form-status.error { color: #e23744; }
.hp-field {                       /* honeypot — hidden from humans, bots fill it */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ========================================================================
   VIDEO MODAL
   ======================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.video-modal.open { display: flex; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 38, .82);
  backdrop-filter: blur(4px);
}
.video-modal-inner {
  position: relative;
  width: min(100%, 420px, calc(90vh * 9 / 16));
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: videoPop .25s ease;
}
@keyframes videoPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.video-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 16px;
}
.video-close {
  position: absolute;
  top: -48px;
  inset-inline-end: 0;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.video-close:hover { background: rgba(0, 0, 0, .8); }
.demo-submit {                          /* H 64px · radius 24px · gap 10px · gradient #AB56FF→#5E00BA */
  grid-column: 1 / -1;
  height: 64px;
  padding-block: 0;
  margin-top: 6px;
  border-radius: 24px;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  background: #5E00BA;
  box-shadow: none;
}
.demo-submit:hover {
  box-shadow: none;
  transform: translateY(-2px);
}
.demo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-soft);
}
.demo-note svg { color: #9a9aae; flex-shrink: 0; }

.demo-visual img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer { background: var(--navy); }
.footer-inner {
  direction: ltr;                    /* logo left · email center · phone right */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(24px, 4vw, 64px);
}
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-email {
  color: #d9dced;
  font-size: clamp(15px, 1.6vw, 18px);
  transition: color .2s;
}
.footer-email:hover { color: #fff; }
.footer-phone {
  color: #fff;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
}

/* ========================================================================
   RESPONSIVE  —  laptop / iPad / mobile
   ======================================================================== */

/* Tablet / iPad (≤ 1024px) */
@media (max-width: 1024px) {
  .hero-copy { max-width: 480px; }
  .hero-title { font-size: clamp(30px, 5vw, 48px); }
  .hero-title .grad-text { font-size: clamp(26px, 4.2vw, 40px); }
}

/* Small tablet (≤ 768px) */
@media (max-width: 768px) {
  /* drop the 16:9 lock; image sits behind a soft white wash, text centred */
  .hero {
    aspect-ratio: auto;
    min-height: auto;
    text-align: center;
    padding-block: 56px;
    background-image:
      linear-gradient(to bottom, rgba(255,255,255,.45), rgba(255,255,255,.9)),
      url('assets/landing_background.jpg');
    background-position: center, center top;
  }
  .hero-inner { justify-content: center; }
  .hero-copy { max-width: 100%; text-align: center; }
  .hero-title, .hero-title .grad-text { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }

  .header-tagline { display: none; }
  .header-inner { justify-content: center; }

  .demo-card     { grid-template-columns: 1fr; }       /* form on top, image below */
  .demo-visual   { max-width: 420px; margin-inline: auto; }
  .problem-grid  { grid-template-columns: 1fr; max-width: 420px; }
  .solution-grid { grid-template-columns: 1fr; }       /* image on top, features below */
  .solution-visual { max-width: 560px; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); row-gap: clamp(34px, 5vw, 48px); }
}

/* Mobile (≤ 560px) */
@media (max-width: 560px) {
  .demo-form { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .audience-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; padding-block: 32px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .btn { width: 100%; }
}
