:root {
  --bg: #080808;
  --bg-card: rgba(18, 18, 18, 0.92);
  --border: rgba(255, 120, 40, 0.35);
  --orange: #ff6a1a;
  --orange-hover: #ff7f33;
  --orange-dim: rgba(255, 106, 26, 0.15);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --muted-2: #5c5c5c;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% 18%, rgba(255, 90, 20, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

/* Hero background */
.hero-shell {
  position: relative;
  margin: 0 -32px 8px;
  padding: 0 32px;
}

.hero-shell-bg {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: clamp(340px, 46vw, 500px);
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0.55) 72%, #080808 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.15) 0%, rgba(8, 8, 8, 0.05) 42%, rgba(8, 8, 8, 0.72) 66%, rgba(8, 8, 8, 0.95) 100%),
    url("/assets/hero-bg.png?v=2") no-repeat left center / cover;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

.hero-shell::after {
  content: "";
  position: absolute;
  top: clamp(280px, 38vw, 420px);
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, #080808 100%);
  z-index: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.footer-brand .logo-img {
  height: 22px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.btn-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
  background: var(--orange);
  color: #fff;
}

.btn-sm:hover {
  background: var(--orange-hover);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
  background: var(--orange);
  color: #fff;
  line-height: 1.2;
  gap: 12px;
}

.btn-lg:hover {
  background: var(--orange-hover);
}

.btn-lg svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-platform-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-platform-icons .btn-logo-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.btn-platform-icons .btn-logo-icon[alt="FACEIT"] {
  width: 26px;
  height: 22px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  min-height: auto;
  padding: 8px 0 12px;
}

.hero-copy {
  position: relative;
}

.hero-copy h1,
.hero-copy p {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.85);
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-copy p {
  margin: 0 0 32px;
  max-width: 420px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  object-fit: cover;
  background: #222;
}

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

.social-proof p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.social-proof strong {
  color: var(--text);
  font-weight: 600;
}

/* Profile card */
.profile-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 106, 26, 0.28);
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 106, 26, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(255, 90, 20, 0.05);
  overflow: hidden;
}

.profile-top {
  display: grid;
  grid-template-columns: 118px 1fr 118px;
  gap: 14px;
  align-items: stretch;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eloid-score-box,
.faceit-level-box {
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 106, 26, 0.22);
  background: rgba(255, 106, 26, 0.04);
  text-align: center;
}

.eloid-score-box .label,
.faceit-level-box .label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.score-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.eloid-score-box .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.eloid-score-box .max {
  font-size: 0.72rem;
  color: var(--muted-2);
  font-weight: 600;
}

.score-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6a1a, #ff8a3d);
}

.player-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 8px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d3028, #1a1510);
  border: 2px solid rgba(255, 106, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.12);
  flex-shrink: 0;
  overflow: hidden;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.player-details {
  min-width: 0;
}

