* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05070d;
  --fg: #d8ffe1;
  --accent: #00ff88;
  --danger: #ff2b4c;
  --dim: #6f8a7a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Courier New', monospace;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============ ЗВЁЗДЫ ============ */
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at bottom, #0b1220 0%, #05070d 100%);
}

/* ============ ALERT BAR ============ */
.alert-bar {
  position: sticky;
  top: 0;
  height: 36px;               /* фиксируем высоту — от неё зависит отступ меню */
  line-height: 20px;
  background: var(--danger);
  color: #fff;
  font-weight: bold;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;
  z-index: 20;                 /* выше меню */
}
.alert-bar span {
  display: inline-block;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 36px;                   /* ровно под alert-bar */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8%;
  background: rgba(5, 7, 13, 0.85);      /* полупрозрачный фон */
  backdrop-filter: blur(10px);           /* эффект матового стекла */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.15);
  z-index: 15;                 /* выше основного контента */
}
.logo {
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 2px;
}
.nav nav a {
  color: var(--fg);
  margin-left: 24px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color .2s;
}
.nav nav a:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.ufo {
  font-size: 60px;
  animation: fly 8s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--accent));
}
@keyframes fly {
  0%, 100% { transform: translate(-30px, 0) rotate(-6deg); }
  50%      { transform: translate(30px, -20px) rotate(6deg); }
}

.glitch {
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  position: relative;
  margin: 20px 0;
  text-shadow: 0 0 12px var(--accent);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
}
.glitch::before {
  color: var(--danger);
  animation: glitch1 2.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch::after {
  color: var(--accent);
  animation: glitch2 3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
}
@keyframes glitch2 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(3px, -2px); }
  50% { transform: translate(-3px, 2px); }
  75% { transform: translate(2px, 1px); }
}

.subtitle {
  max-width: 600px;
  color: var(--dim);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* ============ COUNTDOWN ============ */
.countdown {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown div {
  background: rgba(0, 255, 136, .06);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 16px 22px;
  min-width: 90px;
  box-shadow: 0 0 20px rgba(0, 255, 136, .15) inset;
}
.countdown span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}
.countdown small {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 2px;
}

/* ============ BUTTON ============ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s;
  font-size: 14px;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 25px var(--accent);
}

/* ============ SECTIONS ============ */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 8%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s, transform .8s;
}
.section.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--accent);
}
.section p { color: var(--dim); line-height: 1.8; margin-bottom: 14px; }
.section strong { color: var(--accent); }

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: rgba(0, 255, 136, .04);
  border: 1px solid rgba(0, 255, 136, .25);
  border-radius: 10px;
  padding: 24px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0, 255, 136, .3);
}
.card .icon { font-size: 36px; margin-bottom: 12px; }
.card h3 { color: var(--accent); margin-bottom: 10px; letter-spacing: 1px; }
.card p { font-size: 14px; }

/* ============ STEPS ============ */
.steps { list-style: none; counter-reset: step; }
.steps li {
  padding: 16px 0 16px 60px;
  border-bottom: 1px dashed rgba(0, 255, 136, .2);
  position: relative;
  color: var(--fg);
  letter-spacing: 1px;
}
.steps li span {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-weight: bold;
  font-size: 20px;
}

/* ============ FORM ============ */
.join form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin-top: 20px;
}
.join input, .join select {
  padding: 14px 16px;
  background: rgba(0, 255, 136, .05);
  border: 1px solid rgba(0, 255, 136, .35);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s;
}
.join input:focus, .join select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 255, 136, .3);
}
.join select option { background: var(--bg); }

.form-msg {
  margin-top: 16px;
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1px;
  min-height: 20px;
}

/* ============ FOOTER ============ */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 2px;
  border-top: 1px solid rgba(0, 255, 136, .15);
}

/* ============ MOBILE ============ */
@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 14px;
    padding: 12px 16px;
    top: 36px;
  }
  .nav nav a { margin: 0 10px; font-size: 12px; }
  .countdown div { min-width: 70px; padding: 12px; }
  .countdown span { font-size: 1.4rem; }
}