/* ============================================================
   شامنا IPTV — نظام التصميم الدمشقي الفاخر · 2026
   Damascene Luxury Design System
   أسود فحمي · ذهب معدني · قرمزي دمشقي
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Blacks — warm charcoal, never pure #000 */
  --bg-0: #070605;
  --bg-1: #0B0908;
  --bg-2: #120E0A;
  --bg-card: rgba(24, 19, 12, 0.62);
  --bg-card-solid: #16110B;
  --bg-glass: rgba(16, 13, 9, 0.78);

  /* Gold — from the logo's brass calligraphy */
  --gold: #D4AF37;
  --gold-bright: #F0D57E;
  --gold-pale: #F7E9BE;
  --gold-deep: #8C6D1F;
  --gold-line: rgba(212, 175, 55, 0.22);
  --gold-dim: rgba(212, 175, 55, 0.10);

  /* Crimson — from the logo's lacquered ring */
  --crimson: #A31621;
  --crimson-bright: #D24352;
  --crimson-deep: #55070E;
  --crimson-line: rgba(163, 22, 33, 0.35);
  --crimson-dim: rgba(163, 22, 33, 0.12);

  /* Ink — warm cream, easy on OLED */
  --ink: #F5EFE0;
  --ink-soft: #DDD3BC;
  --muted: #A89C81;
  --muted-2: #746A55;

  /* WhatsApp conversion green — kept for recognition */
  --wa: #23C462;
  --wa-deep: #0E7A3C;

  /* Metallic gradients */
  --metal: linear-gradient(100deg, #8C6D1F 0%, #C9A227 24%, #F5E3A3 42%, #FFF6D0 50%, #F5E3A3 58%, #C9A227 76%, #8C6D1F 100%);
  --metal-soft: linear-gradient(115deg, #A98C34, #E8CD7A 45%, #C7A035 80%);
  --crimson-metal: linear-gradient(115deg, #6E0F18, #C42B3D 45%, #8B1E2D 90%);

  /* Type */
  --font-display: 'Changa', 'Tajawal', system-ui, sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-callig: 'Aref Ruqaa', 'Amiri', serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 220ms;
  --dur-2: 420ms;
  --dur-3: 900ms;

  /* Geometry */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1200px;

  /* Layers */
  --z-bg: 0;
  --z-content: 2;
  --z-header: 100;
  --z-float: 300;
  --z-overlay: 900;
  --z-preloader: 1000;

  color-scheme: dark;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Damascene geometric weave — sits under everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.8'%3E%3Crect x='36' y='36' width='40' height='40'/%3E%3Crect x='36' y='36' width='40' height='40' transform='rotate(45 56 56)'/%3E%3Ccircle cx='56' cy='56' r='7'/%3E%3Cpath d='M56 0v14M56 98v14M0 56h14M98 56h14'/%3E%3Ccircle cx='56' cy='56' r='52' stroke-opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 112px 112px;
}

/* Ambient candle-light glow */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% -6%, rgba(212, 175, 55, 0.09), transparent 70%),
    radial-gradient(40% 30% at 88% 108%, rgba(163, 22, 33, 0.07), transparent 70%);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold-pale); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--ink);
  overflow-wrap: break-word;
}

p { margin: 0 0 1em; }

::selection { background: rgba(212, 175, 55, 0.32); color: #FFF9E6; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: var(--z-content);
}

main { position: relative; z-index: var(--z-content); }

