/* Rexro public site — landing, share pages, docs. Dark brand theme, RTL-first. */

:root {
  --bg: #050607;
  --bg-soft: #0a0c0f;
  --surface: #0f1216;
  --surface-2: #151920;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7f8;
  --muted: #9aa5af;
  --faint: #66717b;

  --brand: #59e3e6;
  --brand-rgb: 89, 227, 230;
  --mint: #00dfab;
  --mint-rgb: 0, 223, 171;
  --gold: #ffdb5c;
  --gold-rgb: 255, 219, 92;
  --hot: #ff4d6a;
  --hot-rgb: 255, 77, 106;
  --blue: #5b9dff;
  --blue-rgb: 91, 157, 255;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "El Messiri", "Tajawal", system-ui, sans-serif;
  --font-brand: "Unbounded", "Outfit", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: 0;
  --display-leading: 1.25;
}

html[lang="en"] {
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Outfit", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --display-leading: 1.12;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
}

p {
  margin: 0;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Buttons & small parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #031314;
  box-shadow: 0 10px 30px rgba(var(--brand-rgb), 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(var(--brand-rgb), 0.35);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--brand-rgb), 0.25);
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.eyebrow .icon {
  width: 16px;
  height: 16px;
}

.eyebrow.tone-hot {
  border-color: rgba(var(--hot-rgb), 0.3);
  background: rgba(var(--hot-rgb), 0.08);
  color: var(--hot);
}

.eyebrow.tone-mint {
  border-color: rgba(var(--mint-rgb), 0.3);
  background: rgba(var(--mint-rgb), 0.08);
  color: var(--mint);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(3); opacity: 0; }
}

