:root {
  color-scheme: dark;
  --bg: #06070a;
  --bg-2: #0a0c12;
  --panel: rgba(15, 18, 26, 0.6);
  --panel-2: rgba(22, 28, 38, 0.7);
  --accent: #d81b4d;
  --accent-2: #ff4d7d;
  --accent-glow: rgba(216, 27, 77, 0.3);
  --text: #f0f2f5;
  --muted: #8c98a9;
  --line: rgba(255, 255, 255, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(216, 32, 80, 0.35);
  color: #0a0c10;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(216, 27, 77, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(216, 27, 77, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, #06070a 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% -20%;
  z-index: -3;
}

body::before {
  background: radial-gradient(circle at 15% 20%, rgba(216, 32, 80, 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 59, 106, 0.15), transparent 40%);
}

body::after {
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 6px);
  opacity: 0.25;
  mix-blend-mode: screen;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.05'/></svg>");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(216, 32, 80, 0.6);
  outline-offset: 3px;
}

button {
  font-family: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 6vw;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 10, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-text {
  display: grid;
  gap: 0px;
}

.logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 2px;
}

.title {
  font-family: "Teko", sans-serif;
  letter-spacing: 1.5px;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1;
}

.subtitle {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.links {
  display: flex;
  gap: 20px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 2px;
}

.links a {
  position: relative;
  padding-bottom: 6px;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.links a:hover {
  color: var(--text);
}

.links a:hover::after {
  width: 100%;
}

.cta {
  display: flex;
  gap: 12px;
}

.primary,
.ghost {
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(216, 27, 77, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.primary:active,
.ghost:active {
  transform: translateY(0);
}

.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.marquee {
  overflow: hidden;
  background: rgba(216, 32, 80, 0.08);
  border-bottom: 1px solid rgba(216, 32, 80, 0.2);
  text-transform: uppercase;
  font-family: "Teko", sans-serif;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.marquee-track {
  display: flex;
  gap: 30px;
  padding: 8px 0;
  animation: marquee 18s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3%);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 120px;
  padding: 60px 5vw;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  justify-self: start;
  text-align: left;
}

.hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 500px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% 10% auto 10%;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 32, 80, 0.18), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 6px);
  opacity: 0.1;
  pointer-events: none;
  z-index: -2;
}

.hero-content h1 {
  font-family: "Teko", sans-serif;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.85;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  color: var(--muted);
  max-width: 440px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero-badge-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  background: rgba(216, 32, 80, 0.15);
  color: var(--accent);
  border: 1px solid rgba(216, 32, 80, 0.4);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-stamp {
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}

.server-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  background: rgba(10, 12, 16, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 18px 24px;
  border-radius: 6px;
  margin-top: 40px;
  width: fit-content;
  box-shadow: var(--shadow-md), inset 0 1px 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
}

.server-info .label {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  display: block;
}

.server-info .value {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
}

.status {
  color: #ff4081 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(255, 64, 129, 0.4);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 32, 80, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero-visual::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: 180px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.city-card {
  background: linear-gradient(165deg, rgba(20, 24, 34, 0.5) 0%, rgba(5, 6, 8, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  animation: float 10s ease-in-out infinite;
}

.city-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 50%, rgba(233, 30, 99, 0.03) 100%);
  pointer-events: none;
}

.city-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(216, 32, 80, 0.35), transparent 70%);
  opacity: 0.6;
}

.city-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.city {
  margin: 18px 0;
}

.city-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pill {
  background: rgba(216, 32, 80, 0.2);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.quick-stats div {
  background: rgba(10, 12, 16, 0.5);
  padding: 16px 12px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.quick-stats span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: "Teko", sans-serif;
  line-height: 1;
}

.quick-stats small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.quick-stats div:hover {
  border-color: rgba(216, 32, 80, 0.3);
  background: rgba(216, 32, 80, 0.05);
}

.section {
  padding: 80px 6vw;
  position: relative;
  z-index: 1;
}

.section::before {
  content: "";
  position: absolute;
  left: 6vw;
  right: 6vw;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 32, 80, 0.3), transparent);
  opacity: 0.6;
}

.section-head {
  margin-bottom: 36px;
}

.section h2 {
  font-family: "Teko", sans-serif;
  font-size: clamp(34px, 3.4vw, 48px);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section p {
  color: var(--muted);
}

main .section:nth-of-type(even) {
  background: linear-gradient(120deg, rgba(16, 20, 28, 0.6), rgba(8, 10, 14, 0.6));
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.about-card {
  background: rgba(18, 22, 30, 0.9);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.card-top {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-row span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.feature-grid,
.faction-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-grid article,
.faction-grid div,
.media-card {
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.4) 0%, rgba(10, 12, 16, 0.5) 100%);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 140px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.feature-grid article {
  display: grid;
  gap: 10px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(216, 32, 80, 0.15);
  color: var(--accent);
  border: 1px solid rgba(216, 32, 80, 0.4);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-grid article::after,
.faction-grid div::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(216, 32, 80, 0.4);
  opacity: 0.8;
}

.feature-grid article:hover,
.faction-grid div:hover,
.media-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(233, 30, 99, 0.1);
  border-color: rgba(233, 30, 99, 0.3);
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.6) 0%, rgba(10, 12, 16, 0.7) 100%);
}

.stats {
  background: linear-gradient(120deg, rgba(216, 32, 80, 0.1), rgba(255, 59, 106, 0.08));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  text-align: center;
}

.stats-grid .big {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(216, 32, 80, 0.3);
}

.media-card {
  display: grid;
  align-items: end;
  text-align: left;
  color: var(--text);
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.15), rgba(8, 10, 14, 0.7));
}

.media-card span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text);
}

.media-1 {
  background-image: url("assets/city-grid.svg");
}

.media-2 {
  background-image: url("assets/arabica-poster.svg");
}

.media-3 {
  background-image: url("assets/garage.svg");
}

.media-4 {
  background-image: url("assets/night-district.svg");
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.poster-card {
  margin-top: 10px;
  background: rgba(13, 16, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.poster-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
}

.poster-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d82050, #ff3b6a);
  display: grid;
  place-items: center;
  font-family: "Teko", sans-serif;
  font-size: 32px;
  color: #0c0f12;
  font-weight: 600;
  box-shadow: 0 0 40px rgba(216, 32, 80, 0.4);
  z-index: 2;
}

.poster-glow {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(216, 32, 80, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.auth-card,
.player-card {
  background: rgba(18, 22, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.tab.active {
  background: var(--accent);
  color: #111;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 16, 0.8);
  color: var(--text);
}

.form input:focus {
  outline: none;
  border-color: rgba(216, 32, 80, 0.6);
  box-shadow: 0 0 18px rgba(216, 32, 80, 0.2);
}

.checkbox {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.full {
  width: 100%;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.hidden {
  display: none;
}

.auth-status {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(216, 32, 80, 0.1);
  border: 1px solid rgba(216, 32, 80, 0.3);
}

.player-card {
  display: grid;
  gap: 18px;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.player-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #d82050, #ff3b6a);
  display: grid;
  place-items: center;
  font-family: "Teko", sans-serif;
  font-size: 20px;
  color: #0c0f12;
}

.player-name {
  font-size: 20px;
  font-weight: 700;
}

.player-rank {
  color: var(--muted);
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}

.player-stats span {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.player-actions {
  display: grid;
  gap: 10px;
}

.footer {
  padding: 40px 6vw 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 20px;
  background: rgba(10, 12, 16, 0.92);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
}

.legal {
  font-size: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(18, 22, 30, 0.95);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .links {
    display: none;
  }

  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
