:root {
  color-scheme: dark;
  --bg: #05080d;
  --surface: rgba(10, 15, 23, 0.82);
  --surface-strong: #0c121c;
  --line: rgba(255, 255, 255, 0.1);
  --line-bright: rgba(66, 180, 230, 0.26);
  --text: #f5f8fb;
  --muted: #8e9bab;
  --blue: #2ba6da;
  --blue-bright: #71d8ff;
  --gold: #f2a52c;
  --gold-bright: #ffc45f;
  --discord: #7c8cff;
  --display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 30%, rgba(20, 94, 127, 0.12), transparent 28rem),
    linear-gradient(145deg, #060a10 0%, #05080d 52%, #070b11 100%);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #071018;
  background: var(--blue-bright);
  border-radius: 0.4rem;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
}

.ambient,
.grid-overlay {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.ambient {
  border-radius: 999px;
  filter: blur(1px);
}

.ambient-blue {
  top: 7%;
  right: -15rem;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(34, 166, 218, 0.16) 0%, transparent 67%);
  animation: breathe 8s ease-in-out infinite alternate;
}

.ambient-gold {
  bottom: -18rem;
  left: -14rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(242, 165, 44, 0.08) 0%, transparent 69%);
}

.grid-overlay {
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.site-header,
.site-footer,
.hero {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 7rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(43, 166, 218, 0.14));
}

.brand-name {
  color: #b9c4cf;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.brand-name strong {
  color: var(--text);
  font-weight: 750;
}

.launch-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.9rem;
  color: #b7c3ce;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 165, 44, 0.1), 0 0 12px rgba(242, 165, 44, 0.45);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
  align-items: center;
  gap: clamp(3.5rem, 8vw, 8.5rem);
  padding-block: clamp(4rem, 7vw, 7.25rem);
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.65rem;
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.4rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--blue), transparent);
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.6vw, 6.9rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.89;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, #f7f9fb 8%, #8bdfff 55%, var(--blue) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.intro {
  max-width: 36rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.75;
}

.tagline {
  margin: 1.25rem 0 0;
  color: #d7dee6;
  font-size: 0.95rem;
}

.tagline strong {
  color: var(--gold-bright);
  font-weight: 650;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 0.5rem 0.72rem;
  color: #aab5c1;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.38rem;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-panel {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--line-bright);
  border-radius: 1.2rem;
  background:
    linear-gradient(155deg, rgba(24, 42, 58, 0.56), transparent 47%),
    var(--surface);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.access-panel::before {
  position: absolute;
  top: 0;
  left: 13%;
  width: 44%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  opacity: 0.75;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0.2rem 1rem;
  color: #778696;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-code {
  color: rgba(113, 216, 255, 0.58);
}

.mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 14.5rem;
  margin: 0 -1.25rem;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.065);
  background:
    radial-gradient(circle, rgba(43, 166, 218, 0.11), transparent 48%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.mark-stage img {
  position: relative;
  z-index: 3;
  width: 12.75rem;
  height: 12.75rem;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.34));
  animation: mark-float 5.5s ease-in-out infinite;
}

.mark-glow {
  position: absolute;
  z-index: 0;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: rgba(37, 159, 210, 0.14);
  filter: blur(28px);
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(74, 186, 232, 0.12);
  border-radius: 50%;
  transform-origin: center;
}

.orbit-back {
  z-index: 1;
}

.orbit-front {
  z-index: 4;
  clip-path: inset(50% -2px -2px -2px);
  pointer-events: none;
}

.atom {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 0.34rem;
  height: 0.34rem;
  margin: -0.17rem 0 0 -0.17rem;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue);
  will-change: transform;
}

.atom-one {
  background: var(--blue-bright);
  box-shadow: 0 0 10px var(--blue), 0 0 18px rgba(43, 166, 218, 0.38);
}

.atom-two {
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold), 0 0 18px rgba(242, 165, 44, 0.34);
}

.orbit-one {
  width: 19rem;
  height: 9rem;
  transform: rotate(-16deg);
}

.orbit-one.orbit-front {
  border-color: rgba(113, 216, 255, 0.24);
}

.orbit-two {
  width: 22rem;
  height: 12.5rem;
  border-color: rgba(242, 165, 44, 0.09);
  transform: rotate(22deg);
}

.orbit-two.orbit-front {
  border-color: rgba(255, 196, 95, 0.18);
}

.access-heading {
  padding: 1.25rem 0.2rem 0.7rem;
}

.access-kicker {
  margin: 0 0 0.45rem;
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.035em;
}

.portal-links {
  display: grid;
  gap: 0.55rem;
}

.portal-links a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.3rem;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portal-links a:hover {
  border-color: rgba(71, 190, 238, 0.34);
  background: rgba(47, 155, 201, 0.075);
  transform: translateX(3px);
}

.portal-links a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 4px;
}

.portal-index {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--blue-bright);
  border: 1px solid rgba(55, 175, 224, 0.2);
  border-radius: 0.5rem;
  background: rgba(43, 166, 218, 0.06);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.portal-copy {
  display: grid;
  gap: 0.2rem;
}

.portal-copy strong {
  font-size: 0.92rem;
  font-weight: 660;
}

.portal-copy small {
  color: #758495;
  font-size: 0.72rem;
}

.portal-arrow {
  color: #738495;
  font-size: 1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.portal-links a:hover .portal-arrow {
  color: var(--blue-bright);
  transform: translate(2px, -2px);
}

.portal-links .discord-link:hover {
  border-color: rgba(124, 140, 255, 0.34);
  background: rgba(124, 140, 255, 0.075);
}

.portal-links .discord-link:hover .portal-arrow {
  color: #aeb8ff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  color: #5e6a77;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes mark-float {
  from,
  to { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes breathe {
  from { opacity: 0.66; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-block: 4.5rem;
  }

  .hero-copy {
    max-width: 47rem;
  }

  h1 {
    max-width: 9ch;
  }

  .access-panel {
    width: min(100%, 38rem);
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 2rem, 1280px);
  }

  .site-header {
    min-height: 5.6rem;
  }

  .brand img {
    width: 2.65rem;
    height: 2.65rem;
  }

  .brand-name {
    font-size: 0.91rem;
  }

  .launch-status {
    padding: 0.5rem 0.65rem;
    font-size: 0.57rem;
  }

  .hero {
    gap: 3.2rem;
    padding-block: 3.5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .intro {
    line-height: 1.65;
  }

  .services {
    gap: 0.42rem;
  }

  .services li {
    font-size: 0.58rem;
  }

  .access-panel {
    padding: 1rem;
    border-radius: 0.95rem;
  }

  .mark-stage {
    min-height: 12.25rem;
    margin: 0 -1rem;
  }

  .mark-stage img {
    width: 10.75rem;
    height: 10.75rem;
  }

  .orbit-one {
    width: 16rem;
  }

  .orbit-two {
    width: 18rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding-block: 1rem;
  }

  .site-footer p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
