:root {
  --xeo-bg-light: #f2efe7;
  --xeo-surface-light: #ffffff;
  --xeo-text-light: #101214;
  --xeo-muted-light: #8c99a3;
  --xeo-metal: #a8b0b8;
  --xeo-energy: #d88932;
  --xeo-blue: #0e5a63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--xeo-bg-light);
  color: var(--xeo-text-light);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(242, 239, 231, 0.92);
  border-bottom: 1px solid rgba(168, 176, 184, 0.35);
  backdrop-filter: blur(16px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 24px);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

nav {
  gap: 18px;
  color: var(--xeo-blue);
  font-weight: 800;
}

.nav-button,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 900;
}

.nav-button,
.primary {
  padding: 0 22px;
  background: var(--xeo-energy);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(216, 137, 50, 0.28);
}

.secondary {
  padding: 0 20px;
  color: var(--xeo-blue);
  border: 1px solid rgba(14, 90, 99, 0.28);
  background: rgba(255, 255, 255, 0.62);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 640px;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 5vw, 72px) 36px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--xeo-energy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(50px, 5.1vw, 74px);
  line-height: 0.95;
}

.lead {
  max-width: 560px;
  color: #34424a;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 34px 0 0;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(168, 176, 184, 0.34);
  border-radius: 8px;
}

.hero-metrics dt {
  color: var(--xeo-energy);
  font-size: 22px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: #4d5b63;
  font-weight: 800;
}

.hero-preview {
  position: relative;
  min-height: 500px;
}

.phone-preview,
.web-preview {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(168, 176, 184, 0.42);
  box-shadow: 0 26px 70px rgba(16, 18, 20, 0.13);
}

.phone-preview {
  width: min(100%, 380px);
  margin-left: auto;
  padding: 18px;
  border-radius: 36px;
}

.phone-status,
.phone-head,
.chat-list-preview article {
  display: flex;
  align-items: center;
}

.phone-status {
  justify-content: space-between;
  color: #4d5b63;
  font-size: 13px;
  font-weight: 900;
}

.phone-head {
  gap: 12px;
  margin-top: 18px;
}

.mini-avatar,
.contact-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--xeo-energy);
  font-weight: 900;
}

.mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
}

.phone-head strong {
  display: block;
  font-size: 20px;
}

.phone-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--xeo-energy);
  font-weight: 800;
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4fb06d;
}

.search-pill {
  margin: 22px 0;
  padding: 15px 18px;
  color: var(--xeo-muted-light);
  background: #fcfcfa;
  border: 1px solid rgba(168, 176, 184, 0.35);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.chat-list-preview {
  display: grid;
  gap: 12px;
}

.chat-list-preview article {
  gap: 12px;
  min-height: 84px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(168, 176, 184, 0.24);
  border-radius: 8px;
}

.contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.chat-list-preview strong,
.web-preview strong {
  display: block;
  color: var(--xeo-text-light);
  font-size: 18px;
}

.chat-list-preview p,
.web-preview p {
  margin: 4px 0 0;
  color: #5c6970;
}

.chat-list-preview time {
  margin-left: auto;
  color: var(--xeo-muted-light);
  font-size: 13px;
  font-weight: 800;
}

.web-preview {
  position: absolute;
  right: clamp(0px, 4vw, 42px);
  bottom: 12px;
  width: min(300px, 78%);
  padding: 18px;
  border-radius: 8px;
}

.preview-label {
  color: var(--xeo-energy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 104px;
  height: 104px;
  margin: 16px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(216, 137, 50, 0.4);
  border-radius: 8px;
}

.qr-preview span {
  background: #101214;
  border-radius: 2px;
}

.qr-preview span:nth-child(2),
.qr-preview span:nth-child(5),
.qr-preview span:nth-child(7),
.qr-preview span:nth-child(10),
.qr-preview span:nth-child(13),
.qr-preview span:nth-child(16) {
  background: rgba(216, 137, 50, 0.76);
}

.section,
.web-cta {
  margin: 0 clamp(20px, 5vw, 72px) 36px;
  padding: clamp(28px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(168, 176, 184, 0.35);
  border-radius: 8px;
}

.section h2,
.web-cta h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.features article {
  min-height: 190px;
  padding: 24px;
  background: var(--xeo-surface-light);
  border: 1px solid rgba(168, 176, 184, 0.28);
  border-radius: 8px;
}

.features span {
  color: var(--xeo-energy);
  font-weight: 900;
}

.features h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.features p,
.web-cta p {
  color: #4d5b63;
  font-size: 18px;
  line-height: 1.5;
}

.web-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.web-cta p {
  max-width: 680px;
  margin-bottom: 0;
}

.referral-section,
.gamer-hero,
.gamer-columns {
  display: grid;
  gap: 24px;
  margin: 0 clamp(20px, 5vw, 72px) 36px;
}

.referral-section {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: stretch;
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(135deg, rgba(216, 137, 50, 0.12), rgba(14, 90, 99, 0.08)),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(168, 176, 184, 0.35);
  border-radius: 8px;
}

.referral-copy h2,
.gamer-hero h1 {
  margin-bottom: 16px;
}

.referral-copy p,
.referral-card p,
.gamer-columns p,
.gamer-rules p {
  color: #4d5b63;
  font-size: 18px;
  line-height: 1.5;
}

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

.referral-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.referral-actions span {
  color: var(--xeo-blue);
  font-weight: 800;
}

.referral-card,
.score-card,
.gamer-columns article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(168, 176, 184, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 18, 20, 0.09);
}

.referral-card strong,
.score-card strong {
  display: block;
  color: var(--xeo-text-light);
  font-size: 24px;
}

.referral-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding-left: 20px;
  color: #34424a;
  font-weight: 800;
}

.gamer-page {
  background:
    radial-gradient(circle at top right, rgba(216, 137, 50, 0.15), transparent 34%),
    var(--xeo-bg-light);
}

.gamer-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: center;
  padding-top: clamp(34px, 5vw, 72px);
}

