/* ============================================================================
   OMAA — Landing page styles (layout only; design tokens come from
   ../colors_and_type.css). Matches the OMAA dashboard: near-black surfaces,
   Ember accent on pills + primary buttons, rounded cards.
   ============================================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg-base); color: var(--fg-1);
  font-family: var(--font-ui); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[data-lang="ar"] body, body[data-lang="ar"] { font-family: var(--font-arabic); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: var(--text-caption);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-2);
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--accent-quiet); border: 1px solid var(--border-1);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.lead { color: var(--fg-2); font-size: 19px; line-height: 1.6; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: var(--text-label); font-size: 15px; border-radius: var(--radius-pill);
  padding: 13px 22px; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--dur-1), background var(--dur-1), border-color var(--dur-1);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); box-shadow: var(--glow-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg-base) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -0.04em; }
.brand .tag { font: var(--text-caption); color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 15px; border-radius: var(--radius-pill); color: var(--fg-2); font: var(--text-label); transition: color var(--dur-1), background var(--dur-1); }
.nav-links a:hover { color: var(--fg-1); background: var(--bg-hover); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--fg-1); cursor: pointer; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px;
  border-radius: var(--radius-pill); background: var(--bg-raised); border: 1px solid var(--border-1);
  color: var(--fg-1); font: var(--text-label); cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 150px 0 90px; overflow: hidden; }
.hero-glow { position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 900px; height: 600px;
  background: radial-gradient(closest-side, rgba(255,106,61,0.20), rgba(255,106,61,0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: 60px; line-height: 1.03; font-weight: 700; margin: 22px 0 20px; }
.hero .lead { max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--fg-3); font: var(--text-body-sm); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta [data-lucide] { width: 16px; height: 16px; color: var(--accent); }

/* device composition */
.stage { position: relative; height: 460px; }
.tvframe {
  position: absolute; right: 0; top: 18px; width: 470px; height: 286px; border-radius: 16px;
  background: #000; padding: 8px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-2);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; }
.screen .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,12,0.1) 0%, rgba(7,8,12,0.35) 55%, rgba(7,8,12,0.92) 100%); }
.screen .grain { position: absolute; inset: 0; opacity: 0.10; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 120px; }
.screen-copy { position: absolute; left: 20px; bottom: 18px; right: 20px; }
.screen-copy .badges { display: flex; gap: 6px; margin-bottom: 10px; }
.mini-badge { font: var(--text-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 6px; background: rgba(7,8,12,0.5); backdrop-filter: blur(6px); color: #fff; }
.mini-badge.ember { background: var(--accent); color: var(--fg-on-accent); }
.screen-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: #fff; }
.posterrail { position: absolute; left: 14px; right: 14px; bottom: -36px; display: flex; gap: 9px; }
.posterrail .p { width: 64px; height: 92px; border-radius: 9px; box-shadow: var(--shadow-md); flex: none; position: relative; overflow: hidden; }
.phone {
  position: absolute; left: 6px; bottom: -10px; width: 168px; height: 348px; border-radius: 28px;
  background: #000; padding: 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-2); z-index: 3;
}
.phone .screen { border-radius: 22px; }
.phone-tab { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 44px; border-radius: 16px;
  background: rgba(20,22,29,0.8); backdrop-filter: blur(10px); border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: space-around; }
.phone-tab [data-lucide] { width: 18px; height: 18px; color: var(--fg-3); }
.phone-tab [data-lucide].on { color: var(--accent); }

/* ── Platform strip ──────────────────────────────────────────────────────── */
.platforms { padding: 30px 0; border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.platforms .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.platforms .label { color: var(--fg-3); font: var(--text-caption); text-transform: uppercase; letter-spacing: 0.12em; }
.platforms .row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.platforms .row span { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font: var(--text-label); }
.platforms .row [data-lucide] { width: 20px; height: 20px; color: var(--fg-2); }

/* ── Section heading ─────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: 42px; line-height: 1.08; font-weight: 700; margin: 16px 0 14px; }

/* ── Features grid ───────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--bg-raised); border: 1px solid var(--border-1); border-radius: var(--radius-xl);
  padding: 26px; transition: border-color var(--dur-2), transform var(--dur-2);
}
.feat:hover { border-color: var(--border-2); transform: translateY(-3px); }
.feat .ic { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-quiet);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat .ic [data-lucide] { width: 24px; height: 24px; color: var(--accent); }
.feat h3 { font-size: 20px; margin-bottom: 8px; font-family: var(--font-ui); font-weight: 600; }
.feat p { margin: 0; color: var(--fg-2); font: var(--text-body-sm); line-height: 1.6; }

/* ── Showcase rows ───────────────────────────────────────────────────────── */
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.show-row:last-child { margin-bottom: 0; }
.show-row.flip .show-visual { order: -1; }
.show-row h3 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.show-row p { color: var(--fg-2); font-size: 17px; line-height: 1.6; margin: 0 0 18px; }
.show-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.show-list li { display: flex; align-items: center; gap: 11px; color: var(--fg-1); font: var(--text-body); }
.show-list [data-lucide] { width: 19px; height: 19px; color: var(--accent); flex: none; }
.show-visual { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); aspect-ratio: 16/10; position: relative; background: var(--bg-sunken); }

/* EPG mock */
.epg { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.epg-row { display: flex; gap: 8px; align-items: center; }
.epg-ch { width: 64px; flex: none; display: flex; align-items: center; gap: 7px; }
.epg-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; color: #fff; }
.epg-cell { height: 38px; border-radius: 9px; background: var(--bg-raised); border: 1px solid var(--border-1); flex: none; display: flex; flex-direction: column; justify-content: center; padding: 0 11px; }
.epg-cell.now { background: var(--accent-quiet); border-color: var(--accent); }
.epg-cell .t { font: var(--text-caption); color: var(--fg-1); font-weight: 600; white-space: nowrap; }
.epg-cell .s { font-size: 10px; color: var(--fg-3); }
.epg-cell.now .s { color: var(--accent); }

/* poster grid mock */
.pgrid { position: absolute; inset: 0; padding: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pgrid .p { border-radius: 11px; position: relative; overflow: hidden; box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; background: var(--bg-raised); }

/* ── Plans ───────────────────────────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--border-1);
  border-radius: var(--radius-xl); padding: 24px 20px; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--glow-accent); }
.plan .pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font: var(--text-caption);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent);
  color: var(--fg-on-accent); padding: 4px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.plan h3 { font-size: 18px; font-family: var(--font-ui); font-weight: 600; margin-bottom: 4px; }
.plan .dur { font: var(--text-body-sm); color: var(--fg-3); margin-bottom: 16px; }
.plan .big { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; white-space: nowrap; }
.plan .big .n { font-family: var(--font-display); font-weight: 700; font-size: 38px; }
.plan .big .u { color: var(--fg-2); font: var(--text-body-sm); }
.plan .sub { font: var(--text-caption); color: var(--fg-3); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; align-items: center; gap: 9px; font: var(--text-body-sm); color: var(--fg-2); }
.plan li [data-lucide] { width: 16px; height: 16px; color: var(--accent); flex: none; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--fg-3); font: var(--text-body-sm); margin-top: 26px; }

/* ── Resellers ───────────────────────────────────────────────────────────── */
.resellers { background: var(--bg-sunken); border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.res-perks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.res-perks li { display: flex; align-items: flex-start; gap: 11px; color: var(--fg-1); font: var(--text-body-sm); line-height: 1.5; }
.res-perks [data-lucide] { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 1px; }
/* admin dashboard mock */
.dash { background: var(--bg-base); border: 1px solid var(--border-2); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-lg); }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-tabs { display: flex; gap: 7px; }
.dash-tab { font: var(--text-caption); font-weight: 600; padding: 7px 13px; border-radius: var(--radius-pill); background: var(--bg-raised); color: var(--fg-3); }
.dash-tab.on { background: var(--accent); color: var(--fg-on-accent); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.stat { background: var(--bg-raised); border: 1px solid var(--border-1); border-radius: var(--radius-lg); padding: 16px; }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; }
.stat .n.ember { color: var(--accent); }
.stat .l { font: var(--text-caption); color: var(--fg-3); margin-top: 7px; }
.dash-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-top: 1px solid var(--border-1); }
.dash-row .code { font-family: var(--font-mono); font-size: 13px; color: var(--fg-1); }
.dash-row .meta { font: var(--text-caption); color: var(--fg-3); margin-top: 3px; }
.pill-badge { font: var(--text-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: var(--radius-pill); }
.pill-badge.active { background: rgba(45,212,167,0.16); color: var(--success); }
.pill-badge.unused { background: rgba(76,141,255,0.16); color: var(--info); }

/* ── Reseller credit packs ───────────────────────────────────────────────── */
.packs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.panel-chip { display: inline-flex; align-items: center; gap: 8px; font: var(--text-caption); font-weight: 600;
  color: var(--fg-2); padding: 8px 14px; border-radius: var(--radius-pill); background: var(--accent-quiet); border: 1px solid var(--border-1); white-space: nowrap; }
.packs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.pack { position: relative; background: var(--bg-raised); border: 1px solid var(--border-1); border-radius: var(--radius-xl); padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pack.featured { border-color: var(--accent); box-shadow: var(--glow-accent); }
.pack .pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font: var(--text-caption); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent); color: var(--fg-on-accent); padding: 4px 11px; border-radius: var(--radius-pill); }
.pack .pc { display: flex; align-items: baseline; gap: 6px; }
.pack .pn { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; }
.pack .pu { color: var(--fg-2); font: var(--text-body-sm); }
.pack .pp { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); margin: 12px 0 2px; }
.pack .pr { font: var(--text-caption); color: var(--fg-3); margin-bottom: 18px; }
.pack .btn { width: 100%; }
.cost-table { border: 1px solid var(--border-1); border-radius: var(--radius-lg); overflow: hidden; max-width: 560px; }
.cost-table .ct-head, .cost-table .ct-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; }
.cost-table .ct-head { background: var(--bg-raised); font: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.cost-table .ct-row { border-top: 1px solid var(--border-1); font: var(--text-body); color: var(--fg-1); }
.cost-table .ct-c { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--border-1); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: var(--text-title); font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary [data-lucide] { width: 20px; height: 20px; color: var(--fg-3); transition: transform var(--dur-2); flex: none; }
.qa[open] summary [data-lucide] { transform: rotate(45deg); color: var(--accent); }
.qa p { margin: 0 0 22px; color: var(--fg-2); font: var(--text-body); line-height: 1.6; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band .inner { position: relative; background: var(--bg-raised); border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl); padding: 64px 40px; overflow: hidden; }
.cta-band .glow { position: absolute; bottom: -160px; left: 50%; transform: translateX(-50%); width: 700px; height: 400px;
  background: radial-gradient(closest-side, rgba(255,106,61,0.22), rgba(255,106,61,0) 70%); }
.cta-band h2 { font-size: 44px; font-weight: 700; margin-bottom: 16px; position: relative; }
.cta-band .lead { max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; position: relative; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-1); padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand .lead { font-size: 14.5px; max-width: 280px; margin-top: 14px; }
.foot-col h4 { font: var(--text-caption); text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-3); margin: 0 0 16px; }
.foot-col a { display: block; color: var(--fg-2); font: var(--text-body-sm); padding: 6px 0; }
.foot-col a:hover { color: var(--fg-1); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border-1); color: var(--fg-3); font: var(--text-caption); gap: 16px; flex-wrap: wrap; }

/* ── Reveal animation ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-emphasis), transform 0.6s var(--ease-emphasis); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .hero h1 { font-size: 46px; }
  .features { grid-template-columns: 1fr 1fr; }
  .show-row, .res-grid { grid-template-columns: 1fr; gap: 28px; }
  .show-row.flip .show-visual { order: 0; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .packs-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .sec-head h2 { font-size: 32px; }
  .features, .plan-grid, .packs-grid, .res-perks, .foot-grid { grid-template-columns: 1fr; }
  .platforms .wrap { justify-content: center; text-align: center; }
}
