/* =====================================================
   AVANTOS GENS — DESIGN SYSTEM
   Shared across all pages
   ===================================================== */

/* DESIGN TOKENS */
:root {
  /* Brand */
  --blue-300: #74cdff;
  --blue-400: #4cb8ff;
  --blue-500: #3aaaff;
  --blue-600: #2a92e0;
  --blue-700: #1e7fd9;
  --cyan: #00d9ff;
  --cyan-glow: rgba(0, 217, 255, 0.5);

  /* Neutrals */
  --bg-deepest: #04080f;
  --bg-deep: #060d18;
  --bg-mid: #0a1929;
  --bg-card: #0f1f36;
  --bg-card-hover: #14253f;

  --text-100: #ffffff;
  --text-200: #e8f1fb;
  --text-300: #b8c8db;
  --text-400: #8ca5c1;
  --text-500: #5a7290;

  /* Accents */
  --green: #22c55e;
  --gold: #fbbf24;
  --silver: #cbd5e1;
  --bronze: #d97706;
  --purple: #a855f7;
  --red: #ef4444;
  --orange: #f97316;

  /* Surfaces */
  --border-subtle: rgba(58, 170, 255, 0.12);
  --border-strong: rgba(58, 170, 255, 0.35);
  --border-active: rgba(58, 170, 255, 0.6);

  /* Effects */
  --gradient-text: linear-gradient(180deg, #ffffff 0%, #74cdff 100%);
  --gradient-blue: linear-gradient(135deg, #3aaaff 0%, #74cdff 100%);
  --gradient-blue-deep: linear-gradient(135deg, #1e7fd9 0%, #3aaaff 100%);
  --shadow-glow: 0 0 80px rgba(58, 170, 255, 0.25);
  --shadow-card: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-blue: 0 12px 32px -8px rgba(58, 170, 255, 0.4);

  /* Sizing */
  --maxw: 1320px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deepest);
  color: var(--text-100);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-500); color: var(--bg-deepest); }

/* =====================================================
   BACKGROUND LAYERS — universal
   ===================================================== */
.bg-gradient {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(58, 170, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(0, 217, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #060d18 0%, #04080f 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(58, 170, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 170, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 75%);
}
#snow-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.spotlight {
  position: fixed; pointer-events: none;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 170, 255, 0.18), transparent 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: transform 0.15s ease-out;
  mix-blend-mode: screen;
  filter: blur(40px);
}

/* =====================================================
   NAV
   ===================================================== */
nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(6, 13, 24, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 16px; letter-spacing: 0.05em;
}
.nav-brand img { width: 38px; height: 38px; border-radius: 8px; }
.nav-brand span {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 500; font-size: 14px;
  color: var(--text-300);
  transition: all 0.15s;
  position: relative;
}
.nav-link:hover { color: var(--text-100); background: rgba(58, 170, 255, 0.08); }
.nav-link.active {
  color: var(--text-100);
  background: rgba(58, 170, 255, 0.12);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 14px; right: 14px;
  height: 2px;
  background: var(--gradient-blue);
  border-radius: 2px;
}
.nav-cta {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700; font-size: 14px;
  background: var(--gradient-blue);
  color: var(--text-100) !important;
  box-shadow: var(--shadow-blue);
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -8px rgba(58, 170, 255, 0.6); }

/* =====================================================
   HERO — main (home only)
   ===================================================== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px 40px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  background: rgba(58, 170, 255, 0.1);
  border: 1px solid var(--border-strong);
  font-size: 12px; font-weight: 600;
  color: var(--blue-300);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green), inset 0 0 0 4px rgba(255,255,255,0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5), 0 0 12px var(--green); }
  50%      { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0), 0 0 12px var(--green); }
}
.hero-title {
  font-family: 'Anton', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  position: relative;
}
.hero-title .word {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #74cdff 60%, #3aaaff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(58, 170, 255, 0.3));
}
.hero-title .word-2 {
  background: linear-gradient(180deg, #3aaaff 0%, #1e7fd9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.02em;
  position: relative;
}
.hero-title .word-2::after {
  content: '';
  display: inline-block;
  width: 0.18em; height: 0.18em;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
  vertical-align: super;
  margin-left: 0.1em;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.7); }
}
.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-300);
  max-width: 540px;
  margin-top: 24px;
  line-height: 1.5;
  font-weight: 400;
}
.hero-subtitle b { color: var(--text-100); font-weight: 600; }
.hero-bottom {
  margin-top: 44px;
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* =====================================================
   PAGE HERO — for non-home pages (smaller, focused)
   ===================================================== */
.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 24px 50px;
  text-align: left;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--gradient-blue);
}
.page-hero-title {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 18px;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(58, 170, 255, 0.2));
}
.page-hero-title b {
  background: linear-gradient(180deg, #3aaaff 0%, #1e7fd9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}
.page-hero-subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-300);
  max-width: 620px;
  line-height: 1.55;
}

