/* ============================================================
   DROP ACADEMY - STYLESHEET
   Mobile-First · RTL · Dark Premium Theme
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --bg-base:       #0b0c10;
  --bg-surface:    #13151c;
  --bg-card:       #1a1d27;
  --bg-card-alt:   #1f2232;

  --gold:          #f5a623;
  --gold-light:    #ffc85e;
  --gold-dark:     #c27c00;
  --accent-green:  #22c55e;
  --accent-red:    #ef4444;

  --text-primary:  #f0f0f4;
  --text-muted:    #8a8fa8;
  --text-dim:      #5a5f75;
  --border:        rgba(245, 166, 35, 0.15);
  --border-strong: rgba(245, 166, 35, 0.35);

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-full:   9999px;

  --shadow-card:   0 4px 32px rgba(0,0,0,0.4);
  --shadow-gold:   0 0 40px rgba(245,166,35,0.18);

  --font:          'Cairo', sans-serif;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 60%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #0b0c10;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.55);
}

.btn-primary:active { transform: translateY(0) scale(0.99); }

/* ── SECTION SHARED ─────────────────────────────────────────── */
.section {
  padding-block: 72px 80px;
}

.section-tag {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 48px;
}

/* ── FADE-IN / REVEAL ANIMATIONS ───────────────────────────── */
.fade-in,
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.fade-in:nth-child(1) { transition-delay: 0.05s; }
.fade-in:nth-child(2) { transition-delay: 0.15s; }
.fade-in:nth-child(3) { transition-delay: 0.25s; }
.fade-in:nth-child(4) { transition-delay: 0.35s; }
.fade-in:nth-child(5) { transition-delay: 0.42s; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,12,16,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}

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

/* ============================================================
   1. HERO SECTION
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 80px 60px;
  overflow: hidden;
}

/* Grid background texture */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glow blob */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(600px, 120vw);
  height: min(600px, 120vw);
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-title {
  font-size: clamp(2rem, 6.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
}

.btn-hero {
  font-size: 1.1rem;
  padding: 16px 36px;
  margin-top: 8px;
}

/* Hero trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.trust-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.trust-item span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

/* ============================================================
   2. PROBLEMS SECTION
============================================================ */
.problems {
  background: var(--bg-surface);
}

.cards-grid {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.problem-card { position: relative; overflow: hidden; }

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(239,68,68,0.1) 0%, transparent 70%);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   3. FEATURES SECTION
============================================================ */
.features { background: var(--bg-base); }

.features-grid {
  display: grid;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   4. TESTIMONIALS SECTION
============================================================ */
.testimonials {
  background: var(--bg-surface);
}

.testimonials-grid {
  display: grid;
  gap: 20px;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
}

.testi-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

/* البطاقة المميزة */
.testi-featured {
  background: linear-gradient(135deg, #1c1a10, #22201a);
  border-color: rgba(245,166,35,0.4);
  box-shadow: 0 0 40px rgba(245,166,35,0.1);
}

.testi-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.testi-info strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.testi-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testi-result {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-green);
  text-align: center;
}

/* ============================================================
   5. CALCULATOR SECTION
============================================================ */
.calculator {
  background: var(--bg-base);
  position: relative;
}

.calculator::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,166,35,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-shadow: var(--shadow-gold);
  position: relative;
  z-index: 1;
}

.calc-inner {
  background: var(--bg-card-alt);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.calc-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-input {
  width: 100%;
  background: var(--bg-base);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 1.1rem;
  color: var(--text-primary);
  direction: rtl;
  transition: border-color var(--transition);
  outline: none;
}

.calc-input:focus { border-color: var(--gold); }
.calc-input::placeholder { color: var(--text-dim); }

/* إخفاء أسهم number input */
.calc-input::-webkit-inner-spin-button,
.calc-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input[type=number] { -moz-appearance: textfield; }

.calc-btn { width: 100%; font-size: 1.05rem; padding: 15px; }

/* نتيجة الحاسبة */
.calc-result {
  background: linear-gradient(135deg, rgba(245,166,35,0.06), rgba(245,166,35,0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: fadeUp 0.4s ease;
}

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

.result-icon { font-size: 2.5rem; }

.calc-result h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
}

.calc-result p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.result-metric {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.result-metric-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
}

.result-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.result-disclaimer {
  font-size: 0.76rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
  margin-top: 4px;
}

/* ============================================================
   6. OFFER & GUARANTEE SECTION
============================================================ */
.offer { background: var(--bg-surface); }

.offer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

/* Decorative glow */
.offer-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.offer-tag {
  display: inline-block;
  background: var(--gold);
  color: #0b0c10;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  align-self: flex-start;
}

.offer-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-list li {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.5;
  padding-right: 4px;
}

/* Price block */
.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-old {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-current {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.price-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-offer {
  font-size: 1.1rem;
  padding: 18px 36px;
  align-self: stretch;
  text-align: center;
}

/* Guarantee box */
.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.guarantee-icon { font-size: 2rem; flex-shrink: 0; }

.guarantee-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 6px;
}

.guarantee-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   7. FAQ ACCORDION
============================================================ */
.faq { background: var(--bg-base); }

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item.open { border-color: var(--border-strong); }

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  transition: color var(--transition);
}

.accordion-btn:hover { color: var(--gold); }

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
  order: -1; /* يظهر على اليمين في RTL */
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: rgba(245,166,35,0.15);
}

/* Accordion body - smooth slide */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body p {
  padding: 0 22px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================================
   8. FINAL CTA
============================================================ */
.final-cta {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(245,166,35,0.09) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(245,166,35,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.final-title {
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
}

.final-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
}

.btn-final {
  font-size: 1.15rem;
  padding: 18px 42px;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.8;
}

.footer-copy a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-copy a:hover { color: var(--gold); }

/* ============================================================
   STICKY CTA
============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 200;
  padding: 10px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,12,16,0.95) 30%);
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-btn {
  width: 100%;
  max-width: 480px;
  font-size: 1rem;
  padding: 14px 24px;
}

/* ============================================================
   RESPONSIVE - TABLET (min 640px)
============================================================ */
@media (min-width: 640px) {
  .cards-grid       { grid-template-columns: repeat(2, 1fr); }
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .calc-input-row   { flex-direction: row; }
  .calc-btn         { width: auto; white-space: nowrap; }
  .offer-box        { padding: 52px 44px; }
}

/* ============================================================
   RESPONSIVE - DESKTOP (min 1024px)
============================================================ */
@media (min-width: 1024px) {
  .section { padding-block: 96px 104px; }

  .hero-inner { max-width: 800px; }

  .cards-grid       { grid-template-columns: repeat(3, 1fr); }
  .features-grid    { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .result-metrics   { grid-template-columns: repeat(3, 1fr); }

  /* الـ Sticky CTA مخفي على الديسكتوب */
  .sticky-cta { display: none; }

  .accordion-btn { font-size: 1.05rem; }
}