/* =====================================================================
   Dawawer Game House — Landing Site styles
   ===================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: var(--type-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---- Bilingual handling ----------------------------------------- */
[lang="en"] body, body[data-lang="en"] { direction: ltr; }
body[data-lang="ar"] { direction: rtl; }
body[data-lang="ar"] .lang-en { display: none; }
body[data-lang="en"] .lang-ar { display: none; }
/* For numerals in Arabic that should stay LTR */
.num { unicode-bidi: isolate; direction: ltr; display: inline-block; }

/* ---- Page wrap -------------------------------------------------- */
.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  padding: 0 clamp(20px, 5vw, 96px);
  position: relative;
}

/* ---- Nav -------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  padding: 20px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  pointer-events: none;
  transition: background var(--dur) var(--ease-out), padding var(--dur) var(--ease-out), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 245, 238, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
          backdrop-filter: blur(20px) saturate(175%);
  border-bottom-color: var(--ink-line);
  padding: 14px clamp(20px, 5vw, 64px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}
.nav > * { pointer-events: auto; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
  height: 44px;
}
.nav-logo:hover { opacity: .8; }
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Legacy nav-center kept hidden in case content references */
.nav-center { display: none; }
.nav-right { display: contents; }

/* Lang toggle: minimal segmented, no card chrome */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-pill);
  padding: 4px;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--dur) var(--ease-out);
  min-width: 56px;
  line-height: 1;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}
.lang-toggle button:hover:not(.active) { color: var(--ink); }

/* ---- Floating parallax characters ------------------------------- */
.parallax-layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.parallax-layer img { opacity: .9; }

/* ---- Hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: var(--type-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-5);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-2);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 144px);
  line-height: .92;
  letter-spacing: -.025em;
  margin: 0 0 var(--s-6);
  position: relative;
  z-index: 5;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--red); }
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: "";
  position: absolute;
  left: -.05em; right: -.05em;
  bottom: .04em;
  height: .08em;
  background: var(--red);
  border-radius: 999px;
}

.hero-title .word { display: inline-block; }
.hero-title .reveal { display: block; }

.hero-lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
  margin-bottom: var(--s-7);
  text-wrap: pretty;
  position: relative;
  z-index: 5;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
  font: var(--type-caption);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-meta .pulse {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: relative;
}
.hero-meta .pulse::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--red);
  opacity: .3;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.8); opacity: .5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  position: relative;
  z-index: 5;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 18px 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), background var(--dur), color var(--dur);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; }
.btn-primary .arrow { transition: transform var(--dur) var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }
body[data-lang="ar"] .btn-primary:hover .arrow { transform: translateX(-4px) rotate(180deg); }
body[data-lang="ar"] .btn-primary .arrow { transform: rotate(180deg); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--accent-strong); }

.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,245,238,.42);
}
.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Final CTA buttons row */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-7);
}
.cta-buttons .btn { padding: 20px 32px; font-size: 17px; }
.cta-buttons .btn:hover { transform: translateY(-2px); }
.cta-buttons .btn .arrow { transition: transform var(--dur); }
.cta-buttons .btn:hover .arrow { transform: translateX(4px); }
body[data-lang="ar"] .cta-buttons .btn .arrow { transform: rotate(180deg); }
body[data-lang="ar"] .cta-buttons .btn:hover .arrow { transform: rotate(180deg) translateX(4px); }

/* small arrow icon */
.arrow {
  display: inline-block;
  width: 18px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'><path d='M1 7h15M10 1l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'><path d='M1 7h15M10 1l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  inset-inline-start: clamp(20px, 5vw, 96px);
  font: var(--type-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  z-index: 5;
}
.scroll-cue::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--ink-line-strong);
  position: relative;
}
.scroll-cue .bar {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--ink-line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: slide 2.4s var(--ease-inout) infinite;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---- Marquee ---------------------------------------------------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: var(--s-5) 0;
  margin: 0 calc(-1 * clamp(20px, 5vw, 96px));
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: var(--s-7);
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-7);
}
.marquee-item::after {
  content: "✦";
  color: var(--red);
  font-weight: 400;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
body[data-lang="ar"] .marquee-track {
  animation-name: scroll-x-rtl;
}
@keyframes scroll-x-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---- Section base ----------------------------------------------- */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
  position: relative;
}
.section-band { background: var(--paper-soft); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .eyebrow { color: var(--paper); opacity: .7; }
.section-ink .eyebrow::before { background: var(--paper); opacity: .4; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-bottom: var(--s-9);
}
.section-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 88px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 12ch;
}
.section-title .accent { color: var(--red); }
.section-kicker {
  max-width: 380px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

/* ---- Why-cards -------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.why-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur);
  isolation: isolate;
  min-height: 380px;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}
.why-card .num-tag {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font: var(--type-mono);
  color: var(--ink-3);
  font-size: 13px;
}
.why-card .icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper-deep);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.why-card .icon svg { width: 60%; height: auto; }
.why-card.red .icon  { background: var(--red-100); }
.why-card.yellow .icon { background: #FFE5A8; }
.why-card.teal .icon { background: #C5E7F0; }
.why-card h3 {
  font-weight: 800;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}
.why-card p {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.why-card .glyph {
  position: absolute;
  inset-inline-end: -20px;
  bottom: -20px;
  width: 180px;
  height: 180px;
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}

/* ---- Featured games (Meh + Yameh) -------------------------------- */
.feature {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 560px;
  margin-bottom: var(--s-6);
  isolation: isolate;
}
.feature-meh { background: var(--red); color: var(--white); }
.feature-yameh {
  background: var(--ink);
  color: var(--paper);
}

.feature-text {
  padding: 40px;
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  position: relative;
  z-index: 2;
}
.feature .tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: var(--type-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.16);
  align-self: flex-start;
  font-weight: 700;
}
.feature-yameh .tag { background: rgba(255,245,238,.12); }

