/* ————————————————————————————————————————————————
   Bineytna landing — "the page is the building", daylight edition
   Brand: emerald #00D492 (logo mark) + ink #161616 (wordmark)
   Bilingual: English and Arabic side by side, the building between them
———————————————————————————————————————————————— */

:root {
  --paper: #F6F7F4;        /* page background */
  --card: #FFFFFF;         /* raised surfaces */
  --wash: #EDF8F2;         /* mint wash sections */
  --ink: #161616;          /* logo wordmark black */
  --ink-dim: rgba(22, 22, 22, 0.62);
  --line: rgba(22, 22, 22, 0.12);
  --brand: #00D492;        /* logo emerald — fills, buttons, windows */
  --brand-text: #00845C;   /* emerald dark enough for text */
  --brand-tint: #DDF7EC;   /* pale emerald wash */
  --amber: #8A6100;        /* "due" text */
  --amber-tint: #FFF3D6;
  --clay: #B4462B;         /* "overdue" text */
  --clay-tint: #FDE4DC;

  --font-display: "Bricolage Grotesque", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-ar: "IBM Plex Sans Arabic", sans-serif;
  --font-ar-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;

  --w: min(1240px, calc(100vw - 48px));
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--ink); }

[lang="ar"] { font-family: var(--font-ar); }

a { color: inherit; }

.mono { font-family: var(--font-mono); }
.center { text-align: center; justify-content: center; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h1[lang="ar"], h2[lang="ar"], h3[lang="ar"],
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
  font-family: var(--font-ar-display);
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 700;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ——— nav ——— */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 28px; justify-content: space-between;
  padding: 13px max(24px, calc((100vw - var(--w)) / 2));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.nav.scrolled {
  background: rgba(246, 247, 244, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 34px; width: auto; }

/* ——— buttons ——— */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15.5px; line-height: 1;
  padding: 15px 26px; border: 1.5px solid transparent;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4),
              box-shadow 0.25s ease, border-color 0.2s ease,
              background 0.2s ease, color 0.2s ease;
}
.btn [lang="ar"] { font-weight: 700; font-size: 0.95em; }
.btn-primary {
  background: var(--brand); color: var(--ink);
  box-shadow: 0 2px 0 rgba(22, 22, 22, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 146, 0.45);
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 19px 34px; font-size: 17px; }

/* ——— demo sandbox ——— */
.demo-box {
  margin: 44px auto 0;
  max-width: 640px;
  padding: 26px 24px;
  border: 1.5px dashed rgba(0, 212, 146, 0.45);
  border-radius: 22px;
  background: color-mix(in srgb, var(--brand-tint) 55%, transparent);
  text-align: center;
}
.demo-title { font-weight: 600; font-size: 16px; margin: 0 0 14px; }
.demo-title [lang="ar"] { display: block; margin-top: 4px; font-weight: 700; }
.demo-row { margin-top: 0; flex-wrap: wrap; }
.btn-demo {
  border-color: rgba(0, 212, 146, 0.55);
  color: var(--brand-text);
  background: var(--card);
  padding: 13px 22px;
  font-size: 14.5px;
}
.btn-demo:hover { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.demo-note { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-dim); letter-spacing: 0.04em; }
.demo-note [lang="ar"] { display: block; margin-top: 2px; letter-spacing: 0; font-size: 12.5px; }

