/* MAXCHΞX — Back to Dust Studios LLC */
:root {
  --bg: #141418;
  --bg-alt: #1b1b22;
  --accent: #4D80FF;
  --accent-dim: #2a4a99;
  --text: #e6e9f2;
  --text-dim: #8a8fa3;
  --border: rgba(77, 128, 255, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Share Tech Mono', Menlo, Consolas, monospace;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image: linear-gradient(rgba(20, 20, 24, 0.78), rgba(20, 20, 24, 0.92)), url('assets/MAXCHEX_Background.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #9fb8ff; text-shadow: 0 0 8px rgba(77, 128, 255, 0.6); }

/* NAV */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .brand {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--text);
  font-weight: bold;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav ul a {
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* HERO */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7.5rem);
  letter-spacing: 0.18em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(77, 128, 255, 0.55), 0 0 60px rgba(77, 128, 255, 0.25);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-art {
  max-width: min(420px, 75vw);
  width: 100%;
  height: auto;
  margin: 1.5rem auto 2rem;
  filter: drop-shadow(0 0 40px rgba(77, 128, 255, 0.4));
}

.cta {
  display: inline-block;
  padding: 1rem 2.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
  background: rgba(77, 128, 255, 0.08);
  transition: all 0.25s ease;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(77, 128, 255, 0.7);
}

/* SECTIONS */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.description {
  text-align: center;
  max-width: 780px;
}

.description p {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* BETA */
.beta {
  text-align: center;
  max-width: 780px;
  padding-top: 0;
  scroll-margin-top: 6rem; /* clear the sticky nav when jumping to #beta */
}

.beta h2 {
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.beta p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.beta .beta-note {
  font-size: 0.85rem;
  margin: 1.5rem 0 0;
}

.beta .beta-note a {
  color: var(--accent);
}

/* LORE */
.lore {
  padding: 5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.lore-head {
  margin-bottom: 3.5rem;
  text-align: center;
}

.lore-kicker {
  color: var(--accent);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 1rem;
}

.lore-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0 auto;
}

.lore-blocks {
  display: grid;
  gap: 3rem;
}

.lore-block h3 {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.lore-block p {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.lore-block p strong {
  color: var(--text);
  font-weight: normal;
}

.lore-quote {
  margin-top: 3rem;
  text-align: center;
  border: none;
  padding: 0;
}

.lore-quote p {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.lore-divider {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.5);
}

.lore-divider p {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text);
  letter-spacing: 0.06em;
  max-width: 30ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 3rem 1.5rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  border: 1px solid var(--border);
  background: rgba(27, 27, 34, 0.6);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.feature:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(77, 128, 255, 0.25);
  transform: translateY(-3px);
}

.feature h3 {
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* CONTENT PAGES (privacy / terms) */
.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.content-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(77, 128, 255, 0.4);
}

.content-page .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

.content-page h2 {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2.25rem 0 0.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.content-page p,
.content-page ul {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.content-page ul {
  padding-left: 1.5rem;
}

.content-page li { margin-bottom: 0.5rem; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(20, 20, 24, 0.85);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.site-footer .footer-logo {
  max-width: 140px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.site-footer .footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .site-nav { padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
  .site-nav ul { gap: 1rem; }
  .site-nav .brand { font-size: 1.05rem; }
  .features { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 1.25rem 4rem; }
  section { padding: 3.5rem 1.25rem; }
  .lore { padding: 3.5rem 1.25rem; }
  .hero { padding: 2rem 1rem 3rem; }
  body { background-attachment: scroll; }
}

@media (max-width: 480px) {
  .site-nav ul a { font-size: 0.8rem; }
  .hero .tagline { letter-spacing: 0.3em; }
}
