/* Mada TV 8K — Static CSS */
:root {
  --background: oklch(0.08 0.01 30);
  --foreground: oklch(0.97 0.01 80);
  --muted-foreground: oklch(0.7 0.02 80);
  --border: oklch(0.25 0.03 60 / 0.5);
  --primary-foreground: oklch(0.1 0.01 30);
  --gold: oklch(0.82 0.16 85);
  --gold-glow: oklch(0.9 0.18 90);
  --emerald-brand: oklch(0.62 0.18 145);
  --ruby: oklch(0.55 0.24 25);
  --gradient-gold: linear-gradient(135deg, oklch(0.75 0.18 80) 0%, oklch(0.92 0.16 95) 50%, oklch(0.7 0.17 75) 100%);
  --gradient-tri: linear-gradient(135deg, var(--gold) 0%, var(--ruby) 50%, var(--emerald-brand) 100%);
  --gradient-radial-glow: radial-gradient(circle at 50% 0%, oklch(0.55 0.24 25 / 0.25), transparent 60%);
  --shadow-glow-gold: 0 0 50px oklch(0.82 0.16 85 / 0.5);
  --shadow-luxury: 0 20px 60px -15px oklch(0.82 0.16 85 / 0.35), 0 0 0 1px oklch(0.82 0.16 85 / 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  direction: rtl;
  background-image:
    radial-gradient(ellipse at top, oklch(0.55 0.24 25 / 0.15), transparent 50%),
    radial-gradient(ellipse at bottom, oklch(0.62 0.18 145 / 0.08), transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: "Tajawal", system-ui, sans-serif; font-weight: 800; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.gold-bold { color: var(--gold); font-weight: 700; }
.mt-6 { margin-top: 1.5rem; }

.text-gold-grad {
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.text-tri-grad {
  background: var(--gradient-tri);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.glass {
  background: oklch(0.14 0.02 40 / 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(0.82 0.16 85 / 0.15);
}
.glass-strong {
  background: oklch(0.12 0.02 40 / 0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid oklch(0.82 0.16 85 / 0.25);
}

/* Animations */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.5; } }
.float { animation: float 6s ease-in-out infinite; }

/* WhatsApp float */
.wa-float { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 50; display: block; }
.wa-ping { position: absolute; inset: 0; border-radius: 9999px; background: var(--emerald-brand); opacity: 0.4; animation: ping 1.8s cubic-bezier(0,0,0.2,1) infinite; }
.wa-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 4rem; width: 4rem; border-radius: 9999px;
  background: linear-gradient(135deg, oklch(0.65 0.2 145), oklch(0.5 0.18 150));
  box-shadow: var(--shadow-glow-gold);
  transition: transform 0.2s;
}
.wa-float:hover .wa-btn { transform: scale(1.1); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 5rem 1rem 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, oklch(0.08 0.01 30 / 0.6), oklch(0.08 0.01 30 / 0.8), var(--background)); }
.hero-glow { position: absolute; inset: 0; background: var(--gradient-radial-glow); }
.float-glow { position: absolute; height: 16rem; width: 16rem; border-radius: 9999px; filter: blur(80px); }
.gold-glow { top: 25%; right: 25%; background: var(--gold); opacity: 0.3; }
.ruby-glow { bottom: 25%; left: 25%; background: var(--ruby); opacity: 0.2; }
.hero-inner { position: relative; z-index: 10; max-width: 900px; text-align: center; }
.logo { height: 8rem; width: auto; margin: 0 auto; filter: drop-shadow(0 0 40px oklch(0.82 0.16 85 / 0.5)); }

.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; margin-top: 1.5rem; }
.dot { height: 0.5rem; width: 0.5rem; border-radius: 9999px; background: var(--emerald-brand); animation: pulse 2s infinite; }

h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 900; margin-top: 1.5rem; }
.h-sub { display: block; font-size: clamp(1.5rem, 3vw, 2.5rem); margin-top: 0.75rem; color: var(--foreground); }
.lead { font-size: 1.125rem; color: var(--muted-foreground); max-width: 700px; margin: 1.5rem auto 0; }

.cta-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: center; margin-top: 2.5rem; }
@media (min-width: 640px) { .cta-row { flex-direction: row; } }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; border-radius: 9999px; font-weight: 700; font-size: 1.125rem; transition: transform 0.2s; cursor: pointer; border: none; font-family: inherit; }
.btn:hover { transform: scale(1.05); }
.btn-gold { background: var(--gradient-gold); color: var(--primary-foreground); box-shadow: var(--shadow-glow-gold); }
.btn-ghost { background: oklch(0.12 0.02 40 / 0.85); color: var(--foreground); border: 1px solid oklch(0.82 0.16 85 / 0.3); backdrop-filter: blur(24px); }
.btn-ghost:hover { border-color: oklch(0.82 0.16 85 / 0.6); }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 700px; margin: 3rem auto 0; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.mini { padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 600; text-align: center; }
.mini span { display: block; font-size: 1.5rem; margin-bottom: 0.25rem; }

