/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg: #171C22;
  --bg-alt: #1D232B;
  --bg-card: #1F262E;
  --primary: #7DD3F7;
  --primary-dim: rgba(125, 211, 247, 0.15);
  --gold: #D9B45B;
  --text: #F5F7FA;
  --text-dim: #B7C0CC;
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container-width: 860px;
  --section-y: clamp(56px, 9vw, 108px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Arial Hebrew", Tahoma, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  right: -9999px;
  top: auto;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 999;
}

.skip-link:focus {
  right: 12px;
  top: 12px;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text);
}

.section-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dim);
}

/* ==========================================================================
   Buttons / CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: #0B1116;
}

.btn--cta {
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px 28px;
  box-shadow: 0 8px 30px -8px var(--primary-dim);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn--cta:hover,
.btn--cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 46px -10px rgba(125, 211, 247, 0.55);
  background: #8fdcfa;
}

.btn--cta:active {
  transform: translateY(0) scale(1);
}

.btn__main {
  font-size: 1.15rem;
}

.btn__sub {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
}

.btn--submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
}

.btn--submit:hover,
.btn--submit:focus-visible {
  background: #8fdcfa;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(56px, 10vw, 104px) 0 var(--section-y);
  background: radial-gradient(circle at 50% 0%, rgba(125, 211, 247, 0.08), transparent 60%);
}

.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero__title {
  font-size: clamp(2.25rem, 6.7vw, 3.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero__subtitle {
  max-width: 46ch;
  margin-bottom: 8px;
}

.hero__subtitle-line {
  display: block;
}

.hero__subtitle-line--strong {
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.hero__subtitle-line:not(.hero__subtitle-line--strong) {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-dim);
}

/* Video placeholder */
.video-placeholder {
  width: 100%;
  max-width: 610px;
  margin: 8px auto 12px;
}

.video-placeholder__inner {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #1B2129, #12161B);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}

.video-placeholder__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--primary-dim), transparent 65%);
  opacity: 0.6;
}

.video-placeholder__play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #0B1116;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(125, 211, 247, 0.5);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 211, 247, 0.35); }
  70% { box-shadow: 0 0 0 18px rgba(125, 211, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 211, 247, 0); }
}

.video-placeholder__text {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.about__image {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.about__image:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.55);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(23, 28, 34, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(125, 211, 247, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  line-height: 1.2;
}

.stat-badge__number {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-badge__label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
}

.about__content {
  text-align: center;
}

/* Generic image placeholder (shown via JS when the real image fails to load) */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  background: linear-gradient(160deg, #1B2129, #12161B);
}

.img-placeholder svg {
  color: var(--primary);
  opacity: 0.85;
}

.img-placeholder span {
  font-size: 0.85rem;
}

.js-img-fallback.is-broken {
  display: none;
}

.js-img-fallback.is-broken + .img-placeholder {
  display: flex;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  padding: var(--section-y) 0;
}

.process__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.process__inner .section-text {
  text-align: right;
}

.process__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0 32px;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 168px;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.process__step:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 247, 0.35);
}

.process__step-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.process__step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.process__arrow {
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.7;
}

.process__highlight {
  margin-top: 24px;
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ==========================================================================
   Before / After
   ========================================================================== */
.before-after {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}

.before-after__inner {
  text-align: center;
}

.before-after__image {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.before-after__image:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.55);
}

.before-after__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ba-badge--before {
  right: 14px;
  background: rgba(23, 28, 34, 0.8);
  color: var(--text-dim);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.ba-badge--after {
  left: 14px;
  background: var(--primary);
  color: #0B1116;
}

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */
.faq {
  padding: var(--section-y) 0;
}

.faq__inner {
  text-align: center;
}

.accordion {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.accordion__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.accordion__item:hover {
  transform: translateY(-2px);
  background: #232B34;
}

.accordion__item:has(.accordion__trigger[aria-expanded="true"]) {
  border-color: rgba(125, 211, 247, 0.35);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.accordion__icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion__icon::before {
  width: 14px;
  height: 2px;
}

.accordion__icon::after {
  width: 2px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.accordion__trigger[aria-expanded="true"] + .accordion__panel {
  opacity: 1;
}

.accordion__panel p {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ==========================================================================
   CTA section
   ========================================================================== */
.cta-section {
  padding: var(--section-y) 0;
  background: var(--bg-alt);
}

.cta-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-section__kicker {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

/* ==========================================================================
   Form
   ========================================================================== */
.form-section {
  padding: var(--section-y) 0 calc(var(--section-y) + 20px);
}

.form-section__inner {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  text-align: right;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
}

.form-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field input::placeholder {
  color: #6B7480;
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--primary);
  text-align: center;
}

.form-status.is-error {
  color: #F28B82;
}

/* ==========================================================================
   Scroll / entrance motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-0 { transition-delay: 0s; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 700px) {
  .about__inner {
    grid-template-columns: 240px 1fr;
    text-align: right;
  }

  .about__content {
    text-align: right;
  }

  .about__image {
    margin: 0;
  }

  .process__steps {
    flex-direction: row;
    justify-content: center;
  }

  .process__arrow {
    transform: rotate(90deg);
  }
}
