* {
  box-sizing: border-box;
}

:root {
  --blue: #1fa8ff;
  --blue-soft: rgba(31, 168, 255, .45);
  --cyan: #7fe7ff;
  --white: #f2fbff;
  --muted: #a7bed4;
  --panel: rgba(3, 12, 26, .76);
  --panel2: rgba(5, 20, 42, .62);
  --border: rgba(98, 196, 255, .38);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #020610;
  color: var(--white);
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background: url("assets/background.png") center / cover no-repeat;
  transform: scale(1.05);
  animation: bgFloat 22s ease-in-out infinite alternate;
  z-index: -4;
}

#starsCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.dark-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 18%, rgba(20, 150, 255, .08), transparent 35%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.16) 45%, rgba(0,0,0,.86) 100%),
    radial-gradient(circle at center, transparent 0, rgba(0,0,0,.72) 100%);
}

.top-nav {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 34px));
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border: 1px solid rgba(85, 185, 255, .24);
  border-radius: 22px;
  background: rgba(2, 8, 18, .42);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 35px rgba(0, 122, 255, .17);
  animation: dropIn .8s ease both;
}

.nav-logo img {
  width: 118px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 13px rgba(71, 185, 255, .55));
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 42px;
}

.desktop-menu a,
.mobile-menu a {
  color: #eaf8ff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 800;
  opacity: .86;
  transition: .2s;
}

.desktop-menu a:hover,
.mobile-menu a:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--blue);
}

.right-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9bbad4;
  font-weight: 900;
  font-size: 13px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #98b5cc;
  font-weight: 900;
  cursor: pointer;
}

.lang-btn.active {
  color: white;
  text-shadow: 0 0 12px var(--blue);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  margin: 6px 0;
  border-radius: 4px;
  background: white;
  box-shadow: 0 0 10px var(--blue);
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 120px 18px 70px;
}

.hero-center {
  width: min(980px, 100%);
  text-align: center;
  animation: heroUp .9s ease .15s both;
}

.main-logo {
  width: min(620px, 94vw);
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(73, 178, 255, .62));
  animation: logoFloat 5s ease-in-out infinite;
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.4vw, 54px);
  letter-spacing: clamp(8px, 2.2vw, 22px);
  padding-left: clamp(8px, 2.2vw, 22px);
  color: #bdeeff;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(68, 185, 255, .95), 0 0 42px rgba(22, 108, 255, .55);
}

.hero-sub {
  margin: 0 auto 38px;
  font-size: clamp(14px, 1.7vw, 21px);
  letter-spacing: 1.2px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 12px rgba(0,0,0,.9);
}

.register-panel {
  width: min(850px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 24px;
  align-items: center;
  padding: 28px 34px;
  background:
    linear-gradient(135deg, rgba(7, 24, 48, .86), rgba(1, 8, 20, .78)),
    linear-gradient(90deg, transparent, rgba(87, 198, 255, .09), transparent);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 32px rgba(42, 160, 255, .13),
    0 0 38px rgba(27, 126, 255, .22),
    0 28px 75px rgba(0,0,0,.48);
  backdrop-filter: blur(14px);
  clip-path: polygon(3% 0, 97% 0, 100% 16%, 100% 84%, 97% 100%, 3% 100%, 0 84%, 0 16%);
  position: relative;
}

.register-panel::before,
.register-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 210px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px var(--blue);
}

.register-panel::before {
  top: 0;
}

.register-panel::after {
  bottom: 0;
}

.register-copy {
  text-align: left;
}

.register-copy h2 {
  margin: 0 0 10px;
  font-size: 23px;
  letter-spacing: 1px;
}

.register-copy p {
  margin: 0;
  color: #d4eaff;
  line-height: 1.55;
  font-size: 14px;
}

.register-form {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
}

.register-form input {
  height: 58px;
  border: 1px solid rgba(157, 220, 255, .28);
  border-radius: 7px;
  background: rgba(0, 8, 18, .68);
  outline: none;
  color: white;
  padding: 0 18px;
  font-size: 15px;
  box-shadow: inset 0 0 18px rgba(17, 111, 255, .16);
}

.register-form input::placeholder {
  color: rgba(210, 230, 245, .58);
}

.register-form button {
  height: 58px;
  border: 1px solid rgba(113, 207, 255, .75);
  border-radius: 7px;
  cursor: pointer;
  color: white;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(to bottom, #1ca8ff, #075cc8);
  box-shadow: inset 0 0 18px rgba(255,255,255,.16), 0 0 30px rgba(16, 130, 255, .62);
  transition: .2s;
}

.register-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.16);
}

.form-message {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  min-height: 20px;
  color: #92ffd7;
  text-align: center;
  text-shadow: 0 0 9px rgba(84, 255, 210, .65);
}

