/* AGG Ltd landing page. Tokens from the client's agg-landing-theme.css,
   derived values from the design handoff README. Logical properties only,
   so the layout mirrors between Arabic (rtl) and English (ltr). */
:root {
  --agg-bg: #170C1D;
  --agg-surface: #341B42;
  --agg-hero-purple: #522C67;
  --agg-primary: #FDD901;
  --agg-primary-hover: #fee34d;
  --agg-on-primary: #010F40;
  --agg-text: #FEFDFF;
  --agg-text-muted: #C2B9C6;
  --agg-accent: #E394F0;
  --agg-input-bg: #22122b;
  --agg-menu-bg: #2a1536;
  --agg-card-top: #3d2050;
  --agg-footer-bg: #110816;
  --agg-placeholder: #8f8596;
  --agg-hero-gradient: linear-gradient(100deg, var(--agg-hero-purple) 0%, var(--agg-surface) 52%, var(--agg-bg) 100%);
  --font-ar: Tajawal, Sora, sans-serif;
  --font-en: Sora, Tajawal, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--agg-bg); }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--agg-bg);
  color: var(--agg-text);
  font-family: var(--font-ar);
  -webkit-text-size-adjust: 100%;
}
html[lang="en"] body { font-family: var(--font-en); }
a { color: var(--agg-accent); }
a:hover { color: var(--agg-primary); }
input, textarea, button { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--agg-placeholder); }
img { display: block; }
:focus-visible { outline: 3px solid var(--agg-accent); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 20;
  padding: 10px 16px; border-radius: 10px; background: var(--agg-primary);
  color: var(--agg-on-primary); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--agg-on-primary); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.ff-tajawal { font-family: Tajawal, sans-serif; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 12, 29, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(254, 253, 255, .08);
}
.site-header__row {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--agg-text); }
.brand:hover { color: var(--agg-text); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
/* The AGG Ltd wordmark (logo + name in one image) replaces emblem + text in the header and footer. */
.brand .brand__wordmark, .footer__brand .brand__wordmark { width: auto; display: block; }
.brand .brand__wordmark { height: 38px; }
.footer__brand .brand__wordmark { height: 56px; }
.wordmark { font-weight: 800; font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.wordmark b { color: var(--agg-primary); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--agg-text-muted); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--agg-primary); }
.lang-toggle {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(253, 217, 1, .5); background: transparent; color: var(--agg-primary);
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease;
}
.lang-toggle:hover { background: rgba(253, 217, 1, .12); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--agg-bg); background-image: var(--agg-hero-gradient); }
.hero__decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(254, 253, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 253, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.blob--a { width: 380px; height: 380px; top: -80px; left: 10%; background: rgba(227, 148, 240, .28); animation: aggDrift 14s ease-in-out infinite; }
.blob--b { width: 320px; height: 320px; bottom: -100px; right: 15%; background: rgba(253, 217, 1, .16); animation: aggDrift 18s ease-in-out infinite reverse; }
.hero__inner {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 96px 24px 112px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: 1.4; font-weight: 800; text-wrap: balance; }
.eyebrow {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(227, 148, 240, .14); border: 1px solid rgba(227, 148, 240, .3);
  color: var(--agg-accent); font-size: 14px; font-weight: 600; letter-spacing: .04em;
}
.eyebrow__text { white-space: nowrap; }
.live-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--agg-primary); box-shadow: 0 0 10px var(--agg-primary);
  animation: aggBlink 1.6s ease-in-out infinite;
}
.hero h1 .accent { color: var(--agg-primary); display: block; animation: aggGlitch 5s steps(1) infinite; }
.hero__sub { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--agg-text-muted); max-width: 520px; text-wrap: pretty; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: 15px 28px; border-radius: 12px; text-decoration: none;
  font-size: 16px; white-space: nowrap; transition: all .2s ease;
}
.btn-primary {
  background: var(--agg-primary); color: var(--agg-on-primary); font-weight: 800;
  box-shadow: 0 6px 20px rgba(253, 217, 1, .2);
}
.btn-primary:hover {
  background: var(--agg-primary-hover); color: var(--agg-on-primary);
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(253, 217, 1, .35);
}
/* "Press Start": the hero CTA pulses a gold ring. */
.cta-row .btn-primary { animation: aggStart 2.2s ease-in-out infinite; }
.btn-ghost { border: 1px solid rgba(254, 253, 255, .25); color: var(--agg-text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--agg-accent); color: var(--agg-accent); }

