/* Marketing home — TapRabt */

/* ---------- skip-link ---------- */
.skip-link {
  position: absolute;
  top: -100px; left: 8px;
  z-index: 200;
  background: var(--brand-primary);
  color: var(--text-inverse);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
  color: var(--text-inverse);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 20px; color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand-glyph {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: inline-grid; place-items: center;
  font-weight: 700; font-size: 14px;
  font-family: var(--font-latin);
}
.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--text-primary); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* desktop-only nav buttons hide on mobile */
.desktop-only { display: none; }
@media (min-width: 768px) {
  .desktop-only { display: inline-flex; }
}

/* hamburger */
.nav-burger {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.18s, opacity 0.18s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
@media (min-width: 768px) {
  .nav-burger { display: none; }
}

/* mobile drawer */
.nav-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  padding: 12px 8px;
  font-size: 16px; font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-drawer a:hover { color: var(--brand-primary); }
.nav-drawer .drawer-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.btn-block { width: 100%; }
@media (min-width: 768px) {
  .nav-drawer { display: none !important; }
}

/* lang toggle */
.lang-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  padding: 3px;
  font-size: 13px;
  font-weight: 500;
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent;
  padding: 5px 12px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-md);
  font-size: 16px; font-weight: 600;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--brand-primary); color: var(--text-inverse); }
.btn-primary:hover { background: var(--brand-primary-dark); color: var(--text-inverse); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: var(--surface); color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-secondary:hover { background: var(--brand-primary-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text-primary); }

/* ---------- hero ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: 80px 24px; }
.section-narrow { max-width: 1080px; margin: 0 auto; padding: 80px 24px; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
  text-wrap: balance;
}
[lang="ar"] .hero h1 { line-height: 1.2; letter-spacing: 0; }
.hero h1 .accent { color: var(--brand-primary); }
.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 40px;
  display: flex; flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
.meta-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--brand-primary);
  margin-inline-end: 8px;
  display: inline-block;
}

/* hero card mock */
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 420px;
  margin: 0 auto;
}
/* simplify on small screens — drop the phone mock, centre the card */
@media (max-width: 600px) {
  .hero-stage { aspect-ratio: 1.586/1; max-width: 360px; }
  .hero-stage .profile-frame { display: none; }
  .hero-stage .nfc-card {
    position: static; width: 100%;
    transform: rotate(0deg);
  }
  [dir="rtl"] .hero-stage .nfc-card { transform: rotate(0deg); }
}

/* ============================================================
   3D ANIMATED HERO — phone scans QR → profile reveal.
   Loop: viewfinder → laser scan → lock → profile fly-in → hold → reset.
   Respects prefers-reduced-motion.
   ============================================================ */
.hero-stage-3d {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  --rx: 0deg;
  --ry: 0deg;
}
.scene-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(-4deg + var(--rx))) rotateY(calc(-10deg + var(--ry)));
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}