.grad {
  background: linear-gradient(100deg, var(--brand), var(--mint) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[dir="rtl"] .grad {
  background-image: linear-gradient(-100deg, var(--brand), var(--mint) 60%, var(--gold));
}

/* Avatars with initials, used in mockups and share pages */
.av {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #061012;
  font-family: var(--font-brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.av-a { background: linear-gradient(135deg, #59e3e6, #00dfab); }
.av-b { background: linear-gradient(135deg, #ff8a9b, #ff4d6a); }
.av-c { background: linear-gradient(135deg, #ffe58a, #ffb547); }
.av-d { background: linear-gradient(135deg, #a8c6ff, #5b9dff); }
.av-e { background: linear-gradient(135deg, #c9a8ff, #8b5cf6); }
.av-f { background: linear-gradient(135deg, #8af5d3, #12b76a); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  background: rgba(5, 6, 7, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  width: 34px;
  height: auto;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  direction: ltr;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav .nav-download {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease;
}

.lang-switch:hover {
  border-color: rgba(var(--brand-rgb), 0.5);
}

.lang-switch .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.lang-switch[lang="ar"] {
  font-family: "Tajawal", system-ui, sans-serif;
}

.lang-switch[lang="en"] {
  font-family: "Outfit", system-ui, sans-serif;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle .icon-close,
.site-header.is-open .menu-toggle .icon-open {
  display: none;
}

.site-header.is-open .menu-toggle .icon-close {
  display: block;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 6, 7, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 17px;
  }

  .nav .nav-download {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    background: var(--brand);
    color: #031314;
    font-weight: 700;
  }

  .nav .nav-download:hover {
    background: var(--brand);
    color: #031314;
  }
}

@media (max-width: 420px) {
  .lang-switch span {
    display: none;
  }

  .lang-switch {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- Store badges ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stores.is-center {
  justify-content: center;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  min-height: 58px;
  padding: 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0d1014;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a.store:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb), 0.55);
  background: #11161b;
}

.store-icon {
  width: 26px;
  height: 26px;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: start;
}

.store-text small {
  color: var(--muted);
  font-size: 12px;
}

.store-text b {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store.is-soon {
  opacity: 0.55;
  cursor: default;
}

.stores.is-compact .store {
  min-width: 160px;
  min-height: 52px;
  padding: 6px 16px;
}

.stores.is-compact .store-text b {
  font-size: 17px;
}

@media (max-width: 440px) {
  .stores {
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }

  .stores.is-center,
  .hero .stores {
    justify-content: stretch;
  }

  .store,
  .stores.is-compact .store {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
    padding: 8px 12px;
  }

  .store-icon {
    width: 22px;
    height: 22px;
  }

  .store-text b,
  .stores.is-compact .store-text b {
    font-size: 16px;
  }

  .store-text small {
    font-size: 11px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 420px at 75% 30%, rgba(var(--brand-rgb), 0.16), transparent 70%),
    radial-gradient(520px 380px at 15% 85%, rgba(var(--mint-rgb), 0.1), transparent 70%),
    radial-gradient(400px 300px at 90% 90%, rgba(var(--gold-rgb), 0.06), transparent 70%);
}

html[dir="rtl"] .hero-glow {
  transform: scaleX(-1);
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
}

.hero h1 .grad {
  display: block;
}

.lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 48px;
  background: linear-gradient(160deg, #1a1e24, #0b0d10);
  box-shadow:
    0 0 0 2px #050607,
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(var(--brand-rgb), 0.18);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: #0b2a30;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.12) translateY(-12px); }
}

.reel-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%),
    linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 45%);
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.reel-tabs {
  position: absolute;
  top: 46px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-weight: 600;
}

.reel-tabs span {
  opacity: 0.6;
}

.reel-tabs .active {
  opacity: 1;
  box-shadow: 0 2px 0 #fff;
}

.reel-rail {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rail-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #000;
}

.rail-avatar img {
  width: 24px;
}

.rail-avatar i {
  position: absolute;
  bottom: -9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #031314;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rail-item .icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.rail-item.liked .icon {
  color: var(--hot);
  fill: var(--hot);
}

.rail-item.starred .icon {
  color: var(--gold);
  fill: var(--gold);
}

.reel-meta {
  position: absolute;
  inset-inline: 14px 70px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reel-meta b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 14px;
  direction: ltr;
  align-self: flex-start;
}

.icon.verified {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.reel-sound {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.reel-sound .icon {
  width: 14px;
  height: 14px;
}

.reel-progress {
  position: absolute;
  bottom: 60px;
  inset-inline: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.reel-progress span {
  display: block;
  height: 100%;
  background: #fff;
  animation: progress 9s linear infinite;
}

@keyframes progress {
  from { width: 0; }
  to { width: 100%; }
}

.reel-nav {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  padding-bottom: 6px;
  background: #050607;
  color: #9db2ce;
}

.reel-nav .icon {
  width: 22px;
  height: 22px;
}

.reel-nav .icon:first-child {
  color: var(--brand);
}

.nav-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand);
  color: #031314;
  font-size: 20px;
  font-weight: 700;
}

/* Floating cards around the phone */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(16, 19, 23, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-size: 14px;
  line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}

.float-card small {
  color: var(--muted);
}

.float-card .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.live-pill {
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--hot);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fc-live {
  top: 12%;
  inset-inline-start: 0;
}

.fc-gift {
  top: 30%;
  inset-inline-end: -4%;
  animation-delay: -2s;
}

.fc-gift div {
  display: flex;
  flex-direction: column;
}

.gold {
  color: var(--gold);
  font-family: var(--font-brand);
  font-size: 16px;
}

.fc-pk {
  bottom: 24%;
  inset-inline-start: -6%;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 168px;
  animation-delay: -4s;
}

.pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pk-head b {
  font-family: var(--font-brand);
  font-size: 15px;
  color: var(--gold);
}

.pk-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--hot);
}

.pk-bar span {
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--mint));
}

.pk-score {
  display: flex;
  justify-content: space-between;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.pk-score span:first-child { color: var(--brand); }
.pk-score span:last-child { color: var(--hot); }

.fc-room {
  bottom: 6%;
  inset-inline-end: 0;
  animation-delay: -1s;
}

.room-mic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--mint-rgb), 0.14);
}

.room-mic .icon {
  color: var(--mint);
}

.room-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.stack {
  display: flex;
}

.stack .av {
  width: 22px;
  height: 22px;
  margin-inline-start: -6px;
  border: 2px solid #101317;
  font-size: 9px;
}

.stack .av:first-child {
  margin-inline-start: 0;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--mint);
  animation: eq 1s ease-in-out infinite;
}

.bars i:nth-child(2) { animation-delay: -0.3s; }
.bars i:nth-child(3) { animation-delay: -0.6s; }
.bars i:nth-child(4) { animation-delay: -0.15s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.bars i {
  transform-origin: bottom;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .hero .stores {
    justify-content: center;
  }

  .hero-visual {
    min-height: 0;
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  .float-card {
    padding: 9px 11px;
    font-size: 12px;
    border-radius: 14px;
  }

  .fc-live { top: 6%; inset-inline-start: -2%; }
  .fc-gift { top: 26%; inset-inline-end: -3%; }
  .fc-gift img { width: 32px; height: 32px; }
  .fc-pk { bottom: 26%; inset-inline-start: -3%; width: 138px; }
  .fc-room { bottom: 4%; inset-inline-end: -3%; }
  .room-mic { width: 32px; height: 32px; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head h2,
.spotlight-copy h2,
.download-panel h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

html[lang="en"] .section-head h2,
html[lang="en"] .spotlight-copy h2,
html[lang="en"] .download-panel h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  --tone: var(--brand-rgb);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -60px;
  inset-inline-end: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--tone), 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--tone), 0.35);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  font-size: 1.2rem;
}

html[lang="en"] .feature-card h3 {
  font-size: 1.02rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.feature-icon {
  --tone: var(--brand-rgb);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--tone), 0.12);
  color: rgb(var(--tone));
  flex: none;
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.tone-brand { --tone: var(--brand-rgb); }
.tone-hot { --tone: var(--hot-rgb); }
.tone-gold { --tone: var(--gold-rgb); }
.tone-mint { --tone: var(--mint-rgb); }
.tone-blue { --tone: var(--blue-rgb); }

.feature-card.tone-brand .feature-icon { --tone: var(--brand-rgb); }
.feature-card.tone-hot .feature-icon { --tone: var(--hot-rgb); }
.feature-card.tone-gold .feature-icon { --tone: var(--gold-rgb); }
.feature-card.tone-mint .feature-icon { --tone: var(--mint-rgb); }
.feature-card.tone-blue .feature-icon { --tone: var(--blue-rgb); }

@media (max-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    padding: 20px;
  }

  .feature-card p {
    flex-basis: 100%;
  }
}

/* Spotlights */
.spotlight {
  position: relative;
  padding-block: clamp(48px, 6vw, 84px);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.spotlight.is-flipped .spotlight-copy {
  order: 2;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.spotlight-copy > p {
  color: var(--muted);
  font-size: 1.1rem;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.checks .icon {
  color: var(--brand);
}

.spotlight-visual {
  display: grid;
  place-items: center;
}

/* PK stage */
.pk-stage {
  width: min(460px, 100%);
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #11151a, #0a0c0f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(var(--hot-rgb), 0.08);
}

.pk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pk-timer {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
  font-family: var(--font-brand);
  font-size: 14px;
  direction: ltr;
}

.viewers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 14px;
}

.viewers .icon {
  width: 16px;
  height: 16px;
}

.pk-meter {
  display: flex;
  height: 26px;
  margin: 16px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  direction: ltr;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.pk-meter span {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.pk-meter .a {
  width: var(--w);
  background: linear-gradient(90deg, var(--brand), var(--mint));
  color: #031314;
}

.pk-meter .b {
  flex: 1;
  justify-content: flex-end;
  background: linear-gradient(90deg, #ff6b81, var(--hot));
}

.pk-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  direction: ltr;
}

.pk-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  aspect-ratio: 3 / 4;
  padding: 16px;
  border-radius: 18px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 14px;
}

.side-a {
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--brand-rgb), 0.45), transparent 60%),
    linear-gradient(180deg, #0f3436, #0a1416);
}

.side-b {
  background:
    radial-gradient(circle at 50% 35%, rgba(var(--hot-rgb), 0.4), transparent 60%),
    linear-gradient(180deg, #3a1219, #160a0c);
}

.pk-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: auto;
  margin-top: 18%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-brand);
  font-size: 26px;
}

.pk-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: #1d1600;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px #0b0d10, 0 0 40px rgba(var(--gold-rgb), 0.5);
}

.pk-comments {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
}

.pk-comments p {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.pk-comments b {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--brand);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
}

.gift-line {
  color: var(--gold);
}

/* Voice room stage */
.room-stage {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 260px at 50% 0%, rgba(var(--mint-rgb), 0.12), transparent 70%),
    linear-gradient(180deg, #10151a, #0a0c0f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-top b {
  display: block;
  font-size: 1.15rem;
}

.room-top small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 14px;
}

.room-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(var(--mint-rgb), 0.14);
  color: var(--mint);
}

.speakers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 12px;
  margin: 28px 0;
}

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

.speaker .av {
  width: 74px;
  height: 74px;
  font-size: 24px;
}

.speaker.is-speaking::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--mint);
  animation: speak 1.6s ease-out infinite;
}

@keyframes speak {
  0% { box-shadow: 0 0 0 3px rgba(var(--mint-rgb), 0.9); }
  100% { box-shadow: 0 0 0 14px rgba(var(--mint-rgb), 0); }
}

.room-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-chip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.room-chip .icon {
  width: 20px;
  height: 20px;
}

.room-leave {
  margin-inline-start: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(var(--hot-rgb), 0.12);
  color: var(--hot);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .spotlight.is-flipped .spotlight-copy {
    order: 0;
  }

  .spotlight-copy {
    align-items: center;
    text-align: center;
  }

  .checks {
    justify-items: center;
  }
}

/* Download panel */
.download-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: 36px;
  background:
    radial-gradient(500px 300px at 50% 0%, rgba(var(--brand-rgb), 0.2), transparent 70%),
    radial-gradient(400px 300px at 100% 100%, rgba(var(--mint-rgb), 0.1), transparent 70%),
    var(--surface);
  text-align: center;
}

.download-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(var(--brand-rgb), 0.25);
}