.skip-link {
  position: absolute;
  top: -60px;
  right: 12px;
  z-index: 2000;
  background: var(--gold);
  color: #14100A;
  font-weight: 800;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: top var(--dur-1);
}
.skip-link:focus { top: 12px; color: #14100A; }

/* ---------- 3. Typography System ---------- */
.display-1 {
  font-size: clamp(2.5rem, 7.2vw, 5.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.display-2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
}

/* Metallic engraved text */
.text-metal {
  background: var(--metal);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@keyframes metal-sheen {
  0%   { background-position: 200% center; }
  100% { background-position: -20% center; }
}
.text-metal.is-live { animation: metal-sheen 7s linear infinite; }

.text-gold { color: var(--gold-bright); }
.text-crimson { color: var(--crimson-bright); }

/* Calligraphic kicker above section titles */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-callig);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.kicker::before, .kicker::after {
  content: "";
  height: 1px;
  width: 42px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.7;
}

.section-head { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head .lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-inline: auto; }

/* ---------- 4. Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: grid;
  place-items: center;
  background: var(--bg-0);
  transition: opacity 700ms var(--ease-luxe), visibility 700ms;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-mark { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader-ring circle {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 396;
  stroke-dashoffset: 396;
  animation: ring-draw 1.5s var(--ease-luxe) forwards;
  filter: drop-shadow(0 0 6px rgba(163, 22, 33, 0.5));
}
.loader-ring circle:last-child {
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation-delay: 180ms;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }

.loader-word {
  font-family: var(--font-callig);
  font-size: 1.9rem;
  animation: word-glow 1.4s var(--ease-out) 350ms both;
}
@keyframes word-glow {
  from { opacity: 0; transform: scale(0.86); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ---------- 5. Announcement Bar ---------- */
#announce {
  position: relative;
  z-index: calc(var(--z-header) + 1);
  background: linear-gradient(90deg, #1A1409, #241A0B 50%, #1A1409);
  border-bottom: 1px solid var(--gold-line);
  color: var(--gold-pale);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 2.8rem;
}
#announce b { color: var(--gold-bright); }
#announce a { color: var(--gold-bright); border-bottom: 1px dashed var(--gold-deep); padding-bottom: 1px; }
#announce .bar-x {
  position: absolute;
  inset-inline-start: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
}
#announce .bar-x:hover { color: var(--ink); }

/* ---------- 6. Header ---------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  transition: background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2);
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: rgba(212, 175, 55, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08), 0 0 18px rgba(212, 175, 55, 0.18);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.2px;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.5rem); }
.main-nav a {
  position: relative;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.4rem 0.15rem;
  transition: color var(--dur-1);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1.5px;
  background: var(--metal-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-2) var(--ease-out);
}
.main-nav a:hover { color: var(--gold-bright); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--gold-bright); }

/* Burger */
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  width: 46px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
#nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1);
}
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-close { display: none; }

@media (max-width: 1020px) {
  #nav-toggle { display: grid; position: relative; z-index: 220; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(7, 6, 5, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out), visibility var(--dur-2);
  }
  .main-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.8'%3E%3Crect x='36' y='36' width='40' height='40'/%3E%3Crect x='36' y='36' width='40' height='40' transform='rotate(45 56 56)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 112px 112px;
    opacity: 0.04;
    pointer-events: none;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav a { font-size: 1.35rem; font-family: var(--font-display); position: relative; }
  .main-nav .nav-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: max(1.1rem, env(safe-area-inset-top));
    inset-inline-start: 1.1rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--gold-line);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .header-cta-desktop { display: none; }
}

/* القائمة مفتوحة: عطّل زجاجية الهيدر (تكسر تموضع fixed) واقفل التمرير وأخفِ الزر العائم */
#site-header.nav-open {
  background: var(--bg-0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.nav-locked, html.nav-locked body { overflow: hidden; }
html.nav-locked #float-wa, html.nav-locked #scroll-progress { visibility: hidden; }
html.nav-locked #cursor-dot, html.nav-locked #cursor-ring { visibility: hidden; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.9rem;
  min-height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2), background var(--dur-2);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn svg { flex: 0 0 auto; }

/* shine sweep */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 235, 0.34) 50%, transparent 62%);
  transform: translateX(120%);
  transition: transform 750ms var(--ease-luxe);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(-120%); }

.btn-gold {
  background: var(--metal);
  background-size: 200% auto;
  color: #171105;
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #171105;
}

.btn-ghost {
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-bright);
  border-color: var(--gold-line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
  color: var(--gold-pale);
}

.btn-crimson {
  background: var(--crimson-metal);
  color: #FFEFEA;
  box-shadow: 0 6px 26px rgba(163, 22, 33, 0.3);
}
.btn-crimson:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(163, 22, 33, 0.42); color: #fff; }