/* =====================================================
   IP CARD — used on multiple pages
   ===================================================== */
.ip-card {
  background: linear-gradient(135deg, rgba(15, 31, 54, 0.8) 0%, rgba(10, 25, 41, 0.6) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 24px;
  display: flex; align-items: center; gap: 18px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.ip-card-info {
  display: flex; flex-direction: column;
  padding: 10px 0;
  min-width: 0;
}
.ip-card-info span:first-child {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--text-400); text-transform: uppercase; margin-bottom: 4px;
}
.ip-card-info span:last-child {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--blue-300);
  letter-spacing: 0.05em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.copy-btn {
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--gradient-blue);
  color: var(--text-100);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.copy-btn.copied { background: var(--green); }

.hero-stats { display: flex; gap: 32px; padding: 14px 0; }
.hero-stat {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--border-strong);
  padding-left: 18px;
}
.hero-stat-value {
  font-size: 26px; font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px; color: var(--text-400);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================
   FLOATING IP COPY (sticky bottom-right)
   ===================================================== */
.float-ip {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 50;
  background: rgba(15, 31, 54, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px 10px 16px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(58, 170, 255, 0.15);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--blue-300);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.float-ip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-ip:hover { border-color: var(--border-active); transform: translateY(-2px); }
.float-ip-icon {
  width: 28px; height: 28px;
  background: var(--gradient-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.float-ip.copied { background: var(--green); border-color: var(--green); color: white; }

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border-subtle);
  background: linear-gradient(90deg, rgba(15, 31, 54, 0.8), rgba(10, 25, 41, 0.4), rgba(15, 31, 54, 0.8));
  padding: 18px 0;
  margin-top: 60px;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 16px;
  color: var(--text-200);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-item .icon { font-size: 22px; color: var(--blue-400); }
.marquee-item.accent { color: var(--blue-300); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   SECTIONS — shared layout
   ===================================================== */
section { padding: 100px 24px; max-width: var(--maxw); margin: 0 auto; }
.sec-head { margin-bottom: 56px; }
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-eyebrow::before {
  content: ''; width: 28px; height: 2px;
  background: var(--gradient-blue);
  display: inline-block;
}
.sec-title {
  font-family: 'Anton', 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1; letter-spacing: -0.02em;
  max-width: 720px;
}
.sec-title b {
  background: var(--gradient-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}
.sec-subtitle {
  color: var(--text-300);
  font-size: 17px;
  max-width: 540px;
  margin-top: 18px;
}

/* =====================================================
   FEATURES (home preview cards)
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(58, 170, 255, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::after { opacity: 1; }
.feature-card.large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 44px;
}
.feature-card.wide { grid-column: 2 / 4; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(58, 170, 255, 0.2), rgba(58, 170, 255, 0.05));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.feature-card.large .feature-icon { width: 72px; height: 72px; font-size: 36px; }
.feature-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-card.large .feature-title { font-size: 32px; }
.feature-text {
  color: var(--text-300);
  font-size: 15px;
  line-height: 1.65;
}
.feature-card.large .feature-text { font-size: 17px; max-width: 420px; }
.feature-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(58, 170, 255, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  color: var(--blue-300);
  letter-spacing: 0.05em;
  margin-top: 18px;
}
.feature-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-300);
  font-weight: 600; font-size: 14px;
  margin-top: 16px;
  transition: gap 0.15s;
}
.feature-link:hover { gap: 10px; }

/* =====================================================
   GRIND CARDS (action verbs)
   ===================================================== */
.grind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grind-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.grind-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.grind-card::before {
  content: attr(data-num);
  position: absolute;
  top: 16px; right: 20px;
  font-family: 'Anton', sans-serif;
  font-size: 64px;
  color: rgba(58, 170, 255, 0.07);
  line-height: 1;
  pointer-events: none;
}
.grind-emoji {
  font-size: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(58, 170, 255, 0.3));
}
.grind-verb {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  background: var(--gradient-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.grind-text {
  color: var(--text-300);
  font-size: 15px;
  line-height: 1.5;
}

/* =====================================================
   HIGHLIGHTS (stats with count-up)
   ===================================================== */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 80px;
}
.highlight {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.highlight.in-view::before { transform: scaleX(1); }
.highlight-num {
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--gradient-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.highlight-num .suffix { font-size: 0.55em; opacity: 0.75; margin-left: 2px; }
.highlight-label {
  color: var(--text-200);
  font-size: 16px;
  margin-top: 10px;
  font-weight: 600;
}
.highlight-sub {
  color: var(--text-400);
  font-size: 13px;
  margin-top: 4px;
}

/* =====================================================
   LEADERBOARD
   ===================================================== */
.lb-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.lb-header {
  display: grid;
  grid-template-columns: 60px 1fr 140px;
  padding: 16px 24px;
  font-size: 11px; font-weight: 700;
  color: var(--text-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}
.lb-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px;
  align-items: center;
  padding: 14px 24px;
  transition: background 0.15s;
  border-radius: var(--radius);
}
.lb-row:hover { background: rgba(58, 170, 255, 0.05); }
.lb-rank {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--text-400);
}
.lb-row.gold .lb-rank { color: var(--gold); text-shadow: 0 0 16px rgba(251, 191, 36, 0.5); }
.lb-row.silver .lb-rank { color: var(--silver); }
.lb-row.bronze .lb-rank { color: var(--bronze); }
.lb-player { display: flex; align-items: center; gap: 14px; }
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--bg-deepest);
}
.lb-row.gold .lb-avatar { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #422006; }
.lb-row.silver .lb-avatar { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #1e293b; }
.lb-row.bronze .lb-avatar { background: linear-gradient(135deg, #d97706, #92400e); color: #fffbeb; }
.lb-row.lb-empty .lb-name { color: var(--text-400); font-style: italic; font-weight: 600; }
.lb-row.lb-empty .lb-balance { color: var(--text-500); }
.lb-row.lb-empty .lb-avatar {
  background: rgba(58, 170, 255, 0.08);
  color: var(--blue-400);
  border: 1px dashed var(--border-strong);
}
.lb-row.lb-empty.gold .lb-avatar {
  background: rgba(251, 191, 36, 0.08); color: var(--gold);
  border-color: rgba(251, 191, 36, 0.35);
}
.lb-row.lb-empty.silver .lb-avatar {
  background: rgba(203, 213, 225, 0.06); color: var(--silver);
  border-color: rgba(203, 213, 225, 0.3);
}
.lb-row.lb-empty.bronze .lb-avatar {
  background: rgba(217, 119, 6, 0.08); color: var(--bronze);
  border-color: rgba(217, 119, 6, 0.35);
}
.lb-name { font-weight: 700; font-size: 15px; }
.lb-tag { font-size: 11px; color: var(--text-400); margin-top: 2px; }
.lb-balance {
  text-align: right;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--blue-300);
}
.lb-foot {
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  color: var(--text-400);
  font-size: 13px;
  gap: 8px;
}
.lb-foot a { color: var(--blue-300); font-weight: 600; }
.lb-foot a:hover { text-decoration: underline; }

/* =====================================================
   RANKS
   ===================================================== */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rank {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s;
  overflow: hidden;
}
.rank::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, var(--rank-color) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.rank:hover { transform: translateY(-6px); border-color: var(--rank-color-strong); }
.rank:hover::before { opacity: 0.08; }
.rank.featured {
  border-color: var(--rank-color-strong);
  box-shadow: 0 0 0 1px var(--rank-color-strong), var(--shadow-card);
}
.rank.featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gradient-blue);
  color: white;
  font-size: 9px; font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.1em;
}
.rank-tier {
  font-size: 11px; font-weight: 700;
  color: var(--text-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rank-name {
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--rank-color);
  margin-bottom: 24px;
}
.rank-perks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.rank-perks li {
  font-size: 14px; color: var(--text-300);
  padding-left: 22px; position: relative;
}
.rank-perks li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--rank-color);
  font-weight: 700;
}
.rank-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--rank-color);
  transition: gap 0.15s;
}
.rank-cta:hover { gap: 10px; }
.rank.gold     { --rank-color: #fbbf24; --rank-color-strong: rgba(251, 191, 36, 0.4); }
.rank.diamond  { --rank-color: #74cdff; --rank-color-strong: rgba(116, 205, 255, 0.4); }
.rank.emerald  { --rank-color: #22c55e; --rank-color-strong: rgba(34, 197, 94, 0.4); }
.rank.netherite{ --rank-color: #a855f7; --rank-color-strong: rgba(168, 85, 247, 0.4); }

/* RANK COMPARISON TABLE (ranks page) */
.rank-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}
.rank-table th, .rank-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.rank-table th {
  background: rgba(15, 31, 54, 0.7);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rank-table th:first-child { width: 40%; }
.rank-table .col-gold { color: var(--gold); }
.rank-table .col-diamond { color: var(--blue-300); }
.rank-table .col-emerald { color: var(--green); }
.rank-table .col-netherite { color: var(--purple); }
.rank-table td {
  font-size: 14px;
  color: var(--text-200);
}
.rank-table td:first-child { color: var(--text-100); font-weight: 600; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table .yes { color: var(--green); font-weight: 700; }
.rank-table .no { color: var(--text-500); }

/* =====================================================
   JOIN
   ===================================================== */
.join-tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}
.join-tab {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--text-400);
  transition: all 0.15s;
}
.join-tab.active {
  background: var(--gradient-blue);
  color: var(--text-100);
  box-shadow: var(--shadow-blue);
}
.join-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.join-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 4px; }
.join-step {
  counter-increment: step;
  display: flex; gap: 18px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  align-items: flex-start;
  transition: all 0.2s;
}
.join-step:hover { border-color: var(--border-strong); }
.join-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  color: var(--blue-400);
  line-height: 1;
  min-width: 38px;
}
.join-step-content { flex: 1; }
.join-step-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.join-step-text { font-size: 14px; color: var(--text-300); }
.join-step-text code {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  background: rgba(58, 170, 255, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--blue-300);
}
.join-side {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-mid));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.join-side h3 {
  font-family: 'Anton', sans-serif;
  font-size: 28px; font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.join-side p {
  color: var(--text-300);
  font-size: 15px;
  margin-bottom: 24px;
}
.join-side .ip-card { margin-bottom: 16px; }

/* =====================================================
   FAQ / accordion
   ===================================================== */
.faq {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 16px; font-weight: 600;
  color: var(--text-100);
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--blue-400);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue-300); }
.faq-answer {
  padding: 0 26px 22px;
  color: var(--text-300);
  font-size: 15px;
  line-height: 1.65;
}

/* =====================================================
   TIMELINE (gameplay progression)
   ===================================================== */
.timeline {
  display: flex; flex-direction: column;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 36px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-500), transparent);
}
.tl-item {
  display: flex; gap: 26px;
  padding: 24px 0;
  position: relative;
}
.tl-bullet {
  width: 74px;
  flex-shrink: 0;
  z-index: 1;
}
.tl-bullet-inner {
  width: 74px;
  background: var(--bg-card);
  border: 2px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 8px 0;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--blue-300);
  box-shadow: var(--shadow-blue);
}
.tl-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: border-color 0.2s;
}
.tl-content:hover { border-color: var(--border-strong); }
.tl-content h4 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px;
}
.tl-content p {
  font-size: 15px;
  color: var(--text-300);
  line-height: 1.6;
}

