/* ==========================================================================
   Qup — landing page styles
   ========================================================================== */

:root {
  --navy: #141a29;
  --navy-2: #1c2438;
  --navy-3: #26304a;
  --cyan: #56c8ea;
  --cyan-dark: #2fa9cf;
  --cyan-soft: #e8f7fc;
  --pink: #f472b6;
  --green: #34d399;
  --orange: #fb923c;
  --violet: #a78bfa;

  --text: #141a29;
  --muted: #5b6478;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(20, 26, 41, 0.08);
  --shadow-lg: 0 30px 60px rgba(20, 26, 41, 0.18);
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow--dark {
  background: rgba(86, 200, 234, 0.12);
  color: var(--cyan);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

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

.btn--primary {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(86, 200, 234, 0.35);
}

.btn--primary:hover {
  background: var(--cyan-dark);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
}

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

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--navy-3);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 180px;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 26, 41, 0.25);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.66rem;
  opacity: 0.75;
  line-height: 1.1;
}

.store-btn strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.store-btn--light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(20, 26, 41, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}

.nav .btn {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(circle at 85% 20%, rgba(86, 200, 234, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(86, 200, 234, 0.10), transparent 40%),
    var(--bg);
  overflow: hidden;
  /* clip, not hidden: a hidden box is still a scroll container, so jumping to
     #download (inside the hero) would scroll the hero's own content up */
  overflow: clip;
}

.hero::before {
  /* faint pitch lines */
  content: "";
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 480px;
  border: 2px solid rgba(86, 200, 234, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  /* fade the bottom of the bleeding phone into the next section */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to top, #fff 10%, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 3; /* stay above the bottom fade */
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__title .accent {
  color: var(--cyan-dark);
  position: relative;
  white-space: nowrap;
}

.hero__text {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--muted);
}

.avatars {
  display: flex;
}

.avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
}

.avatars span:first-child {
  margin-left: 0;
}

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

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Phone mockup ----------------------------------------------------------- */

.phone {
  position: relative;
  width: 290px;
  height: 590px;
  background: var(--navy);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.phone::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--bg-alt);
  overflow: hidden;
  padding: 52px 16px 16px;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone__screen--dark {
  background: var(--navy-2);
  color: #fff;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-bar h4 {
  font-size: 1rem;
  margin: 0;
}

.app-bar small {
  color: var(--muted);
  display: block;
  font-size: 0.68rem;
}

.app-bar .icon-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.chips {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: 0.66rem;
  white-space: nowrap;
  border: 1px solid var(--line);
}

.chip.is-on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.game-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(20, 26, 41, 0.06);
}

.game-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sport-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.game-card h5 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.game-card .sub {
  color: var(--muted);
  font-size: 0.64rem;
}

.game-card__info {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.64rem;
  margin-bottom: 8px;
}

.game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card .avatars span {
  width: 22px;
  height: 22px;
  border-width: 2px;
  font-size: 0.5rem;
  margin-left: -6px;
}

.game-card .avatars span:first-child {
  margin-left: 0;
}

.pill-btn {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.64rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.progress {
  height: 5px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--cyan);
  border-radius: 4px;
}

/* Hero phone: realistic tilted iPhone that bleeds off the section bottom */

.hero__visual {
  align-self: stretch;
  min-height: 600px;
  margin-bottom: -90px; /* cancel hero bottom padding so the phone runs off the edge */
}

.phone-stage {
  position: absolute;
  top: 10px;
  left: 50%;
  margin-left: -150px;
}

.phone--hero {
  width: 300px;
  height: 650px;
  padding: 10px;
  border-radius: 54px;
  background: #0b0f1a;
  box-shadow:
    inset 0 0 0 1.5px #4a5370,  /* inner bezel highlight */
    0 0 0 2px #9aa3b8,          /* polished metal rim */
    0 0 0 4px #3b4459,          /* frame */
    7px 5px 0 4px #262d3f,      /* visible side thickness */
    50px 60px 80px rgba(20, 26, 41, 0.28);
  transform: perspective(2200px) rotateX(16deg) rotateY(-18deg) rotateZ(9deg);
  transform-style: preserve-3d;
}

.phone--hero::before {
  top: 20px;
  width: 92px;
  height: 27px;
}

.phone--hero::after {
  /* side buttons: action + volume on the left, power on the right */
  content: "";
  position: absolute;
  left: -7px;
  top: 118px;
  width: 4px;
  height: 28px;
  border-radius: 3px 0 0 3px;
  background: #3b4459;
  box-shadow:
    0 50px 0 0 #3b4459,
    0 96px 0 0 #3b4459,
    310px 52px 0 0 #3b4459;
}