/* ——— hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 106px 0 56px;
  background:
    radial-gradient(900px 480px at 50% -140px, var(--brand-tint) 0%, transparent 65%),
    linear-gradient(180deg, #FDFEFD 0%, var(--paper) 70%);
  overflow: hidden;
}

.sun {
  position: absolute; top: 108px; left: 50%; margin-left: -230px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--brand);
  opacity: 0.16;
  filter: blur(2px);
}
.sun::after {
  content: ""; position: absolute; inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 146, 0.35) 0%, transparent 70%);
}

.hero-eyebrow { text-align: center; position: relative; z-index: 3; }

.eyebrow {
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow em { font-style: italic; text-transform: none; letter-spacing: 0.04em; }
.eyebrow [lang="ar"] { font-size: 14px; letter-spacing: 0; color: var(--brand-text); font-weight: 700; }
.eyebrow-sep { color: var(--brand-text); margin: 0 2px; }
.floor-no { color: var(--brand-text); font-weight: 500; }

.hero-tri {
  width: var(--w); margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 330px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  position: relative; z-index: 2;
}

.hero-copy { padding-bottom: 30px; }
.hero-en { text-align: left; }
.hero-ar { text-align: right; }

.hero h1 {
  font-size: clamp(2.3rem, 3.9vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-variation-settings: "opsz" 96;
}
.hero-ar h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 800; }
.h1-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.h1-word { display: inline-block; }
.h1-word.accent { color: var(--brand-text); }

.sub { font-size: 16.5px; color: var(--ink-dim); max-width: 30em; }
.hero-en .sub { margin-right: auto; }
.hero-ar .sub { margin-left: auto; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; position: relative; z-index: 2; }

.free-flag { display: flex; justify-content: center; margin: 36px 16px 0; position: relative; z-index: 2; }
.free-flag + .cta-row { margin-top: 14px; }
.free-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-tint);
  border: 1px solid rgba(0, 212, 146, 0.5);
  color: var(--brand-text);
  border-radius: 999px; padding: 8px 18px;
  font-weight: 600; font-size: 13.5px;
}
.free-pill [lang="ar"] { font-weight: 700; font-size: 13px; }
.lobby .free-flag { margin-top: 20px; }

.micro { margin-top: 18px; font-size: 12px; color: var(--ink-dim); letter-spacing: 0.08em; }
.micro [lang="ar"] { font-size: 13px; letter-spacing: 0; }

/* load choreography */
.hero-eyebrow, .hero .sub, .hero .cta-row, .hero .micro, .hero .free-flag {
  animation: rise-soft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero .free-flag { animation-delay: 0.52s; }
.hero-eyebrow { animation-delay: 0.08s; }
.h1-word { animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.h1-line:nth-child(1) .h1-word { animation-delay: 0.16s; }
.h1-line:nth-child(2) .h1-word { animation-delay: 0.28s; }
.hero .sub { animation-delay: 0.46s; }
.hero .cta-row { animation-delay: 0.6s; }
.hero .micro { animation-delay: 0.72s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-soft {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— the facade, at noon ——— */

.hero-art {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  height: min(50vh, 430px);
  flex-shrink: 0;
  will-change: transform;
}

.bldg {
  position: relative;
  border: 1.5px solid var(--ink);
  border-bottom: none;
  background: var(--card);
  border-radius: 10px 10px 0 0;
  padding: 24px 20px 0;
  box-shadow: 0 30px 60px rgba(22, 22, 22, 0.1);
}
.bldg-main { width: min(255px, 100%); }

.bgrid { display: grid; gap: 11px 13px; }
#facade { grid-template-columns: repeat(5, 1fr); }

.win {
  aspect-ratio: 3 / 5;
  border-radius: 2px;
  background: linear-gradient(180deg, #EFF3F1 0%, #E2EAE6 100%);
  border: 1px solid rgba(22, 22, 22, 0.14);
  transition: background 0.9s ease, box-shadow 0.9s ease, border-color 0.9s ease;
}
.win:hover {
  background: linear-gradient(180deg, #4FE6B4 0%, var(--brand) 100%);
  box-shadow: 0 0 14px rgba(0, 212, 146, 0.5);
  border-color: transparent;
  transition-duration: 0.15s;
}
.bgrid.on .win.lit {
  background: linear-gradient(180deg, #4FE6B4 0%, var(--brand) 100%);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 212, 146, 0.3);
  transition-delay: var(--d, 0s);
}

.tank {
  position: absolute; top: -24px; right: 24px;
  width: 42px; height: 24px;
  background: var(--card); border: 1.5px solid var(--ink);
  border-radius: 6px 6px 2px 2px;
}
.tank i { position: absolute; bottom: -7px; width: 2px; height: 8px; background: var(--ink); }
.tank i:first-child { left: 7px; }
.tank i:last-child { right: 7px; }

.door {
  width: 52px; height: 42px; margin: 14px auto 0;
  border: 1.5px solid var(--ink); border-bottom: none;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, var(--brand) 0%, #2ADCA4 100%);
}

.ground-line {
  position: absolute; bottom: 0; left: -18%; right: -18%;
  height: 1.5px; background: var(--ink); opacity: 0.7;
}

/* ——— ticker ——— */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-dim);
  padding-right: 18px;
  unicode-bidi: isolate;
}
.ticker-item[dir="rtl"] { font-family: var(--font-ar); font-size: 13.5px; }
.ticker-item::after { content: "·"; color: var(--brand); font-weight: 700; padding-left: 18px; }
.ticker-item strong { color: var(--ink); font-weight: 500; }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ——— showcase: the real dashboard, tilting flat as you scroll ——— */

.showcase {
  background: var(--paper);
  border-bottom: 1px dashed var(--line);
  padding: clamp(80px, 10vh, 120px) 0 clamp(60px, 8vh, 110px);
  overflow: hidden;
}
.showcase-head {
  text-align: center;
  width: var(--w); margin: 0 auto;
  will-change: transform;
}
.showcase-pair { justify-content: center; gap: 16px 48px; }
.showcase-pair h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.025em; }

.showcase-persp {
  perspective: 1100px;
  width: min(1020px, calc(100vw - 32px));
  margin: clamp(28px, 5vh, 56px) auto 0;
}
.showcase-card {
  transform: rotateX(20deg) scale(1.05);
  will-change: transform;
  background: #10201a;
  border: 1px solid rgba(22, 22, 22, 0.5);
  border-radius: 24px;
  padding: clamp(8px, 1.4vw, 16px);
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.29),
    0 37px 37px rgba(0, 0, 0, 0.26),
    0 84px 50px rgba(0, 0, 0, 0.15),
    0 149px 60px rgba(0, 0, 0, 0.04);
}
.showcase-inner {
  border-radius: 12px; overflow: hidden;
  background: #f7f8fa;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.showcase-inner img { display: block; width: 100%; height: auto; }

/* mobile: the dashboard is a readability proof-shot — rest flat and full-size
   so there's no size "pop" before script.js takes over (matches isMobile() <= 768) */
@media (max-width: 768px) {
  .showcase-card { transform: rotateX(0deg) scale(1); }
}

/* ——— floors ——— */

.floor { position: relative; background: var(--paper); border-bottom: 1px dashed var(--line); }
.floor:nth-of-type(even) { background: var(--card); }

.floor-grid {
  width: var(--w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(330px, 420px) 1fr;
  grid-template-areas: "en mock ar";
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  padding: clamp(84px, 11vh, 128px) 0;
}
.floor-en { grid-area: en; }
.floor-ar { grid-area: ar; }
.floor-mock { grid-area: mock; }

.floor h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  margin: 16px 0 14px;
  letter-spacing: -0.025em;
}
.floor p { color: var(--ink-dim); font-size: 16px; }
.floor-ar p { font-size: 15.5px; }

/* ——— app-window demos (styled from the real app: web/src/index.css tokens) ——— */

.appwin {
  --app-text: #0f172a;
  --app-muted: #667085;
  --app-border: rgba(16, 24, 40, 0.08);
  --app-mint: #eaf7f0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(34, 50, 83, 0.09), 0 30px 60px rgba(22, 22, 22, 0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px;
  color: var(--app-text);
  max-width: 460px;
  margin: 0 auto;
}
.appwin::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 212, 146, 0.26), transparent 70%);
  pointer-events: none;
}

.appwin-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--app-border);
  background: #fbfcfd;
}
.appwin-ic { width: 16px; height: auto; flex: none; }
.appwin-title { font-weight: 600; font-size: 13px; white-space: nowrap; }
.appwin-title [lang="ar"] { font-size: 12.5px; }
.appwin-crumb { margin-left: auto; color: var(--app-muted); font-size: 12px; white-space: nowrap; }
.appwin-crumb b { color: var(--app-text); font-weight: 600; }

