/* ══════════════════════════════════════════════════════════════════════
   WOLFS FOREX — Crimson & Gold
   Near-black warm base · gold primary · crimson secondary brand chrome
   Motion: vanilla CSS + JS, transform/opacity only, no libraries
   ══════════════════════════════════════════════════════════════════════ */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  /* surfaces */
  --ink:        #0A0608;
  --ink-2:      #14090D;
  --ink-3:      #1C0E13;
  /* Panels sit near-opaque on purpose. At 0.7 the ambient orbs bled through
     the backdrop blur as visible maroon smudges inside every card. */
  --panel:      rgba(19, 11, 14, 0.90);
  --panel-2:    rgba(12, 6, 8, 0.94);

  /* brand */
  --gold:       #FBBF24;
  --gold-hi:    #FDE68A;
  --gold-deep:  #B45309;
  --crimson:    #E11D48;
  --crimson-hi: #FB7185;
  /* Deeper crimson for filled buttons: white on #E11D48 is only 4.0:1, which
     fails AA at button sizes. This pair clears 6.9:1 at its lightest stop. */
  --crimson-btn-1: #D41A4E;
  --crimson-btn-2: #8E0F2E;
  --gold-ink:   #1A0B05;

  /* semantic — reserved for numbers only, never chrome */
  --up:         #34D399;
  --down:       #FF5C7A;

  /* text */
  --text:       #FDF6F0;
  --dim:        #C9B3B8;
  --faint:      #A08790;

  /* lines & glow */
  --line:       rgba(251, 191, 36, 0.18);
  --line-2:     rgba(255, 255, 255, 0.07);
  --line-crim:  rgba(225, 29, 72, 0.22);
  --glow-gold:  0 0 24px rgba(251, 191, 36, 0.32);
  --glow-crim:  0 0 30px rgba(225, 29, 72, 0.26);
  --shadow:     0 24px 64px rgba(0, 0, 0, 0.6);

  /* type */
  --f-disp: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-ar:   "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-ar-disp: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;

  /* geometry */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --maxw: 1180px;
  --nav-h: 74px;

  /* ── spacing scale — 4px base. Everything vertical resolves here so the
        rhythm can be retuned in one place per breakpoint instead of being
        hand-tuned at ~40 call sites. ─────────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ── layout rhythm — the only values breakpoints should touch ───────── */
  --section-y:      var(--sp-20);   /* major section top/bottom        */
  --section-head-gap: var(--sp-12); /* title block → content           */
  --section-tight-y: var(--sp-12);  /* section abutting a ticker tape  */
  --grid-gap:       var(--sp-5);    /* card grid gutters               */
  --stack-gap:      var(--sp-4);    /* siblings inside a card          */
  --card-pad:       var(--sp-6);    /* card padding (all sides)        */
  --gutter:         clamp(20px, 4vw, 40px);  /* container inline padding */

  /* motion */
  --ease:      cubic-bezier(0.22, 0.7, 0.28, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --spring:    cubic-bezier(0.22, 1.1, 0.36, 1);

  --blur: 16px;
}

/* ── reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
}
html[lang="ar"] { font-family: var(--f-ar); }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.35s, color 0.35s;
}
html[lang="ar"] body { font-family: var(--f-ar); }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* Headings balance their line lengths so a two-line title never leaves one
   orphan word on the second line; paragraphs get "pretty" to kill rivers
   and stranded spaces. Supported natively, ignored cleanly where it isn't. */
.section-title, .cta-title, .hero-mark, .card-title,
.pricing-card-title, .faq-question { text-wrap: balance; }
.section-subtitle, .hero-subtitle, .cta-subtitle, .card-desc,
.faq-answer p, .testimonial-text, .footer-description { text-wrap: pretty; }

/* deep links land below the floating nav even without JS smooth-scroll */
section[id], main [id] { scroll-margin-top: calc(var(--nav-h) + 28px); }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-deep), var(--crimson));
  border-radius: 10px;
  border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════════════════════════════ */
#boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-core { position: relative; display: grid; place-items: center; }

.boot-ring {
  position: absolute;
  width: 172px; height: 172px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-right-color: var(--crimson);
  animation: spin 1.05s linear infinite;
}
.boot-ring.b {
  width: 140px; height: 140px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: var(--crimson-hi);
  animation-duration: 1.7s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.boot-logo {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  animation: bootPulse 1.5s var(--ease) infinite;
}
@keyframes bootPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(251,191,36,0.45)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(251,191,36,0.85)); }
}

.boot-label {
  margin-top: 22px;
  font-family: var(--f-num);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}
