:root {
  color-scheme: dark;
  --bg: #04020b;
  --bg-2: #080313;
  --panel: rgba(15, 8, 34, 0.82);
  --panel-solid: #100925;
  --line: rgba(188, 89, 255, 0.34);
  --line-strong: rgba(215, 122, 255, 0.7);
  --text: #f9f5ff;
  --muted: #cdbfe4;
  --soft: #998ab6;
  --purple: #b650ff;
  --purple-2: #e077ff;
  --green: #75ff67;
  --shadow: 0 30px 90px rgba(35, 12, 82, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(130, 39, 255, 0.32), transparent 34rem),
    radial-gradient(circle at 12% 34%, rgba(78, 31, 154, 0.28), transparent 32rem),
    linear-gradient(180deg, #070314 0%, #03020a 46%, #060411 100%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 68%);
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.effects-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.section-shell,
.topbar {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  margin-top: 24px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 9, 38, 0.92), rgba(8, 5, 24, 0.88));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 78, 255, 0.18), rgba(10, 5, 28, 0.8));
  box-shadow: 0 0 26px rgba(186, 78, 255, 0.46);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.6vw, 54px);
}

.nav a,
.nav button {
  position: relative;
  padding: 12px 0;
  background: transparent;
  color: #e8def5;
  text-decoration: none;
  font-weight: 650;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav a::after,
.nav button::after {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 58px;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #fff, var(--purple-2), transparent);
  box-shadow: 0 0 18px rgba(214, 102, 255, 0.8);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav button:hover,
.nav a:focus-visible,
.nav button:focus-visible {
  color: #fff;
  outline: none;
  text-shadow: 0 0 18px rgba(212, 101, 255, 0.58);
}

.nav .active::after,
.nav a:hover::after,
.nav button:hover::after,
.nav a:focus-visible::after,
.nav button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 54px;
  min-height: 720px;
  padding: 86px 0 72px;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 34px -42px 0;
  z-index: -1;
  content: "";
  border-radius: 36px;
  background:
    radial-gradient(circle at 74% 22%, rgba(146, 54, 255, 0.28), transparent 30rem),
    linear-gradient(90deg, rgba(7, 3, 20, 0.96), rgba(13, 5, 32, 0.66), rgba(9, 4, 24, 0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 10px 16px;
  border: 1px solid rgba(198, 93, 255, 0.44);
  border-radius: 999px;
  background: rgba(16, 9, 40, 0.78);
  color: #e7dcff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 26px rgba(155, 58, 255, 0.16);
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 16px rgba(224, 119, 255, 0.9);
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 6.3vw, 84px);
  line-height: 0.96;
  font-weight: 900;
  text-shadow: 0 20px 52px rgba(0, 0, 0, 0.46);
}

.hero h1::first-line {
  color: #fff;
}

.hero-lead {
  max-width: 640px;
  margin: 30px 0 34px;
  color: #ded4ed;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button,
.ghost-button,
.ip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.primary-button {
  gap: 12px;
  border: 1px solid rgba(238, 169, 255, 0.7);
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.28), transparent 48%),
    linear-gradient(180deg, #ca5bff, #7628dc);
  color: #fff;
  box-shadow: 0 0 28px rgba(196, 78, 255, 0.58), inset 0 1px 0 rgba(255,255,255,0.24);
}

.ghost-button {
  border: 1px solid rgba(200, 104, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  color: #efe8ff;
}

.primary-button:hover,
.ghost-button:hover,
.primary-button:focus-visible,
.ghost-button:focus-visible,
.ip-button:hover,
.ip-button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 0 42px rgba(212, 101, 255, 0.8), 0 18px 46px rgba(86, 31, 190, 0.4);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(225, 134, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  padding: 8px 12px;
  border: 1px solid rgba(176, 91, 255, 0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: #cfc3e5;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-frame {
  position: relative;
  height: 505px;
  overflow: hidden;
  border: 1px solid rgba(198, 89, 255, 0.42);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 26%, rgba(148, 54, 255, 0.44), transparent 20rem),
    linear-gradient(180deg, #190a3c, #080414);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

.visual-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 180, 72, 0.14), transparent 9rem),
    radial-gradient(circle at 58% 55%, rgba(167, 63, 255, 0.28), transparent 20rem),
    linear-gradient(90deg, rgba(6,3,17,0.58), transparent 46%, rgba(8,4,20,0.52));
}

.visual-frame img {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: min(92%, 520px);
  height: 94%;
  object-fit: cover;
  object-position: 54% top;
  filter: drop-shadow(0 34px 72px rgba(0, 0, 0, 0.48));
}

.visual-gate {
  position: absolute;
  z-index: 4;
  inset: 28px 26px 78px;
  pointer-events: none;
  border-radius: 28px;
}

.visual-gate::before,
.visual-gate::after {
  position: absolute;
  left: 11%;
  right: 11%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(245, 220, 255, 0.82), rgba(187, 70, 255, 0.6), transparent);
  box-shadow: 0 0 22px rgba(207, 91, 255, 0.62);
}

.visual-gate::before {
  top: 9%;
}

.visual-gate::after {
  bottom: 14%;
}

.gate-rail {
  position: absolute;
  top: 13%;
  bottom: 18%;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.85), rgba(196, 83, 255,0.82), transparent);
  box-shadow: 0 0 18px rgba(211, 104, 255, 0.78);
  opacity: 0.72;
  animation: gateRailPulse 3.4s ease-in-out infinite;
}

