:root {
  --bg: #0B0E14;
  --surface: #161B22;
  --surface2: #1D2530;
  --red: #E11D48;
  --red-light: #FB4267;
  --blue: #0284C7;
  --white: #FFFFFF;
  --muted: #9CA3AF;
  --green: #22C55E;
  --border: rgba(255,255,255,.09);
  --radius: 12px;
  --max: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(var(--max), 92%);
  margin: auto;
}

.section {
  padding: 100px 0;
}

.section-label {
  color: var(--red-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
}

.section-description {
  color: var(--muted);
  max-width: 650px;
  font-size: 15px;
}

.red { color: var(--red-light); }

/* HEADER */

header {
  position: fixed;
  inset: 0 0 auto;
  height: 82px;
  z-index: 1000;
  background: rgba(11,14,20,.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo svg {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo-text span {
  color: var(--red);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-size: 12px;
  font-weight: 700;
  color: #C5CBD4;
  transition: .3s;
}

nav a:hover {
  color: var(--red-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #B9F6CE;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  50% { opacity: .4; box-shadow: 0 0 3px var(--green); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  border: 1px solid transparent;
  transition: .3s;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 0 20px rgba(225,29,72,.25);
}

.btn-primary:hover {
  background: var(--red-light);
  box-shadow: 0 0 30px rgba(225,29,72,.55);
  transform: translateY(-3px);
}

.btn-outline {
  border-color: rgba(255,255,255,.3);
  color: white;
  background: rgba(255,255,255,.04);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red-light);
  transform: translateY(-3px);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 0;
  font-size: 28px;
}

/* HERO */

.hero {
  min-height: 750px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(90deg, rgba(5,8,14,.92), rgba(5,8,14,.45) 65%, rgba(5,8,14,.7)),
    linear-gradient(0deg, var(--bg), transparent 35%),
    url('https://i.pinimg.com/1200x/d3/82/11/d3821119060705e83c9146c7f22f086b.jpg') center/cover;
  padding-top: 100px;
}

.hero-content {
  max-width: 790px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFD0DA;
  background: rgba(225,29,72,.12);
  border: 1px solid rgba(225,29,72,.4);
  padding: 9px 15px;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(58px, 9vw, 104px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

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

.hero-subtitle {
  color: #D0D5DC;
  font-size: 16px;
  max-width: 650px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-bottom {
  display: flex;
  gap: 35px;
  margin-top: 65px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 27px;
  color: white;
}

.hero-stat span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* FEATURES */

.features {
  background: linear-gradient(180deg, #0B0E14, #10151D);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 45px;
}

.feature-card {
  background: linear-gradient(145deg, #1B222C, #121720);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: .35s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--red);
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(225,29,72,.12);
  color: var(--red-light);
  border-radius: 10px;
  font-size: 26px;
  margin-bottom: 25px;
}

.feature-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 23px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
}

/* UNIVERS */

.univers {
  background: #10151D;
}

.univers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 45px;
}

.universe-card {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  isolation: isolate;
}

.universe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}

.universe-card:hover img {
  transform: scale(1.08);
}

.universe-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,8,14,.98), rgba(5,8,14,.05) 80%);
  z-index: 1;
}

.universe-content {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 30px;
  right: 30px;
}

.universe-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  text-transform: uppercase;
}

.universe-content p {
  color: #D1D5DB;
  font-size: 13px;
  max-width: 480px;
  margin: 8px 0 18px;
}

.universe-link {
  color: var(--red-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* COMMANDS */

.commands-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
  margin-top: 45px;
}

.commands-info {
  color: var(--muted);
  font-size: 14px;
  margin-top: 15px;
}

.commands-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 9px;
  transition: .3s;
}

.command-item:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.key {
  min-width: 48px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #242B36;
  border: 1px solid rgba(225,29,72,.6);
  color: var(--red-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  border-radius: 6px;
}

.command-item strong {
  display: block;
  font-size: 12px;
}

.command-item small {
  color: var(--muted);
  font-size: 10px;
}

/* REGLEMENT */

.reglement {
  background: #10151D;
}

.rules {
  max-width: 850px;
  margin: 45px auto 0;
}

.rule {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.rule-button {
  width: 100%;
  padding: 20px 23px;
  color: white;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.rule-button:hover {
  color: var(--red-light);
}

.rule-button span:last-child {
  color: var(--red-light);
  font-size: 20px;
  transition: transform .3s;
}

.rule.active .rule-button span:last-child {
  transform: rotate(45deg);
}

.rule-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.rule-content p {
  padding: 0 23px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* JOIN */

.join {
  position: relative;
  background:
    linear-gradient(rgba(11,14,20,.93), rgba(11,14,20,.96)),
    url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1800&q=85') center/cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.step {
  padding: 30px;
  border: 1px solid var(--border);
  background: rgba(22,27,34,.8);
  border-radius: 12px;
  position: relative;
}

.step-number {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--red-light);
  font-size: 48px;
  font-weight: 900;
}

.step h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 25px;
  text-transform: uppercase;
  margin: 10px 0;
}

.step p {
  font-size: 13px;
  color: var(--muted);
}

/* CTA */

.final-cta {
  padding: 75px 20px;
  text-align: center;
  background: linear-gradient(135deg, #31101D, #10151D);
  border-top: 1px solid rgba(225,29,72,.3);
  border-bottom: 1px solid rgba(225,29,72,.3);
}

.final-cta h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 6vw, 60px);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.final-cta p {
  color: var(--muted);
  margin-bottom: 25px;
}

/* FOOTER */

footer {
  background: #080B10;
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 45px;
}

.footer-about p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 20px;
  max-width: 340px;
}

footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--red-light);
}

.ip-box {
  display: flex;
  gap: 7px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.ip-address {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #E5E7EB;
  padding: 11px;
  border-radius: 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.copy-btn {
  background: var(--red);
  border: none;
  color: white;
  border-radius: 5px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 800;
}

.copy-btn:hover {
  background: var(--red-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #727B89;
  font-size: 10px;
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .7s, transform .7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#copy-message {
  font-size: 11px;
  color: var(--green);
  margin-top: 8px;
  min-height: 18px;
}

/* RESPONSIVE */

@media(max-width: 1100px) {
  nav { gap: 13px; }
  nav a { font-size: 11px; }
  .server-status { display: none; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
}

@media(max-width: 800px) {
  header { height: 72px; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }

  nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(11,14,20,.98);
    padding: 25px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
  }

  nav.open { display: flex; }
  nav a { padding: 10px 0; font-size: 13px; }

  .hero { min-height: 680px; }
  .hero h1 { font-size: 65px; }
  .commands-layout { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 600px) {
  .section { padding: 75px 0; }
  .hero { min-height: 720px; }
  .hero h1 { font-size: 53px; }
  .hero-subtitle { font-size: 14px; }
  .hero-bottom { gap: 20px; }
  .features-grid,
  .univers-grid,
  .steps,
  .commands-list { grid-template-columns: 1fr; }
  .universe-card { height: 330px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}