:root {
  --bg: #070a08;
  --bg-2: #0d1410;
  --surface: #121a15;
  --text: #f3f7f4;
  --muted: #9aab9f;
  --accent: #b8ff2e;
  --accent-dim: rgba(184, 255, 46, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ff3b4a;
  --radius: 22px;
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-display: "Syne", "Cairo", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #16301a 0%, transparent 55%),
    radial-gradient(900px 500px at 0% 20%, #102018 0%, transparent 50%),
    var(--bg);
  font-family: var(--font-ar);
  line-height: 1.55;
  overflow-x: hidden;
}

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

.bg-glow {
  position: fixed;
  inset: auto -20% 10% auto;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(184, 255, 46, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.pitch-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-switch button.on {
  background: var(--accent-dim);
  color: var(--accent);
}

.lang-switch button:hover {
  color: var(--text);
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 88px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lede {
  margin: 14px 0 22px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cta.center {
  justify-content: center;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  height: 44px;
  width: auto;
  display: block;
}

.store-badge.play img {
  height: 64px;
  margin: -10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0a0f0c;
  min-width: 168px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 255, 46, 0.45);
}

.btn small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: 500;
}

.btn strong {
  display: block;
  font-size: 1.02rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.btn-ios {
  background: linear-gradient(180deg, #1a1f1c, #0c100e);
}

.btn-android {
  background: linear-gradient(180deg, #152016, #0b120e);
  border-color: rgba(184, 255, 46, 0.28);
}

.hero-preview {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  perspective: 1000px;
}

.phone {
  width: min(230px, 42vw);
}

.phone-ios {
  transform: rotate(-6deg) translateY(12px);
  z-index: 2;
}

.phone-android {
  transform: rotate(7deg) translateY(-8px);
  z-index: 1;
}

.phone-bezel {
  background: linear-gradient(160deg, #2a2f2c, #0a0c0b 40%, #171b18);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-android .phone-bezel {
  border-radius: 28px;
  padding: 8px;
}

.screen {
  background: #0b100d;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  position: relative;
}

.phone-android .screen {
  border-radius: 20px;
  min-height: 400px;
}

.notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 22px;
  background: #050705;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.cam-hole {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #050705;
  box-shadow: inset 0 0 0 2px #1c221e;
  z-index: 3;
}

.home-bar,
.nav-gesture {
  width: 36%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  margin: 8px auto 2px;
}

.phone-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 12px 0 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-ui {
  padding: 36px 12px 16px;
  display: grid;
  gap: 10px;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-top strong {
  flex: 1;
  font-size: 0.92rem;
  font-family: var(--font-display);
}

.app-top img {
  border-radius: 6px;
}

.live-pill {
  background: var(--danger);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.date-strip,
.tabs {
  display: flex;
  gap: 6px;
}

.date-strip span,
.tabs span {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 0;
  font-weight: 700;
}

.date-strip .on,
.tabs .on {
  color: #08100a;
  background: var(--accent);
  border-color: transparent;
}

.match {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.match.live {
  border-color: rgba(255, 59, 74, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 59, 74, 0.08);
}

.match header {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.scoreline b {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--accent);
}

.scoreline span:last-child {
  text-align: left;
}

[dir="rtl"] .scoreline span:last-child {
  text-align: left;
}

[dir="rtl"] .scoreline span:first-child {
  text-align: right;
}

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.features h2,
.download h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-lede {
  color: var(--muted);
  margin: 8px 0 28px;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article {
  background: linear-gradient(180deg, rgba(184, 255, 46, 0.06), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.download {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.download-card {
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(184, 255, 46, 0.22);
  background: linear-gradient(160deg, rgba(184, 255, 46, 0.1), transparent 40%),
    var(--bg-2);
  padding: 42px 24px;
}

.download-card img {
  border-radius: 14px;
}

.download-card p {
  color: var(--muted);
  margin: 10px auto 22px;
  max-width: 36ch;
}

.store-note {
  margin-top: 16px !important;
  font-size: 0.85rem;
  opacity: 0.7;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-family: var(--font-display);
}

.foot-brand img {
  border-radius: 8px;
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot a:hover {
  color: var(--accent);
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

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

.legal .back-link:hover {
  color: var(--accent);
}

.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
}

.legal .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 28px 0 10px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-inline-start: 1.2rem;
}

.legal code {
  font-size: 0.9em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 6px;
}

.contact-card {
  margin: 24px 0;
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 255, 46, 0.22);
  background: linear-gradient(160deg, rgba(184, 255, 46, 0.08), transparent 50%),
    var(--surface);
  text-align: center;
}

.contact-card img {
  border-radius: 12px;
}

.contact-card h2 {
  margin: 12px 0 6px;
}

.contact-card .btn {
  margin: 12px auto 0;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

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

  .lede {
    margin-inline: auto;
  }

  .cta {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(190px, 40vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .store-badge,
  .phone-ios,
  .phone-android {
    transition: none;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(-6deg) translateY(12px);
  }
  50% {
    transform: rotate(-6deg) translateY(4px);
  }
}

@keyframes floaty2 {
  0%,
  100% {
    transform: rotate(7deg) translateY(-8px);
  }
  50% {
    transform: rotate(7deg) translateY(2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-ios {
    animation: floaty 5.5s ease-in-out infinite;
  }
  .phone-android {
    animation: floaty2 6s ease-in-out infinite;
  }
}
