/* תנופה - מועדון המאסטר במתמטיקה | Design System: WOW Dark Premium (שחור + זהב) */

:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --bg-card: #161616;
  --navy: #0a0a0a; /* legacy alias, kept dark */
  --text: #f2f0ea;
  --text-secondary: #b7b2a6;
  --gold: #d4af37;
  --gold-bright: #f3d883;
  --gold-dim: #8a6f22;
  --cta: #f59e0b;
  --cta-hover: #ffb733;
  --white: #FFFFFF;
  --border: rgba(212, 175, 55, 0.22);
  --radius: 8px;
  --max-width: 1120px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(245, 158, 11, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Assistant", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Assistant", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--text-secondary); }

a { color: var(--gold-bright); text-decoration: none; }

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

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

.gold-text { color: var(--gold-bright); }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.logo span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-bright);
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cta), var(--gold));
  color: #1a1200;
  box-shadow: var(--glow);
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 200% 0;
  transition: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.55);
}

.btn-primary:hover::after {
  animation: shimmer-sweep 1.1s ease;
}

@keyframes shimmer-sweep {
  from { background-position: 200% 0; }
  to { background-position: -50% 0; }
}

.btn-secondary {
  background: transparent;
  color: var(--gold-bright);
  border: 2px solid var(--gold-dim);
  padding: 14px 30px;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold);
}

.btn-small { padding: 12px 22px; font-size: 0.92rem; }

/* ===== Sections ===== */

section { padding: 96px 0; position: relative; }

.section-alt { background: var(--bg-alt); }

.section-navy {
  background: #050505;
  color: var(--white);
}

.section-navy p { color: var(--text-secondary); }

/* gradient divider between sections */
.divider {
  height: 120px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(212,175,55,0.06) 50%, var(--bg-alt) 100%);
}

.eyebrow {
  display: inline-block;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* ===== Hero ===== */

.hero {
  padding: 120px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212,175,55,0.14), transparent 70%),
    var(--bg);
}

.hero .container { max-width: 820px; }

.hero h1 { margin-bottom: 22px; }

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-cta-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== Reveal-on-scroll ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stagger.in-view > * { animation: none; }
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger.in-view > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

/* ===== Pain / Grid lists ===== */

.pain-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  font-weight: 700;
  color: var(--text);
}

/* ===== Steps ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.step {
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta), var(--gold));
  color: #1a1200;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 18px rgba(245,158,11,0.3);
}

/* ===== Stat counters ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.stat-label { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Cards ===== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

/* ===== Pricing ===== */

.price-card {
  max-width: 460px;
  margin: 44px auto 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card), #0d0d0d);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: 0 0 50px rgba(212,175,55,0.08), var(--shadow);
}

.price-line {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
}

.price-line small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-note { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 26px; }

.included-list {
  list-style: none;
  padding: 0;
  text-align: right;
  margin: 24px 0;
}

.included-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.included-list li:before {
  content: "✓";
  color: var(--gold-bright);
  font-weight: 800;
  margin-left: 10px;
}

/* ===== FAQ ===== */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item h3 { margin-bottom: 8px; color: var(--white); }

/* ===== Blog ===== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.post-card h3 { margin-bottom: 12px; }
.post-card h3 a { color: var(--white); }
.post-card h3 a:hover { color: var(--gold-bright); }
.post-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== Contact form ===== */

.contact-form {
  max-width: 560px;
  margin: 44px auto 0;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-note {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 700;
}

.form-note-success {
  background: rgba(46, 125, 50, 0.15);
  color: #7fd68a;
  border: 1px solid rgba(46,125,50,0.4);
}

.form-note-error {
  background: rgba(179, 38, 30, 0.15);
  color: #f19b95;
  border: 1px solid rgba(179,38,30,0.4);
}

/* ===== Footer ===== */

.site-footer {
  background: #050505;
  color: var(--text-secondary);
  padding: 52px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h4 { color: var(--white); font-size: 1rem; }

.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid rgba(212,175,55,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: #6b6555;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .pain-list, .steps, .stats, .card-grid, .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .pain-list, .steps, .stats, .card-grid, .post-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 60px 0; }
  .hero { padding: 72px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn-primary::after { display: none; }
}