/* ---------- PHONE ---------- */
.phone-3d {
  position: absolute;
  top: 50%; left: 50%;
  width: 220px; height: 440px;
  margin: -220px 0 0 -110px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2A2A2A 0%, #111 100%);
  box-shadow:
    0 32px 64px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  padding: 8px;
  transform-style: preserve-3d;
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  width: 64px; height: 6px;
  background: #000;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 4;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

/* ---------- CAMERA VIEW state ---------- */
.cam-view {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(31,122,77,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(201,162,39,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0d1b13 0%, #050a07 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  animation: cam-cycle 14s ease-in-out infinite;
}
@keyframes cam-cycle {
  0%, 44%    { opacity: 1; }
  52%        { opacity: 0; }
  92%, 100%  { opacity: 1; }
}
/* viewfinder corner brackets */
.cam-aim {
  position: relative;
  width: 150px; height: 150px;
}
.cam-aim .cnr {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,0.75);
  animation: aim-lock 14s ease-in-out infinite;
}
.cam-aim .cnr.tl { top: 0;    left: 0;  border-right: 0; border-bottom: 0; }
.cam-aim .cnr.tr { top: 0;    right: 0; border-left: 0;  border-bottom: 0; }
.cam-aim .cnr.bl { bottom: 0; left: 0;  border-right: 0; border-top: 0;    }
.cam-aim .cnr.br { bottom: 0; right: 0; border-left: 0;  border-top: 0;    }
@keyframes aim-lock {
  0%, 32%    { border-color: rgba(255,255,255,0.75); transform: scale(1); }
  40%        { border-color: var(--accent-gold);     transform: scale(1.08); }
  46%        { border-color: var(--accent-gold);     transform: scale(1); }
  100%       { border-color: rgba(255,255,255,0.75); transform: scale(1); }
}
/* horizontal laser inside the viewfinder */
.cam-aim .cam-laser {
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  box-shadow: 0 0 12px var(--brand-primary);
  top: 0; opacity: 0;
  animation: cam-laser 14s ease-in-out infinite;
}
@keyframes cam-laser {
  0%, 8%   { opacity: 0; top: 4px; }
  12%      { opacity: 0.95; top: 4px; }
  30%      { opacity: 0.95; top: calc(100% - 6px); }
  34%      { opacity: 0; }
  100%     { opacity: 0; top: 4px; }
}
.cam-label {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: cam-label-pulse 1.4s ease-in-out infinite;
}
@keyframes cam-label-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

/* ---------- PROFILE VIEW state ---------- */
.profile-view {
  position: absolute; inset: 0;
  background: var(--surface);
  opacity: 0;
  display: flex;
  flex-direction: column;
  animation: prof-cycle 14s ease-in-out infinite;
}
@keyframes prof-cycle {
  0%, 50%    { opacity: 0; transform: translateY(40px) scale(0.96); }
  58%        { opacity: 1; transform: translateY(0)    scale(1); }
  86%        { opacity: 1; transform: translateY(0)    scale(1); }
  92%        { opacity: 0; transform: translateY(20px) scale(0.98); }
  100%       { opacity: 0; }
}
.pv-banner {
  height: 100px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,162,39,0.55), transparent 60%),
    linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}
.pv-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--brand-primary));
  border: 3px solid var(--surface);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 24px;
  margin: -30px 18px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  position: relative; z-index: 1;
}
.pv-info { padding: 8px 18px 0; }
.pv-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pv-role {
  font-size: 9px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}
.pv-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  border: 1px solid var(--brand-primary);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 600;
  margin-top: 8px;
}
.pv-badge .leaf {
  width: 8px; height: 8px;
  background: var(--brand-primary);
  border-radius: 1px 4px 1px 4px;
  transform: rotate(45deg);
}
.pv-rows {
  padding: 14px 18px 0;
  display: flex; flex-direction: column; gap: 7px;
}
.pv-row {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface-alt);
  border-radius: 4px;
  padding: 5px 7px;
}
.pv-ico {
  width: 13px; height: 13px;
  background: var(--brand-primary);
  border-radius: 2px;
  flex: none;
}
.pv-line {
  flex: 1; height: 5px;
  background: var(--border-subtle);
  border-radius: 2px;
}
.pv-line.short { width: 60%; flex: none; }
.pv-cta {
  margin: auto 18px 18px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(31,122,77,0.35);
}

