/* ============================
   MILLENNIA LP — style.css
   ============================ */

/* — Fonts — */
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Regular.ttf');   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Medium.ttf');    font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-SemiBold.ttf');  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Bold.ttf');      font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-BoldItalic.ttf'); font-weight: 700; font-style: italic; font-display: swap; }

/* — Reset — */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:          #0d1b2e;
  --navy-deep:     #070f1c;
  --cyan:          #00deff;
  --white:         #ffffff;
  --white-70:      rgba(255,255,255,0.70);
  --white-45:      rgba(255,255,255,0.45);
  --white-20:      rgba(255,255,255,0.20);
  --white-08:      rgba(255,255,255,0.08);
  --card-border:   rgba(255,255,255,0.16);
  --card-hover:    rgba(0,222,255,0.55);
  --overlay:       rgba(6,16,32,0.62);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', 'Heebo', sans-serif;
  background: var(--navy);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================
   HEADER
   ============================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 22px 52px;
  transition: background 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header.scrolled {
  background: rgba(7, 15, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand .logo-main {
  height: 55px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--white);
}

.header-partners {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-partner {
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.logo-partner:hover { opacity: 1; }


/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Video Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(6, 16, 32, 0.38) 0%,
    rgba(6, 16, 32, 0.58) 45%,
    rgba(6, 16, 32, 0.80) 100%
  );
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  padding: 130px 28px 110px;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 22px;
  letter-spacing: 0.4px;
}

.badge-num {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
}

.badge-msg {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  opacity: 0.85;
}

.hero-badge.badge-exit .badge-num,
.hero-badge.badge-exit .badge-msg {
  animation: badgeOut 0.32s ease-in both;
}

.hero-badge.badge-enter .badge-num {
  animation: badgeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge.badge-enter .badge-msg {
  animation: badgeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both;
}

@keyframes badgeOut {
  from { transform: translateY(0);   opacity: 1; }
  to   { transform: translateY(-18px); opacity: 0; }
}

@keyframes badgeIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Main Title */
.hero-title {
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

/* Brand Logo */
.hero-brand {
  margin-bottom: 26px;
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: clamp(260px, 45vw, 540px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(0,222,255,0.10));
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.subtitle-presents {
  color: var(--white);
  font-weight: 700;
}

/* Features bar */
.hero-features {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 48px;
  letter-spacing: 0.2px;
}

.feat-sep {
  margin: 0 16px;
  opacity: 0.45;
}

/* Price bar */
.hero-price-bar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(0,222,255,0.35);
  background: rgba(0,222,255,0.06);
  padding: 10px 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.price-label,
.price-from {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.3px;
}

.price-from strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

/* Form block */
.hero-form-block { width: 100%; }

.form-cta-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 840px;
  padding-bottom: 24px;
}

.field-box {
  position: relative;
  border: 1px solid var(--white-20);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 14px 7px;
  cursor: text;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field-box:focus-within {
  border-color: var(--cyan);
  background: rgba(0, 222, 255, 0.05);
}

.field-box label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white-45);
  margin-bottom: 4px;
  letter-spacing: 0.6px;
  user-select: none;
}

.field-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: 'Google Sans', 'Heebo', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  direction: rtl;
  caret-color: var(--cyan);
}

.field-box input::placeholder {
  color: rgba(255,255,255,0.28);
  font-weight: 300;
}

.field-error {
  display: none;
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 11px;
  color: #00deff;
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  white-space: nowrap;
  pointer-events: none;
}
.field-error.show { display: block; }

#err-consent {
  position: static;
  display: none;
  margin-top: 6px;
  white-space: normal;
}

/* Custom dropdown */
.field-select {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
}

.select-display.selected {
  color: var(--white);
}

.select-display svg {
  flex-shrink: 0;
  margin-right: auto;
  margin-left: 0;
  transition: transform 0.25s ease;
}

.field-select.open .select-display svg {
  transform: rotate(180deg);
}

.field-select.open {
  border-color: var(--cyan);
  background: rgba(0, 222, 255, 0.05);
}

.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: -1px;
  left: -1px;
  background: #0b1929;
  border: 1px solid var(--cyan);
  list-style: none;
  z-index: 100;
  padding: 4px 0;
}

.field-select.open .select-options {
  display: block;
}

.select-options li {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--white-70);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  direction: rtl;
  text-align: right;
}

.select-options li:hover {
  background: rgba(0,222,255,0.08);
  color: var(--white);
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--navy-deep);
  border: none;
  padding: 16px 44px;
  font-family: 'Google Sans', 'Heebo', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 200px;
  justify-content: center;
}

.btn-submit:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 222, 255, 0.30);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transform: scaleX(-1); /* RTL flip */
}

/* Success State */
.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(0, 222, 255, 0.07);
  border: 1.5px solid rgba(0, 222, 255, 0.28);
  padding: 18px 32px;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.form-success.active { display: flex; }

.form-success svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}


/* ============================
   SCROLL CUE
   ============================ */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
  user-select: none;
}

