:root {
  color-scheme: only dark;
  --purple-900: #2a0f45;
  --purple-800: #3b155e;
  --purple-700: #4b1f73;
  --purple-500: #7d3cff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Inter", sans-serif;
  background: #000;
  color: var(--white);
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
}

#galaxy-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6; /* Slight dim to help text readability if video is bright */
  transform: scale(1.2); /* Zoom in to remove potential black bars */
}

#galaxy {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.content {
  position: relative;
  z-index: 1;
  padding: 140px 48px 48px;
  height: 100vh;
  overflow-y: auto;
}

.page {
  display: none;
  max-width: 960px;
  width: min(960px, 100%);
  background: transparent;
  padding: 48px;
  margin-bottom: 48px;
}

.page.active {
  display: block;
}

/* Special centering for crypto page */
.page[data-page="crypto"].active {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero h1,
.hero .title {
  font-size: clamp(48px, 6vw, 84px);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 6px;
}

.subtitle {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 16px;
}

.intro {
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 32px;
}

.inline-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tag {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 15, 69, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  background: var(--purple-500);
  border: none;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(125, 60, 255, 0.35);
}

.cta.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}

.card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(42, 15, 69, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h3 {
  margin-bottom: 8px;
}

.card a {
  color: var(--white);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.section-intro {
  margin-top: 12px;
  opacity: 0.8;
  max-width: 680px;
  line-height: 1.6;
}

.link-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.link-list a {
  color: var(--white);
  text-decoration: none;
  background: rgba(42, 15, 69, 0.7);
  padding: 16px 20px;
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.link-list a:hover {
  transform: translateX(4px);
  background: rgba(125, 60, 255, 0.3);
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .content {
    padding: 140px 24px 32px;
  }

  .page {
    padding: 32px;
  }
}
