@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700&display=swap');

:root {
  --color-dark: #0d1117;
  --color-text: #1a1a2e;
  --color-accent: #2d6a4f;
  --color-accent-light: #52b788;
  --color-bg: #ffffff;
  --color-card: #f8f9fa;
  --color-border: #e9ecef;
  --color-gold: #d4a853;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo {
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-cta {
  color: white;
  background: var(--color-accent);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--color-accent-light); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  background: url('../assets/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,17,23,0.65) 0%, rgba(13,17,23,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 0 24px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s ease forwards 0.3s;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards 0.6s;
}
.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards 0.9s;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS COMMON ─── */
section { padding: 96px 0; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: #888;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Reveal base — JS drives opacity/transform */
.reveal-card,
.reveal-step {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ─── AUDIENCE CARDS ─── */
.audience { background: var(--color-bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: #666; line-height: 1.7; }

/* ─── HOW IT WORKS ─── */
.how-it-works { background: var(--color-card); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: #666; font-size: 0.95rem; line-height: 1.7; }
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-divider {
  color: var(--color-accent-light);
  font-size: 1.5rem;
  padding-top: 16px;
  align-self: center;
}
.how-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #999;
}

@media (max-width: 768px) {
  .step-divider { display: none; }
}

/* ─── DEMO ─── */
.demo { background: var(--color-bg); }

.demo-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  max-width: 720px;
  margin: 40px auto 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.demo-meta { margin-bottom: 4px; }
.demo-tag {
  background: var(--color-accent);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.demo-question {
  margin-top: 28px;
  padding: 20px;
  background: #f0f7f4;
  border-radius: 12px;
  border-right: 4px solid var(--color-accent);
}
.demo-question p { font-size: 1rem; margin: 0; }
.demo-answer {
  margin-top: 20px;
  padding: 20px;
  background: var(--color-card);
  border-radius: 12px;
}
.demo-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.typewriter-text { line-height: 1.8; min-height: 80px; }
.demo-disclaimer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #999;
}
.demo-cta-text {
  text-align: center;
  margin-top: 28px;
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ─── TOOL ─── */
.tool-section { background: var(--color-card); }

.tool-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  max-width: 680px;
  margin: 40px auto 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.tool-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.input-group { margin-bottom: 0; }
.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  transition: border-color 0.2s;
  background: white;
}
.input-group input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.full-width { margin-bottom: 16px; }

.quota-bar {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; transform: none; }

.tool-note {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  margin-top: 14px;
}
.tool-note a { color: var(--color-accent); text-decoration: none; }
.tool-note a:hover { text-decoration: underline; }

/* ─── RESULT ─── */
.result-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  max-width: 680px;
  margin: 24px auto 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.result-meta {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.result-answer { line-height: 1.9; font-size: 1rem; white-space: pre-wrap; }
.result-disclaimer { margin-top: 20px; font-size: 0.8rem; color: #999; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal > p {
  color: #666;
  margin-bottom: 28px;
  font-size: 1rem;
}
.modal form input[type="text"],
.modal form input[type="tel"],
.modal form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.modal form input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: right;
  margin-bottom: 20px;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}
.modal .btn-primary { margin-top: 0; }

/* ─── FOOTER ─── */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
}
.footer a { color: var(--color-accent-light); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-disclaimer {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.5;
}
.footer p + p { margin-top: 6px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .tool-inputs { grid-template-columns: 1fr; }
  .tool-card, .demo-card, .result-card { padding: 28px 20px; }
  .modal { padding: 36px 24px; }
  .nav { padding: 14px 20px; }
}