.gate-rail-left {
  left: 7%;
  transform: skewY(-7deg);
}

.gate-rail-right {
  right: 7%;
  transform: skewY(7deg);
  animation-delay: -1.2s;
}

.gate-corner {
  position: absolute;
  width: 74px;
  height: 74px;
  border-color: rgba(225, 149, 255, 0.7);
  filter: drop-shadow(0 0 12px rgba(205, 91, 255, 0.72));
  opacity: 0.8;
}

.gate-corner-top-left {
  left: 1%;
  top: 1%;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 20px 0 0 0;
}

.gate-corner-top-right {
  right: 1%;
  top: 1%;
  border-top: 2px solid;
  border-right: 2px solid;
  border-radius: 0 20px 0 0;
}

.gate-corner-bottom-left {
  left: 1%;
  bottom: 4%;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-radius: 0 0 0 20px;
}

.gate-corner-bottom-right {
  right: 1%;
  bottom: 4%;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-radius: 0 0 20px 0;
}

.gate-cube {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(232, 166, 255, 0.85);
  background: linear-gradient(145deg, rgba(210, 93, 255, 0.5), rgba(77, 33, 166, 0.28));
  box-shadow: inset 0 0 14px rgba(224, 133, 255, 0.22), 0 0 18px rgba(195, 81, 255, 0.62);
  transform: rotate(45deg);
  animation: gateCubeFloat 5.2s ease-in-out infinite;
}

.gate-cube-one {
  left: 18%;
  top: 22%;
}

.gate-cube-two {
  right: 14%;
  top: 18%;
  width: 14px;
  height: 14px;
  animation-delay: -1.6s;
}

.gate-cube-three {
  right: 20%;
  bottom: 30%;
  width: 12px;
  height: 12px;
  animation-delay: -2.7s;
}

.join-card {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 18px;
  z-index: 5;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(219, 125, 255, 0.48);
  border-radius: 20px;
  background: rgba(10, 5, 26, 0.86);
  box-shadow: 0 24px 80px rgba(19, 6, 48, 0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.join-card:hover,
.join-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(232, 150, 255, 0.78);
  outline: none;
}

.join-card img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(190, 77, 255, 0.4);
}

.join-card b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 18px;
}

.join-card span {
  display: block;
  color: #d6cae8;
  line-height: 1.42;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: -24px;
}

.status-card,
.social-card,
.access-card,
.story-cards,
.feature-card,
.mode-section,
.timeline,
.lore,
.cta {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(149, 61, 255, 0.16), transparent 50%),
    rgba(13, 7, 31, 0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 22px 68px rgba(20, 8, 52, 0.38);
  backdrop-filter: blur(16px);
}

.status-card,
.social-card,
.access-card {
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5c9eb;
  font-weight: 700;
}

.signal-bars {
  width: 23px;
  height: 20px;
  background:
    linear-gradient(180deg, transparent 58%, var(--green) 59%) 0 0 / 18% 100% no-repeat,
    linear-gradient(180deg, transparent 38%, var(--green) 39%) 38% 0 / 18% 100% no-repeat,
    linear-gradient(180deg, transparent 16%, var(--green) 17%) 76% 0 / 18% 100% no-repeat;
  filter: drop-shadow(0 0 8px rgba(117, 255, 103, 0.78));
}

.online-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: var(--green);
}

.online-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(117, 255, 103, 0.92);
}

.online-row strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-shadow: 0 0 16px rgba(117, 255, 103, 0.36);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(172, 98, 255, 0.22);
  color: #bfb2d4;
}

