/* Wijha Academy - Landing Page (Light Theme) */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --accent-blue: #2563eb;
  --accent-blue-light: #3b82f6;
  --accent-blue-soft: #dbeafe;
  --accent-blue-glow: rgba(37, 99, 235, 0.1);
  --accent-green: #16a34a;
  --accent-green-soft: #dcfce7;
  --accent-green-glow: rgba(22, 163, 74, 0.12);
  --accent-yellow: #d97706;
  --accent-yellow-soft: #fef3c7;
  --accent-red: #dc2626;
  --accent-red-soft: #fee2e2;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-subtle: #e2e8f0;
  --border-glow: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-animated, .grid-overlay { display: none; }

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

/* ---- Navigation ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0; transition: all 0.3s;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(16px);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle); padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px; background: var(--accent-blue);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white;
}
.logo-text { font-size: 19px; font-weight: 800; color: var(--text-primary); }
.nav-cta {
  background: var(--accent-blue); color: white; padding: 9px 22px;
  border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px;
  transition: all 0.2s; border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--accent-blue-light); box-shadow: var(--shadow-md); }

/* ---- CTA Button (shared) ---- */
.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-blue); color: white;
  padding: 14px 36px; border-radius: 10px; font-size: 17px; font-weight: 800;
  text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
  font-family: 'Tajawal', sans-serif;
}
.cta-button:hover { background: #1d4ed8; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.cta-button svg { width: 18px; height: 18px; }

/* ---- Hero ---- */
#hero {
  /* flex-start: vertical centering was pushing the video below the fold on many screens */
  min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  text-align: center; padding: 120px 0 80px; position: relative;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-green-soft); border: 1px solid #bbf7d0;
  color: var(--accent-green); padding: 7px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(30px, 5.5vw, 52px); font-weight: 900; line-height: 1.25; margin-bottom: 16px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-blue), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-title .number { color: var(--accent-yellow); -webkit-text-fill-color: var(--accent-yellow); font-size: 1.1em; }