/* =====================================================
   RULES
   ===================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.rule-cat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.rule-cat-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.rule-cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-blue);
}
.rule-cat-title {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rule-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 16px;
}
.rule-item {
  display: flex; gap: 18px;
  padding: 16px 18px;
  background: rgba(10, 25, 41, 0.5);
  border-radius: var(--radius);
  align-items: flex-start;
}
.rule-num {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  color: var(--blue-400);
  line-height: 1;
  min-width: 32px;
}
.rule-text {
  font-size: 15px;
  line-height: 1.55;
}
.rule-text strong { color: var(--text-100); }
.rule-text p { color: var(--text-300); margin-top: 4px; font-size: 13px; }

.punishment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.punishment-table th, .punishment-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.punishment-table th {
  background: rgba(15, 31, 54, 0.7);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.punishment-table tr:last-child td { border-bottom: 0; }
.punishment-table .severity-low { color: var(--green); font-weight: 700; }
.punishment-table .severity-mid { color: var(--orange); font-weight: 700; }
.punishment-table .severity-high { color: var(--red); font-weight: 700; }

/* =====================================================
   CTA BLOCK
   ===================================================== */
.cta { max-width: var(--maxw); margin: 80px auto 100px; padding: 0 24px; }
.cta-card {
  position: relative;
  padding: 80px 60px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(58, 170, 255, 0.18) 0%, rgba(15, 31, 54, 0.6) 60%);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  overflow: hidden;
  text-align: center;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, transparent 0%, var(--blue-500) 50%, transparent 100%);
  animation: rotate 6s linear infinite;
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
}
@keyframes rotate { to { transform: rotate(360deg); } }
.cta-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;
}
.cta-sub { color: var(--text-300); font-size: 17px; max-width: 480px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--gradient-blue);
  color: var(--text-100);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(58, 170, 255, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-200);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }

