@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;800&family=Newsreader:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

:root {
  --black: #000000;
  --white: #FFFFFF;
  --silver: #EEEEEE;
  --orange: #FF8C00;
  --gold: #FFD700;
  --red: #FF2300;
  --dim: rgba(255, 255, 255, 0.4);
  --faint: rgba(255, 255, 255, 0.08);
  --font-mono: 'Inconsolata', monospace;
  --font-serif: 'Newsreader', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--silver);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Fog / ambient background ── */

.fog {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fog-layer {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(ellipse at center, rgba(255, 140, 0, 0.03) 0%, transparent 60%);
  animation: fog-drift 30s ease-in-out infinite alternate;
}

.fog-layer:nth-child(2) {
  background: radial-gradient(ellipse at 30% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  animation-duration: 40s;
  animation-direction: alternate-reverse;
}

.fog-layer:nth-child(3) {
  background: radial-gradient(ellipse at 70% 30%, rgba(255, 140, 0, 0.015) 0%, transparent 55%);
  animation-duration: 50s;
}

@keyframes fog-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(3deg); }
}

/* ── Grain overlay ── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── Vignette ── */

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

/* ── Layout ── */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  position: relative;
  z-index: 1;
}

/* ── Index page ── */

.hero {
  text-align: center;
  padding: 100px 0 60px;
}

.hero-symbol {
  font-size: 48px;
  color: var(--orange);
  opacity: 0;
  animation: symbol-appear 3s ease forwards;
  margin-bottom: 40px;
  font-family: var(--font-serif);
  text-shadow: 0 0 40px rgba(255, 140, 0, 0.3);
}

@keyframes symbol-appear {
  0% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.hero h1 {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 42px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
  opacity: 0;
  animation: fade-up 1.5s ease 0.5s forwards;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--dim);
  margin-bottom: 60px;
  opacity: 0;
  animation: fade-up 1.5s ease 1s forwards;
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.lore-block {
  text-align: left;
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-up 1.5s ease 1.5s forwards;
}

.lore-block p {
  margin-bottom: 20px;
  color: rgba(238, 238, 238, 0.7);
}

.lore-block .address {
  font-style: italic;
  color: var(--orange);
  opacity: 0.8;
  margin-bottom: 24px;
}

.lore-block .signature {
  text-align: left;
  font-style: italic;
  color: var(--dim);
  margin-top: 32px;
  font-size: 18px;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--faint);
  margin: 48px auto;
  opacity: 0;
  animation: fade-up 1.5s ease 1.8s forwards;
}

.cta-section {
  text-align: center;
  opacity: 0;
  animation: fade-up 1.5s ease 2s forwards;
}

.cta-section p {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  padding: 14px 40px;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.15);
}

.cta-button:hover {
  box-shadow: 0 0 50px rgba(255, 140, 0, 0.3);
  transform: translateY(-2px);
}

/* ── Subliminal flash ── */

.subliminal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 238, 238, 0.15);
}

.subliminal.flash {
  animation: subliminal-flash 0.12s ease;
}

@keyframes subliminal-flash {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Legal pages ── */

.legal-page {
  padding-top: 40px;
}

.legal-page h1 {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.8;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page p {
  color: rgba(238, 238, 238, 0.65);
  margin-bottom: 16px;
}

.legal-page ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.legal-page li {
  color: rgba(238, 238, 238, 0.65);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-page li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--orange);
  opacity: 0.5;
}

.legal-page a {
  color: var(--orange);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.legal-page a:hover {
  opacity: 1;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  opacity: 0.5;
}

footer a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--orange);
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

/* ── Responsive ── */

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
    letter-spacing: 0.1em;
  }

  .hero-tagline {
    font-size: 16px;
  }

  nav {
    gap: 20px;
    font-size: 12px;
  }

  .page {
    padding: 70px 20px 100px;
  }

  .legal-page h1 {
    font-size: 22px;
  }
}
