/* ── Samo(ne)resni — Community Landing ─────────────────────── */

:root {
  --bg: #08090f;
  --bg-elevated: #10121c;
  --bg-card: #141824;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f8;
  --text-muted: #9aa3b8;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --accent: #00d4aa;
  --accent-pink: #ff6bcb;
  --serious: #5865f2;
  --funny: #f97316;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --container: min(1120px, calc(100% - 2rem));
  --header-h: 72px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(88, 101, 242, 0.18), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(255, 107, 203, 0.12), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(0, 212, 170, 0.08), transparent 45%),
    var(--bg);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

/* ── Header / Nav ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 9, 15, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
}

.brand-accent {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--discord), #7289ff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(88, 101, 242, 0.45);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

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

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ── Sections ─────────────────────────────────────────────── */

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2,
.hero-copy h1 {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 55%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead,
.hero-lead {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.25);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stats strong {
  font-size: 1.35rem;
  color: #fff;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
}

.panel-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(20, 24, 36, 0.85);
  backdrop-filter: blur(8px);
}

.panel-card--serious {
  border-color: rgba(88, 101, 242, 0.35);
  box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.08);
}

.panel-card--funny {
  margin-left: 2rem;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08);
}

.panel-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-card--serious .panel-tag { color: var(--serious); }
.panel-card--funny .panel-tag { color: var(--funny); }

.panel-card p {
  margin: 0;
  color: var(--text-muted);
}

.panel-glow {
  position: absolute;
  inset: 10% 5%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.25), transparent 70%);
  filter: blur(40px);
}

/* ── About cards ──────────────────────────────────────────── */

.dual-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.info-card ul {
  display: grid;
  gap: 0.75rem;
}

.info-card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.info-card--serious li::before { background: var(--serious); }
.info-card--funny li::before { background: var(--funny); }

.info-card--serious {
  border-top: 3px solid var(--serious);
}

.info-card--funny {
  border-top: 3px solid var(--funny);
}

/* ── Staff grid ───────────────────────────────────────────── */

.staff-tiers {
  display: grid;
  gap: 2.5rem;
}

.staff-tier-title {
  margin: 0 0 1rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.rank-resen {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.rank-manj-resen {
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

.rank-head-admin {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.rank-admin {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.staff-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-card);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.staff-card--resen { border-top: 3px solid #f97316; }
.staff-card--manj-resen { border-top: 3px solid #a855f7; }
.staff-card--head-admin { border-top: 3px solid #22c55e; }
.staff-card--admin { border-top: 3px solid #ef4444; }

.staff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.35);
}

.staff-profile-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.staff-profile-link:hover .staff-name {
  color: var(--accent);
}

.staff-profile-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.staff-avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(88, 101, 242, 0.5);
  object-fit: cover;
  background: rgba(88, 101, 242, 0.15);
}

.staff-name {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.staff-user {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ── Leaderboard preview ──────────────────────────────────── */

.leaderboard-preview {
  padding-bottom: 6rem;
}

.leaderboard-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 212, 170, 0.25);
  background:
    linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(88, 101, 242, 0.08)),
    var(--bg-card);
}

.nav-auth,
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-user img {
  border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.45);
}

.nav-user span {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snr-alert {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.snr-alert--success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.snr-alert--error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.snr-user-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 101, 242, 0.25);
  background: rgba(88, 101, 242, 0.08);
}

.snr-user-avatar {
  border-radius: 50%;
  border: 2px solid rgba(88, 101, 242, 0.5);
}

.snr-user-greeting {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.snr-user-stats {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.leaderboard-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.leaderboard-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-rank {
  width: 3rem;
  font-weight: 700;
}

.leaderboard-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.leaderboard-player img {
  border-radius: 50%;
}

.leaderboard-tokens {
  font-weight: 700;
  color: #fbbf24;
}

.leaderboard-loading,
.leaderboard-empty {
  text-align: center;
  color: var(--text-muted);
}

.leaderboard-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-note {
  margin: 0;
  opacity: 0.7;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid,
  .dual-cards {
    grid-template-columns: 1fr;
  }

  .panel-card--funny {
    margin-left: 0;
  }
}

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

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    background: rgba(8, 9, 15, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-menu .btn-discord {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .leaderboard-box {
    padding: 1.5rem;
  }
}