.score-card span {
  color: var(--xeo-energy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-card strong {
  margin-top: 12px;
  color: var(--xeo-energy);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.score-card p {
  margin: 10px 0 0;
  color: var(--xeo-blue);
  font-weight: 900;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 clamp(20px, 5vw, 72px) 36px;
}

.live-ranking {
  margin: 0 clamp(20px, 5vw, 72px) 36px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(168, 176, 184, 0.35);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(16, 18, 20, 0.08);
}

.ranking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ranking-head h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
}

.ranking-head p {
  max-width: 760px;
  color: #4d5b63;
  font-size: 18px;
  line-height: 1.5;
}

.ranking-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--xeo-blue);
  background: rgba(14, 90, 99, 0.08);
  border: 1px solid rgba(14, 90, 99, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ranking-tabs button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--xeo-blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 90, 99, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.ranking-tabs button.active {
  color: #fff;
  background: var(--xeo-energy);
  border-color: var(--xeo-energy);
  box-shadow: 0 10px 22px rgba(216, 137, 50, 0.24);
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.ranking-row,
.ranking-empty {
  background: #fff;
  border: 1px solid rgba(168, 176, 184, 0.28);
  border-radius: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
}

.ranking-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--xeo-energy);
  border-radius: 50%;
  font-weight: 900;
}

.ranking-row strong,
.ranking-empty strong {
  color: var(--xeo-text-light);
  font-size: 20px;
}

.ranking-row p,
.ranking-empty p {
  margin: 4px 0 0;
  color: var(--xeo-muted-light);
  font-weight: 800;
}

.ranking-row b {
  color: var(--xeo-energy);
  font-size: 22px;
}

.ranking-empty {
  padding: 22px;
}

.score-grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(168, 176, 184, 0.28);
  border-radius: 8px;
}

.score-grid span {
  color: #4d5b63;
  font-weight: 900;
}

.score-grid strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--xeo-energy);
  font-size: 38px;
  line-height: 1;
}

.score-grid p {
  margin: 0;
  color: var(--xeo-muted-light);
  font-weight: 800;
}

.rules-table {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(168, 176, 184, 0.34);
  border-radius: 8px;
}

.rules-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(90px, 0.35fr) minmax(210px, 1.2fr);
  gap: 16px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(168, 176, 184, 0.24);
}

.rules-table [role="row"]:first-child {
  background: rgba(216, 137, 50, 0.12);
  color: var(--xeo-text-light);
}

.rules-table [role="row"]:last-child {
  border-bottom: 0;
}

.rules-table span {
  color: #4d5b63;
}

.gamer-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px) 34px;
  color: var(--xeo-muted-light);
  font-weight: 800;
}

footer a {
  color: var(--xeo-blue);
}

@media (max-width: 860px) {
  .topbar,
  nav,
  .web-cta,
  .referral-section,
  .gamer-hero,
  .gamer-columns,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .referral-section,
  .gamer-hero,
  .gamer-columns {
    grid-template-columns: 1fr;
  }

  nav {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-preview {
    min-height: auto;
  }

  .phone-preview {
    margin: 0;
  }

  .web-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 360px);
    margin-top: 16px;
  }

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

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-head {
    flex-direction: column;
  }
}

@media (min-width: 861px) {
  h1 {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 14px 16px;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .nav-button {
    grid-column: 1 / -1;
  }

  .hero,
  .section,
  .web-cta,
  .referral-section,
  .gamer-hero,
  .gamer-columns,
  .score-grid {
    margin-left: 14px;
    margin-right: 14px;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .actions a,
  .web-cta a {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .live-ranking {
    margin-left: 14px;
    margin-right: 14px;
  }

  .ranking-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ranking-row b {
    grid-column: 2;
  }

  .rules-table [role="row"] {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phone-preview {
    width: 100%;
    border-radius: 24px;
  }

  .chat-list-preview article {
    grid-template-columns: 44px 1fr;
  }

  .chat-list-preview time {
    display: none;
  }
}