.phone--hero .phone__screen {
  border-radius: 44px;
  padding: 0 14px;
  overflow: visible;           /* lets the pop-out card escape; bottom is masked by the hero */
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  transform-style: preserve-3d;
  gap: 12px;
}

/* real app screenshots: full width, anchored to the top, bottom clipped */
.phone__screen.phone__screen--shot {
  padding: 0;
  overflow: hidden;
  background: #eef0f6;
  display: block;
}

.phone__screen--shot img {
  display: block;
  width: 100%;
  height: auto;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 4px 16px 0 22px;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--navy);
}

.status-bar__icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.status-bar__icons svg {
  height: 10px;
  width: auto;
}

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

.app-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f3f7;
  border-radius: 12px;
  padding: 9px 12px;
  color: #8a93a6;
  font-size: 0.7rem;
}

.app-search svg,
.app-icon svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.app-search svg {
  color: var(--navy);
}

.app-icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.app-icon--dot::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0566b;
  border: 1.5px solid #fff;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.profile__avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), #2b6fd6);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cyan-soft);
}

.profile__info {
  flex: 1;
  min-width: 0;
}

.profile__info strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.profile__info small {
  color: var(--muted);
  font-size: 0.66rem;
}

.level {
  height: 5px;
  background: #e9edf3;
  border-radius: 4px;
  margin: 6px 0 3px;
  overflow: hidden;
}

.level span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green), #22c38e);
}

.profile__info b {
  font-size: 0.6rem;
  font-weight: 600;
}

.season {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.season small {
  color: var(--muted);
  font-size: 0.66rem;
}

.season p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.season p strong {
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1;
}

.season__chart {
  width: 104px;
  height: 44px;
  flex-shrink: 0;
}

.season__delta {
  position: absolute;
  right: 0;
  bottom: -4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--cyan-dark);
}

.sport-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform-style: preserve-3d;
}

.sport-stat {
  border-radius: 14px;
  padding: 10px;
}

.sport-stat__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.sport-stat p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.sport-stat strong {
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 700;
}

.sport-stat em {
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 600;
}

.sport-stat small {
  color: var(--muted);
  font-size: 0.62rem;
}

