:root {
  --bg: #050308;
  --panel: rgba(18, 12, 28, 0.74);
  --panel-strong: rgba(24, 15, 38, 0.9);
  --text: #f7f0ff;
  --muted: #c2b3d5;
  --soft: #8e78aa;
  --violet: #b463ff;
  --violet-strong: #8b33ff;
  --cyan: #77e6ff;
  --gold: #f6c965;
  --line: rgba(211, 171, 255, 0.18);
  --shadow: 0 24px 80px rgba(121, 48, 220, 0.25);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(153, 69, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 10% 20%, rgba(119, 230, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #06030a 0%, #0a0610 48%, #030205 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(180, 99, 255, 0.14), transparent 22rem);
  transition: background 180ms ease;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-glow {
  position: fixed;
  inset: auto -10% -28rem -10%;
  height: 36rem;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(149, 55, 255, 0.22), transparent 67%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(180, 99, 255, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 5, 13, 0.58);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(180, 99, 255, 0.13);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: calc(100vh - 80px);
  padding: 52px 0 88px;
}

.hero-copy {
  min-width: 0;
  overflow: visible;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  padding-right: 0.04em;
  font-size: clamp(3.75rem, 8.8vw, 6.7rem);
  line-height: 0.82;
  overflow: visible;
  white-space: nowrap;
  word-break: keep-all;
  text-shadow: 0 0 46px rgba(180, 99, 255, 0.42);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.tagline {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero-text,
.culture-copy p,
.story-card p,
.link-card small {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 30px;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 99, 255, 0.62);
  background: rgba(180, 99, 255, 0.12);
  box-shadow: 0 16px 42px rgba(135, 61, 225, 0.22);
}

.button.primary {
  border-color: rgba(180, 99, 255, 0.7);
  background: linear-gradient(135deg, var(--violet), var(--violet-strong));
  color: #fff;
}

.hero-art,
.culture-art {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before,
.culture-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 48%, rgba(5, 3, 8, 0.26)),
    radial-gradient(circle at 52% 45%, transparent 36%, rgba(0, 0, 0, 0.24));
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.lore,
.links {
  padding: 88px 0;
}

.lore-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card,
.link-card {
  position: relative;
  min-height: 235px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.story-card::after,
.link-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -44% 18%;
  height: 150px;
  background: radial-gradient(ellipse, rgba(180, 99, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.card-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: rgba(246, 201, 101, 0.86);
  font-family: Cinzel, Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
}

.culture {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: 70px 0 96px;
}

.culture-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.culture-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.culture-points div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.culture-points strong,
.culture-points span {
  display: block;
}

.culture-points strong {
  margin-bottom: 6px;
  color: var(--text);
}

.culture-points span {
  color: var(--muted);
  line-height: 1.55;
}

.link-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card span {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  font-weight: 850;
}

.link-card small {
  position: relative;
  z-index: 2;
}

.link-card:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 99, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(180, 99, 255, 0.15), rgba(255, 255, 255, 0.025)),
    var(--panel-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .culture {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 40px;
  }

  .hero-art {
    max-width: 680px;
  }

  .lore-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand span {
    display: none;
  }

  .nav-links a {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .section-shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding-bottom: 60px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button {
    width: 100%;
  }

  .lore,
  .links {
    padding: 60px 0;
  }

  .lore-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .link-card {
    min-height: auto;
  }

  .link-card {
    gap: 28px;
  }

  .culture {
    padding: 48px 0 68px;
  }

  .site-footer {
    align-items: flex-start;
    padding-bottom: 34px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