.appwin-body { position: relative; padding: 12px 14px 10px; }

.demo-form { display: flex; gap: 8px; margin-bottom: 12px; align-items: stretch; }
.fld {
  position: relative;
  border: 1px solid rgba(16, 24, 40, 0.13);
  border-radius: 10px;
  padding: 16px 10px 6px;
  min-height: 40px;
  font-size: 13px;
  background: #fff;
  white-space: nowrap; overflow: hidden;
}
.fld.grow { flex: 1; min-width: 0; }
.fld.amt { width: 84px; flex: none; }
.fld::before {
  content: attr(data-label);
  position: absolute; top: 3px; left: 10px;
  font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--app-muted);
}
.fld.static { padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; color: var(--app-text); }
.fld.static::before { display: none; }
.fld.typing::after {
  content: ""; display: inline-block;
  width: 1.5px; height: 13px; margin-left: 2px; vertical-align: -2px;
  background: var(--app-text);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.app-btn {
  border: none; border-radius: 10px;
  background: var(--brand); color: #093a2a;
  font-weight: 700; font-size: 12.5px;
  padding: 0 14px; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.app-btn.pressed { transform: scale(0.94); background: #0fb17e; }

.seg {
  display: inline-flex; align-items: stretch; flex: none;
  border: 1px solid rgba(16, 24, 40, 0.13); border-radius: 10px; overflow: hidden;
}
.seg i {
  font-style: normal; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 0 10px; display: flex; align-items: center;
  color: var(--app-muted); background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.seg i.on { background: #0f172a; color: #fff; }

.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th {
  text-align: left; font-weight: 600;
  color: var(--app-muted); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 6px 8px; border-bottom: 1px solid var(--app-border);
}
.app-table td { padding: 8.5px 8px; border-top: 1px solid rgba(16, 24, 40, 0.06); }
.app-table tbody tr:first-child td { border-top: none; }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }
.tmono { font-family: var(--font-mono); font-size: 12.5px; }
.pos { color: #0fb17e; }
.neg { color: #dc2626; }

.app-table tr.hid { display: none; }
.rowin { animation: rowin 0.55s ease both; }
@keyframes rowin {
  from { opacity: 0; background: var(--app-mint); }
  to { opacity: 1; background: transparent; }
}

.apill {
  font-style: normal; display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 8px; margin-left: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
}
.apill.green { background: var(--app-mint); color: #0f9d6d; border: 1px solid rgba(0, 212, 146, 0.35); }
.apill.amber { background: #fdf2d7; color: #a16207; border: 1px solid rgba(161, 98, 7, 0.22); }
.apill.blue { background: #e3edfd; color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.22); }
.apill.red { background: #fde4e1; color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.22); }
.apill.gray { background: #f1f5f9; color: #64748b; border: 1px solid rgba(100, 116, 139, 0.22); }
.apill.flip { animation: pillflip 0.4s ease; }
@keyframes pillflip {
  from { transform: scale(0.6); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}

.app-foot {
  border-top: 1px solid var(--app-border);
  margin-top: 10px; padding-top: 9px; min-height: 27px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--app-muted); letter-spacing: 0.04em;
}
.app-foot [lang="ar"] { font-size: 11.5px; letter-spacing: 0; }

.invite-out {
  border: 1.5px dashed rgba(16, 24, 40, 0.2);
  border-radius: 12px;
  text-align: center; padding: 18px 10px 12px; margin-bottom: 10px;
}
.invite-code {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: 0.14em; min-height: 1.35em; color: var(--app-text);
}
.invite-hint { font-family: var(--font-mono); font-size: 11px; color: var(--app-muted); margin-top: 4px; }

.app-toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--app-mint); border: 1px solid rgba(0, 212, 146, 0.4);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 10px;
  font-size: 12.5px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-toast.show { opacity: 1; transform: none; }
.toast-check {
  font-style: normal; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}

.demo-cursor {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 20px; height: 20px;
  opacity: 0; pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.3s ease;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"%3E%3Cpath d="M4 1 L4 16 L8 12.6 L10.6 18.4 L13.2 17.2 L10.6 11.6 L15.6 11.2 Z" fill="%230f172a" stroke="white" stroke-width="1.4"/%3E%3C/svg%3E') no-repeat center / contain;
}
.demo-cursor.on { opacity: 1; }
.demo-cursor::before {
  content: ""; position: absolute; inset: -7px;
  border: 2px solid rgba(0, 212, 146, 0.65); border-radius: 50%;
  opacity: 0; transform: scale(0.4);
}
.demo-cursor.click::before { animation: ping 0.35s ease-out; }
@keyframes ping {
  from { opacity: 1; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.15); }
}

.dim-txt { color: var(--ink-dim); font-size: 12px; }

/* ——— mezzanine / steps ——— */

.movein { background: var(--wash); border-bottom: 1px dashed var(--line); }
.movein-inner { width: var(--w); margin: 0 auto; padding: clamp(84px, 11vh, 128px) 0; }

.h2-pair {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; flex-wrap: wrap;
  margin: 16px 0 44px;
}
.h2-pair h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.025em; }

.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.steps li {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 6px 6px 0 rgba(0, 212, 146, 0.25);
}
.step-no { color: var(--brand-text); font-size: 12.5px; letter-spacing: 0.18em; }
.steps h3 { font-size: 20px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.steps p { color: var(--ink-dim); font-size: 15px; }
.step-ar { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 14px; }
.step-ar h3 { font-size: 18px; margin: 0 0 8px; }

/* ——— lobby ——— */

.lobby { position: relative; overflow: hidden; background: var(--paper); text-align: center; }
.lobby-light {
  position: absolute; inset: auto 0 0 0; height: 75%;
  background: radial-gradient(58% 100% at 50% 100%, rgba(0, 212, 146, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.lobby-inner { position: relative; width: var(--w); margin: 0 auto; padding: clamp(100px, 15vh, 170px) 0 clamp(84px, 12vh, 140px); }
.lobby-pair { justify-content: center; gap: 20px 48px; margin-bottom: 26px; }
.lobby-pair h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
.lobby .sub { margin: 0 auto 6px; }
.lobby .micro { margin-top: 24px; }

.quiet-link { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s ease, border-color .2s ease; }
.quiet-link:hover { color: var(--brand-text); border-color: var(--brand); }

/* ——— basement (dark on purpose — it's underground) ——— */

.basement {
  background: var(--ink);
  color: rgba(246, 247, 244, 0.85);
  padding: 34px 24px 42px;
  text-align: center;
  font-size: 12.5px;
  display: grid; gap: 8px;
}
.basement .dim-txt { color: rgba(246, 247, 244, 0.5); }
.basement [lang="ar"] { color: var(--brand); }
.basement .quiet-link { color: rgba(246, 247, 244, 0.7); border-color: rgba(246, 247, 244, 0.25); }
.basement .quiet-link:hover { color: var(--brand); border-color: var(--brand); }
.basement-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }

/* ——— elevator rail ——— */

.rail {
  position: fixed; right: 26px; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 10px 0;
}
.rail-line { position: absolute; top: 12px; bottom: 12px; width: 1.5px; background: var(--line); z-index: -1; }
.rail-stop {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid transparent;
  background: var(--paper); color: var(--ink-dim);
  font-size: 11px; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.rail-stop:hover { color: var(--ink); border-color: var(--line); }
.rail-stop.active { color: var(--ink); font-weight: 700; }
.rail-cab {
  position: absolute; top: 10px; left: 50%;
  width: 26px; height: 26px; margin-left: -13px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 212, 146, 0.25);
  transition: transform 0.55s cubic-bezier(0.3, 0.9, 0.3, 1);
  z-index: -1;
}

/* ——— reveals ——— */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.in { opacity: 1; transform: none; }

/* ——— responsive ——— */

@media (max-width: 1100px) {
  .rail { display: none; }
}

/* tablet: EN over AR on the left, mock on the right; hero stacks around a smaller building */
@media (max-width: 1180px) {
  .hero-tri {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
    align-items: start;
  }
  .hero-art { grid-column: 1 / -1; order: 3; height: 300px; margin-top: 8px; }
  .hero-copy { padding-bottom: 0; }
  .floor-grid {
    grid-template-columns: 1fr minmax(320px, 400px);
    grid-template-areas: "en mock" "ar mock";
    align-items: center;
    gap: 28px clamp(28px, 4vw, 56px);
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* tighten hero vertical rhythm so a CTA sits closer to the 375px fold */
  .hero { padding: 90px 0 40px; }
  .hero-tri { grid-template-columns: 1fr; margin-top: 14px; gap: 18px; }
  .hero-en { text-align: left; }
  .hero-ar { text-align: right; }
  .hero h1 { margin-bottom: 12px; }
  .hero .sub { font-size: 15.5px; }
  .hero-art { height: 160px; margin-top: 0; }
  .free-flag { margin-top: 18px; }
  .sun { margin-left: -140px; top: 84px; width: 70px; height: 70px; }
  .cta-row { justify-content: center; }
  .floor-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "en" "ar" "mock";
    gap: 26px;
  }
  .steps { grid-template-columns: 1fr; }
  .h2-pair { flex-direction: column; align-items: flex-start; gap: 10px; }
  .h2-pair h2[lang="ar"] { align-self: flex-end; }
  .lobby-pair { align-items: center; }
  .lobby-pair h2[lang="ar"] { align-self: center; }
  .brand-logo { height: 28px; }
}

@media (max-width: 480px) {
  .btn { padding: 13px 18px; font-size: 14px; gap: 8px; }
  .btn-lg { padding: 15px 22px; font-size: 15px; }
  .invite .invite-code { letter-spacing: 0.08em; }
  .brand { gap: 9px; }
  .brand-logo { height: 24px; }
}

/* ——— reduced motion ——— */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-eyebrow, .hero .sub, .hero .cta-row, .hero .micro, .h1-word { animation: none; }
  .ticker-track { animation: none; }
  .win, .bgrid.on .win.lit { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail-cab { transition: none; }
  .btn, .app-toast, .seg i, .app-btn { transition: none; }
  .demo-cursor { display: none; }
  .rowin, .apill.flip { animation: none; }
}