/* ---------- QR TARGET (floats in front of phone) ---------- */
.qr-target {
  position: absolute;
  top: 50%; left: 50%;
  width: 130px; height: 130px;
  margin: -65px 0 0 -65px;
  transform-style: preserve-3d;
  animation: qr-cycle 14s cubic-bezier(.4,0,.4,1) infinite;
  z-index: 5;
}
@keyframes qr-cycle {
  0%        { opacity: 0; transform: translateZ(60px)  translateX(80px) translateY(20px) rotateY(-20deg) scale(0.5); }
  10%       { opacity: 1; transform: translateZ(160px) translateX(60px) translateY(0)    rotateY(-12deg) scale(1); }
  44%       { opacity: 1; transform: translateZ(160px) translateX(60px) translateY(0)    rotateY(-12deg) scale(1); }
  50%       { opacity: 0.6; transform: translateZ(40px) translateX(0)   translateY(0)    rotateY(0deg)   scale(0.4); }
  54%       { opacity: 0; transform: translateZ(20px)  translateX(0)    translateY(0)    rotateY(0deg)   scale(0.2); }
  92%, 100% { opacity: 0; transform: translateZ(60px)  translateX(80px) translateY(20px) rotateY(-20deg) scale(0.5); }
}
.qr-svg {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 20px 40px -12px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.4) inset;
  display: block;
}
/* scan line that sweeps the QR itself */
.qr-scan-line {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  box-shadow: 0 0 14px var(--accent-gold), 0 0 4px rgba(201,162,39,0.8);
  top: 8px; opacity: 0;
  animation: qr-scan 14s ease-in-out infinite;
}
@keyframes qr-scan {
  0%, 12%   { opacity: 0; top: 8px; }
  16%       { opacity: 1; top: 8px; }
  38%       { opacity: 1; top: calc(100% - 10px); }
  42%       { opacity: 0; top: calc(100% - 10px); }
  100%      { opacity: 0; top: 8px; }
}
/* gold lock ring flash when scan completes */
.qr-lock-ring {
  position: absolute;
  inset: -8px;
  border: 3px solid var(--accent-gold);
  border-radius: 18px;
  opacity: 0;
  animation: qr-lock 14s ease-out infinite;
  pointer-events: none;
}
@keyframes qr-lock {
  0%, 42%   { opacity: 0; transform: scale(1); }
  44%       { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.18); }
  100%      { opacity: 0; transform: scale(1); }
}

/* ---------- FLOOR ---------- */
.scene-shadow {
  position: absolute;
  bottom: 6%; left: 50%;
  width: 340px; height: 36px;
  margin-left: -170px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.34) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  animation: scene-shadow-pulse 6s ease-in-out infinite;
}
@keyframes scene-shadow-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%      { transform: scale(0.85); opacity: 0.4; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero-stage-3d { max-width: 380px; }
  .phone-3d { width: 184px; height: 368px; margin: -184px 0 0 -92px; border-radius: 28px; }
  .phone-screen { border-radius: 22px; }
  .cam-aim { width: 120px; height: 120px; }
  .qr-target { width: 108px; height: 108px; margin: -54px 0 0 -54px; }
  .scene-shadow { width: 260px; margin-left: -130px; }
}

/* ---------- a11y: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .phone-3d, .cam-view, .profile-view, .qr-target,
  .qr-scan-line, .qr-lock-ring, .cam-aim .cnr,
  .cam-aim .cam-laser, .cam-label, .scene-shadow {
    animation: none !important;
  }
  .cam-view    { opacity: 0; }
  .profile-view{ opacity: 1; transform: none; }
  .qr-target   { opacity: 0; }
}
.hero-stage-3d {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  --rx: 0deg;
  --ry: 0deg;
}

.scene-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(-6deg + var(--rx))) rotateY(calc(-12deg + var(--ry)));
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1);
}

/* ---------------- PHONE ---------------- */
.phone-3d {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px;
  height: 400px;
  margin: -200px 0 0 -100px;
  border-radius: 32px;
  background: linear-gradient(160deg, #2A2A2A 0%, #111 100%);
  box-shadow:
    0 28px 60px -20px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 -2px 0 0 rgba(255,255,255,0.06) inset;
  padding: 8px;
  transform: translateZ(-30px) rotateY(8deg) rotateX(0deg);
  transform-style: preserve-3d;
  animation: phone-float 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes phone-float {
  0%, 100% { transform: translateZ(-30px) translateY(0)      rotateY(8deg); }
  50%      { transform: translateZ(-30px) translateY(-10px) rotateY(8deg); }
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  width: 56px; height: 6px;
  background: #000;
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--surface);
  border-radius: 26px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
}
.ps-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 68px;
  background:
    radial-gradient(circle at 80% 0%, rgba(201,162,39,0.55), transparent 55%),
    linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
}
.ps-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-gold-light);
  border: 3px solid var(--surface);
  color: var(--brand-primary-dark);
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
  margin-top: 38px;
  position: relative; z-index: 1;
}
.ps-name {
  font-size: 13px; font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}
