/* Mihwar VPN landing — Mihwar identity: deep navy #0A1628, electric cyan
   #00E5C7, gold #C9A227 for premium. Fonts: Cairo (headings) + Tajawal (body),
   loaded from Google Fonts with a system fallback. */
:root {
  --bg: #0A1628;
  --bg-alt: #0C1B30;
  --surface: #12233D;
  --surface-hover: #16283F;
  --text: #F1F5F9;
  --muted: #8A9BB0;
  --accent: #00E5C7;
  --accent-dark: #00B8A2;
  --accent-soft: rgba(0, 229, 199, 0.14);
  --gold: #C9A227;
  --success: #22C55E;
  --border: #1E3A5C;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Segoe UI", "Tahoma", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

h1, h2, h3, .logo, .btn, .plan-tag, .step-num {
  font-family: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: 38px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0A1628; }
.btn-primary:hover { background: #33EBD0; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline {
  background: transparent; color: var(--accent);
  border-color: var(--accent); width: 100%;
}
.btn-outline:hover { background: var(--accent-soft); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

/* Hero */
.hero {
  padding: 84px 0 72px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 229, 199, 0.16), transparent 70%);
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 199, 0.35);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 { font-size: 3.4rem; line-height: 1.2; font-weight: 900; }
.hero h1 span { color: var(--accent); }
.tagline { font-size: 1.25rem; color: var(--muted); margin: 18px auto 30px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.9rem; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 2rem; text-align: center; font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); margin: 10px auto 40px; max-width: 600px; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-card h3 { font-size: 1.1rem; color: var(--muted); }
.price { font-size: 2rem; font-weight: 900; margin-top: 8px; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.price-sar { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.plan-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.plan-card li { padding: 5px 0; font-size: 0.95rem; color: var(--text); }
.plan-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.plan-hero {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), var(--surface));
  transform: scale(1.04);
}
.plan-tag {
  position: absolute; top: -14px; right: 50%;
  transform: translateX(50%);
  background: var(--gold); color: #1A1405;
  font-size: 0.82rem; font-weight: 800;
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}
.plan-tag-gold { background: var(--gold); color: #1A1405; }
.bonus-box {
  margin: 34px auto 0;
  max-width: 680px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 229, 199, 0.35);
  border-radius: 12px;
  padding: 16px 22px;
  text-align: center;
}
.pricing-note {
  text-align: center; color: var(--muted);
  font-size: 0.95rem; margin-top: 18px; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.step-num {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #0A1628;
  font-size: 1.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.97rem; }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq-wrap h2 { margin-bottom: 28px; }
.faq-wrap details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-wrap summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq-wrap summary::marker { color: var(--accent); }
.faq-wrap details p { color: var(--muted); margin-top: 10px; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { color: var(--muted); margin-bottom: 26px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
  color: var(--muted);
}
.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-brand span { color: var(--accent); font-size: 0.95rem; font-weight: 400; }
.copyright { font-size: 0.9rem; margin-top: 6px; }

/* Mobile */
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-hero { transform: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 2.4rem; }
  .tagline { font-size: 1.1rem; }
  .features-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 1.6rem; }
  .btn-small { padding: 8px 14px; font-size: 0.85rem; }
}