.btn-wa {
  background: linear-gradient(135deg, #1DA851, #23C462);
  color: #05130A;
  box-shadow: 0 6px 26px rgba(35, 196, 98, 0.22);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(35, 196, 98, 0.34);
  color: #05130A;
}

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.08rem; }
.btn-sm { padding: 0.65rem 1.25rem; min-height: 40px; font-size: 0.88rem; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: min(94svh, 1000px);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
  overflow: clip;
}

#gold-dust {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* rotating Damascene medallion */
.hero-medallion {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(150vw, 1080px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  pointer-events: none;
  animation: medallion-spin 140s linear infinite;
}
@keyframes medallion-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-inner { text-align: center; max-width: 900px; margin-inline: auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(163, 22, 33, 0.13);
  border: 1px solid var(--crimson-line);
  color: #F4C9CD;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson-bright);
  box-shadow: 0 0 0 0 rgba(210, 67, 82, 0.55);
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(210, 67, 82, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(210, 67, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 67, 82, 0); }
}

.hero-callig {
  font-family: var(--font-callig);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.hero h1 { margin-bottom: 1.2rem; }

.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  max-width: 640px;
  margin: 0 auto 2.2rem;
}
.hero-sub strong, .hero-sub b { color: var(--gold-bright); font-weight: 800; }

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

/* Stats strip */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  border-block: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.045), transparent);
  max-width: 860px;
  margin-inline: auto;
}
.hstat {
  flex: 1 1 190px;
  padding: 1.15rem 1rem;
  position: relative;
}
.hstat + .hstat::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line), transparent);
}
.hstat .n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-variant-numeric: tabular-nums;
}
.hstat .l { color: var(--muted); font-size: 0.82rem; font-weight: 700; }

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust svg { color: var(--gold); }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid var(--gold-line);
  border-radius: 14px;
  opacity: 0.75;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--gold);
  animation: hint-drop 2s var(--ease-luxe) infinite;
}
@keyframes hint-drop {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 9. Marquee ---------- */
.marquee {
  --marquee-speed: 36s;
  position: relative;
  overflow: hidden;
  padding: 1.05rem 0;
  border-block: 1px solid rgba(212, 175, 55, 0.13);
  background: linear-gradient(90deg, var(--bg-0), #0E0B07 50%, var(--bg-0));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: marquee-slide var(--marquee-speed) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-slide { to { transform: translateX(50%); } } /* RTL: track moves right */
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
}
.marquee-track span::after { content: "✦"; -webkit-text-stroke: 0; color: var(--crimson); font-size: 0.7rem; }
.marquee-track span.solid { color: var(--gold-bright); -webkit-text-stroke: 0; }

/* ---------- 10. Sections & Cards ---------- */
.section { padding: clamp(3.6rem, 8vw, 6.2rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(18, 14, 10, 0.85) 18% 82%, transparent); }

/* thin ornament divider between sections */
.orn-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0.55;
  margin: 0 auto;
  max-width: 420px;
}
.orn-divider::before, .orn-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.orn-divider::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.orn-divider svg { color: var(--gold); flex: 0 0 auto; }

/* Glass card with gilded edge */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), box-shadow var(--dur-2);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.45), transparent 34%, transparent 68%, rgba(163, 22, 33, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.6;
  transition: opacity var(--dur-2);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 34px rgba(212, 175, 55, 0.07); }
.card:hover::before { opacity: 1; }

.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Icon coin */
.icon-coin {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--gold-bright);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05) 60%),
    var(--bg-2);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 244, 200, 0.12);
}
.icon-coin.crimson { color: #F1B9BE; border-color: var(--crimson-line); background: radial-gradient(120% 120% at 30% 20%, rgba(163, 22, 33, 0.24), rgba(163, 22, 33, 0.05) 60%), var(--bg-2); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.2rem; }

/* ---------- 11. Counters ---------- */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  background: rgba(212, 175, 55, 0.12);
  border-block: 1px solid rgba(212, 175, 55, 0.12);
}
.counter {
  background: var(--bg-0);
  text-align: center;
  padding: 2.2rem 1rem;
}
.counter .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.1;
}
.counter .cap { color: var(--muted); font-weight: 700; font-size: 0.9rem; }

