/* ═══════════════════════════════════════════
   WP Self-Hosted — Landing Page Styles
   ═══════════════════════════════════════════ */

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

:root {
  --brand:       #6366f1;
  --brand-dark:  #4f46e5;
  --brand-light: #e0e7ff;
  --accent:      #f59e0b;
  --green:       #10b981;
  --bg:          #0f0f13;
  --bg2:         #16161d;
  --bg3:         #1e1e28;
  --card:        #1a1a24;
  --border:      rgba(255,255,255,.08);
  --text:        #e2e8f0;
  --muted:       #94a3b8;
  --radius:      14px;
  --shadow:      0 8px 32px rgba(0,0,0,.45);
  --trans:       .25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--brand-dark); }

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

/* ── Language Bar ── */
.lang-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  transition: all var(--trans);
}

.lang-btn img {
  width: 20px;
  height: auto;
  border-radius: 3px;
}

.lang-btn:hover { border-color: var(--brand); color: var(--text); }
.lang-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-donate {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-donate:hover {
  background: #d97706;
  border-color: #d97706;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 90px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,102,241,.25) 0%, transparent 70%),
              var(--bg);
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Decorative circles */
.hero-graphic { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.graphic-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .12;
}
.c1 { width: 500px; height: 500px; background: var(--brand); top: -150px; left: -100px; }
.c2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; right: -100px; }
.c3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 60%; transform: translate(-50%,-50%); }

/* ── Speed Banner ── */
.speed-banner {
  background: linear-gradient(135deg, #1b2a1b 0%, #0f1a0f 100%);
  border-top: 1px solid rgba(16,185,129,.2);
  border-bottom: 1px solid rgba(16,185,129,.2);
  padding: 56px 24px;
}

.speed-banner .container {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.speed-icon {
  font-size: 3rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(16,185,129,.6));
}

.speed-text h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}

.speed-text p { color: var(--muted); max-width: 680px; }

/* ── Section Commons ── */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 52px;
}

/* ── Features ── */
.features {
  padding: 90px 24px;
  background: var(--bg2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 12px 36px rgba(99,102,241,.15);
}

.feat-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.feature-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── How It Works ── */
.how {
  padding: 90px 24px;
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
}

.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--muted); }

.step-arrow {
  font-size: 1.8rem;
  color: var(--muted);
  align-self: center;
  padding-top: 4px;
}

/* ── Donate ── */
.donate {
  padding: 90px 24px;
  background: var(--bg2);
  text-align: center;
}

.donate-inner { max-width: 620px; margin: 0 auto; }

.donate-icon {
  font-size: 3.5rem;
  margin-bottom: 18px;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

.donate h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.donate p { color: var(--muted); margin-bottom: 32px; max-width: 540px; margin-inline: auto; }

.donate-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }

/* ── RTL Tweaks (Farsi) ── */
[dir="rtl"] .speed-banner .container { flex-direction: row-reverse; }
[dir="rtl"] .step-arrow { transform: scaleX(-1); }
[dir="rtl"] .lang-bar { justify-content: flex-start; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero { padding: 70px 20px 60px; }
  .speed-banner .container { flex-direction: column; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  [dir="rtl"] .step-arrow { transform: rotate(90deg); }
  .features-grid { grid-template-columns: 1fr; }
}