.hero__visual-wrap { display: flex; justify-content: center; min-width: 0; }
.hero__visual {
  position: relative; width: min(100%, 460px); aspect-ratio: 1;
  animation: aggRise .9s ease both; perspective: 900px;
}
/* Rings and art tilt together in 3D (fx.js sets the transform; fine pointers only). */
.hero__tilt {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
}
.hero__glow {
  position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 217, 1, .35) 0%, rgba(253, 217, 1, 0) 68%);
  animation: aggPulse 4s ease-in-out infinite;
}
.ring { position: absolute; border-radius: 50%; }
.ring--1 { inset: 0; border: 1px dashed rgba(227, 148, 240, .35); animation: aggSpin 40s linear infinite; }
.ring--2 { inset: 7%; border: 1px solid rgba(253, 217, 1, .22); animation: aggSpinR 26s linear infinite; }
.ring__dot { position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; }
.ring--1 .ring__dot { background: var(--agg-accent); box-shadow: 0 0 16px var(--agg-accent); }
.ring--2 .ring__dot { background: var(--agg-primary); box-shadow: 0 0 16px var(--agg-primary); }
.hero__art {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform: translateZ(60px); pointer-events: none;
}
.hero__gamer {
  width: 54%; height: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .5));
  animation: aggFloat 6s ease-in-out infinite;
}

/* ---------- Marquee (always LTR) ---------- */
.marquee {
  background: var(--agg-primary); color: var(--agg-on-primary); overflow: hidden;
  padding: 16px 0; font-weight: 800; font-size: 20px; letter-spacing: .02em;
}
.marquee__track { display: flex; width: max-content; animation: aggMarquee 30s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding-inline: 14px; white-space: nowrap; }
.marquee__item::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--agg-on-primary); }

/* ---------- Section headings ---------- */
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; max-width: 640px; }
.h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.2; }
.lead { margin: 0; color: var(--agg-text-muted); font-size: 18px; line-height: 1.7; }

/* ---------- What we build ---------- */
.what { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(160deg, var(--agg-card-top) 0%, var(--agg-surface) 60%, var(--agg-menu-bg) 100%);
  border: 1px solid rgba(254, 253, 255, .06);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  border-color: rgba(253, 217, 1, .5); transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4), 0 0 40px rgba(253, 217, 1, .08);
}
.card__wm {
  position: absolute; top: -18px; inset-inline-end: 12px; font-family: Sora, sans-serif;
  font-size: 120px; font-weight: 800; color: rgba(253, 217, 1, .07); line-height: 1; pointer-events: none;
}
.card__bar { width: 40px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--agg-primary), var(--agg-accent)); }
.card__num { font-family: Sora, sans-serif; font-size: 14px; font-weight: 700; color: var(--agg-primary); letter-spacing: .08em; }
.card h3 { margin: 0; font-size: 24px; font-weight: 700; }
.card p { margin: 0; color: var(--agg-text-muted); font-size: 16px; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact { background: var(--agg-surface); scroll-margin-top: 72px; }
.contact__inner {
  max-width: 1200px; margin: 0 auto; padding: 96px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px; align-items: start;
}
.contact__intro { display: flex; flex-direction: column; gap: 14px; }
.contact__intro .lead { max-width: 440px; }
.what { scroll-margin-top: 72px; }

.form {
  background: var(--agg-bg); border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.form[hidden], .success[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--agg-text-muted); min-width: 0; }
.field--topic { gap: 10px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1px solid rgba(254, 253, 255, .14); background: var(--agg-input-bg);
  color: var(--agg-text); font-size: 16px; outline: none;
  transition: border-color .2s ease;
}
.input:focus { border-color: var(--agg-accent); }
.input:focus-visible { outline: none; }
textarea.input { resize: vertical; min-height: 0; }
.input--email { direction: ltr; text-align: left; }
html[dir="rtl"] .input--email { text-align: right; }

/* Topic dropdown */
.dd { position: relative; }
.dd__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(254, 253, 255, .14);
  background: var(--agg-input-bg); color: var(--agg-text); font-size: 16px; font-weight: 600;
  cursor: pointer; text-align: start; transition: border-color .2s ease;
}
.dd__trigger:hover, .dd__trigger[aria-expanded="true"] { border-color: var(--agg-accent); }
.dd__trigger:focus-visible { outline: none; border-color: var(--agg-accent); box-shadow: 0 0 0 2px rgba(227, 148, 240, .35); }
.dd__value { display: flex; align-items: center; gap: 10px; }
.diamond { flex: none; width: 8px; height: 8px; transform: rotate(45deg); background: var(--agg-primary); }
.dd__chevron {
  flex: none; width: 9px; height: 9px; margin-top: -4px;
  border-right: 2px solid var(--agg-primary); border-bottom: 2px solid var(--agg-primary);
  transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease;
}
.dd__trigger[aria-expanded="true"] .dd__chevron { transform: rotate(-135deg); margin-top: 4px; }
.dd__menu {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 5;
  margin: 0; padding: 6px; list-style: none;
  background: var(--agg-menu-bg); border: 1px solid rgba(253, 217, 1, .35); border-radius: 12px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5); animation: aggRise .18s ease both; outline: none;
}
.dd__menu[hidden] { display: none; }
.dd__option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 8px; background: transparent; color: var(--agg-text);
  font-size: 15px; font-weight: 600; cursor: pointer; user-select: none;
}
.dd__option[aria-selected="true"] { background: rgba(253, 217, 1, .08); color: var(--agg-primary); }
.dd__option:hover, .dd__option.is-active { background: rgba(253, 217, 1, .14); color: var(--agg-primary); }
.dd__check { flex: none; width: 16px; height: 16px; color: var(--agg-primary); visibility: hidden; }
.dd__option[aria-selected="true"] .dd__check { visibility: visible; }