.metric-row b {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.status-note {
  min-height: 0;
  margin-top: 9px;
  color: rgba(234, 255, 223, 0.76);
  font-size: 0.9rem;
  font-weight: 650;
}

.status-note:empty {
  display: none;
}

.status-card.is-offline .online-row {
  color: #ff6d8f;
}

.status-card.is-offline .online-dot {
  background: #ff6d8f;
  box-shadow: 0 0 22px rgba(255, 109, 143, 0.86);
}

.status-card.is-offline .online-row strong {
  text-shadow: 0 0 16px rgba(255, 109, 143, 0.34);
}

.status-card.is-offline .signal-bars {
  opacity: 0.6;
  filter: grayscale(0.4) drop-shadow(0 0 8px rgba(255, 109, 143, 0.42));
}

.status-card.is-checking .online-dot {
  animation: statusPulse 1.35s ease-in-out infinite;
}

.ip-button {
  min-height: 42px;
  margin-top: 16px;
  padding-inline: 16px;
  border: 1px solid rgba(117, 255, 103, 0.22);
  background: rgba(117, 255, 103, 0.08);
  color: #eaffdf;
  font-weight: 800;
}

@keyframes statusPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.64;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.socials {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.social-button {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 96px;
  padding: 8px 6px 4px;
  border-radius: 18px;
  background: transparent;
  color: #efe6ff;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease;
}

.social-button::before {
  position: absolute;
  inset: 12px 18px auto;
  height: 50px;
  content: "";
  border-radius: 50%;
  background: rgba(184, 83, 255, 0.16);
  filter: blur(18px);
  opacity: 0.75;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.social-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -10px 18px rgba(0, 0, 0, 0.28),
    0 10px 18px rgba(0, 0, 0, 0.44),
    0 0 0 5px rgba(12, 7, 34, 0.72);
}

.social-icon::after {
  position: absolute;
  inset: 7px 11px auto;
  height: 20px;
  content: "";
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  filter: blur(10px);
}

.social-icon svg {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  fill: #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.32));
}

.social-icon-youtube svg {
  width: 50px;
  height: 50px;
}

.youtube-screen {
  fill: #fff;
}

.youtube-play {
  fill: #e01420;
}

.social-icon-telegram {
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.36), transparent 28%),
    linear-gradient(145deg, #5bd2ff, #1b8ad9 58%, #1557a9);
}

.social-icon-youtube {
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.32), transparent 28%),
    linear-gradient(145deg, #ff4e46, #d81420 58%, #8a0b1b);
}

.social-icon-discord {
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.32), transparent 28%),
    linear-gradient(145deg, #8b9bff, #5865f2 58%, #3a3199);
}

.social-button > span:last-child {
  position: relative;
  z-index: 1;
  color: #f5efff;
  font-weight: 800;
}

.social-button:hover,
.social-button:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.social-button:hover::before,
.social-button:focus-visible::before {
  opacity: 1;
  transform: scale(1.12);
}

.access-card span,
.section-kicker,
.section-heading span {
  color: var(--purple-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-card b {
  display: block;
  margin: 18px 0 10px;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

.access-card p {
  margin: 0;
  color: #d8cdea;
  line-height: 1.55;
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  padding: 18px;
  border-radius: 24px;
}

.story-cards article {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(165, 75, 235, 0.28);
  border-radius: 18px;
  background: #080416;
}

.story-cards img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.story-cards article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(3,2,10,0.92) 100%);
}

.story-cards article:hover img {
  transform: scale(1.08);
  filter: saturate(1.14) brightness(1.08);
}

.story-cards div {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.story-cards h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.story-cards p {
  margin: 0;
  color: #dccfed;
  line-height: 1.45;
}

.why {
  padding-top: 92px;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 28px;
}

.section-heading h2,
.mode-copy h2,
.lore h2,
.cta h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.section-heading p,
.mode-copy p,
.lore p,
.cta p {
  margin: 18px 0 0;
  color: #d9cfe8;
  font-size: 17px;
  line-height: 1.62;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 280px;
  padding: 28px 22px;
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(215, 122, 255, 0.62);
  box-shadow: 0 30px 76px rgba(86, 31, 176, 0.34);
}

.feature-card img {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(191, 82, 255, 0.28));
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: #d8cde8;
  line-height: 1.5;
}

.mode-section {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
  align-items: center;
  margin-top: 92px;
  padding: 46px;
  border-radius: 28px;
}

.mode-list {
  display: grid;
  gap: 14px;
}

.mode-list article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(186, 92, 255, 0.26);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.mode-list b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(188, 83, 255, 0.16);
  color: var(--purple-2);
}

.mode-list span {
  color: #f5efff;
  font-size: 18px;
  font-weight: 800;
}

.timeline {
  margin-top: 92px;
  padding: 46px;
  border-radius: 28px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.steps article {
  padding: 28px;
  border: 1px solid rgba(186, 92, 255, 0.26);
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
}

.steps b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ca5bff, #7628dc);
  color: #fff;
  box-shadow: 0 0 22px rgba(194, 78, 255, 0.48);
}

.steps h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: #d8cde8;
  line-height: 1.55;
}