.scroll-cue.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-text {
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.scroll-cue-icon {
  width: 38px;
  height: 38px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-cue-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}


/* ============================
   REASONS SECTION
   ============================ */
.reasons {
  background: var(--navy);
  padding: 108px 28px 120px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.reasons-header {
  text-align: center;
  margin-bottom: 68px;
}

.reasons-title {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 14px;
  color: var(--white);
}

.reasons-title strong {
  font-weight: 900;
  display: block;
  margin-top: 4px;
}

.reasons-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--white-45);
  letter-spacing: 0.3px;
}

/* Grid */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Flip cards */
.flip-wrap {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  height: 250px;
}

.flip-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.flip-card {
  width: 100%;
  height: 100%;
  perspective: 900px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1.5px solid var(--card-border);
  background: var(--white-08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

/* Front face */
.flip-front {
  gap: 10px;
  transition: border-color 0.3s, background 0.3s;
}

.flip-card:hover .flip-front {
  border-color: rgba(0,222,255,0.4);
  background: rgba(0,222,255,0.04);
}

.front-label {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--white-45);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.front-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -1px;
}

.front-hint {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--white-45);
  letter-spacing: 1.5px;
  margin-top: 6px;
}

/* Back face */
.flip-back {
  transform: rotateY(180deg);
  gap: 16px;
}

.card-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  align-self: flex-start;
}

.card-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.reason-card:hover .card-icon { opacity: 1; }

.card-icon svg { width: 100%; height: 100%; }

.lottie-icon {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.card-text {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--white-70);
  line-height: 1.65;
}


/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--white-08);
  padding: 30px 52px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-logo-main {
  height: 35px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.footer-logo-partner {
  height: 34px;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-logo-partner:hover { opacity: 0.85; }

.footer-copy {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.3px;
}


/* ============================
   RESPONSIVE
   ============================ */

/* ── 1440px+ large laptop / external monitor ── */
@media (min-width: 1440px) {
  .reasons { padding-top: 120px; padding-bottom: 130px; }
  .reasons-grid { gap: 24px; }
  .flip-wrap { height: 270px; }
}

/* ── 960px tablet / small laptop ── */
@media (max-width: 960px) {
  .site-header { padding: 18px 28px; }

  .hero-content { padding-top: 110px; padding-bottom: 88px; }

  .form-fields {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .reasons { padding: 80px 28px 88px; }
  .reasons-header { margin-bottom: 48px; }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── 700px mobile-L ── */
@media (max-width: 700px) {
  .site-header { padding: 14px 20px; }
  .header-brand .logo-main { height: 44px; }

  .hero-content { padding: 96px 20px 76px; }
  .hero-features { margin-bottom: 36px; }
  .hero-price-bar { margin-bottom: 28px; padding: 10px 18px; gap: 14px; }

  .reasons { padding: 68px 20px 76px; }
  .reasons-header { margin-bottom: 40px; }
  .reasons-sub { font-size: 0.92rem; }

  .flip-wrap { height: 240px; }
}

/* ── 640px ── */
@media (max-width: 640px) {
  .header-partners { display: none; }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .feat-sep { display: none; }

  .reasons-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .site-footer { padding: 24px 20px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-logos { justify-content: center; }
}

/* ── 430px mobile-M (iPhone Pro Max) ── */
@media (max-width: 430px) {
  .hero-content { padding: 86px 16px 68px; }
  .hero-features { margin-bottom: 28px; }

  .form-fields { max-width: 100%; }
  .btn-submit { width: 100%; padding: 14px 24px; }

  .reasons { padding: 56px 16px 64px; }
  .reasons-grid { max-width: 100%; gap: 14px; }

  .flip-wrap { height: 240px; }
  .flip-front, .flip-back { padding: 20px 16px; }
  .flip-back { gap: 12px; }
  .card-icon { width: 82px; height: 82px; }
  .card-text { font-size: 0.88rem; }
}

/* ── 393px mobile-S (iPhone 15 Pro / Galaxy S23) ── */
@media (max-width: 393px) {
  .header-brand .logo-main { height: 40px; }
  .front-num { font-size: 2.2rem; }
  .card-num { font-size: 0.78rem; }
  .card-text { font-size: 0.84rem; line-height: 1.55; }
  .reasons-sub { font-size: 0.88rem; }
}

/* ── 360px mobile-XS (Galaxy S21/S22) ── */
@media (max-width: 360px) {
  .hero-content { padding: 80px 14px 60px; }

  .flip-wrap { height: 228px; }
  .card-icon { width: 74px; height: 74px; }
  .front-num { font-size: 2rem; }
  .card-text { font-size: 0.82rem; }

  .reasons { padding: 48px 14px 56px; }
}

/* ── landscape mobile (short screen) ── */
@media (max-height: 500px) and (max-width: 932px) {
  .hero { min-height: auto; }
  .hero-content { padding: 72px 24px 48px; }
  .hero-features { margin-bottom: 22px; }
  .hero-price-bar { margin-bottom: 18px; padding: 8px 16px; }
  .scroll-cue { display: none; }
}