/* ---------- 12. Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
  gap: 1.3rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 2.2rem;
}

.plan-tag {
  display: inline-block;
  margin-inline: auto;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.9rem;
  margin-bottom: 1rem;
  background: var(--gold-dim);
}

.plan-name { font-size: 1.45rem; margin-bottom: 0.3rem; }
.plan-desc { color: var(--muted); font-size: 0.88rem; min-height: 2.6em; margin-bottom: 1rem; }

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.plan-price .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .cur { font-size: 1.4rem; color: var(--gold-bright); font-weight: 800; }
.plan-price .per { color: var(--muted); font-size: 0.9rem; font-weight: 700; }

.plan-save {
  display: inline-block;
  margin-inline: auto;
  background: var(--crimson-dim);
  border: 1px solid var(--crimson-line);
  color: #F4C9CD;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 0.24rem 0.8rem;
  margin-bottom: 1rem;
}

.plan-devices { color: var(--muted); font-size: 0.82rem; font-weight: 700; margin-bottom: 1.2rem; }

.plan ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 1.2rem 0 0;
  border-top: 1px dashed rgba(212, 175, 55, 0.18);
  text-align: start;
  display: grid;
  gap: 0.68rem;
  flex: 1;
}
.plan li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.plan li svg { flex: 0 0 auto; margin-top: 0.3em; color: var(--gold); }

.plan-quote {
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(212, 175, 55, 0.045);
  border-inline-start: 2px solid var(--gold-deep);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.3rem;
  text-align: start;
  line-height: 1.7;
}
.plan-quote b { display: block; color: var(--gold); margin-top: 0.3rem; font-size: 0.78rem; }

.plan .btn { width: 100%; }
.plan-hook { color: var(--muted); font-size: 0.78rem; font-weight: 700; margin-top: 0.8rem; }
.plan-hook.gold { color: var(--gold); }

/* Featured plan — the Year */
.plan.featured {
  background: linear-gradient(180deg, rgba(38, 29, 13, 0.9), rgba(24, 18, 10, 0.94));
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(212, 175, 55, 0.1);
  z-index: 2;
}
.plan.featured::before { opacity: 1; background: linear-gradient(160deg, rgba(240, 213, 126, 0.75), rgba(212, 175, 55, 0.18) 40%, rgba(163, 22, 33, 0.4)); }
@media (min-width: 1060px) { .plan.featured { transform: scale(1.045); } .plan.featured:hover { transform: scale(1.045) translateY(-6px); } }

.plan-crown {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--metal);
  color: #171105;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.42rem 1.3rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.35);
}

