/* ================================================
   ElevateGames — main.css
   ================================================ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0a0a0a;
  --bg1:     #111113;
  --bg2:     #17171a;
  --bg3:     #1e1e22;
  --border:  rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.12);
  --text:    #e8e8e8;
  --muted:   #666;
  --muted2:  #444;
  --dim:     #333;
  --discord: #5865f2;
  --green:   #57f287;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── BG EFFECTS ── */
#rain-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.18;
}

.site-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('https://elevategames.pl/assets/textures/bg.png') center center / cover no-repeat;
  opacity: 0.18;
}

.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Geist Mono', monospace;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center;
  overflow: hidden;
}

.nav-links a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.03em;
  color: var(--muted); text-decoration: none;
  padding: 0 16px; height: 52px;
  display: flex; align-items: center; gap: 7px;
  border-right: 1px solid var(--border);
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav-links a i { font-size: 11px; opacity: 0.6; }

.nav-links a:first-child { border-left: 1px solid var(--border); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--bg1); }

.nav-right {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}

.nav-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 13px;
  border: 1px solid var(--border); border-radius: 4px;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}

.nav-icon:hover { color: var(--text); border-color: var(--border2); }

.nav-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  padding: 7px 14px;
  background: var(--discord); color: #fff; text-decoration: none;
  border-radius: 4px;
  display: flex; align-items: center; gap: 6px;
  transition: opacity .15s; white-space: nowrap; flex-shrink: 0;
}

.nav-btn:hover { opacity: 0.82; }
.nav-btn i { font-size: 12px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  padding: 11px 22px;
  background: var(--discord); color: #fff;
  text-decoration: none; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity .15s; white-space: nowrap;
}

.btn-primary:hover { opacity: 0.82; }

.btn-secondary {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 400; letter-spacing: 0.08em;
  padding: 11px 22px;
  border: 1px solid var(--border2);
  color: var(--muted); text-decoration: none; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s, border-color .15s; white-space: nowrap;
}

.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════
   SHARED SECTION
══════════════════════════════════════ */
.section {
  position: relative; z-index: 10;
  border-top: 1px solid var(--border);
  padding: 80px;
  max-width: 1200px; margin: 0 auto;
}

.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted2);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}

.section-label::before { content: '//'; color: var(--dim); }
.section-label i { font-size: 10px; opacity: 0.7; letter-spacing: 0; }

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--text);
  margin-bottom: 48px;
}

.section-title span { color: var(--muted); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px;
  max-width: 1200px; margin: 0 auto;
}

.hero-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}

.hero-tag::before { content: '//'; color: var(--muted2); }
.hero-tag i { font-size: 11px; opacity: 0.6; letter-spacing: 0; }

.hero h1 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 600; line-height: 1.0;
  letter-spacing: -0.03em; color: var(--text);
}

.hero h1 span { color: var(--muted2); }

.hero-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 300; color: var(--muted);
  max-width: 520px; line-height: 1.75;
  margin-top: 24px;
}

.hero-sub em { font-style: normal; color: rgba(232,232,232,0.55); }

.hero-divider {
  width: 100%; height: 1px;
  background: var(--border); margin: 40px 0;
}

.hero-bottom {
  display: flex; align-items: center;
  gap: 0; flex-wrap: wrap;
}

.hero-stat {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}

.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-of-type { border-right: none; }

.hero-stat-num {
  font-family: 'Geist Mono', monospace;
  font-size: 20px; font-weight: 500;
  color: var(--text); letter-spacing: -0.02em;
}

.hero-stat-icon {
  font-size: 10px; color: var(--muted2);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted2);
}

.hero-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
}

/* ══════════════════════════════════════
   MODES / TABS
══════════════════════════════════════ */
.modes-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0; overflow: hidden;
}

.mode-tab {
  flex: 1; padding: 13px 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--muted); background: var(--bg1);
  border: none; cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
  display: flex; align-items: center; gap: 8px;
  text-align: left; white-space: nowrap;
}

.mode-tab:last-child { border-right: none; }
.mode-tab:hover,
.mode-tab.active { background: var(--bg2); color: var(--text); }
.mode-tab i { font-size: 11px; flex-shrink: 0; }

