:root {
  --purple: #6A0DAD;
  --black: #000;
  --white: #fff;
}

/* ---------- ROOT LAYOUT ---------- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: system-ui, sans-serif;
}

/* ---------- APP SHELL ---------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER (STICKY + AUTO-HIDE) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #5c048b;
  color: var(--white);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  height: 42px;
  display: block;
}

/* ---------- NAV ---------- */
.header-nav {
  display: flex;
  align-items: center;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}

.header-nav a:hover {
  text-decoration: underline;
}

.header-nav .cta {
  background: var(--purple);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
}

/* ---------- MAIN CONTENT ---------- */
.site-content {
  flex: 1;
  padding: 2rem 1rem;

  /* Page enter animation */
  opacity: 0;
  transform: translateX(12px);
  animation: pageIn 0.35s ease forwards;
}

@keyframes pageIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Page exit animation */
.page-exit {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--black);
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.2;
  flex-shrink: 0;
  opacity: 0.85;
  color: #ddd;
}

.site-footer a {
  color: #bbb;
  text-decoration: none;
  margin: 0 0.25rem;
}

.site-footer a:hover {
  color: var(--purple);
}

/* ---------- HOME LANDING ---------- */
.home-landing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-logo {
  height: auto;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- LEGAL / CONTENT PAGES ---------- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  line-height: 1.7;
}

.legal-page h1 {
  margin-bottom: 1rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-meta {
  margin-top: 3rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---------- REDUCED MOTION SUPPORT ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .site-content {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header {
    transform: none !important;
  }
}
/* ---------- 404 PAGE ---------- */
body[data-page="404"] .site-content {
  animation: none;
  opacity: 1;
  transform: none;
}