/* Premium plan — the Stability */
.plan.premium { border-color: rgba(163, 22, 33, 0.4); }
.plan.premium::before { background: linear-gradient(160deg, rgba(210, 67, 82, 0.55), transparent 40%, rgba(212, 175, 55, 0.35)); opacity: 0.85; }
.plan-crown.crimson { background: var(--crimson-metal); color: #FFEFEA; box-shadow: 0 8px 26px rgba(163, 22, 33, 0.4); }

.guarantee-line {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 900px;
  margin: 2.4rem auto 0;
  line-height: 2.1;
}
.guarantee-line .tick { color: var(--gold); }

/* ---------- 13. Sports band ---------- */
.sports-band {
  position: relative;
  background:
    radial-gradient(70% 90% at 50% -20%, rgba(163, 22, 33, 0.2), transparent 60%),
    linear-gradient(180deg, var(--bg-1), #140B0B 55%, var(--bg-1));
  border-block: 1px solid rgba(163, 22, 33, 0.22);
  overflow: clip;
}
.sports-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='none' stroke='%23D24352' stroke-width='0.8'%3E%3Crect x='36' y='36' width='40' height='40'/%3E%3Crect x='36' y='36' width='40' height='40' transform='rotate(45 56 56)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 112px 112px;
  opacity: 0.05;
  pointer-events: none;
}
.sports-band .kicker { color: var(--crimson-bright); }
.sports-band .kicker::before, .sports-band .kicker::after { background: linear-gradient(90deg, transparent, var(--crimson-bright) 50%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin: 1.8rem 0; }
.chip {
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid;
}
.chip.gold { color: var(--gold-bright); border-color: var(--gold-line); background: var(--gold-dim); }
.chip.red { color: #F4C9CD; border-color: var(--crimson-line); background: var(--crimson-dim); }
.chip.green { color: #9FE8BC; border-color: rgba(35, 196, 98, 0.3); background: rgba(35, 196, 98, 0.08); }

/* ---------- 14. Wholesale tiers ---------- */
.tiers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1.2rem; }

.tier { text-align: center; padding-top: 2rem; }
.tier-medal {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #171105;
  position: relative;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.45), inset 0 -3px 5px rgba(0, 0, 0, 0.3);
}
.tier-medal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.28);
}
.tier-medal.bronze { background: linear-gradient(135deg, #E4A876, #9C5A2E 70%); }
.tier-medal.silver { background: linear-gradient(135deg, #EFEFF4, #9BA2B0 70%); }
.tier-medal.goldm  { background: var(--metal); }
.tier-medal.founder { background: var(--crimson-metal); color: #FFEFEA; }

.tier-name { font-size: 1.2rem; margin-bottom: 0.2rem; }
.tier-range { color: var(--gold-bright); font-weight: 800; font-size: 0.95rem; margin-bottom: 0.7rem; }
.tier-hint { color: var(--muted); font-size: 0.84rem; line-height: 1.7; }
.tier.highlight { border-color: rgba(212, 175, 55, 0.45); box-shadow: 0 0 44px rgba(212, 175, 55, 0.08); }

/* ---------- 15. Apps grid ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 1rem; }
.app-tile {
  text-align: center;
  padding: 1.5rem 1rem 1.3rem;
  border-radius: var(--radius);
}
.app-tile .icon-coin { margin-inline: auto; width: 52px; height: 52px; border-radius: 14px; }
.app-tile h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.app-tile .store { color: var(--muted-2); font-size: 0.76rem; font-weight: 700; display: block; margin-bottom: 0.9rem; }
.app-tile .app-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-bright);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-pill);
  padding: 0.42rem 1.05rem;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.app-tile .app-link:hover { background: var(--gold); color: #171105; border-color: var(--gold); }
.app-badge {
  position: absolute;
  top: 0.7rem;
  inset-inline-end: 0.7rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #9FE8BC;
  background: rgba(35, 196, 98, 0.1);
  border: 1px solid rgba(35, 196, 98, 0.28);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* ---------- 16. CTA frame (free trial) ---------- */
.cta-frame {
  position: relative;
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.4rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 130% at 50% -30%, rgba(212, 175, 55, 0.14), transparent 60%),
    linear-gradient(180deg, #191307, #100C07);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
}
.cta-frame::before, .cta-frame::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
}
.cta-frame::before { top: 12px; inset-inline-start: 12px; border-inline-end: 0; border-bottom: 0; border-start-start-radius: 18px; }
.cta-frame::after { bottom: 12px; inset-inline-end: 12px; border-inline-start: 0; border-top: 0; border-end-end-radius: 18px; }
.cta-frame h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cta-frame .lead { color: var(--muted); max-width: 560px; margin: 0 auto 1.8rem; }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.pill-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.05rem;
}
.pill-list svg { color: var(--gold); }

/* ---------- 17. FAQ accordion ---------- */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq-item {
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--dur-2);
}
.faq-item[open] { border-color: rgba(212, 175, 55, 0.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-x {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-1);
  font-weight: 400;
}
.faq-item[open] summary .faq-x { transform: rotate(45deg); background: var(--gold-dim); }
.faq-item .faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); font-size: 0.95rem; line-height: 1.9; }
.faq-item .faq-body a { font-weight: 800; }

/* ---------- 18. Footer ---------- */
#site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(212, 175, 55, 0.05), transparent 65%),
    #090705;
  position: relative;
  z-index: var(--z-content);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding: clamp(2.6rem, 6vw, 4rem) 0 2.2rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-family: var(--font-callig);
  font-weight: 400;
  font-size: 1.15rem;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
  transition: color var(--dur-1), transform var(--dur-1);
}
.footer-col a:hover { color: var(--gold-bright); transform: translateX(-4px); }

.footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding: 1.4rem 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.footer-bottom .legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); font-weight: 700; }
.footer-bottom a:hover { color: var(--gold-bright); }

/* ---------- 19. Floating WhatsApp + progress ---------- */
#float-wa {
  position: fixed;
  bottom: 1.4rem;
  inset-inline-start: 1.4rem;
  z-index: var(--z-float);
}
#float-wa a {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1DA851, #23C462);
  color: #05130A;
  box-shadow: 0 10px 30px rgba(35, 196, 98, 0.35), 0 0 0 0 rgba(35, 196, 98, 0.4);
  animation: wa-ring 3s infinite;
  transition: transform var(--dur-1) var(--ease-out);
}
#float-wa a:hover { transform: scale(1.08); }
@keyframes wa-ring {
  0% { box-shadow: 0 10px 30px rgba(35, 196, 98, 0.35), 0 0 0 0 rgba(35, 196, 98, 0.35); }
  60% { box-shadow: 0 10px 30px rgba(35, 196, 98, 0.35), 0 0 0 16px rgba(35, 196, 98, 0); }
  100% { box-shadow: 0 10px 30px rgba(35, 196, 98, 0.35), 0 0 0 0 rgba(35, 196, 98, 0); }
}
#float-wa .tip {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  inset-inline-start: calc(100% + 12px);
  white-space: nowrap;
  background: var(--bg-glass);
  border: 1px solid var(--gold-line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2);
}
#float-wa:hover .tip { opacity: 1; }

#scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: right center;
  transform: scaleX(0);
  background: var(--metal);
  z-index: calc(var(--z-header) + 5);
  pointer-events: none;
}

/* ---------- 20. Reveal system ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); will-change: opacity, transform; }
.reveal.r-fade { transform: none; }
.reveal.r-scale { transform: scale(0.93); }
.reveal.r-right { transform: translateX(-34px); }
.reveal.r-left { transform: translateX(34px); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }
.reveal.d4 { transition-delay: 360ms; }
.reveal.d5 { transition-delay: 450ms; }

/* headline clip reveal */
.clip-reveal { display: inline-block; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-luxe); }
.clip-reveal.visible { clip-path: inset(0 0 -8% 0); }

/* ---------- 21. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  text-align: center;
  padding: clamp(3.4rem, 8vw, 5.6rem) 0 clamp(2.4rem, 5vw, 3.4rem);
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 150%;
  background: radial-gradient(48% 55% at 50% 18%, rgba(212, 175, 55, 0.1), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin-bottom: 0.8rem; }
.page-hero .lead { color: var(--muted); max-width: 640px; margin-inline: auto; font-size: 1.05rem; }

.breadcrumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-2);
  margin-bottom: 1.3rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-bright); }
.breadcrumbs .sep { color: var(--gold-deep); }
.breadcrumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 22. Prose (blog & legal) ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.55rem; margin-top: 2.4em; }
.prose h2::before { content: "✦ "; color: var(--gold); font-size: 0.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; color: var(--gold-bright); }
.prose p, .prose li { color: var(--ink-soft); font-size: 1rem; line-height: 2; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.4rem;
  border-inline-start: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 10px;
  color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem; }
.prose th { background: var(--gold-dim); color: var(--gold-bright); padding: 0.7rem 0.9rem; text-align: start; border: 1px solid rgba(212, 175, 55, 0.16); }
.prose td { padding: 0.7rem 0.9rem; border: 1px solid rgba(212, 175, 55, 0.12); color: var(--ink-soft); }
.prose .toc {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.8em 0;
}
.prose .toc strong { color: var(--gold); font-family: var(--font-callig); font-weight: 400; font-size: 1.1rem; }
.prose .toc a { display: block; padding: 0.25rem 0; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.prose .toc a:hover { color: var(--gold-bright); }

/* Blog cards */
.post-card { display: flex; flex-direction: column; gap: 0.6rem; }
.post-card .post-cat { color: var(--crimson-bright); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.5px; }
.post-card h3 { font-size: 1.15rem; line-height: 1.5; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold-bright); }
.post-card .post-meta { color: var(--muted-2); font-size: 0.8rem; font-weight: 700; margin-top: auto; }