.feature-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(72px, 12vw, 200px);
  line-height: .88;
  letter-spacing: -.04em;
  margin: 0;
}
.feature-yameh .feature-title { color: var(--yellow); }

.feature-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  opacity: .95;
  margin: 0 0 var(--s-3);
}
.feature-desc {
  font-size: 16px;
  line-height: 1.65;
  opacity: .88;
  max-width: 52ch;
  margin: 0;
}

.feature-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  font: var(--type-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
  margin-top: var(--s-5);
}
.feature-meta-row > * + *::before {
  content: "·";
  margin: 0 var(--s-3);
  opacity: .5;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur), background var(--dur);
}
.feature-meh .feature-cta:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.feature-yameh .feature-cta { background: var(--yellow); color: var(--ink); }
.feature-yameh .feature-cta:hover { background: var(--white); transform: translateY(-2px); }

/* "Coming soon" — static, non-interactive variant of feature-cta */
.feature-cta.feature-soon {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,245,238,.45);
  cursor: default;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 22px;
}
.feature-cta.feature-soon:hover { transform: none; background: transparent; }

.feature-visual {
  position: relative;
  overflow: hidden;
}

/* Meh visual: three character cards fanned out */
.meh-cards {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.meh-card {
  position: absolute;
  width: clamp(180px, 19vw, 260px);
  aspect-ratio: 735 / 1080;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
  transition: transform .6s var(--ease-out);
  will-change: transform;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)) drop-shadow(0 6px 14px rgba(0,0,0,.22));
}
.meh-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meh-card.mc-1 { transform: rotate(-16deg) translate(-46%, 4px); z-index: 1; }
.meh-card.mc-2 { transform: rotate(-2deg)  translate(0, -14px);  z-index: 3; }
.meh-card.mc-3 { transform: rotate(14deg)  translate(46%, 4px);  z-index: 2; }

.feature-meh:hover .meh-card.mc-1 { transform: rotate(-22deg) translate(-58%, -6px); }
.feature-meh:hover .meh-card.mc-2 { transform: rotate(0deg)   translate(0, -28px); }
.feature-meh:hover .meh-card.mc-3 { transform: rotate(20deg)  translate(58%, -6px); }

/* Yameh visual: AR phone with gameplay image */
.phone-frame {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: clamp(240px, 22vw, 300px);
  aspect-ratio: 9 / 19;
  background: #050505;
  border: 9px solid #0a0a0a;
  border-radius: 44px;
  box-shadow:
    0 50px 90px -25px rgba(0,0,0,.65),
    0 0 80px -10px rgba(239,55,50,.18),
    inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.phone-screen {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}
.phone-gameplay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #050505;
  border-radius: 14px;
  z-index: 3;
}
.phone-hud {
  position: absolute;
  top: 52px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  color: rgba(255,255,255,.92);
  font-family: var(--font-mono);
  font-size: 11px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.phone-hud .rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .14em;
  font-weight: 600;
}
.phone-hud .rec-dot {
  width: 7px; height: 7px;
  background: #ff3232;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3232;
  animation: recPulse 1.6s ease-in-out infinite;
}
@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.phone-hud .score {
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  letter-spacing: .14em;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.phone-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  z-index: 3;
}
.phone-fire {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.85);
  background: var(--red);
  margin: 0 auto;
  position: relative;
  box-shadow: 0 6px 18px rgba(239,55,50,.45);
  transition: transform var(--dur);
}
.feature-yameh:hover .phone-fire { transform: scale(1.08); }