.honeypot { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; border-radius: 12px; border: none;
  background: var(--agg-primary); color: var(--agg-on-primary); font-weight: 800; font-size: 16px;
  cursor: pointer; transition: background-color .2s ease;
}
.btn-submit:hover { background: var(--agg-primary-hover); }
.btn-submit:disabled { cursor: progress; opacity: .85; }
.btn-submit:disabled:hover { background: var(--agg-primary); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(1, 15, 64, .25); border-top-color: var(--agg-on-primary);
  animation: aggSpin .8s linear infinite;
}
.spinner[hidden] { display: none; }

.form-error {
  margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; line-height: 1.6;
  background: rgba(255, 120, 140, .08); border: 1px solid rgba(255, 120, 140, .45); color: #ffc2cc;
}
.form-error[hidden] { display: none; }

.success {
  background: var(--agg-bg); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; gap: 12px; border: 1px solid rgba(253, 217, 1, .4);
}
.success h3 { margin: 0; font-size: 24px; color: var(--agg-primary); outline: none; }
.success p { margin: 0; color: var(--agg-text-muted); font-size: 16px; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--agg-footer-bg); border-top: 1px solid rgba(253, 217, 1, .25); }
.footer__hairline { position: absolute; top: 0; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--agg-primary), var(--agg-accent), transparent); }
.footer__wm {
  position: absolute; top: 50%; transform: translateY(-55%); inset-inline: 0; text-align: center;
  font-family: 'Russo One', sans-serif; font-weight: 400; font-size: clamp(120px, 22vw, 300px);
  line-height: .9; letter-spacing: .04em; color: transparent;
  -webkit-text-stroke: 1px rgba(253, 217, 1, .09); pointer-events: none; user-select: none;
}
.footer__cols {
  position: relative; max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col--brand { gap: 16px; }
.footer__col--cta { gap: 14px; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 56px; height: 56px; object-fit: contain; }
.footer__brand .wordmark { font-size: 22px; letter-spacing: normal; }
.footer__tag { margin: 0; color: var(--agg-text-muted); font-size: 15px; line-height: 1.7; max-width: 300px; }
.footer__title { font-size: 13px; font-weight: 700; color: var(--agg-primary); letter-spacing: .1em; }
.footer__link { color: var(--agg-text); text-decoration: none; font-size: 15px; align-self: flex-start; }
.footer__link:hover { color: var(--agg-primary); }
.btn-primary--sm { display: flex; align-items: center; gap: 10px; padding: 13px 22px; font-size: 15px; box-shadow: none; }
.btn-primary--sm:hover { box-shadow: 0 12px 30px rgba(253, 217, 1, .3); }
.lang-toggle--footer {
  display: block; border-color: rgba(254, 253, 255, .2); color: var(--agg-text-muted);
  font-weight: 600; font-family: Tajawal, sans-serif; transition: border-color .2s ease, color .2s ease;
}
.lang-toggle--footer:hover { background: transparent; border-color: var(--agg-accent); color: var(--agg-accent); }
.footer__bottom { position: relative; border-top: 1px solid rgba(254, 253, 255, .08); }
.footer__bottom-row {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--agg-text-muted); font-size: 13px;
}
.region { display: flex; align-items: center; gap: 8px; }
.region .diamond { width: 7px; height: 7px; }