.boot-bar {
  position: absolute;
  bottom: -46px;
  width: 190px; height: 3px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
}
.boot-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--gold-hi));
  animation: bootBar 1.4s var(--ease-out) forwards;
  box-shadow: var(--glow-gold);
}
@keyframes bootBar { to { width: 100%; } }

/* ══════════════════════════════════════════════════════════════════════
   AMBIENT LAYERS
   ══════════════════════════════════════════════════════════════════════ */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

/* deep base wash — gold low-left, crimson high-right */
.ambient-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 12% 8%,  rgba(225, 29, 72, 0.16), transparent 62%),
    radial-gradient(70% 55% at 88% 18%, rgba(251, 191, 36, 0.11), transparent 60%),
    radial-gradient(90% 70% at 50% 108%, rgba(225, 29, 72, 0.10), transparent 65%);
  animation: washShift 26s ease-in-out infinite alternate;
}
@keyframes washShift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -2%, 0) scale(1.06); }
}

/* drifting orbs — parallax targets */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  translate: 0 var(--py, 0px);
  opacity: 0.3;
}
.orb-1 {
  width: 46vw; height: 46vw;
  inset-block-start: -12vw; inset-inline-start: -14vw;
  background: radial-gradient(circle, rgba(225,29,72,0.5), transparent 68%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 38vw; height: 38vw;
  inset-block-start: 26vh; inset-inline-end: -12vw;
  background: radial-gradient(circle, rgba(251,191,36,0.34), transparent 68%);
  animation: drift2 28s ease-in-out infinite alternate;
}
.orb-3 {
  width: 30vw; height: 30vw;
  inset-block-end: -10vw; inset-inline-start: 26vw;
  background: radial-gradient(circle, rgba(225,29,72,0.34), transparent 70%);
  animation: drift3 24s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(6vw, 5vw, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-5vw, 6vw, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(4vw, -5vw, 0) scale(1.12); } }

/* trading-grid floor, fading out upward */
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 68%);
  animation: gridDrift 14s linear infinite;
}
@keyframes gridDrift { to { background-position: 68px 68px; } }

/* rising embers */
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }

/* film grain — kills banding in the big dark gradients */
.grain {
  position: absolute; inset: -50%;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(4) infinite;
  pointer-events: none;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* faint horizontal scan texture */
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.5;
}

/* custom cursor glow (desktop, fine pointer only) */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(251,191,36,0.10), transparent 62%);
  will-change: transform;
  transition: opacity 0.4s;
}
#cursor-glow.active {
  background: radial-gradient(circle, rgba(225,29,72,0.16), transparent 62%);
  transform-origin: center;
}

/* ══════════════════════════════════════════════════════════════════════
   PRIMITIVES
   ══════════════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: var(--section-y);
}
/* A ticker tape already separates these two sections — full section padding
   on both sides stacked into ~280px of dead space. Pull both in. */
.section:has(+ .ticker-divider),
.ticker-divider + .section { padding-block-end: var(--section-tight-y); }
.ticker-divider + .section { padding-block-start: var(--section-tight-y); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── buttons ────────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s var(--spring), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
html[lang="ar"] .btn { font-family: var(--f-ar); font-weight: 700; }
.btn:active { transform: translateY(0) scale(0.975); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg { padding: 15px 32px; font-size: 15.5px; border-radius: 14px; }
.btn-full { width: 100%; }

/* gold primary */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, #F59E0B);
  color: var(--gold-ink);
  border: 1px solid rgba(26, 11, 5, 0.25);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.22);
  font-weight: 800;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(251, 191, 36, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary .btn-glow {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  z-index: -1;
  pointer-events: none;
}
.btn-primary:hover .btn-glow { animation: btnSweep 0.75s var(--ease) forwards; }
@keyframes btnSweep { to { transform: translateX(130%); } }

/* crimson secondary */
.btn-crimson {
  background: linear-gradient(135deg, var(--crimson-btn-1), var(--crimson-btn-2));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.24);
  font-weight: 800;
}
.btn-crimson:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(225, 29, 72, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* outline */
.btn-outline {
  color: var(--text);
  border: 1.5px solid var(--line);
  background: rgba(251, 191, 36, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
  box-shadow: var(--glow-gold);
}
.btn-outline.btn-crimson-line:hover {
  border-color: var(--crimson);
  background: rgba(225, 29, 72, 0.12);
  box-shadow: var(--glow-crim);
}
.btn-outline.btn-crimson-line { border-color: var(--line-crim); }

/* telegram brand */
.btn-tg {
  color: #fff;
  background: linear-gradient(135deg, #34B0E8, #1E92C7);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-tg:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 14px 34px rgba(30, 146, 199, 0.42);
}

/* ══════════════════════════════════════════════════════════════════════
   PANELS — shared surface
   ══════════════════════════════════════════════════════════════════════ */
.panel {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
}
/* gold hairline along the top edge of every panel */
.panel::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.55), transparent);
  opacity: 0.7;
}

/* rotating conic edge — a 1.5px ring masked out of a spinning gradient.
   Only on hover-capable pointers; the mask keeps it from being a filled
   panel, so it never paints over the card's own content. */
.edge-spin {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  -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;
}
.edge-spin::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--crimson) 52deg,
    transparent 124deg,
    transparent 202deg,
    var(--gold) 262deg,
    transparent 332deg
  );
  animation: spin 4.2s linear infinite;
}
.card:hover .edge-spin,
.card:focus-within .edge-spin { opacity: 1; }