.pilot-counter {
  width: min(340px, 92vw);
  margin: 26px auto 0;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
  background: rgba(2, 11, 23, .78);
  border: 1px solid rgba(68, 185, 255, .34);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
  box-shadow: 0 0 30px rgba(18, 122, 255, .24);
}

.counter-icon {
  font-size: 37px;
  filter: drop-shadow(0 0 14px #ff6b1a);
}

.pilot-counter strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 0 14px rgba(255,255,255,.5);
}

.pilot-counter span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.section {
  position: relative;
  z-index: 2;
  width: min(800px, 92vw);
  margin: 0 auto 28px;
  text-align: center;
  padding: 20px 16px;
}

.section-kicker {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(26px, 3vw, 39px);
  margin: 0 0 18px;
  letter-spacing: 1px;
}

.section p {
  color: #d4e5f4;
  line-height: 1.75;
  margin: 0 auto;
}

.feature-grid {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-grid article {
  min-height: 210px;
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(145deg, rgba(4, 20, 43, .72), rgba(1, 8, 18, .70));
  border: 1px solid rgba(85, 185, 255, .26);
  box-shadow: inset 0 0 26px rgba(36, 157, 255, .09), 0 0 24px rgba(0,0,0,.24);
  transition: .22s;
}

.feature-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(126, 226, 255, .6);
  box-shadow: inset 0 0 30px rgba(36, 157, 255, .16), 0 0 34px rgba(27, 151, 255, .24);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 13px var(--blue));
}

.feature-grid h3 {
  margin: 0 0 12px;
  color: #92dcff;
  font-size: 16px;
}

.feature-grid p {
  margin: 0;
  color: #c7d8e5;
  font-size: 14px;
  line-height: 1.55;
}

.social-section {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  margin: 0 auto 36px;
  text-align: center;
}

.social-section h2 {
  color: #bcecff;
  letter-spacing: 3px;
  font-size: 20px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social-buttons a {
  min-width: 160px;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 0 22px rgba(255,255,255,.12);
}

.discord {
  background: linear-gradient(135deg, #5865f2, #2b36aa);
}

.instagram {
  background: linear-gradient(135deg, #ff3d86, #f78b38);
}

.twitter {
  background: linear-gradient(135deg, #111, #333);
}

.youtube {
  background: linear-gradient(135deg, #ff2626, #9b0000);
}

footer {
  position: relative;
  z-index: 2;
  color: rgba(222, 240, 255, .66);
  text-align: center;
  padding: 0 16px 34px;
  font-size: 13px;
}

@keyframes bgFloat {
  from {
    transform: scale(1.05) translate3d(-12px, -7px, 0);
  }
  to {
    transform: scale(1.09) translate3d(12px, 7px, 0);
  }
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translate(-50%, -22px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(34px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 900px) {
  .top-nav {
    top: 12px;
    height: 70px;
    border-radius: 18px;
    padding: 0 18px;
  }

  .nav-logo img {
    width: 100px;
  }

  .desktop-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    z-index: 49;
    top: 92px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 18px;
    background: rgba(2, 10, 22, .92);
    border: 1px solid rgba(85, 185, 255, .34);
    border-radius: 16px;
    backdrop-filter: blur(12px);
  }

  .mobile-menu.open {
    display: grid;
    gap: 16px;
  }

  .hero {
    padding-top: 106px;
  }

  .main-logo {
    width: min(460px, 95vw);
  }

  .hero-sub {
    margin-bottom: 25px;
  }

  .register-panel {
    grid-template-columns: 1fr;
    padding: 25px 20px;
    gap: 18px;
  }

  .register-copy {
    text-align: center;
  }

  .register-form {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-buttons a {
    min-width: 128px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 28px;
    letter-spacing: 8px;
    padding-left: 8px;
  }

  .pilot-counter strong {
    font-size: 32px;
  }

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

  .feature-grid article {
    min-height: 165px;
    padding: 20px 12px;
  }

  .feature-icon {
    font-size: 36px;
  }

  .feature-grid h3 {
    font-size: 12px;
  }

  .feature-grid p {
    font-size: 12px;
  }

  .social-buttons {
    gap: 10px;
  }

  .social-buttons a {
    min-width: 70px;
    padding: 13px 15px;
    font-size: 0;
  }

  .social-buttons a::first-letter {
    font-size: 0;
  }

  .discord::after { content: "Discord"; font-size: 13px; }
  .instagram::after { content: "Instagram"; font-size: 13px; }
  .twitter::after { content: "X"; font-size: 13px; }
  .youtube::after { content: "YouTube"; font-size: 13px; }
}