.player-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.verified {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

.player-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.player-meta .flag {
  margin-left: 4px;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.platform-pill .pill-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.platform-pill .pill-logo-faceit {
  width: 16px;
  height: 14px;
}

.platform-pill .pill-logo-steam {
  width: 16px;
  height: 16px;
}

.faceit-level-box .level-hex {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff7a2e 0%, #ff6a1a 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 106, 26, 0.35);
}

.faceit-level-box .elo {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mini-spark {
  width: 72px;
  height: 24px;
  margin: 6px auto 0;
  display: block;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.tab {
  padding: 12px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  border-bottom: 2px solid transparent;
  cursor: default;
  white-space: nowrap;
}

.tab.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Overview grid */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  padding: 16px 18px 18px;
}

.panel {
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.panel:first-child {
  padding-left: 0;
}

.panel:last-child {
  border-right: none;
  padding-right: 0;
}

.panel-maps {
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row span:first-child {
  color: var(--muted);
}

.stat-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.chart-wrap {
  position: relative;
  height: 100px;
}

.chart-wrap svg {
  width: 100%;
  height: 100%;
}

.chart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  z-index: 1;
  background: var(--orange);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255, 106, 26, 0.35);
}

.map-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.8rem;
}

.map-row .rank {
  color: var(--muted-2);
  width: 18px;
  flex-shrink: 0;
}

.map-row .name {
  flex: 1;
  margin-left: 4px;
  color: var(--text);
}

.map-row .pct {
  font-weight: 600;
  color: var(--orange);
}

.panel-action {
  margin-top: auto;
  padding-top: 12px;
  text-align: right;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 26, 0.45);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline svg {
  color: var(--orange);
}

.btn-outline:hover {
  border-color: var(--orange);
  background: var(--orange-dim);
}

/* Trusted */
.trusted {
  text-align: center;
  padding: 16px 24px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trusted-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  margin-bottom: 36px;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px 88px;
  max-width: 1200px;
  margin: 0 auto;
}

.trusted-logos img {
  display: block;
  width: auto;
  object-fit: contain;
  opacity: 0.32;
  filter: grayscale(100%) brightness(0) invert(1);
  transition: opacity 0.2s;
}

.trusted-logos img[alt="FACEIT"] { height: 28px; }
.trusted-logos img[alt="Counter-Strike 2"] { height: 30px; }
.trusted-logos img[alt="Steam"] { height: 34px; }
.trusted-logos img[alt="HLTV"] { height: 34px; }
.trusted-logos img[alt="Discord"] { height: 34px; }

.trusted-logos img:hover {
  opacity: 0.45;
}

/* Section headings */
.section-sub {
  margin: 0 auto 40px;
  max-width: 480px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.features,
.how {
  padding: 72px 0;
}

.features h2,
.how h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(14, 14, 14, 0.8);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 106, 26, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 106, 26, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 106, 26, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 106, 26, 0.35);
  background: rgba(255, 106, 26, 0.08);
  color: var(--orange);
  display: grid;
  place-items: center;
}

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

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 960px;
  margin: 48px auto 0;
}

.step {
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(14, 14, 14, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 106, 26, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.step-num {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step-icon {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.step-icon:not(.step-logos) {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 26, 0.35);
  background: rgba(255, 106, 26, 0.1);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  min-height: auto;
}

.step-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 26, 0.35);
  background: rgba(255, 106, 26, 0.1);
  width: fit-content;
  margin: 0 auto;
  min-height: auto;
}

.step-btn-logo {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.step-btn-logo-faceit {
  width: 26px;
  height: 22px;
}

.step-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.step-caption {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.step-line {
  width: 48px;
  height: 2px;
  align-self: center;
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.5;
}

/* CTA */
.cta {
  padding: 0 0 72px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(12, 12, 12, 0.9);
  box-shadow: 0 0 40px rgba(255, 90, 20, 0.04);
}

.cta-text h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta-text h2 em {
  font-style: normal;
  color: var(--orange);
}

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

.cta-action {
  text-align: center;
  flex-shrink: 0;
}

.cta-action .btn-lg {
  white-space: nowrap;
}

.cta-link-icon {
  width: 18px !important;
  height: 18px !important;
}

.cta-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted-2);
}

/* Site footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.copyright {
  font-size: 0.78rem;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s, background 0.2s;
}

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

.footer-social .social-logo {
  height: 18px;
  width: auto;
  display: block;
  opacity: 0.75;
  filter: grayscale(100%) brightness(0) invert(1);
}

.footer-social a:hover .social-logo {
  opacity: 1;
}

/* Responsive */
@media (min-width: 1025px) {
  .hero {
    align-items: start;
    padding-top: 12px;
  }

  .hero-copy {
    padding-top: 24px;
  }
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-shell {
    margin: 0 -20px 4px;
    padding: 0 20px;
  }

  .hero-shell-bg {
    top: 0;
    height: clamp(300px, 72vw, 380px);
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.05) 0%, rgba(8, 8, 8, 0.75) 68%, #080808 100%),
      url("/assets/hero-bg.png?v=2") no-repeat 18% top / cover;
  }

  .hero-shell::after {
    top: clamp(240px, 58vw, 320px);
    height: 80px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

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

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .social-proof {
    justify-content: center;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 320px;
  }

  .step-line {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .profile-top {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .faceit-level-box {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
    width: 100%;
  }

  .platform-badges {
    flex-wrap: wrap;
  }

  .overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .panel {
    border-right: none;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
  }

  .panel:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

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

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