.ps-role {
  font-size: 9px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ps-row {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-alt);
  border-radius: 4px;
  padding: 5px 6px;
}
.ps-ico {
  width: 12px; height: 12px;
  background: var(--brand-primary);
  border-radius: 2px;
  flex: none;
}
.ps-line {
  flex: 1;
  height: 5px;
  background: var(--border-subtle);
  border-radius: 2px;
}
.ps-line.short { width: 60%; flex: none; }
.ps-cta {
  margin-top: auto;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}

/* ---------------- CARD ---------------- */
.card-3d-wrap {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 150px;
  margin: -75px 0 0 -120px;
  transform-style: preserve-3d;
  /* drift-and-tap: card approaches the phone corner, holds, retreats */
  animation: card-tap 6.4s cubic-bezier(.55,.05,.45,.95) infinite;
  z-index: 3;
}
@keyframes card-tap {
  0%       { transform: translate3d(80px, 100px, 80px)  rotateX(18deg) rotateY(-22deg); }
  35%      { transform: translate3d(40px, 18px,  140px) rotateX(8deg)  rotateY(-14deg); }
  50%, 60% { transform: translate3d(30px, 6px,   170px) rotateX(2deg)  rotateY(-8deg); }
  85%      { transform: translate3d(80px, 100px, 80px)  rotateX(18deg) rotateY(-22deg); }
  100%     { transform: translate3d(80px, 100px, 80px)  rotateX(18deg) rotateY(-22deg); }
}

.card-3d {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
}
.card-3d-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 18px 20px;
  backface-visibility: hidden;
  box-shadow:
    0 20px 40px -14px rgba(22, 89, 58, 0.55),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.card-3d-front {
  background:
    radial-gradient(circle at 80% 0%, rgba(201,162,39,0.28), transparent 55%),
    linear-gradient(135deg, #1F7A4D 0%, #16593A 100%);
  color: var(--text-inverse);
}
.card-3d-front .card-name {
  font-family: var(--font-latin);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
}
.card-3d-front .card-name-ar {
  font-family: var(--font-arabic);
  font-size: 13px; font-weight: 500;
  opacity: .85; margin-top: 1px;
}
.card-3d-front .card-role {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 6px;
}
.card-3d-front .card-foot {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px;
}
.card-3d-front .card-brand {
  font-family: var(--font-latin);
  font-size: 12px; font-weight: 700;
}
.card-nfc-glyph {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background:
    radial-gradient(circle at 50% 50%,
      transparent 0 3px,
      rgba(255,255,255,0.6) 3px 4.5px,
      transparent 4.5px 7px,
      rgba(255,255,255,0.5) 7px 8.5px,
      transparent 8.5px);
}

/* Holographic sheen sweep */
.card-sheen {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.0) 42%,
    rgba(255,255,255,0.20) 50%,
    rgba(255,255,255,0.0) 58%,
    transparent 70%
  );
  animation: sheen 4.4s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes sheen {
  0%, 100% { transform: translateX(-40%) translateY(-40%); }
  50%      { transform: translateX(40%)  translateY(40%); }
}

/* ---------------- NFC TAP WAVES ---------------- */
.tap-waves {
  position: absolute;
  /* anchor near the phone's top edge where card touches */
  top: 50%; left: 50%;
  margin-top: -180px;
  margin-left: -10px;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 2;
}
.tap-waves span {
  position: absolute;
  top: -50%; left: -50%;
  width: 100%; height: 100%;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  opacity: 0;
  animation: tap-pulse 6.4s ease-out infinite;
}
.tap-waves span:nth-child(1) {
  width: 100px; height: 100px;
  top: -50px; left: -50px;
  animation-delay: 2.6s;
}
.tap-waves span:nth-child(2) {
  width: 160px; height: 160px;
  top: -80px; left: -80px;
  animation-delay: 2.9s;
}
.tap-waves span:nth-child(3) {
  width: 220px; height: 220px;
  top: -110px; left: -110px;
  animation-delay: 3.2s;
}
/* Pulse only during the "tap held" window (≈40%-60% of the 6.4s cycle) */
@keyframes tap-pulse {
  0%, 38%   { opacity: 0; transform: scale(0.5); }
  44%       { opacity: 0.9; }
  62%       { opacity: 0; transform: scale(1.4); }
  100%      { opacity: 0; transform: scale(1.4); }
}

