:root {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(12, 18, 25, 0.82);
  --panel-solid: #0b1118;
  --line: rgba(139, 202, 255, 0.16);
  --line-bright: rgba(139, 202, 255, 0.42);
  --text: #f3f7fb;
  --muted: #8e9ba8;
  --blue: #29b6ff;
  --blue-pale: #c3edff;
  --discord: #5865f2;
  --success: #54e8a2;
  --warning: #ffcf5c;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 70% 12%, rgba(0, 143, 255, 0.17), transparent 30%),
    radial-gradient(circle at 12% 58%, rgba(0, 96, 180, 0.09), transparent 26%),
    linear-gradient(145deg, #030507 0%, #07101a 47%, #030507 100%);
}

.noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(76, 170, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 170, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 11px;
  font: 700 15px/1 "Orbitron", sans-serif;
  letter-spacing: 0.14em;
}

.brand img {
  width: 35px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(41, 182, 255, 0.42));
}

.nav nav {
  display: flex;
  gap: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav nav a {
  transition: color 180ms ease;
}

.nav nav a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 18px;
}

.language-picker {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.language-picker button {
  padding: 6px 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.language-picker button.active {
  color: var(--bg);
  background: var(--blue-pale);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  gap: 28px;
  border: 1px solid rgba(131, 216, 255, 0.7);
  color: #03101a;
  background: linear-gradient(120deg, #def6ff, #48bdff);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(41, 182, 255, 0.25);
}

.button-small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 10px;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 76px);
  padding: clamp(110px, 13vw, 180px) clamp(24px, 8vw, 130px);
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: clamp(24px, 8vw, 130px);
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--line-bright), transparent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-pale);
  font: 600 10px/1 "Orbitron", sans-serif;
  letter-spacing: 0.23em;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 4px var(--blue);
  }
}

.hero h1 {
  max-width: 850px;
  margin: 25px 0 24px;
  font: 700 clamp(54px, 8.5vw, 132px) / 0.88 "Orbitron", sans-serif;
  letter-spacing: -0.055em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(100deg, #f8fbff 12%, #66c8ff 68%, #1985c4);
  background-clip: text;
  font-style: normal;
}

.hero > p {
  max-width: 590px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.glow {
  box-shadow: 0 0 40px rgba(41, 182, 255, 0.14);
}

.text-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(-130px, 1vw, 40px);
  width: min(52vw, 760px);
  transform: translateY(-50%);
  opacity: 0.36;
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(20, 151, 230, 0.22));
}

.mark-glow {
  position: absolute;
  inset: 22%;
  background: #0878b8;
  filter: blur(90px);
  opacity: 0.3;
}

.stats {
  display: grid;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stats article {
  display: flex;
  min-height: 150px;
  padding: 28px 42px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border: 0;
}

.stats strong {
  color: var(--blue-pale);
  font: 600 30px/1 "Orbitron", sans-serif;
}

.stats span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(90px, 12vw, 180px) clamp(24px, 7vw, 110px);
  border: 1px solid var(--line);
  border-bottom: 0;
}

.section-label {
  margin-bottom: 55px;
  color: var(--blue);
  font: 600 10px/1 "Orbitron", sans-serif;
  letter-spacing: 0.18em;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 70px;
}

.section-heading h2,
.application-copy h2 {
  margin: 0;
  font: 650 clamp(38px, 5.2vw, 78px) / 1 "Orbitron", sans-serif;
  letter-spacing: -0.04em;
}

.section-heading p,
.application-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  margin-top: 90px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  position: relative;
  min-height: 280px;
  padding: 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(21, 47, 69, 0.2), transparent);
}

.feature-number {
  color: var(--blue);
  font: 500 10px "Orbitron", sans-serif;
}

.feature-grid h3 {
  margin: 70px 0 16px;
  font: 600 18px "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.access {
  background:
    radial-gradient(circle at 82% 50%, rgba(41, 182, 255, 0.08), transparent 35%),
    rgba(0, 0, 0, 0.15);
}

.application-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  gap: clamp(50px, 9vw, 140px);
}

.application-copy {
  padding-top: 25px;
}

.application-copy h2 {
  margin: 28px 0 26px;
}

.application-copy ol {
  display: grid;
  margin: 60px 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.application-copy li {
  display: flex;
  align-items: center;
  padding: 18px 0;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.application-copy li span {
  color: var(--blue);
  font-family: "Orbitron", sans-serif;
}

.application-card {
  position: relative;
  min-height: 520px;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid var(--line-bright);
  background: linear-gradient(145deg, rgba(14, 25, 35, 0.96), rgba(5, 10, 15, 0.97));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 60px rgba(31, 141, 207, 0.035);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}

.application-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: rotate(45deg);
  transform-origin: right;
}

.state-panel {
  display: flex;
  min-height: 420px;
  text-align: center;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.state-panel h3 {
  margin: 20px 0 14px;
  font: 600 20px "Orbitron", sans-serif;
  letter-spacing: 0.05em;
}

.state-panel p {
  max-width: 380px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.state-panel small {
  margin-top: 16px;
  color: #657382;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discord-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid rgba(120, 132, 255, 0.52);
  color: #b7bdff;
  background: rgba(88, 101, 242, 0.15);
  font-size: 34px;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.15);
}

.discord-button {
  width: 100%;
  color: white;
  border-color: #7781f5;
  background: linear-gradient(120deg, #4c57d8, var(--discord));
}

.spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.profile {
  display: grid;
  padding-bottom: 24px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.profile img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  object-fit: cover;
  background: #101820;
}

.profile div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.profile small {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.profile strong {
  overflow: hidden;
  margin: 4px 0 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.profile span {
  color: var(--muted);
  font-size: 10px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.status-banner {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(84, 232, 162, 0.28);
  color: var(--success);
  background: rgba(84, 232, 162, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

form {
  display: grid;
  margin-top: 26px;
  gap: 18px;
}

form label:not(.consent) {
  display: grid;
  gap: 8px;
  color: #b6c0ca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  transition: border-color 180ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
}

textarea {
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.submit-button {
  width: 100%;
}

.form-message {
  min-height: 18px;
  margin: -6px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.form-message.error {
  color: #ff8585;
}

.form-message.success {
  color: var(--success);
}

footer {
  display: grid;
  max-width: 1500px;
  min-height: 130px;
  margin: 0 auto;
  padding: 35px clamp(24px, 7vw, 110px);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-status {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  color: var(--success);
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav nav,
  .button-small {
    display: none;
  }

  .hero-mark {
    right: -30%;
    width: 85vw;
    opacity: 0.2;
  }

  .section-heading,
  .application-shell {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 220px;
  }

  .feature-grid h3 {
    margin-top: 45px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav {
    height: 66px;
    padding: 0 16px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 40px;
  }

  .nav-actions {
    gap: 0;
  }

  .hero {
    min-height: 780px;
    padding: 110px 24px 80px;
  }

  .hero::before {
    left: 24px;
  }

  .hero h1 {
    font-size: clamp(48px, 17vw, 78px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats article {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 90px 24px;
  }

  .section-heading {
    gap: 28px;
  }

  .section-heading h2,
  .application-copy h2 {
    font-size: 39px;
  }

  .feature-grid {
    margin-top: 55px;
  }

  .application-shell {
    gap: 50px;
  }

  .application-card {
    min-height: 480px;
    padding: 24px 18px;
  }

  footer {
    min-height: 100px;
    padding: 24px;
  }
}

html[lang="zh"] .hero h1,
html[lang="ko"] .hero h1,
html[lang="zh"] h2,
html[lang="ko"] h2 {
  letter-spacing: -0.025em;
}