/* ---------- Motion ---------- */
@keyframes aggFloat { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-16px) rotate(-2deg) } }
@keyframes aggSpin { to { transform: rotate(360deg) } }
@keyframes aggSpinR { to { transform: rotate(-360deg) } }
@keyframes aggPulse { 0%, 100% { opacity: .55; transform: scale(1) } 50% { opacity: 1; transform: scale(1.08) } }
@keyframes aggMarquee { to { transform: translateX(-50%) } }
@keyframes aggDrift { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(40px, -30px) } }
@keyframes aggRise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes aggBlink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes aggGlitch { 0%, 86%, 100% { text-shadow: none; transform: none } 88% { text-shadow: -3px 0 #E394F0, 3px 0 #00e5ff; transform: translateX(2px) } 90% { text-shadow: 3px 0 #E394F0, -3px 0 #00e5ff; transform: translateX(-2px) skewX(-6deg) } 92% { text-shadow: -2px 0 #E394F0, 2px 0 #00e5ff; transform: none } }
@keyframes aggStart { 0%, 100% { box-shadow: 0 0 0 0 rgba(253, 217, 1, .55), 0 6px 20px rgba(253, 217, 1, .2) } 50% { box-shadow: 0 0 0 10px rgba(253, 217, 1, 0), 0 6px 30px rgba(253, 217, 1, .45) } }
@keyframes aggLoad { from { width: 0 } to { width: 100% } }
@keyframes aggBurst { 0% { opacity: 1; transform: translate(0, 0) rotate(45deg) scale(1) } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(.4) } }
@keyframes aggToast { 0% { opacity: 0; transform: translate(-50%, 20px) } 10%, 85% { opacity: 1; transform: translate(-50%, 0) } 100% { opacity: 0; transform: translate(-50%, 20px) } }

/* ---------- Wow layer (every element below is created by fx.js only) ---------- */
/* Intro loader: once per session, skipped for reduced motion. */
.fx-loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--agg-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  font-family: Sora, sans-serif; transition: opacity .6s ease, visibility .6s;
}
.fx-loader.is-out { opacity: 0; visibility: hidden; }
.fx-loader__logo { width: 260px; height: auto; animation: aggPulse 1.2s ease-in-out infinite; }
.fx-loader__bar { width: 220px; height: 6px; border-radius: 3px; background: rgba(254, 253, 255, .1); overflow: hidden; }
.fx-loader__bar > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--agg-primary), var(--agg-accent)); animation: aggLoad 1.5s ease-out forwards; }
.fx-loader__text { color: var(--agg-primary); font-weight: 700; letter-spacing: .3em; font-size: 13px; animation: aggBlink 1s steps(2) infinite; }

/* Cursor follower (fine pointers only; the native cursor stays). */
.fx-cursor-ring, .fx-cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9998; border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.fx-cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid var(--agg-primary);
  mix-blend-mode: difference;
  transition: opacity .2s, width .2s, height .2s, margin .2s, background-color .2s;
}
.fx-cursor-ring.is-hot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(253, 217, 1, .15); }
.fx-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--agg-primary); }
.fx-cursor-on .fx-cursor-ring, .fx-cursor-on .fx-cursor-dot { opacity: 1; }

/* Scroll reveal: the hidden state exists only after fx.js adds .fx-reveal to <html>,
   so the content stays visible without JS or without IntersectionObserver. */
.fx-reveal [data-reveal] {
  transition: opacity .8s ease var(--fx-delay, 0s), translate .8s cubic-bezier(.2, .8, .2, 1) var(--fx-delay, 0s);
}
.fx-reveal .card[data-reveal] {
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease,
    opacity .8s ease var(--fx-delay, 0s), translate .8s cubic-bezier(.2, .8, .2, 1) var(--fx-delay, 0s);
}
.fx-reveal [data-reveal]:not(.is-shown) { opacity: 0; translate: 0 40px; }

/* Konami code: burst of diamonds + toast. */
.fx-burst { position: fixed; inset: 0; z-index: 9997; overflow: hidden; pointer-events: none; }
.fx-burst__bit { position: absolute; animation: aggBurst 1.3s cubic-bezier(.1, .7, .3, 1) forwards; }
.fx-toast {
  position: absolute; left: 50%; bottom: 48px; width: max-content; max-width: calc(100vw - 32px);
  padding: 18px 28px; border-radius: 14px; background: var(--agg-primary); color: var(--agg-on-primary);
  font: 800 18px Sora, sans-serif; text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: aggToast 3.6s ease forwards;
}
.fx-toast:lang(ar) { font-family: Tajawal, sans-serif; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .hero__visual, .hero__glow, .ring, .hero__gamer, .marquee__track, .dd__menu,
  .live-dot, .hero h1 .accent, .cta-row .btn-primary, .fx-loader__logo, .fx-loader__bar > span,
  .fx-loader__text, .fx-burst__bit, .fx-toast { animation: none; }
  .hero__tilt { transform: none !important; transition: none; }
  .fx-loader, .fx-cursor-ring, .fx-cursor-dot, .fx-burst__bit { display: none; }
  .fx-toast { transform: translateX(-50%); }
  .fx-reveal [data-reveal]:not(.is-shown) { opacity: 1; translate: none; }
  .card, .btn-primary, .dd__chevron { transition: none; }
  .card:hover, .btn-primary:hover { transform: none; }
  .spinner { animation-duration: 1.6s; }
}