.sport-stat--violet { background: #f0edfd; }
.sport-stat--violet .sport-stat__icon { background: #8b6cf6; }
.sport-stat--violet em { color: #7c5cf0; }

.sport-stat--blue { background: #e9f1fd; }
.sport-stat--blue .sport-stat__icon { background: #4f86ef; }
.sport-stat--blue em { color: #3b6fe0; }

.sport-stat--green { background: #e3f8ef; }
.sport-stat--green .sport-stat__icon { background: #34c98b; }
.sport-stat--green em { color: #12a46b; }

.sport-stat--pop {
  /* lifts out of the screen towards the viewer, past the phone edge */
  transform: translate(34px, 14px) translateZ(60px) scale(1.12);
  box-shadow: 0 24px 40px rgba(20, 26, 41, 0.18);
  background: #e6faf1;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.list-head strong {
  font-size: 0.8rem;
}

.list-head span {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--cyan-dark);
}

.phone--hero .game-card {
  border: 1px solid #eef1f5;
  box-shadow: none;
}

/* floating cards around hero phone */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}

.float-card strong {
  display: block;
  font-size: 0.85rem;
}

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

.float-card--a {
  top: 360px;
  left: -10px;
}

.float-card--b {
  bottom: 80px;
  right: 0;
  animation-delay: -2.5s;
}

.float-card .sport-icon {
  width: 38px;
  height: 38px;
}

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

/* Features (dark) -------------------------------------------------------- */

.features {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.features::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 200, 234, 0.16), transparent 70%);
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.features__intro p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

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

.tint-cyan { background: #e3f6fc; color: #1d9cc4; }
.tint-violet { background: #efeafe; color: #7c5cf0; }
.tint-green { background: #e2f8ef; color: #12a46b; }
.tint-orange { background: #fff0e4; color: #e5701e; }
.tint-pink { background: #fde8f3; color: #db3d8f; }
.tint-blue { background: #e6eefe; color: #3b6fe0; }

/* Showcase rows ---------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase + .showcase {
  margin-top: 120px;
}

.showcase--reverse .showcase__visual {
  order: 2;
}

.showcase__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase__visual::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  max-width: 100%;
  border-radius: 50%;
  background: var(--cyan-soft);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.showcase__visual .phone {
  height: 540px;
  width: 270px;
}

.showcase__text h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.showcase__text > p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fa9cf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* create-game form mockup */
.form-mock {
  display: grid;
  gap: 8px;
}

.form-mock label {
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 500;
}

.form-mock .field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-top: 3px;
}

.form-mock .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sport-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 3px;
}

.sport-picker span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 0;
  text-align: center;
  font-size: 1rem;
}

.sport-picker span.is-on {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.mock-cta {
  margin-top: 6px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 10px;
  border-radius: 12px;
}

/* chat mockup */
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-head small {
  color: rgba(255, 255, 255, 0.55);
  display: block;
}

.chat-head strong {
  font-size: 0.8rem;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.msg {
  max-width: 80%;
  padding: 8px 11px;
  border-radius: 14px;
  background: var(--navy-3);
  line-height: 1.4;
}

.msg b {
  display: block;
  font-size: 0.6rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 2px;
}

.msg--me {
  align-self: flex-end;
  background: var(--cyan);
  color: var(--navy);
  border-bottom-right-radius: 4px;
}

.msg--them {
  border-bottom-left-radius: 4px;
}

.msg-system {
  align-self: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 999px;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-3);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  color: rgba(255, 255, 255, 0.45);
}

.chat-input span:last-child {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan);
  display: grid;
  place-items: center;
  color: var(--navy);
}

/* Stats band ------------------------------------------------------------- */

.stats {
  background: linear-gradient(120deg, var(--cyan-dark), var(--cyan));
  color: var(--navy);
  padding: 64px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: #fff;
}

.stat span {
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 180px;
  display: block;
}

/* Games / sports --------------------------------------------------------- */

.games {
  background: var(--bg-alt);
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.sport-tile {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 12px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sport-tile:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.sport-tile .emoji {
  font-size: 2.2rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.sport-tile strong {
  display: block;
  font-size: 0.95rem;
}

.sport-tile small {
  color: var(--muted);
  font-size: 0.78rem;
}

.games-sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.games-sub h3 {
  font-size: 1.4rem;
  margin: 0;
}

.games-sub p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.games-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.games-list .game-card {
  padding: 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.games-list .game-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.games-list .sport-icon {
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  border-radius: 12px;
}

.games-list .game-card h5 {
  font-size: 1rem;
}

.games-list .game-card .sub,
.games-list .game-card__info {
  font-size: 0.8rem;
}

.games-list .game-card__info {
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
}

.games-list .progress {
  height: 6px;
  margin-bottom: 14px;
}

.games-list .avatars span {
  width: 28px;
  height: 28px;
  font-size: 0.62rem;
}

.games-list .pill-btn {
  font-size: 0.8rem;
  padding: 7px 16px;
}

.tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag--men { background: #e6eefe; color: #3b6fe0; }
.tag--women { background: #fde8f3; color: #db3d8f; }

.games-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 28px;
}

/* FAQ -------------------------------------------------------------------- */

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.25s, background 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  background: var(--cyan);
  color: var(--navy);
}

.faq__item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--muted);
}

/* Contact ---------------------------------------------------------------- */

.contact {
  background: var(--bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: var(--navy);
  border-radius: 32px;
  padding: 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact__grid::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -160px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 200, 234, 0.2), transparent 70%);
}

.contact__info {
  position: relative;
}

.contact__info p {
  color: rgba(255, 255, 255, 0.7);
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__list .feature-icon {
  background: rgba(86, 200, 234, 0.12);
  color: var(--cyan);
  width: 44px;
  height: 44px;
}

.contact__list small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.contact__list a:hover {
  color: var(--cyan);
}

.form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  position: relative;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form textarea {
  resize: vertical;
  min-height: 130px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(86, 200, 234, 0.18);
}

.form .btn {
  justify-self: start;
}

.form__status {
  font-size: 0.88rem;
  margin: 0;
  min-height: 1.4em;
}

.form__status.is-success { color: #12a46b; }
.form__status.is-error { color: #d93636; }

/* Download CTA ----------------------------------------------------------- */

.cta {
  padding: 0 0 100px;
  background: var(--bg-alt);
}

.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--cyan-dark), var(--cyan));
  border-radius: 32px;
  padding: 48px 56px;
}

.cta__box h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 6px;
}

.cta__box p {
  margin: 0;
  color: var(--navy);
  opacity: 0.8;
}

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

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 28px;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

/* Legal page ------------------------------------------------------------- */

.legal-hero {
  padding: 140px 0 56px;
  background:
    radial-gradient(circle at 85% 10%, rgba(86, 200, 234, 0.18), transparent 45%),
    var(--bg-alt);
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-hero p {
  color: var(--muted);
  margin: 0;
}

.legal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 64px 24px 100px;
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: 100px;
  font-size: 0.86rem;
}

.legal__toc h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  border-left: 2px solid var(--line);
}

.legal__toc a {
  display: block;
  padding: 5px 0 5px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.legal__toc a:hover,
.legal__toc a.is-active {
  color: var(--text);
  border-color: var(--cyan);
}

.legal__body {
  max-width: 760px;
}

.legal__body section + section {
  margin-top: 48px;
}

.legal__body h2 {
  font-size: 1.4rem;
  padding-top: 8px;
}

.legal__body h3 {
  font-size: 1.02rem;
  margin-top: 24px;
}

.legal__body p,
.legal__body li {
  color: #3d4558;
}

.legal__body ul {
  padding-left: 20px;
  margin: 0 0 1em;
}

.legal__body li + li {
  margin-top: 6px;
}

.legal__body a {
  color: var(--cyan-dark);
  font-weight: 500;
}

.legal__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 8px 0 16px;
}

.legal__body th,
.legal__body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal__body th {
  background: var(--bg-alt);
  font-weight: 600;
}

.callout {
  background: var(--cyan-soft);
  border-left: 4px solid var(--cyan);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 40px;
}

.callout p {
  margin: 0;
}

.callout p + ul {
  margin-top: 12px;
}

.callout ul {
  margin-bottom: 0;
}

.legal__intro {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

/* Legal page languages --------------------------------------------------- */

[data-lang][hidden] {
  display: none !important;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
}

[dir="rtl"] .legal__toc ol {
  border-left: 0;
  border-right: 2px solid var(--line);
}

[dir="rtl"] .legal__toc a {
  padding: 5px 16px 5px 0;
  margin-left: 0;
  margin-right: -2px;
  border-left: 0;
  border-right: 2px solid transparent;
}

[dir="rtl"] .legal__toc a:hover,
[dir="rtl"] .legal__toc a.is-active {
  border-right-color: var(--cyan);
}

[dir="rtl"] .legal__body ul {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .callout {
  border-left: 0;
  border-right: 4px solid var(--cyan);
  border-radius: 12px 0 0 12px;
}

[dir="rtl"] .legal__body h2,
[dir="rtl"] .legal-hero h1 {
  letter-spacing: 0;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .live-dot::before { animation: none; }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .sports-grid { grid-template-columns: repeat(3, 1fr); }
  .games-list { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: 1fr; }
  .features__intro { text-align: center; max-width: 600px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 880px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(20, 26, 41, 0.08);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }

  .nav-open .nav {
    transform: none;
    visibility: visible;
  }

  .nav__links {
    flex-direction: column;
    gap: 4px;
  }

  .nav__links a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
  }

  .hero { padding: 120px 0 64px; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero .store-buttons, .hero__meta { justify-content: center; }
  .hero__visual { margin-bottom: -64px; }

  .showcase,
  .showcase--reverse { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .showcase--reverse .showcase__visual { order: 0; }
  .showcase + .showcase { margin-top: 88px; }
  .checklist { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .stat span { margin: 0 auto; }

  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .legal { padding: 40px 16px 72px; }

  .feature-cards { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .games-list { grid-template-columns: 1fr; }
  .games-sub { flex-direction: column; align-items: flex-start; }

  .form__row { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form .btn { justify-self: stretch; }
  .contact__grid { padding: 28px 16px; border-radius: 24px; }

  .cta__box { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta__box .store-buttons { justify-content: center; }

  .store-btn { min-width: 0; flex: 1 1 160px; justify-content: center; }

  .phone:not(.phone--hero) { width: 260px; height: 530px; }
  .hero__visual { min-height: 520px; }
  .phone-stage { transform: scale(0.84); transform-origin: top center; }
  .showcase__visual .phone { width: 250px; height: 500px; }
  .float-card { font-size: 0.72rem; padding: 10px 12px; }
  .float-card--a { left: -6px; top: 300px; }
  .float-card--b { right: -6px; bottom: 50px; }

  .legal__body table, .legal__body thead, .legal__body tbody,
  .legal__body tr, .legal__body th, .legal__body td { display: block; }
  .legal__body thead { display: none; }
  .legal__body td { border: 0; padding: 4px 0; }
  .legal__body td:first-child { font-weight: 600; padding-top: 14px; }
  .legal__body tr { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
}