/* ---------------- FLOOR ---------------- */
.scene-shadow {
  position: absolute;
  bottom: 8%; left: 50%;
  width: 320px; height: 36px;
  margin-left: -160px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.32) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
  animation: scene-shadow-pulse 7s ease-in-out infinite;
}
@keyframes scene-shadow-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%      { transform: scale(0.82); opacity: 0.4; }
}

/* Responsive */
@media (max-width: 600px) {
  .hero-stage-3d { max-width: 380px; }
  .phone-3d { width: 168px; height: 336px; margin: -168px 0 0 -84px; border-radius: 26px; }
  .phone-screen { border-radius: 20px; padding: 20px 14px 14px; }
  .card-3d-wrap { width: 200px; height: 124px; margin: -62px 0 0 -100px; }
  .tap-waves { margin-top: -150px; }
  .scene-shadow { width: 240px; margin-left: -120px; }
}

/* a11y: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scene-3d, .phone-3d, .card-3d-wrap, .card-sheen,
  .tap-waves span, .scene-shadow { animation: none !important; }
  .card-3d-wrap { transform: translate3d(40px, 18px, 140px) rotateX(8deg) rotateY(-14deg); }
  .tap-waves span { opacity: 0.5; }
}
.nfc-card {
  position: absolute;
  inset-inline-start: 0;
  top: 8%;
  width: 88%;
  aspect-ratio: 1.586/1;     /* ID-1 */
  background: linear-gradient(135deg, #1F7A4D 0%, #16593A 100%);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  color: var(--text-inverse);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-4deg);
}
[dir="rtl"] .nfc-card { transform: rotate(4deg); }
.nfc-card::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  bottom: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 4px, rgba(255,255,255,0.55) 4px 5.5px, transparent 5.5px 9px, rgba(255,255,255,0.45) 9px 10.5px, transparent 10.5px);
}
.nfc-card .card-name {
  font-family: var(--font-latin);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
}
.nfc-card .card-name-ar {
  font-family: var(--font-arabic);
  font-size: 16px; font-weight: 500;
  opacity: .85;
  margin-top: 2px;
}
.nfc-card .card-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 8px;
}
.nfc-card .card-foot {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px;
}
.nfc-card .card-brand {
  font-family: var(--font-latin);
  font-size: 14px; font-weight: 700;
}

.profile-frame {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 60%;
  aspect-ratio: 9/19.5;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 8px solid #111;
  overflow: hidden;
  transform: rotate(3deg);
}
[dir="rtl"] .profile-frame { transform: rotate(-3deg); }
.profile-screen { height: 100%; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.profile-banner {
  height: 56px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: var(--r-lg);
  margin: -8px -8px 0;
}
.profile-avatar {
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  background: var(--accent-gold-light);
  border: 3px solid var(--surface);
  margin-top: -32px;
  display: grid; place-items: center;
  font-weight: 700; color: var(--accent-gold);
  font-family: var(--font-latin);
}
.profile-name { font-size: 14px; font-weight: 700; }
.profile-role { font-size: 11px; color: var(--text-secondary); }
.sus-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  font-size: 9px; font-weight: 500;
  align-self: flex-start;
}
.sus-badge .leaf {
  width: 8px; height: 8px;
  background: var(--brand-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C20 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C20 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5s1.75 3.75 1.75 3.75C7 8 17 8 17 8z'/></svg>") center/contain no-repeat;
}
.profile-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: var(--surface-alt);
  border-radius: var(--r-md);
  font-size: 11px;
}
.profile-row .ico {
  width: 14px; height: 14px;
  background: var(--brand-primary);
  border-radius: 3px;
  flex-shrink: 0;
}
.profile-cta {
  margin-top: auto;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--brand-primary);
  color: var(--text-inverse);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.poweredby {
  font-size: 8px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 4px;
}