/* Everything inside a card sits above its own effects. `.pricing-badge` is
   excluded — it is absolutely positioned on purpose, and this rule's
   specificity outranked `.pricing-badge { position: absolute }`. */
.card > *:not(.edge-spin):not(.glare):not(.pricing-badge) {
  position: relative;
  z-index: 1;
}

/* diagonal glare sweep across a card */
.glare {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}
.glare i {
  position: absolute;
  top: -60%; bottom: -60%;
  width: 42%;
  left: var(--gx, 50%);
  background: linear-gradient(
    100deg,
    transparent,
    rgba(251, 191, 36, 0.13) 42%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(225, 29, 72, 0.10) 58%,
    transparent
  );
  transform: translateX(-230%) rotate(8deg);
  /* must be invisible at rest — parked inside the card it read as a maroon
     smudge across every panel */
  opacity: 0;
  transition: transform 0.75s var(--ease-out), opacity 0.3s var(--ease);
  will-change: transform;
}
.card:hover .glare i,
.card:focus-within .glare i { opacity: 1; }
.card:hover .glare i { transform: translateX(260%) rotate(8deg); }

/* ══════════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  inset-inline: 14px;
  z-index: 100;
  max-width: calc(var(--maxw) + 28px);
  margin-inline: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(10, 6, 8, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.nav.stuck {
  background: rgba(10, 6, 8, 0.88);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(251, 191, 36, 0.06);
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
  padding-inline: 14px 10px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-brand-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
}
.nav-brand:hover .nav-brand-img {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.5);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-brand-text b {
  font-family: var(--f-disp);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
html[lang="ar"] .nav-brand-text b { font-family: var(--f-ar-disp); font-size: 16px; }
.nav-brand-text span {
  font-family: var(--f-num);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 4px;
}
html[lang="ar"] .nav-brand-text span { font-family: var(--f-ar); letter-spacing: 0.08em; font-size: 11px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}
.nav-link {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.22s;
}
html[lang="ar"] .nav-link { font-family: var(--f-ar); font-size: 15px; font-weight: 600; }
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: var(--glow-gold);
  transform: scaleX(0);
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.on { color: var(--gold-hi); }
.nav-link.on::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-act { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta { padding: 10px 17px; font-size: 13.5px; }
@media (max-width: 1080px) { .nav-cta { display: none; } }

/* AR / EN segmented toggle */
.lang-seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(251, 191, 36, 0.05);
}
.lang-seg button {
  padding: 8px 13px;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.24s var(--ease);
}
.lang-seg button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: var(--glow-gold);
}
.lang-seg button[aria-pressed="true"]:hover { background: var(--gold-hi); }
.lang-seg button:not([aria-pressed="true"]):hover {
  color: var(--text);
  background: rgba(251, 191, 36, 0.1);
}
.lang-seg button[data-lang="ar"] { font-family: var(--f-ar); }