.feature-yameh:hover .phone-frame {
  transform: translate(-50%, -52%) rotate(-3deg) scale(1.03);
  box-shadow:
    0 60px 110px -20px rgba(0,0,0,.75),
    0 0 100px -5px rgba(255,204,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.12);
}

/* ---- Coming-soon developer grid --------------------------------- */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.dev-card {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--dur), border-color var(--dur);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.dev-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}
.dev-card .badge {
  font: var(--type-caption);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.dev-card .badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ink-3);
  border-radius: 50%;
}
.dev-card.t-paper .badge::before { background: var(--orange); }
.dev-card.t-board .badge::before { background: var(--teal); }
.dev-card.t-digital .badge::before { background: var(--mint); }

.dev-card h4 {
  font-weight: 800;
  font-size: 26px;
  margin: 0;
  letter-spacing: -.01em;
}
.dev-card .example {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-2);
  border-bottom: 1px dashed var(--ink-line-strong);
}
.dev-card .example strong {
  color: var(--ink);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  display: inline-block;
  margin-bottom: 6px;
}

.dev-art {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

/* ---- Cloud arcade band ------------------------------------------ */
.cloud-band {
  position: relative;
  text-align: center;
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(80px, 12vw, 160px);
  overflow: hidden;
}
.cloud-band h2 {
  font-weight: 900;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 auto var(--s-5);
  max-width: 18ch;
}
.cloud-band p {
  max-width: 60ch;
  margin: 0 auto var(--s-6);
  color: var(--paper);
  opacity: .8;
  font-size: 18px;
  line-height: 1.65;
}
.cloud-band .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--paper);
  opacity: .08;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

/* ---- Final CTA -------------------------------------------------- */
.cta-band {
  background: var(--paper-soft);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 96px);
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--ink-line);
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-weight: 900;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  margin: 0 0 var(--s-4);
  letter-spacing: -.02em;
}
.cta-band p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 auto var(--s-6);
}
.waitlist {
  display: flex;
  gap: var(--s-2);
  background: var(--white);
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-line-strong);
  max-width: 540px;
  margin: 0 auto;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.waitlist:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20,20,20,.08);
}
.waitlist input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: var(--type-body);
  outline: none;
  color: var(--ink);
}
.waitlist button {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: background var(--dur);
}
.waitlist button:hover { background: var(--accent-strong); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---- Choice cards (player / developer) -------------------------- */
.choice {
  padding: clamp(40px, 5vw, 80px) clamp(20px, 5vw, 96px) clamp(60px, 8vw, 120px);
  position: relative;
  background: var(--white);
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.choice-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: clamp(360px, 38vw, 460px);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), background var(--dur), color var(--dur);
}
.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .55s var(--ease-out);
  z-index: -1;
  border-radius: inherit;
}
.choice-card:hover {
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-6px);
}
.choice-card:hover::before { transform: scaleY(1); }
.choice-card:hover .choice-num { color: var(--red); }
.choice-card.choice-player:hover .choice-art { color: var(--red); }
.choice-card.choice-dev:hover .choice-art { color: var(--yellow); }

.choice-num {
  font: var(--type-mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: .14em;
  font-weight: 600;
  transition: color var(--dur);
}
.choice-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  color: var(--ink);
  transition: color var(--dur);
}
.choice-svg { width: clamp(120px, 18vw, 200px); height: auto; }

/* Mini card stack inside choice-player */
.choice-cards {
  position: relative;
  width: 220px;
  height: 180px;
  display: grid;
  place-items: center;
}
.choice-cards .cc {
  position: absolute;
  width: 90px;
  height: 130px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 42px;
  background: var(--paper);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.28);
  transition: transform .5s var(--ease-out);
}
.choice-cards .cc.c1 { background: var(--red); color: var(--paper); transform: rotate(-14deg) translate(-50px, 6px); }
.choice-cards .cc.c2 { background: var(--yellow); color: var(--ink); transform: rotate(0deg) translate(0, -12px); z-index: 2; }
.choice-cards .cc.c3 { background: var(--ink); color: var(--paper); transform: rotate(14deg) translate(50px, 6px); }
.choice-card:hover .choice-cards .cc.c1 { transform: rotate(-22deg) translate(-72px, -2px); }
.choice-card:hover .choice-cards .cc.c2 { transform: rotate(0deg) translate(0, -22px); }
.choice-card:hover .choice-cards .cc.c3 { transform: rotate(22deg) translate(72px, -2px); }