/* SECTIONS */
.section { position: relative; padding: 6rem 1rem; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900; }
.section-head p { margin-top: 1rem; font-size: 1.125rem; }
.chip { display: inline-block; padding: 0.25rem 1rem; border-radius: 9999px; font-size: 0.875rem; color: var(--gold); margin-bottom: 1rem; }
.chip.emerald { color: var(--emerald-brand); }

/* Features grid */
.grid-features { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-features { grid-template-columns: repeat(3, 1fr); } }
.feature-card { padding: 2rem; border-radius: 1.5rem; transition: transform 0.3s, border-color 0.3s; }
.feature-card:hover { transform: translateY(-8px); border-color: oklch(0.82 0.16 85 / 0.5); }
.feature-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Pricing */
.pricing-section { background: radial-gradient(ellipse at center, oklch(0.55 0.24 25 / 0.1), transparent 60%); }
.grid-plans { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .grid-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; padding: 2rem; border-radius: 1.5rem; transition: transform 0.3s; }
.plan:hover { transform: translateY(-12px); }
.plan.highlight { box-shadow: var(--shadow-luxury); border: 2px solid var(--gold); transform: scale(1.03); }
.plan.highlight:hover { transform: scale(1.03) translateY(-12px); }
.plan-badge { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); background: var(--gradient-gold); color: var(--primary-foreground); font-size: 0.75rem; font-weight: 900; padding: 0.375rem 1rem; border-radius: 9999px; box-shadow: var(--shadow-glow-gold); }
.plan h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.plan-price { display: flex; align-items: flex-end; gap: 0.25rem; margin-bottom: 0.25rem; }
.plan-currency { font-size: 1.875rem; font-weight: 700; color: var(--gold); margin-bottom: 0.5rem; }
.plan-amount { font-size: 3rem; font-weight: 900; color: var(--gold); }
.plan-period { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.plan ul { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan ul li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.check { display: inline-flex; height: 1.25rem; width: 1.25rem; align-items: center; justify-content: center; border-radius: 9999px; background: oklch(0.62 0.18 145 / 0.2); color: var(--emerald-brand); font-size: 0.75rem; }
.plan-cta { display: block; width: 100%; text-align: center; padding: 1rem; border-radius: 9999px; font-weight: 700; transition: transform 0.2s, background 0.2s; }
.plan-cta.gold { background: var(--gradient-gold); color: var(--primary-foreground); box-shadow: var(--shadow-glow-gold); }
.plan-cta.gold:hover { transform: scale(1.05); }
.plan-cta.ghost { background: oklch(0.12 0.02 40 / 0.85); border: 1px solid oklch(0.82 0.16 85 / 0.3); }
.plan-cta.ghost:hover { background: oklch(0.82 0.16 85 / 0.1); }

/* Steps */
.grid-steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px) { .grid-steps { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step-num {
  position: relative; height: 5rem; width: 5rem; margin: 0 auto 1rem;
  border-radius: 9999px; background: var(--gradient-gold); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.875rem; font-weight: 900; box-shadow: var(--shadow-glow-gold);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Devices */
.devices { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3rem; }
.device { padding: 1rem 1.5rem; border-radius: 1rem; font-weight: 700; transition: transform 0.2s, border-color 0.2s; }
.device:hover { transform: translateY(-4px); border-color: oklch(0.82 0.16 85 / 0.5); }

/* Testimonials */
.testimonial { padding: 1.5rem; border-radius: 1.5rem; transition: border-color 0.3s; }
.testimonial:hover { border-color: oklch(0.82 0.16 85 / 0.4); }
.stars { color: var(--gold); margin-bottom: 0.75rem; }
.t-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border); }
.t-avatar { height: 2.5rem; width: 2.5rem; border-radius: 9999px; background: var(--gradient-gold); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.t-name { font-weight: 700; }
.t-city { font-size: 0.75rem; color: var(--muted-foreground); }

/* Downloader */
.downloader { padding: 3rem; border-radius: 2.5rem; position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; position: relative; }
@media (min-width: 768px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl-grid h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.dl-steps { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.dl-steps li { display: flex; gap: 0.5rem; }
.dl-steps .num { color: var(--gold); }
.code-box { display: inline-block; padding: 2rem; border-radius: 1.5rem; border: 2px solid oklch(0.82 0.16 85 / 0.4); box-shadow: var(--shadow-glow-gold); }
.code-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.code-num { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 900; letter-spacing: 0.1em; font-family: ui-monospace, monospace; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 1rem; }
.faq details { padding: 1.5rem; border-radius: 1rem; transition: border-color 0.2s; }
.faq details[open] { border-color: oklch(0.82 0.16 85 / 0.4); }
.faq summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; font-size: 1.125rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { height: 2rem; width: 2rem; border-radius: 9999px; background: oklch(0.82 0.16 85 / 0.1); color: var(--gold); display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { margin-top: 1rem; }

/* Final CTA */
.final-cta { padding: 4rem 2rem; border-radius: 2.5rem; }
.final-cta h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
.final-cta p { margin-bottom: 2rem; font-size: 1.125rem; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-logo { height: 4rem; width: auto; margin-bottom: 0.75rem; }
footer h4 { color: var(--gold); margin-bottom: 0.75rem; }
footer ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
footer ul a:hover { color: var(--gold); }
.copyright { padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