/* burger */
.nav-toggle {
  display: none;
  width: 42px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(251, 191, 36, 0.05);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle i {
  display: block;
  width: 17px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.22s;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════
   SECTION DOTS — desktop only
   ══════════════════════════════════════════════════════════════════════ */
.dots {
  position: fixed;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--faint);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}
.dot::after {
  content: attr(data-label);
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--f-num);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
html[lang="ar"] .dot::after { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }
.dot:hover { border-color: var(--gold); }
.dot:hover::after { opacity: 1; transform: translateY(-50%); }
.dot[aria-current="true"] {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  transform: scale(1.3);
}

/* back-to-top — opposite side from nothing; sits above the ticker */
.to-top {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  z-index: 70;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 0.3s, visibility 0.3s, translate 0.3s var(--ease), background 0.25s, color 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; translate: none; }
.to-top:hover { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════
   TICKER RIBBON — the signature element
   ══════════════════════════════════════════════════════════════════════ */
.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line-2);
  background: rgba(10, 6, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tickerRun 42s linear infinite;
}
html[dir="rtl"] .ticker-track { animation-name: tickerRunRtl; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerRun  { from { transform: translate3d(0,0,0); }   to { transform: translate3d(-50%,0,0); } }
@keyframes tickerRunRtl { from { transform: translate3d(0,0,0); }  to { transform: translate3d(50%,0,0); } }

.tk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-inline-end: 1px solid var(--line-2);
  white-space: nowrap;
  /* each item stays LTR even when the ribbon flows RTL — a price never
     reads right-to-left */
  direction: ltr;
}
.tk-sym {
  font-family: var(--f-num);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}
.tk-price {
  font-family: var(--f-num);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color 0.25s;
}
.tk-delta {
  font-family: var(--f-num);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.tk-up   { color: var(--up); }
.tk-down { color: var(--down); }
/* flash the price on tick */
.tick-flash { animation: tickFlash 0.5s var(--ease); }
@keyframes tickFlash {
  0%   { color: var(--gold-hi); text-shadow: 0 0 14px rgba(251,191,36,0.6); }
  100% { color: var(--text); text-shadow: none; }
}
.tk-spark { display: block; flex-shrink: 0; }

/* hero placement — sits behind the wordmark */
.hero-ticker {
  position: absolute;
  inset-inline: 0;
  z-index: 0;
  rotate: -3.5deg;
  scale: 1.22;
  opacity: 0.2;
  pointer-events: none;
}
/* behind the wordmark block, and one parked low so it never crosses the CTAs */
.hero-ticker.tk-top    { top: 40%; }
.hero-ticker.tk-bottom { bottom: 5%; top: auto; rotate: 2deg; opacity: 0.26; }
.hero-ticker.tk-thin .tk { padding-block: 7px; }
.hero-ticker.tk-thin .tk-price { font-size: 11.5px; }

/* section divider ribbon */
/* section divider ribbon — flush; the section rhythm absorbs the spacing */
.ticker-divider { margin-block: 0; border-radius: 0; }
.ticker-divider .tk { padding-block: 9px; }

/* ══════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 26px) clamp(16px, 4vw, 40px) 74px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 940px;
}

/* logo + counter-rotating rings */
.hero-logo { position: relative; display: grid; place-items: center; margin-bottom: 16px; }
.hero-logo-img {
  width: clamp(112px, 17vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow:
    0 0 0 1px rgba(225, 29, 72, 0.24),
    0 0 70px rgba(251, 191, 36, 0.3),
    0 26px 60px rgba(0, 0, 0, 0.65);
  animation: floatY 7s var(--ease) infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.22);
  pointer-events: none;
}
.hl-ring.r1 {
  width: calc(clamp(112px, 17vw, 168px) + 38px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 34s linear infinite;
}
.hl-ring.r2 {
  width: calc(clamp(112px, 17vw, 168px) + 76px);
  aspect-ratio: 1;
  border-color: rgba(225, 29, 72, 0.16);
  animation: spin 52s linear infinite reverse;
}
.hl-ring.r3 {
  width: calc(clamp(112px, 17vw, 168px) + 114px);
  aspect-ratio: 1;
  border-style: dotted;
  border-color: rgba(251, 191, 36, 0.1);
  animation: spin 78s linear infinite;
}

/* wordmark */
.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-disp);
  font-size: clamp(2.5rem, 8.2vw, 5.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
/* the sentence fragment that leads into the wordmark */
.hero-lead {
  order: -1;
  font-family: var(--f-num);
  font-size: clamp(10.5px, 1.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  white-space: nowrap;
}
html[lang="ar"] .hero-lead {
  font-family: var(--f-ar);
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}
html[lang="ar"] .hero-mark {
  font-family: var(--f-ar-disp);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(2.1rem, 8vw, 5rem);
  line-height: 1.16;
}
.hero-mark .ltr { display: block; }
.hero-mark .ltr + .ltr { margin-top: 0.02em; }
.hero-mark .g {
  display: inline-block;
  background: linear-gradient(180deg, var(--text) 30%, var(--gold) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="ar"] .hero-mark .g {
  background: linear-gradient(180deg, var(--text) 40%, var(--gold) 126%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-mark .crim {
  display: inline-block;
  background: linear-gradient(180deg, var(--crimson-hi) 30%, var(--crimson) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 62ch;
  color: var(--dim);
  font-size: clamp(1rem, 1.7vw, 1.13rem);
  line-height: 1.72;
  margin-bottom: 26px;
}

/* hero tagline — the original platform badge, kept compact */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-num);
  font-size: clamp(10px, 1.4vw, 12px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.05);
}
html[lang="ar"] .hero-tag {
  font-family: var(--f-ar);
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(12.5px, 1.8vw, 14.5px);
  font-weight: 700;
}
.hero-tag i { color: var(--crimson); font-style: normal; }

/* live-status pill — market session status */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 24px;
  border-radius: 999px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--line);
  background: rgba(251, 191, 36, 0.06);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.3s var(--ease), opacity 0.7s var(--ease-out) 0s, translate 0.7s var(--ease-out);
  opacity: 0;
  translate: 0 14px;
}
.live-pill.in { opacity: 1; translate: none; }
.live-pill .pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
  transition: background 0.3s;
}
.live-pill[data-state="open"] {
  border-color: rgba(52, 211, 153, 0.5);
  color: #c9ffe6;
  background: rgba(52, 211, 153, 0.1);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.24);
}
.live-pill[data-state="open"] .pulse { background: var(--up); animation: ping 1.6s infinite; }
.live-pill[data-state="closed"] { border-color: var(--line-2); color: var(--faint); }
.live-pill[data-state="closed"] .pulse { background: var(--faint); }
.live-pill:hover { transform: translateY(-2px); border-color: var(--gold); }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* hero CTA */
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 0; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-lg);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-family: var(--f-num);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-label {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
html[lang="ar"] .hero-stat-label { font-size: 13.5px; letter-spacing: 0; }
.hero-stat-divider {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
}

/* ══════════════════════════════════════════════════════════════════════
   SECTION HEADER
   No uppercase eyebrow above the heading — that is the template tell.
   Identity comes from a huge outlined ghost numeral anchored in the
   section's corner, which no centred-eyebrow layout produces.
   ══════════════════════════════════════════════════════════════════════ */
.section-num {
  position: absolute;
  inset-block-start: clamp(6px, 2vw, 26px);
  inset-inline-start: clamp(14px, 3.4vw, 38px);
  z-index: 0;
  font-family: var(--f-num);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 191, 36, 0.14);
  user-select: none;
  pointer-events: none;
}
html[dir="rtl"] .section-num { -webkit-text-stroke: 1px rgba(225, 29, 72, 0.16); }

.section-header {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto var(--section-head-gap);
  text-align: center;
}

.section-title {
  font-family: var(--f-disp);
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 14px;
}
html[lang="ar"] .section-title {
  font-family: var(--f-ar-disp);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.28;
}
.section-title .hl {
  background: linear-gradient(180deg, var(--text) 26%, var(--gold) 116%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title .hl-crim {
  background: linear-gradient(180deg, var(--text) 26%, var(--crimson-hi) 116%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-subtitle { color: var(--dim); font-size: clamp(1rem, 1.6vw, 1.09rem); line-height: 1.7; }
.section-subtitle strong { color: var(--text); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════
   ABOUT — asymmetric editorial, staggered widths
   ══════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gap);
}
.about-card {
  grid-column: span 2;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.about-card:nth-child(1) { grid-column: span 2; margin-block-start: 0; }
.about-card:nth-child(2) { grid-column: span 2; margin-block-start: 30px; }
.about-card:nth-child(3) { grid-column: span 2; margin-block-start: 60px; }
.about-card:hover {
  border-color: var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 34px rgba(251, 191, 36, 0.1);
  transform: translateY(-6px);
}

/* icon chip */
.chip {
  position: relative;
  width: 50px; height: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(225, 29, 72, 0.12));
  color: var(--gold);
  transition: all 0.35s var(--spring);
}
.chip svg { width: 24px; height: 24px; }
.card:hover .chip {
  transform: rotate(-6deg) scale(1.08);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
  color: var(--gold-hi);
}
.chip.crim {
  border-color: var(--line-crim);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(251, 191, 36, 0.1));
  color: var(--crimson-hi);
}
.chip.crim:hover { border-color: var(--crimson); box-shadow: var(--glow-crim); color: #fff; }

.card-kicker {
  font-family: var(--f-num);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
html[lang="ar"] .card-kicker { font-family: var(--f-ar); letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.card-title {
  font-family: var(--f-disp);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
html[lang="ar"] .card-title { font-family: var(--f-ar-disp); font-weight: 900; line-height: 1.4; }
.card-desc { color: var(--dim); font-size: 0.96rem; line-height: 1.72; }

/* ══════════════════════════════════════════════════════════════════════
   FEATURES — bento
   ══════════════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gap);
  align-items: stretch;
}
.feature-card {
  grid-column: span 2;
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: var(--stack-gap);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
/* Bento, laid out so no row is left with a hole:
   row 1 → 4 + 2   row 2 → 2 + 2 + 2   row 3 → 6 */
.feature-card:nth-child(1) { grid-column: span 4; }
.feature-card:nth-child(2) { grid-column: span 2; }
.feature-card:nth-child(3),
.feature-card:nth-child(4),
.feature-card:nth-child(5) { grid-column: span 2; }
.feature-card:nth-child(6) {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding-block: 26px;
}
.feature-card:nth-child(6) .chip { flex-shrink: 0; }
.feature-card:nth-child(6) .card-desc { margin-inline-start: auto; max-width: 52ch; }
.feature-card:nth-child(1) .card-desc { max-width: 52ch; }
.feature-card:hover {
  border-color: var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 34px rgba(225, 29, 72, 0.12);
  transform: translateY(-6px);
}
.feature-card:nth-child(6):hover,
.feature-card:nth-child(1):hover { box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 34px rgba(251,191,36,0.12); }

.feature-card .card-desc { max-width: 46ch; }

/* ══════════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}
.pricing-card {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.pricing-card:hover {
  border-color: var(--line);
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.62);
}

.pricing-card.popular {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(180deg, rgba(40, 24, 13, 0.94), rgba(14, 7, 9, 0.95));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.66), 0 0 44px rgba(251, 191, 36, 0.14);
  /* notched top corner — breaks the uniform-rectangle pattern */
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  margin-block-start: -14px;
  /* clears the absolute badge so the two can never collide */
  padding-block-start: 62px;
}

.pricing-badge {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 34px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  font-family: var(--f-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: var(--glow-gold);
}
html[lang="ar"] .pricing-badge { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.pricing-badge svg { width: 12px; height: 12px; }

.pricing-card-top { margin-bottom: 20px; position: relative; }
.pricing-card-title {
  font-family: var(--f-disp);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
html[lang="ar"] .pricing-card-title { font-family: var(--f-ar-disp); font-weight: 900; }

.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-cur {
  font-family: var(--f-num);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  transform: translateY(-0.5em);
}
.pricing-amount {
  font-family: var(--f-num);
  font-size: clamp(2.7rem, 6vw, 3.7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text) 34%, var(--gold) 118%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing-card.popular .pricing-amount {
  background: linear-gradient(180deg, var(--gold-hi) 20%, var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
}
.pricing-period { font-size: 0.86rem; color: var(--faint); margin-inline-start: 6px; }
.pricing-sub { color: var(--dim); font-size: 0.92rem; margin-top: 12px; line-height: 1.6; }

/* the terminal readout inside the popular card */
.terminal {
  position: relative;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: rgba(6, 3, 4, 0.66);
  overflow: hidden;
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--f-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.terminal-status { display: inline-flex; align-items: center; gap: 6px; color: var(--up); }
.terminal-status .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--up);
  animation: ping 1.8s infinite;
}
html[lang="ar"] .terminal-head { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 12px; }

.terminal-pnl {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.terminal-pnl-label { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.terminal-pnl-value {
  font-family: var(--f-num);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--up);
  font-variant-numeric: tabular-nums;
}
.terminal-pnl-delta {
  font-family: var(--f-num);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--up);
}
.terminal-spark { display: block; width: 100%; height: 44px; }

.pricing-features { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.pricing-card-footer { margin-top: auto; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--dim);
  font-size: 0.93rem;
  line-height: 1.55;
}
.pricing-feature svg {
  width: 17px; height: 17px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.pricing-card.popular .pricing-feature { color: var(--text); }
.pricing-feature.lead { color: var(--text); font-weight: 600; }

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  padding: 14px 22px;
  max-width: 640px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 0.9rem;
  text-align: center;
  flex-wrap: wrap;
}
.pricing-note svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.testimonial-card {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.testimonial-card:hover {
  border-color: var(--line-crim);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 34px rgba(225, 29, 72, 0.14);
}
.testimonial-quote {
  font-size: 2.6rem;
  line-height: 0.6;
  font-family: var(--f-disp);
  color: var(--crimson);
  height: 20px;
}
.testimonial-stars { display: flex; gap: 3px; }
.testimonial-star { width: 15px; height: 15px; color: var(--gold); fill: var(--gold); }
.testimonial-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.avatar {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(225, 29, 72, 0.2));
  font-family: var(--f-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-hi);
}
.testimonial-name { font-weight: 700; font-size: 0.98rem; }
.testimonial-role { color: var(--faint); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════════════════ */
.cta {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line-2);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(225, 29, 72, 0.16), transparent 66%),
    var(--ink-2);
  padding-block: var(--section-y);
}
.cta-content { max-width: 820px; margin-inline: auto; text-align: center; }
.cta-title {
  font-family: var(--f-disp);
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.032em;
  margin-bottom: 16px;
}
html[lang="ar"] .cta-title { font-family: var(--f-ar-disp); font-weight: 900; line-height: 1.25; letter-spacing: 0; }
.cta-title .hl {
  background: linear-gradient(180deg, var(--gold-hi) 20%, var(--gold) 76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-subtitle { color: var(--dim); font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.7; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════════════════ */
.faq-list { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item { overflow: hidden; border-radius: var(--r); }
.faq-item.open { border-color: var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  text-align: start;
  font-family: var(--f-disp);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s;
}
html[lang="ar"] .faq-question { font-family: var(--f-ar-disp); font-weight: 700; font-size: 1.04rem; line-height: 1.6; }
.faq-question:hover { background: rgba(251, 191, 36, 0.05); }
.faq-num {
  font-family: var(--f-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.75;
}
.faq-q-text { flex: 1; }
.faq-icon {
  width: 20px; height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), color 0.25s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--gold-hi); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease);
}
.faq-answer p {
  padding: 0 var(--sp-5) var(--sp-5) 62px;
  color: var(--dim);
  font-size: 0.96rem;
  line-height: 1.75;
}
html[lang="ar"] .faq-answer p { padding-inline-start: 20px; padding-inline-end: 62px; }
.faq-item::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  margin-inline: 20px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.4s var(--ease);
}
.faq-item.open::after { width: calc(100% - 40px); }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line-2);
  background: rgba(6, 3, 4, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: clamp(40px, 6vw, 64px) 26px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-8);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.24);
}
.footer-logo-text {
  font-family: var(--f-disp);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
html[lang="ar"] .footer-logo-text { font-family: var(--f-ar-disp); font-weight: 900; }
.footer-description { color: var(--dim); max-width: 44ch; font-size: 0.95rem; line-height: 1.7; }
.footer-social { display: flex; gap: 9px; margin-top: 4px; }
.footer-social-link {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.28s var(--ease);
}
.footer-social-link svg { width: 19px; height: 19px; }
.footer-social-link:hover {
  color: #fff;
  border-color: var(--crimson);
  background: linear-gradient(135deg, var(--crimson-btn-1), var(--crimson-btn-2));
  transform: translateY(-4px);
  box-shadow: var(--glow-crim);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.footer-col h3 {
  font-family: var(--f-num);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
html[lang="ar"] .footer-col h3 { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 13.5px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  color: var(--dim);
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.22s, transform 0.22s var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--gold-hi); transform: translateX(4px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-4px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  color: var(--faint);
  font-size: 0.82rem;
}
.footer-disclaimer { max-width: 62ch; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════════
   REVEAL
   Uses the standalone `translate` property, NOT `transform`, so hover
   transforms on the same element compose instead of fighting.
   ══════════════════════════════════════════════════════════════════════ */
html.rv-on [data-rv] {
  opacity: 0;
  translate: 0 26px;
  transition:
    opacity 0.7s var(--ease-out),
    translate 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
  filter: blur(5px);
}
html.rv-on [data-rv].in { opacity: 1; translate: none; filter: blur(0); }

/* hero entrance beats — set by JS, staggered */
.hero-inner [data-hero] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.85s var(--ease-out), translate 0.85s var(--ease-out), filter 0.85s var(--ease-out);
  filter: blur(8px);
}
.hero-inner [data-hero].in { opacity: 1; translate: none; filter: blur(0); }
.hero-logo { opacity: 0; scale: 0.82; transition: opacity 0.9s var(--ease-out), scale 1.1s var(--spring); }
.hero-logo.in { opacity: 1; scale: 1; }
/* wordmark letters */
.hero-mark .g, .hero-mark .crim {
  opacity: 0;
  translate: 0 60%;
  clip-path: inset(0 0 100% 0);
  transition: translate 0.75s var(--ease-out), opacity 0.55s var(--ease), clip-path 0.75s var(--ease-out);
}
.hero-mark.in .g, .hero-mark.in .crim {
  opacity: 1;
  translate: none;
  clip-path: inset(0 0 0 0);
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .dots { display: none; }
}

/* ── rhythm steps ───────────────────────────────────────────────────────
   The scale above is continuous; these step it deliberately so the
   vertical rhythm is a clean multiple at each device width rather than
   drifting with the viewport. */
@media (max-width: 1180px) {
  :root {
    --section-y:       var(--sp-16);
    --section-head-gap: var(--sp-10);
    --section-tight-y: var(--sp-10);
    --grid-gap:        var(--sp-4);
    --card-pad:        var(--sp-5);
  }
}

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card { grid-column: span 1; margin-block-start: 0 !important; }
  .about-card:nth-child(3) { grid-column: span 2; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(n) { grid-column: span 1; }
  .feature-card:nth-child(6) { flex-direction: column; align-items: stretch; }
  .feature-card:nth-child(6) .card-desc { margin-inline-start: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pricing-card.popular { margin-block-start: 0; order: -1; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer-content { grid-template-columns: 1fr; gap: var(--sp-8); }
}

@media (max-width: 900px) {
  :root {
    --section-y:       var(--sp-12);
    --section-head-gap: var(--sp-8);
    --section-tight-y: var(--sp-8);
    --grid-gap:        var(--sp-4);
    --card-pad:        var(--sp-5);
    --nav-h:           64px;
  }
  .nav { top: max(10px, env(safe-area-inset-top)); inset-inline: 10px; border-radius: var(--r); }
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 18px);
    inset-inline: 10px;
    flex-direction: column;
    gap: var(--sp-1);
    padding: var(--sp-3);
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(8, 5, 6, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    translate: 0 -12px;
    transition: opacity 0.3s, visibility 0.3s, translate 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; translate: none; }
  .nav-link { padding: var(--sp-3) var(--sp-4); font-size: 15px; }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-brand-text span { display: none; }
  /* park the ribbon below the stats rather than across the wordmark */
  .hero-ticker.tk-top { inset-block-start: auto; inset-block-end: 18px; }
  .hero-ticker.tk-bottom { display: none; }
  /* grid, not wrap — flex wrapping orphaned "24/7" onto its own row */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
  }
  .hero-stat-divider { display: none; }
}

@media (max-width: 640px) {
  :root {
    --section-y:       var(--sp-12);
    --section-head-gap: var(--sp-6);
    --section-tight-y: var(--sp-6);
    --grid-gap:        var(--sp-3);
    --card-pad:        var(--sp-5);
    --stack-gap:       var(--sp-3);
    --gutter:          20px;
  }
  .section-num { font-size: clamp(3.5rem, 20vw, 6rem); }
  .about-grid, .features-grid { grid-template-columns: 1fr; }
  .about-card:nth-child(3), .feature-card, .feature-card:nth-child(n) { grid-column: span 1; }
  .hero { padding: calc(var(--nav-h) + 24px) var(--gutter) var(--sp-12); min-height: auto; }
  .hero-actions, .cta-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  /* park it under the stats where the hero has slack, clear of the wordmark */
  .hero-ticker.tk-top { inset-block-start: auto; inset-block-end: 16px; opacity: 0.34; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-note { border-radius: var(--r); }
  .faq-answer p { padding-inline: var(--sp-5); }
}

/* ══════════════════════════════════════════════════════════════════════
   REDUCED MOTION — calm fallback, content always visible
   ══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  #boot { display: none; }
  #fx { display: none; }
  #cursor-glow { display: none; }
  .grain, .scanlines { animation: none; }
  .ambient-wash, .orb, .grid-glow { animation: none; }
  .ticker-track { animation: none; }
  .hero-inner [data-hero],
  .hero-logo,
  .hero-mark .g, .hero-mark .crim { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; clip-path: none !important; }
  html.rv-on [data-rv] { opacity: 1; translate: none; filter: none; }
  [data-tilt], [data-magnetic] { transform: none !important; }
  .edge-spin::before { display: none; }
  .btn-primary:hover, .btn-outline:hover, .btn-crimson:hover, .btn-tg:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   POINTER CAPABILITY — heavy effects only where they make sense
   ══════════════════════════════════════════════════════════════════════ */
@media (hover: none), (pointer: coarse) {
  #cursor-glow { display: none; }
  .edge-spin::before { display: none; }
  .card:hover { transform: none; }
}

/* Touch targets: anything tappable grows to a comfortable thumb size.
   WCAG 2.2 target-size minimum is 24px; 44px is the comfortable floor. */
@media (pointer: coarse) {
  .nav-link,
  .footer-col a,
  .lang-seg button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-link { padding-inline: var(--sp-4); }
  .faq-question { min-height: 56px; padding-block: var(--sp-4); }
  .btn { min-height: 48px; }
  .btn-lg { min-height: 52px; }
  .footer-social-link { width: 48px; height: 48px; }
  .to-top { width: 48px; height: 48px; inset-block-end: calc(22px + env(safe-area-inset-bottom)); }
  /* no hover-reveal to signal interactivity, so lean on a resting tint */
  .btn-primary:active { transform: scale(0.98); }
}