/* ---------- 23. Cursor (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  #cursor-dot, #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 2000;
    transform: translate(-50%, -50%);
  }
  #cursor-dot { width: 6px; height: 6px; background: var(--gold-bright); }
  #cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transition: width 200ms var(--ease-out), height 200ms var(--ease-out), border-color 200ms, opacity 200ms;
  }
  body.cursor-on a:hover ~ #cursor-ring { border-color: var(--gold-bright); }
  #cursor-ring.grow { width: 52px; height: 52px; border-color: rgba(240, 213, 126, 0.85); }
}

/* ---------- 24. Utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.note-strip {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px dashed rgba(212, 175, 55, 0.22);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  max-width: 860px;
  margin: 1.8rem auto 0;
}
.note-strip a { font-weight: 800; }

/* ---------- 24b. Immersive layer · «عالم جديد» ---------- */

/* App-like cross-document page transitions (progressive enhancement) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out 240ms var(--ease-luxe) both; }
  ::view-transition-new(root) { animation: vt-in 340ms var(--ease-luxe) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(0.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(0.998); } }

/* Render only what's near the viewport — big speed win on long pages */
.section, #site-footer { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.hero { content-visibility: visible; }

/* Staged hero entrance — theatrical cascade */
.hero.stage-ready [data-stage] { opacity: 0; }
.hero.stage-go [data-stage] {
  animation: stage-rise 0.9s var(--ease-out) both;
  animation-delay: calc(var(--stg, 0) * 130ms);
}
@keyframes stage-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Pointer-tracked glare on cards (vars set by JS) */
@media (hover: hover) and (pointer: fine) {
  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(247, 233, 190, 0.09), transparent 62%);
    opacity: 0;
    transition: opacity var(--dur-2);
    pointer-events: none;
  }
  .card:hover::after { opacity: 1; }
}

/* Magnetic buttons — transform driven by JS, spring back via CSS */
.btn[data-magnet] { will-change: transform; }
.btn[data-magnet]:not(:hover) { transition: transform 500ms var(--ease-out), box-shadow var(--dur-2); }

@media (prefers-reduced-motion: reduce) {
  .hero.stage-ready [data-stage], .hero.stage-go [data-stage] { opacity: 1 !important; animation: none !important; }
}

/* ---------- 24c. Conversion layer · شريط الشراء الذكي ---------- */
#sticky-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 290;
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 7, 5, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(110%);
  transition: transform 450ms var(--ease-out);
}
#sticky-cta.show { transform: none; }
#sticky-cta .btn { flex: 1 1 0; min-height: 46px; padding: 0.68rem 0.9rem; font-size: 0.9rem; white-space: nowrap; }
#sticky-cta .cta-x {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: none;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
@media (max-width: 820px) {
  #sticky-cta { display: flex; }
  html.cta-live #float-wa { display: none; }
}

/* عرض اجتماعي + شارة طمأنة داخل قسم التحفيز */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.8rem;
  margin: 2rem auto 0;
  padding: 1rem 1.6rem;
  max-width: 780px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.05), rgba(163, 22, 33, 0.05));
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
}
.proof-strip .stars { color: var(--gold-bright); letter-spacing: 2px; }
.proof-strip b { color: var(--gold-bright); }

/* ---------- 25. Motion preferences & fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .clip-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  #gold-dust, .hero-medallion, .scroll-hint { display: none !important; }
  .marquee-track { animation: none; }
}

/* No-JS: everything visible */
.no-js .reveal, .no-js .clip-reveal { opacity: 1; transform: none; clip-path: none; }
.no-js #preloader { display: none; }

@media (max-width: 640px) {
  :root { --radius-lg: 18px; }
  body { font-size: 1rem; }
  .btn { width: auto; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hstat { flex-basis: 50%; }
  .hstat:nth-child(odd)::before { display: none; }
  #float-wa a { width: 54px; height: 54px; }
  #float-wa .tip { display: none; }
}

@media print {
  body::before, body::after, #gold-dust, #float-wa, #preloader, .marquee, .scroll-hint { display: none !important; }
  body { background: #fff; color: #111; }
}
