/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #050505;
  color: #e9e9e9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  cursor: default;
  background-image:
    radial-gradient(1100px 700px at 80% -10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(900px 600px at 0% 60%, rgba(255,255,255,0.035), transparent 60%),
    linear-gradient(180deg, #060606 0%, #0a0a0a 50%, #050505 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- noise ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, #ffffff, #9a9a9a);
  z-index: 100;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  transition: width 0.05s linear;
}

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 380px; height: 380px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 35%, transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 10px 18px 10px 14px;
  background: rgba(20,20,20,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 6px;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 6px;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #6a6a6a 100%);
  box-shadow: 0 0 14px rgba(255,255,255,0.35), inset 0 0 4px rgba(0,0,0,0.4);
}
.brand-text {
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
}
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #a8a8a8;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: #050505;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255,255,255,0.4);
}

/* ---------- main / pages ---------- */
main { position: relative; z-index: 5; }
.page { padding: 0 6vw; }
.section { padding: 80px 0; max-width: 1200px; margin: 0 auto; }
.section + .section { padding-top: 40px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
}
.hero-inner { position: relative; z-index: 3; max-width: 720px; }
.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  margin: 0 0 18px;
}
.hero-name {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin: 0 0 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero-name .line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(255,255,255,0.1);
}
.hero-name .line:last-child {
  background: linear-gradient(180deg, #c8c8c8 0%, #555 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-bio {
  font-size: 17px;
  color: #b3b3b3;
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero orbit decoration */
.hero-orbit {
  position: absolute; right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  z-index: 2;
  opacity: 0.7;
  pointer-events: none;
}
.orbit-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.orbit-ring-2 { inset: 80px; animation-duration: 90s; animation-direction: reverse; }
.orbit-dot {
  position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255,255,255,0.7);
  transform: translateX(-50%);
  animation: spin 60s linear infinite;
  transform-origin: 6px 266px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-dot { animation-name: orbit; }
@keyframes orbit {
  from { transform: rotate(0deg) translateY(0); }
  to   { transform: rotate(360deg) translateY(0); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #fff;
  color: #050505;
  box-shadow: 0 0 24px rgba(255,255,255,0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(255,255,255,0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #e9e9e9;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.btn-small { padding: 8px 14px; font-size: 12.5px; }

/* ---------- section title ---------- */
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  color: #fff;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 24px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* ---------- page titles ---------- */
.page-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 80px 0 12px;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-sub {
  color: #999;
  font-size: 16px;
  margin: 0 0 40px;
}

/* ---------- glass card ---------- */
.glass-card {
  position: relative;
  padding: 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}
.glass-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px 200px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glass-card:hover::after { opacity: 1; }
.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

.card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
  margin-bottom: 8px;
}
.card-value {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.card-note {
  font-size: 12.5px;
  color: #888;
  margin-top: 6px;
  font-style: italic;
}
.card-num {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.card-num + .card-label { margin-bottom: 0; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-orbit { display: none; }
  .topbar { gap: 12px; padding: 8px 10px 8px 8px; }
  .nav-link { padding: 7px 12px; font-size: 13px; }
  .brand-text { display: none; }
}

/* ---------- WIP banner ---------- */
.wip-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(14px);
}
.wip-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.wip-title { font-weight: 600; font-size: 14px; color: #fff; }
.wip-sub { font-size: 13px; color: #999; margin-top: 2px; }

.placeholder { min-height: 180px; }
.placeholder h3 { font-size: 22px; margin: 12px 0 6px; color: #fff; font-weight: 500; }
.placeholder p { color: #888; margin: 0; font-size: 14px; }
.placeholder-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #999;
}

/* ---------- rank cards ---------- */
.rank-card { padding: 24px 26px; }
.rank-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.rank-game { display: flex; align-items: center; gap: 12px; }
.rank-game-name { font-weight: 600; font-size: 15px; color: #fff; }
.rank-game-sub { font-size: 12px; color: #888; }

.rank-body { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.rank-elo {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.rank-meta { font-size: 13px; color: #888; }
.rank-note {
  font-size: 12.5px;
  color: #777;
  margin-top: 18px;
  line-height: 1.6;
}
.rank-note code {
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #ddd;
}

/* ---------- static rank cards (Premier + FACEIT) ---------- */

/* Top progress bar — fills with current rank tier color, shows max-rank distance */
.rank-progress {
  position: relative;
  height: 2px;
  margin: -24px -26px 18px;     /* bleed to card edges, sit above the head row */
  background: rgba(255,255,255,0.06);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.rank-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--tier-color, #fff);
  box-shadow: 0 0 10px var(--tier-color, rgba(255,255,255,0.6));
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
}
.rank-card-static { display: flex; flex-direction: column; }

.rank-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 38px; height: 38px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  color: #fff;
}
.rank-mark-premier {
  width: auto; min-width: 110px; padding: 0 14px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}
.rank-mark-faceit { color: #ff5500; }

.rank-tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--tier-color-soft, rgba(255,255,255,0.06));
  color: var(--tier-color, #fff);
  border: 1px solid var(--tier-color, rgba(255,255,255,0.12));
  white-space: nowrap;
  transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

.rank-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  gap: 10px; flex-wrap: wrap;
}
.rank-foot .rank-meta { font-size: 11.5px; color: #666; letter-spacing: 0.04em; }
.rank-foot .rank-meta:last-child {
  color: #aaa; text-align: right;
}

/* ----- Premier card ----- */
.rank-body-premier {
  position: relative;
  margin: 8px 0 4px;
  padding: 34px 22px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
}
.premier-bg {
  position: absolute;
  /* bleed past the card so the skew never reveals an uncolored edge */
  left: -32px; right: -32px; top: 0; bottom: 0;
  z-index: -1;
  background: rgba(20,20,20,0.4);
  /* thin tier-colored edges make the parallelogram shape read clearly */
  border-top: 1px solid var(--tier-color, #5b8fb9);
  border-bottom: 1px solid var(--tier-color, #5b8fb9);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.25),
    0 0 24px var(--tier-color, rgba(255,255,255,0.15));
  /* parallelogram band — ELO number stays upright (it's a sibling) */
  transform: skewX(-14deg);
  transform-origin: center;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}
.premier-bg-fill {
  position: absolute; inset: 0;
  background: var(--tier-color, #5b8fb9);
  opacity: 0.28;
  transition: background 0.6s ease, opacity 0.6s ease;
}
.premier-bg-stripes {
  position: absolute; inset: 0;
  /* diagonal slashes echoing the CS2 Premier rank-group background */
  background-image: repeating-linear-gradient(
    -32deg,
    rgba(255,255,255,0.09) 0 2px,
    transparent 2px 22px
  );
  opacity: 0.95;
}
.rank-elo-premier {
  position: relative;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  font-feature-settings: "tnum";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  line-height: 1;
}

/* ----- FACEIT card ----- */
.rank-body-faceit {
  position: relative;
  margin: 8px 0 4px;
  padding: 22px 18px;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 120px;
  background: rgba(20,20,20,0.4);
}
.faceit-bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.faceit-bg-fill {
  position: absolute; inset: 0;
  background: var(--tier-color, #ff5500);
  opacity: 0.16;
  transition: background 0.6s ease, opacity 0.6s ease;
}
.rank-elo-faceit {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  font-feature-settings: "tnum";
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  line-height: 1;
}
.rank-level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tier-color, #ff5500);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--tier-color, rgba(255,85,0,0.3));
  transition: color 0.6s ease, border-color 0.6s ease;
}

/* ---------- crosshair ---------- */
.crosshair-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
}
@media (max-width: 720px) {
  .crosshair-wrap { grid-template-columns: 1fr; }
}
.crosshair-preview {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #000;
}
.crosshair-svg { width: 100%; height: 100%; }
.crosshair-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777;
  margin-bottom: 8px;
}
.crosshair-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.crosshair-code {
  flex: 1 1 200px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: #fff;
  user-select: all;
}
.crosshair-hint {
  font-size: 12.5px;
  color: #888;
  margin-bottom: 16px;
}
#openCrosshair { display: inline-flex; }

/* ---------- links ---------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 640px) { .links-grid { grid-template-columns: 1fr; } }
.link-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  text-decoration: none;
}
.link-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.link-icon svg { width: 22px; height: 22px; }
.link-text { flex: 1; min-width: 0; }
.link-title { font-size: 15px; font-weight: 500; color: #fff; }
.link-sub { font-size: 12px; color: #888; margin-top: 2px; }
.link-arrow {
  color: #666;
  font-size: 18px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.link-card:hover .link-arrow { transform: translateX(4px); color: #fff; }

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: 60px 20px 40px;
  color: #555;
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 80px;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* selection */
::selection { background: rgba(255,255,255,0.2); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a2a; }