/* ---------- name explainer ---------- */
.name-band {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.name-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) { .name-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.name-display {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-latin);
}
.name-display .tap { color: var(--text-primary); }
.name-display .rabt { color: var(--brand-primary); }
.name-display .ar {
  font-family: var(--font-arabic);
  color: var(--brand-primary);
  font-size: 0.9em;
  font-weight: 700;
}
.name-explainer h3 {
  font-size: 24px; font-weight: 700; margin: 0 0 12px;
}
.name-explainer p {
  color: var(--text-secondary);
  margin: 0 0 16px;
  font-size: 16px;
}
.name-pron {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- how it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.step-vis {
  height: 88px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.step h4 {
  font-size: 20px; font-weight: 600; margin: 0 0 8px;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* svg vis */
.qr-vis {
  width: 72px; height: 72px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  background: var(--surface);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.qr-vis i { background: var(--text-primary); border-radius: 1px; }
.qr-vis i.off { background: transparent; }
.nfc-vis {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  display: grid; place-items: center;
  color: var(--text-inverse);
}
.nfc-wave {
  width: 36px; height: 36px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: 0.85;
}
.nfc-wave::before, .nfc-wave::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.nfc-wave::after { inset: -16px; opacity: 0.3; }

.profile-vis {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  background: var(--brand-primary-light);
  border: 1px solid var(--brand-primary);
  padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.profile-vis .av {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-primary);
}
.profile-vis .ln {
  height: 5px; border-radius: 3px;
  background: var(--brand-primary);
  opacity: 0.4;
}
.profile-vis .ln.short { width: 60%; }

/* ---------- personas ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 640px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .persona-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .persona-grid { grid-template-columns: repeat(5, 1fr); } }

.persona {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.persona:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.persona-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  font-weight: 600;
}
.persona h5 {
  font-size: 16px; font-weight: 600; margin: 0;
}
.persona p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}
.persona-tier {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}
.persona-tier .pill {
  display: inline-block;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  border-radius: var(--r-full);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  margin-inline-start: 4px;
}

/* ---------- sustainability ---------- */
.sus-band {
  background: var(--brand-primary);
  color: var(--text-inverse);
  border-radius: var(--r-2xl);
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.sus-band::before {
  content: "";
  position: absolute;
  inset-inline-end: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
  pointer-events: none;
}
.sus-band .sus-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 16px;
}
[lang="ar"] .sus-band .sus-eyebrow { letter-spacing: 0; text-transform: none; }
.sus-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 720px;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.sus-band p {
  max-width: 640px;
  font-size: 17px;
  opacity: 0.88;
  margin: 0;
  text-wrap: pretty;
}
.sus-stats {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-top: 40px;
  position: relative;
}
@media (min-width: 640px) { .sus-stats { grid-template-columns: repeat(3, 1fr); } }
.sus-stats > div {
  border-inline-start: 2px solid rgba(255,255,255,0.18);
  padding-inline-start: 16px;
}
.sus-stats > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
@media (max-width: 639px) {
  .sus-stats > div { border-inline-start: 0; padding-inline-start: 0;
    border-top: 1px solid rgba(255,255,255,0.18); padding-top: 16px;
  }
  .sus-stats > div:first-child { border-top: 0; padding-top: 0; }
}
.sus-cite {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.55;
  max-width: 56ch;
  position: relative;
}
.sus-stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  font-family: var(--font-latin);
  letter-spacing: -0.02em;
}
.sus-stat-label {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

/* ---------- tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 768px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }

.tier {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.tier.featured { padding-top: 36px; }
.tier-tag {
  position: absolute;
  top: 12px;
  inset-inline-end: 16px;
  background: var(--accent-gold);
  color: var(--brand-primary-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.tier a.btn { width: 100%; }
.tier h4 {
  font-size: 20px; font-weight: 600; margin: 0 0 4px;
}
.tier-audience { font-size: 13px; color: var(--text-tertiary); margin: 0 0 20px; }
.tier-price {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  margin-bottom: 20px;
}
.tier ul {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}
.tier li {
  display: flex; gap: 8px; align-items: flex-start;
}
.tier li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--brand-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ---------- footer ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

footer.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer h6 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 16px;
}
[lang="ar"] .footer h6 { text-transform: none; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text-secondary); font-size: 14px; }
.footer ul a:hover { color: var(--brand-primary); }
.footer-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-bar {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
}
.poweredby-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
}
.poweredby-link:hover { color: var(--brand-primary); }
.poweredby-glyph {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--brand-primary);
  display: inline-grid; place-items: center;
  color: var(--text-inverse);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-latin);
}
