:root {
  --ns-blue-300: #69b4ff;
  --ns-blue-400: #4099d9;
  --ns-purple-200: #d3adf7;
  --ns-purple-300: #b37feb;
  --ns-purple-400: #9254de;
  --ns-darker: #0a0a0f;
  --ns-dark: #141419;
  --ns-card: #1c1c24;
  --ns-border: #2a2a35;
  --ns-border-bright: #4a4a5a;
  --ns-text-muted: #7a7a8c;
  --status-online: #52c41a;
  --gradient-text: linear-gradient(135deg, #69b4ff 0%, #b37feb 100%);
  --fg-primary: #ffffff;
  --fg-secondary: #c8c8d4;
  --fg-muted: var(--ns-text-muted);
  --border-subtle: var(--ns-border);
  --font-primary: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Chakra Petch', 'Rajdhani', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ns-darker);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--fg-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  background:
    radial-gradient(circle at 68% 46%, rgba(146, 84, 222, 0.12), transparent 28%),
    radial-gradient(circle at 26% 94%, rgba(64, 153, 217, 0.09), transparent 24%),
    linear-gradient(135deg, #0a0a0f 0%, #090911 52%, #0b0b12 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(230, 244, 255, 0.76) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(105, 180, 255, 0.72) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(179, 127, 235, 0.68) 0 1px, transparent 1.2px);
  background-position: 12px 82px, 140px 18px, 54px 220px;
  background-size: 290px 250px, 410px 340px, 530px 430px;
  opacity: 0.52;
}

body::after {
  background:
    radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.5) 0 2px, transparent 2.4px),
    radial-gradient(circle at 79% 32%, rgba(179, 127, 235, 0.55) 0 2px, transparent 2.4px),
    radial-gradient(circle at 61% 67%, rgba(255, 255, 255, 0.42) 0 2px, transparent 2.4px),
    radial-gradient(circle at 80% 71%, rgba(105, 180, 255, 0.55) 0 2px, transparent 2.4px);
  opacity: 0.8;
}

.site-nav {
  position: relative;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(10, 10, 15, 0.72);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.portal-brand__mark {
  flex: 0 0 auto;
}

.portal-brand__word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero {
  position: relative;
  z-index: 1;
}

.hero__wrap {
  width: min(100%, 1200px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 64px 32px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__copy {
  max-width: 660px;
  min-width: 0;
}

.h-display {
  margin: 0 0 24px;
  color: var(--fg-primary);
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 100%;
}

.h-display span {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--fg-secondary);
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.returning {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow:
    0 0 2px #ffffff,
    0 0 8px rgba(105, 180, 255, 0.9),
    0 0 16px rgba(146, 84, 222, 0.8);
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero__media--mobile {
  display: none;
}

.hero__media img {
  width: min(100%, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(146, 84, 222, 0.16));
}

@media (max-width: 820px) {
  .site-nav {
    height: 56px;
    padding: 0 16px;
  }

  .portal-brand__word {
    font-size: 20px;
  }

  .hero__wrap {
    min-height: calc(100vh - 56px);
    padding: 36px 24px 48px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .h-display {
    margin: 0;
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero__media--desktop {
    display: none;
  }

  .hero__media--mobile {
    display: flex;
    margin: 20px 0 24px;
  }

  .lede {
    max-width: calc(100vw - 56px);
    margin-bottom: 22px;
    font-size: 16px;
  }

  .returning {
    font-size: 24px;
  }

  .hero__media img {
    width: min(100%, 270px);
  }
}

@media (max-width: 480px) {
  .portal-brand__mark {
    width: 28px;
    height: 28px;
  }

  .portal-brand__word {
    font-size: 18px;
  }

  .hero__wrap {
    padding: 28px 20px 44px;
  }

  .lede {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