.mode-content {
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 6px 6px;
  display: none;
  padding: 48px;
  background: var(--bg1);
}

.mode-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}

.mode-content-ghost {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
}

.mode-content-ghost svg {
  width: 52%;
  animation: ghostfloat 8s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(255,255,255,0.09));
}

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

.mode-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted2); border: 1px solid var(--border);
  border-radius: 3px; padding: 3px 10px;
  display: inline-block; margin-bottom: 16px;
}

.mode-name {
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 12px;
}

.mode-desc {
  font-size: 13px; font-weight: 300;
  color: var(--muted); line-height: 1.78; margin-bottom: 24px;
}

.mode-features { display: flex; flex-direction: column; gap: 9px; }

.mode-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; font-weight: 300; color: var(--muted);
  line-height: 1.5;
}

.mode-feature i {
  font-size: 10px; color: var(--muted2);
  margin-top: 4px; width: 12px; flex-shrink: 0;
}

/* ══════════════════════════════════════
   DISCORD BLOCK
══════════════════════════════════════ */
.discord-block {
  position: relative; z-index: 10;
  border-top: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
}

.discord-inner {
  display: grid; grid-template-columns: 1fr 240px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.discord-left {
  padding: 64px 72px;
  border-right: 1px solid var(--border);
}

.discord-left h2 {
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 14px; line-height: 1.2;
}

.discord-left > p {
  font-size: 13px; font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 440px; margin-bottom: 28px;
}

.perk-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }

.perk-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 300; color: var(--muted);
}

.perk-item i { font-size: 11px; color: var(--muted2); width: 13px; text-align: center; flex-shrink: 0; }

.discord-right {
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 0;
}

.discord-stat-block {
  padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.discord-stat-block:last-child { border: none; padding: 0; margin: 0; }

.discord-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); display: inline-block;
  margin-right: 6px;
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.d-num {
  font-family: 'Geist Mono', monospace;
  font-size: 36px; font-weight: 500; letter-spacing: -0.03em;
  color: var(--text); line-height: 1; margin-bottom: 3px;
}

.d-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted2);
}

/* ══════════════════════════════════════
   COMMUNITY FEED
══════════════════════════════════════ */
.feed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}

.feed-card { background: var(--bg1); padding: 24px; transition: background .15s; }
.feed-card:hover { background: var(--bg2); }

.feed-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.feed-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 500;
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.feed-name   { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.2; }

.feed-source {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; color: var(--muted2);
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}

.feed-source i { font-size: 9px; }
.feed-text { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.65; }

.feed-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 10px; color: var(--muted2);
  display: flex; align-items: center; gap: 8px;
}

/* ══════════════════════════════════════
   STUDIO
══════════════════════════════════════ */
.studio-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

.studio-body p {
  font-size: 13px; font-weight: 300; line-height: 1.82;
  color: var(--muted); margin-bottom: 14px;
}

.studio-pillars { display: flex; flex-direction: column; gap: 1px; }

.pillar {
  display: grid; grid-template-columns: 16px 1fr;
  gap: 14px; align-items: center;
  padding: 18px 22px;
  background: var(--bg1); border: 1px solid var(--border);
  border-bottom: none; transition: background .15s;
}

.pillar:last-child  { border-bottom: 1px solid var(--border); border-radius: 0 0 4px 4px; }
.pillar:first-child { border-radius: 4px 4px 0 0; }
.pillar:hover { background: var(--bg2); }
.pillar i { font-size: 11px; color: var(--muted2); text-align: center; }

.pillar-val {
  font-family: 'Geist Mono', monospace;
  font-size: 14px; font-weight: 500; color: var(--text);
}

.pillar-key {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; color: var(--muted2); letter-spacing: 0.08em; margin-top: 1px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
  padding: 64px 80px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; align-items: start;
}

.footer-logo {
  font-family: 'Geist Mono', monospace;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
  display: block; margin-bottom: 10px;
}