.lore {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 30px;
  align-items: center;
  margin-top: 92px;
  padding: 46px;
  border-radius: 28px;
}

.lore img {
  display: block;
  width: 132px;
  height: 132px;
  justify-self: center;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 22px rgba(199, 83, 255, 0.34));
  transform: translateX(-4px);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 92px;
  padding: 46px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(7, 3, 18, 0.98), rgba(12, 4, 26, 0.64), rgba(8, 3, 21, 0.92)),
    url("assets/cta-bg.png") center / cover no-repeat;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(178, 90, 255, 0.18);
  color: rgba(223, 211, 240, 0.6);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(137, 45, 255, 0.26), transparent 34rem),
    rgba(4, 2, 13, 0.78);
  backdrop-filter: blur(18px);
}

.modal-backdrop[hidden] {
  display: none;
}

.soon-modal {
  position: relative;
  width: min(540px, 100%);
  min-height: 420px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(214, 113, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(172, 70, 255, 0.34), transparent 42%),
    linear-gradient(180deg, rgba(22, 10, 50, 0.96), rgba(6, 4, 19, 0.98));
  box-shadow: 0 34px 110px rgba(111, 40, 220, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: modalAppear 0.42s cubic-bezier(.2, .9, .2, 1.1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(221, 135, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0;
  line-height: 1;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px rgba(224, 143, 255, 0.64);
  transform-origin: center;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 0 24px rgba(201, 91, 255, 0.58);
  outline: none;
}

.modal-scene {
  position: relative;
  width: 170px;
  height: 122px;
  margin: 0 auto 18px;
}

.modal-rift {
  position: absolute;
  left: 70px;
  top: 2px;
  width: 30px;
  height: 118px;
  background: linear-gradient(180deg, #ffffff, #cf67ff 36%, #6c27ff 72%, #fff);
  clip-path: polygon(42% 0, 75% 18%, 43% 33%, 78% 52%, 39% 70%, 64% 100%, 20% 76%, 42% 58%, 12% 39%, 35% 23%);
  filter: drop-shadow(0 0 15px rgba(212, 100, 255, 0.95));
  animation: riftIdle 1.6s steps(2, end) infinite;
}

.modal-cube {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(220, 139, 255, 0.88);
  background: rgba(128, 55, 255, 0.22);
  box-shadow: inset 0 0 18px rgba(213, 112, 255, 0.34), 0 0 22px rgba(191, 79, 255, 0.7);
  transform: rotate(45deg);
  animation: cubeFloat 4s ease-in-out infinite;
}

.cube-one {
  left: 10px;
  top: 42px;
}

.cube-two {
  right: 14px;
  top: 18px;
  width: 30px;
  height: 30px;
  animation-delay: -1.3s;
}

.cube-three {
  right: 42px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  animation-delay: -2.1s;
}

.modal-label {
  margin: 0 0 10px;
  color: #d87aff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soon-modal h2 {
  margin: 0 0 14px;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 0.95;
  text-shadow: 0 0 32px rgba(211, 104, 255, 0.95);
}

.soon-modal p {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 390px;
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 48px));
  padding: 16px 20px;
  border: 1px solid rgba(117, 255, 103, 0.52);
  border-radius: 14px;
  background: rgba(9, 26, 12, 0.92);
  color: #e1ffdb;
  box-shadow: 0 20px 60px rgba(44, 255, 79, 0.18);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

body.reveal-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.in-view {
  animation: revealIn 0.72s ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes riftIdle {
  50% {
    opacity: 0.55;
    transform: translateX(4px) scaleY(1.04);
  }
}

@keyframes gateRailPulse {
  50% {
    opacity: 0.42;
    filter: brightness(1.25);
  }
}

@keyframes gateCubeFloat {
  50% {
    transform: translateY(-14px) rotate(72deg) scale(1.08);
  }
}

@keyframes revealIn {
  from {
    opacity: 0.01;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
}

@keyframes cubeFloat {
  50% {
    transform: translateY(-14px) rotate(75deg) scale(1.08);
  }
}

@media (max-width: 980px) {
  .section-shell,
  .topbar {
    width: min(100% - 28px, 760px);
  }

  .topbar {
    position: relative;
    top: 0;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 26px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero::before {
    inset-inline: -14px;
  }

  .hero-visual {
    min-height: auto;
  }

  .visual-frame {
    height: 430px;
  }

  .dashboard,
  .story-cards,
  .feature-grid,
  .steps,
  .mode-section,
  .lore {
    grid-template-columns: 1fr;
  }

  .cta,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .socials {
    gap: 4px;
  }

  .social-button {
    min-width: 86px;
  }

  .join-card {
    left: 18px;
    right: 18px;
    grid-template-columns: 48px 1fr;
  }
}

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