.hero-subtitle { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.hero-subtitle .free-tag { color: var(--accent-green); font-weight: 900; }
.price-tag-inline {
  display: inline-block; background: var(--accent-green-soft); color: var(--accent-green);
  padding: 2px 14px; border-radius: 6px; font-weight: 900; font-size: 1.05em;
}
.hero-desc { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.8; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-blue); color: white; padding: 14px 36px;
  border-radius: 10px; font-size: 17px; font-weight: 800;
  text-decoration: none; transition: all 0.2s; border: none; cursor: pointer;
  font-family: 'Tajawal', sans-serif;
}
.hero-cta:hover { background: #1d4ed8; box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.hero-cta svg { width: 18px; height: 18px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 28px; font-weight: 900; color: var(--accent-blue); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---- Hero Video ---- */
.hero-video {
  margin-top: 48px; max-width: 720px; margin-left: auto; margin-right: auto;
  opacity: 1;
  transform: none;
}
.hero-video--above-summary {
  margin-top: 28px;
  margin-bottom: 28px;
}
.video-container {
  position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-subtle); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.video-placeholder {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.video-placeholder:hover { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.video-placeholder:hover .video-play-btn svg { transform: scale(1.1); }
.video-play-btn { display: flex; align-items: center; justify-content: center; }
.video-play-btn svg {
  width: 68px; height: 48px; transition: transform 0.2s;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.video-caption {
  margin-top: 16px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600;
}
.video-iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ---- Section Title ---- */
.section-title {
  text-align: center; font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900; margin-bottom: 44px; color: var(--text-primary);
}

/* ---- Comparison (Native Table) ---- */
#comparison { padding: 80px 0; }
.comparison-table {
  width: 100%; max-width: 800px; margin: 0 auto 40px;
  border-collapse: collapse; background: var(--bg-card);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-subtle); box-shadow: var(--shadow);
}
.comparison-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.comparison-table th {
  padding: 14px 20px; background: var(--bg-subtle); font-weight: 800; font-size: 13px;
  color: var(--text-secondary); text-align: right;
  border-bottom: 2px solid var(--border-subtle);
}
.comparison-table td {
  padding: 13px 20px; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-subtle); }
.comparison-table td:first-child { font-weight: 700; color: var(--text-primary); }
.comparison-table td:nth-child(2) { color: var(--accent-red); }
.comparison-table td:nth-child(3) { color: var(--accent-green); font-weight: 700; }

/* ---- Comparison (Visual Cards) ---- */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.compare-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 36px 28px; text-align: center;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.compare-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.compare-card.old::before { background: linear-gradient(90deg, var(--accent-red), #f59e0b); }
.compare-card.new::before { background: linear-gradient(90deg, var(--accent-green), var(--accent-blue)); }
.compare-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.compare-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 32px;
}
.compare-card.old .compare-icon { background: var(--accent-red-soft); }
.compare-card.new .compare-icon { background: var(--accent-green-soft); }
.compare-icon.compare-icon--old-price {
  width: auto; min-width: 108px; height: auto; padding: 14px 18px;
  border-radius: 14px; flex-direction: column; gap: 2px; font-size: inherit;
}
.compare-old-price { font-size: 26px; font-weight: 900; line-height: 1; color: var(--accent-red); }
.compare-old-price del { text-decoration: line-through; text-decoration-thickness: 2px; }
.compare-old-currency { font-size: 14px; font-weight: 800; color: var(--accent-red); opacity: 0.9; }
.compare-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.compare-card.old h3 { color: var(--accent-red); }
.compare-card.new h3 { color: var(--accent-green); }
.compare-list { list-style: none; text-align: right; }
.compare-list li { padding: 7px 0; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.compare-list li .icon { flex-shrink: 0; font-size: 15px; }
.compare-card.old .compare-list li .icon { color: var(--accent-red); }
.compare-card.new .compare-list li .icon { color: var(--accent-green); }
.price-tag {
  display: inline-block; margin-top: 18px; padding: 7px 22px;
  border-radius: 8px; font-size: 22px; font-weight: 900;
}
.compare-card.old .price-tag { background: var(--accent-red-soft); color: var(--accent-red); }
.compare-card.new .price-tag, .new-price-tag { background: var(--accent-green-soft); color: var(--accent-green); }

/* ---- Benefits ---- */
#benefits { padding: 80px 0; }
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  list-style: none;
}
.benefit-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 28px 24px; transition: all 0.2s;
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-blue-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.benefit-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--text-primary); }
.benefit-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ---- FAQ ---- */
#faq { padding: 80px 0; background: var(--bg-subtle); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 24px; transition: all 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item dt h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.faq-item dd p { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }

/* ---- Registration Form ---- */
#registration-form { padding: 80px 0 100px; }
.form-wrapper {
  max-width: 560px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 44px 36px; position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.form-wrapper::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #7c3aed, var(--accent-green));
}
.form-title { text-align: center; font-size: 26px; font-weight: 900; margin-bottom: 6px; color: var(--text-primary); }
.form-subtitle { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.form-group label .required { color: var(--accent-red); margin-right: 2px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 15px; font-family: 'Tajawal', sans-serif;
  transition: all 0.2s; outline: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-blue); box-shadow: 0 0 0 3px var(--accent-blue-glow);
  background: white;
}
.form-group input.error, .form-group select.error {
  border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center;
}
.form-group select option { background: white; color: var(--text-primary); }
.field-error { display: none; color: var(--accent-red); font-size: 12px; margin-top: 5px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.submit-btn {
  width: 100%; padding: 14px; background: var(--accent-blue); color: white;
  border: none; border-radius: var(--radius-sm); font-size: 17px; font-weight: 900;
  font-family: 'Tajawal', sans-serif; cursor: pointer; transition: all 0.2s; margin-top: 6px;
}
.submit-btn:hover { background: #1d4ed8; box-shadow: var(--shadow-lg); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loader {
  display: none; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--text-muted); }

/* ---- Success ---- */
#form-success { display: none; text-align: center; padding: 36px 20px; }
#form-success.animate-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent-green-soft);
  border: 3px solid var(--accent-green); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 36px;
}
#form-success h3 { font-size: 22px; font-weight: 900; color: var(--accent-green); margin-bottom: 8px; }
#form-success p { color: var(--text-secondary); font-size: 15px; }
#form-error-banner {
  display: none; background: var(--accent-red-soft); border: 1px solid #fca5a5;
  color: var(--accent-red); padding: 10px 18px; border-radius: var(--radius-sm);
  margin-bottom: 14px; text-align: center; font-size: 13px; font-weight: 700;
}

/* ---- Confetti ---- */
#confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1000; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -10px; width: 10px; height: 10px; border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ---- Footer ---- */
.footer {
  text-align: center; padding: 36px 0; border-top: 1px solid var(--border-subtle);
  color: var(--text-muted); font-size: 13px; background: var(--bg-subtle);
}
.footer a { color: var(--accent-blue); text-decoration: none; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.5s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 28px 20px; margin: 0 8px; }
  .hero-stats { gap: 24px; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-video { margin-top: 36px; }
  .video-play-btn svg { width: 56px; height: 40px; }
  .video-caption { font-size: 13px; }
}
@media (max-width: 600px) {
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 17px; }
  .container { padding: 0 16px; }
}

/* ---- GEO ---- */
.tldr-summary {
  max-width: 680px; margin: 0 auto 24px; padding: 16px 24px;
  background: var(--bg-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); font-size: 15px; line-height: 1.9; color: var(--text-secondary);
}
.tldr-summary strong { color: var(--text-primary); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