.download-panel p {
  color: var(--muted);
  font-size: 1.1rem;
}

.download-panel .stores {
  margin-top: 8px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-grid.is-single {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--brand-rgb), 0.4);
}

.contact-card > span:not(.feature-icon) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-card small {
  color: var(--muted);
  font-size: 14px;
}

.contact-card b {
  overflow: hidden;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  margin-inline-start: auto;
  color: var(--faint);
}

html[dir="rtl"] .contact-arrow {
  transform: scaleX(-1);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: var(--brand);
  color: #031314;
}

.socials .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }
}

/* ---------- Share pages ---------- */

.share-main {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: calc(100vh - var(--header-h) - 160px);
  padding: 32px var(--gutter) 64px;
}

.share-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px 380px at 50% 10%, rgba(var(--brand-rgb), 0.14), transparent 70%);
}

.share-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(440px, 100%);
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(15, 18, 22, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.share-media {
  position: relative;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 20px;
  background: #0b1418;
}

.share-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-media-empty {
  display: grid;
  place-items: center;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(var(--brand-rgb), 0.18), transparent 70%);
}

.share-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.share-play .icon {
  width: 28px;
  height: 28px;
  margin-inline-start: 4px;
  fill: #fff;
}

html[dir="rtl"] .share-play .icon {
  margin-inline-start: 0;
  margin-inline-end: 4px;
}