.footer-brand > p {
  font-size: 12px; font-weight: 300; color: var(--muted2);
  line-height: 1.65; margin-bottom: 18px;
}

.footer-socials { display: flex; gap: 6px; flex-wrap: wrap; }

.footer-social {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted2); text-decoration: none; font-size: 11px;
  transition: color .15s, border-color .15s;
}

.footer-social:hover { color: var(--text); border-color: var(--border2); }

.footer-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 14px;
}

.footer-col a {
  display: block; font-size: 13px; font-weight: 300;
  color: var(--muted); text-decoration: none;
  margin-bottom: 8px; transition: color .15s;
}

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

.footer-bottom {
  position: relative; z-index: 10;
  max-width: 1200px; margin: 0 auto;
  padding: 16px 80px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.footer-bottom p {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.04em; color: var(--dim);
}

/* ══════════════════════════════════════
   COUNT-UP
══════════════════════════════════════ */
.cnt { display: inline; }


/* ╔══════════════════════════════════════╗
   ║  RESPONSIVE                          ║
   ╚══════════════════════════════════════╝ */

/* ── 1080px ── */
@media (max-width: 1080px) {
  .hero,
  .section     { padding: 72px 48px; }
  .site-footer { padding: 56px 48px 40px; gap: 36px; }
  .footer-bottom { padding: 14px 48px; }

  .discord-left  { padding: 52px 48px; }
  .discord-inner { grid-template-columns: 1fr 220px; }

  .studio-grid { gap: 48px; }
}

/* ── 860px ── */
@media (max-width: 860px) {
  /* NAV — hide text links */
  .nav-links { display: none; }
  nav { padding: 0 20px; }

  /* HERO */
  .hero { padding: 80px 28px 52px; min-height: auto; padding-top: 90px; }

  .hero-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-stat:last-of-type { border-bottom: 1px solid var(--border); }

  .hero-actions {
    margin-left: 0;
    margin-top: 24px;
    display: flex; flex-direction: row;
    flex-wrap: wrap; gap: 10px;
  }

  /* SECTION */
  .section { padding: 52px 28px; }
  .section-title { margin-bottom: 32px; }

  /* MODES */
  .modes-tabs { flex-direction: column; border-radius: 6px 6px 0 0; }
  .mode-tab {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .mode-tab:last-child { border-bottom: none; }

  .mode-content       { padding: 28px; }
  .mode-content.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mode-content-ghost { aspect-ratio: 3/1; }
  .mode-content-ghost svg { width: 28%; }

  /* DISCORD */
  .discord-inner { grid-template-columns: 1fr; }
  .discord-left  {
    padding: 40px 28px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .discord-right {
    padding: 28px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .discord-stat-block {
    flex: 1; min-width: 90px;
    padding: 0; margin: 0;
    border: none;
  }

  /* FEED */
  .feed-grid { grid-template-columns: 1fr; }

  /* STUDIO */
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }

  /* FOOTER */
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px; padding: 40px 28px 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 28px; }
}

/* ── 560px ── */
@media (max-width: 560px) {
  /* NAV */
  .nav-btn   { padding: 6px 12px; font-size: 10px; }
  .nav-icon  { width: 28px; height: 28px; }

  /* HERO */
  .hero { padding: 80px 18px 44px; padding-top: 80px; }
  .hero-tag { font-size: 9px; letter-spacing: 0.12em; }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }

  /* SECTION */
  .section { padding: 40px 18px; }

  /* MODES — hide icon in tabs, shrink text */
  .mode-tab i { display: none; }
  .mode-tab   { font-size: 10px; padding: 12px 14px; }
  .mode-content { padding: 20px 18px; }
  .mode-content-ghost { display: none; }

  /* DISCORD */
  .discord-left  { padding: 32px 18px; }
  .discord-right { padding: 24px 18px; flex-direction: column; gap: 16px; }
  .discord-stat-block {
    padding-bottom: 16px; margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }
  .discord-stat-block:last-child { border-bottom: none; padding-bottom: 0; }

  /* FOOTER */
  .site-footer   { grid-template-columns: 1fr; gap: 28px; padding: 32px 18px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 18px; }
}