.choice-card h3 {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
}
.choice-card p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
  transition: color var(--dur);
}
.choice-card:hover p { color: rgba(255,245,238,.78); }

.choice-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-3);
  padding: 12px 0 0;
  border-top: 1px solid var(--ink-line);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  transition: border-color var(--dur);
}
.choice-card:hover .choice-cta { border-color: rgba(255,245,238,.2); }
.choice-card:hover .arrow { transform: translateX(4px); }
body[data-lang="ar"] .choice-card:hover .arrow { transform: translateX(-4px) rotate(180deg); }
body[data-lang="ar"] .choice-card .arrow { transform: rotate(180deg); }

/* ---- Final CTA on ink ------------------------------------------- */
.cta-final {
  text-align: center;
  padding-top: clamp(100px, 14vw, 200px);
  padding-bottom: clamp(100px, 14vw, 200px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(20,20,20,.50) 0%, rgba(20,20,20,.77) 70%, rgba(20,20,20,.87) 100%);
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(.6) contrast(1.05);
}
.cta-final .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--paper);
  opacity: .05;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.final-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 112px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 auto var(--s-5);
  max-width: 18ch;
}
.final-title .big-line { display: block; }
.final-title .sub-line {
  display: block;
  font-size: .72em;
  font-weight: 800;
  opacity: .85;
  margin-top: 6px;
}
.final-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--paper);
  opacity: .78;
  max-width: 56ch;
  margin: 0 auto var(--s-7);
  line-height: 1.6;
}
.waitlist-dark {
  background: rgba(255,255,255,.06);
  border-color: var(--night-line);
}
.waitlist-dark input {
  color: var(--paper);
}
.waitlist-dark input::placeholder { color: rgba(255,245,238,.5); }
.waitlist-dark:focus-within {
  border-color: var(--paper);
  box-shadow: 0 0 0 4px rgba(255,245,238,.08);
}

/* ---- Footer ----------------------------------------------------- */
.footer {
  border-top: 1px solid var(--ink-line);
  padding-top: var(--s-8);
  padding-bottom: var(--s-6);
  margin-top: 0;
  background: var(--white);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
  align-items: start;
}
.footer-brand img { height: 36px; margin-bottom: var(--s-4); }
.footer-brand p { font-size: 15px; color: var(--ink-2); max-width: 38ch; margin: 0; line-height: 1.6; }
.footer-contact h5 {
  font: var(--type-caption);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin: 0 0 var(--s-3);
}
.footer-mail {
  display: inline-block;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: var(--s-5);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur), color var(--dur);
}
.footer-mail:hover {
  color: var(--red);
  border-color: var(--red);
}
.socials {
  display: flex;
  gap: var(--s-3);
}
.socials a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink-line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
}
.socials a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ink-line);
  font: var(--type-caption);
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* ---- Scroll-reveal animation (subtle lift, never gates visibility) -- */
.reveal-up { transition: transform .9s var(--ease-out); }
.js-reveal .reveal-up { transform: translateY(24px); }
.js-reveal .reveal-up.in { transform: none; }
.reveal-up.d-1 { transition-delay: .1s; }
.reveal-up.d-2 { transition-delay: .2s; }
.reveal-up.d-3 { transition-delay: .3s; }
.reveal-up.d-4 { transition-delay: .4s; }

/* ---- Misc helpers ---------------------------------------------- */
.divider-arabic {
  text-align: center;
  color: var(--red);
  font-size: 22px;
  letter-spacing: 1em;
  margin: var(--s-7) 0;
  opacity: .6;
}

/* ----------- responsive --------- */
@media (max-width: 980px) {
  .why-grid, .dev-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; min-height: auto; }
  .feature-visual { min-height: 380px; }
  .footer-main { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; min-height: 90vh; }
  .nav-center { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 560px) {
  .choice-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
  .parallax-layer { transform: none !important; }
}

/* Tweak-driven motion off */
body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation-duration: 0ms !important;
  transition-duration: 80ms !important;
}
body[data-motion="off"] .marquee-track { animation: none !important; }
body[data-motion="off"] .parallax-layer { transform: none !important; }

/* Density tweak */
body[data-density="compact"]  { --s-tweak: 0.78; }
body[data-density="spacious"] { --s-tweak: 1.22; }
body[data-density="compact"]  .section,
body[data-density="spacious"] .section {
  padding-top: calc(clamp(80px, 12vw, 160px) * var(--s-tweak, 1));
  padding-bottom: calc(clamp(80px, 12vw, 160px) * var(--s-tweak, 1));
}
body[data-density="compact"]  .hero,
body[data-density="spacious"] .hero { padding-bottom: calc(80px * var(--s-tweak, 1)); }