.share-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-author.is-center {
  justify-content: center;
}

.share-author > div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.share-author b,
.share-profile h1 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-author small,
.share-profile > small {
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
}

.share-author > div small {
  align-self: flex-start;
}

.avatar {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

.avatar-sm {
  width: 44px;
  height: 44px;
}

.avatar-lg {
  width: 112px;
  height: 112px;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(var(--brand-rgb), 0.6);
}

.avatar-initial {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--mint));
  color: #031314;
  font-family: var(--font-brand);
  font-weight: 700;
}

.avatar-initial img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm.avatar-initial { font-size: 17px; }
.avatar-lg.avatar-initial { font-size: 40px; }

.share-text {
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.share-stats {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 15px;
}

.share-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-stats .icon {
  width: 18px;
  height: 18px;
}

.share-profile,
.share-room,
.share-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 4px 4px;
  text-align: center;
}

.share-profile h1,
.share-room h1,
.share-missing h1 {
  font-size: 1.6rem;
}

html[lang="en"] .share-profile h1,
html[lang="en"] .share-room h1,
html[lang="en"] .share-missing h1 {
  font-size: 1.3rem;
}

.share-profile .avatar-lg {
  margin-bottom: 8px;
}

.share-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin-top: 8px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.share-counts span {
  display: flex;
  flex-direction: column;
}

.share-counts b {
  font-family: var(--font-brand);
  font-size: 18px;
}

.share-counts small {
  color: var(--muted);
  font-size: 13px;
}

.room-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--mint-rgb), 0.12);
  color: var(--mint);
  font-size: 14px;
  font-weight: 700;
}

.share-missing img {
  border-radius: 22px;
  margin-bottom: 8px;
}

.share-get {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.share-get p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Doc pages (delete account) ---------- */

.doc-main {
  padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
}

.doc-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: calc(760px + var(--gutter) * 2);
}

.doc-main h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

html[lang="en"] .doc-main h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.doc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
}

html[lang="en"] .doc-card h2 {
  font-size: 1.05rem;
}

.doc-card h2 .icon {
  color: var(--brand);
}

.doc-card p {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--brand);
  font-family: var(--font-brand);
  font-size: 14px;
  flex: none;
}

.back-link {
  color: var(--brand);
  font-weight: 600;
}

/* Legal pages: HTML authored in the admin's Quill editor */
.legal-body {
  width: 100%;
  color: rgba(244, 247, 248, 0.86);
  overflow-wrap: anywhere;
}

.legal-body h1,
.legal-body h2 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

html[lang="en"] .legal-body h1,
html[lang="en"] .legal-body h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

.legal-body h3 {
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.3rem;
}

html[lang="en"] .legal-body h3 {
  font-size: 1.05rem;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 12px;
}

.legal-body ul,
.legal-body ol {
  padding-inline-start: 1.4em;
}

.legal-body li {
  margin-bottom: 8px;
  padding-inline-start: 4px;
}

.legal-body li::marker {
  color: var(--brand);
}

.legal-body li[data-list="bullet"] {
  list-style-type: disc;
}

.legal-body strong {
  color: var(--text);
}

.legal-body em {
  color: var(--muted);
  font-style: normal;
}

.legal-body a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body .ql-ui {
  display: none;
}

.legal-body .ql-direction-rtl {
  direction: rtl;
}

.legal-body .ql-align-right {
  text-align: right;
}

.legal-body .ql-align-center {
  text-align: center;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