/* =====================================================
   FOOTER
   ===================================================== */
footer { border-top: 1px solid var(--border-subtle); padding: 56px 24px 32px; background: var(--bg-deep); }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-row {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: 18px;
}
.footer-brand-row img { width: 32px; height: 32px; border-radius: 6px; }
.footer-brand-row span { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-brand p { color: var(--text-400); font-size: 14px; max-width: 320px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-400);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-300);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--blue-300); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-500);
  font-size: 13px;
}
.footer-bottom span { color: var(--blue-400); }

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.large { grid-column: 1 / 3; grid-row: auto; }
  .feature-card.wide { grid-column: 1 / 3; }
  .grind-grid { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .ranks-grid { grid-template-columns: 1fr 1fr; }
  .join-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .rank-table { font-size: 12px; }
  .rank-table th, .rank-table td { padding: 12px 10px; }
}
@media (max-width: 640px) {
  section { padding: 70px 20px; }
  .hero { padding: 40px 20px 30px; }
  .page-hero { padding: 50px 20px 36px; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-stats { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .hero-stat { padding-left: 12px; }
  .hero-stat-value { font-size: 20px; }
  .features-grid, .grind-grid, .highlights, .ranks-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-card.large, .feature-card.wide { grid-column: 1; }
  .ip-card { padding: 6px; flex-direction: column; align-items: stretch; }
  .ip-card-info { padding: 14px 14px 6px; }
  .copy-btn { justify-content: center; padding: 14px; }
  .cta-card { padding: 50px 24px; }
  .lb-header, .lb-row { grid-template-columns: 40px 1fr 100px; padding: 14px 16px; }
  .lb-balance { font-size: 11px; }
  .float-ip { bottom: 16px; right: 16px; padding: 8px 10px 8px 12px; font-size: 10px; }
  .timeline::before { left: 28px; }
  .tl-bullet, .tl-bullet-inner { width: 58px; }
  .tl-bullet-inner { font-size: 12px; }
  .rank-table { display: block; overflow-x: auto; }
}
