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

:root {
  --bg: #A8D8EA;
  --navy: #0a0e1a;
  --navy-card: rgba(10, 14, 26, 0.92);
  --navy-mid: #121829;
  --neon: #FF1744;
  --neon-glow: rgba(255, 23, 68, 0.55);
  --neon-soft: rgba(255, 23, 68, 0.12);
  --electric: #38bdf8;
  --electric-glow: rgba(56, 189, 248, 0.35);
  --green: #4ade80;
  --green-glow: rgba(74, 222, 128, 0.2);
  --white: #f4f4f6;
  --muted: #9ca3af;
  --radius: 18px;
  --radius-sm: 12px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ════════════════════════════════════
   SCREENSAVER
   ════════════════════════════════════ */
#screensaver {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#screensaver img {
  position: absolute;
  opacity: 0.7;
  filter: none;
  will-change: transform;
  mix-blend-mode: multiply;
}

/* ════════════════════════════════════
   CONTENT
   ════════════════════════════════════ */
#content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  background: #080c18;
  border-radius: var(--radius);
  border: 1.5px solid var(--neon);
  box-shadow:
    0 0 20px var(--neon-glow),
    0 0 50px rgba(255, 23, 68, 0.15),
    0 12px 48px rgba(0, 0, 0, 0.4);
  padding: 40px 44px 32px;
  margin-bottom: 56px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-left {
  flex: 1;
  min-width: 0;
}

.hero-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo */
.logo-glow-wrap {
  position: relative;
  width: 240px;
  height: 240px;
}
.logo-glow-wrap::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.25) 0%, rgba(255,23,68,0.12) 50%, transparent 70%);
  filter: blur(20px);
  animation: logo-breathe 3s ease-in-out infinite alternate;
}
@keyframes logo-breathe {
  from { opacity: 0.6; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}
.hero-logo {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 30px var(--electric-glow), 0 0 60px rgba(56,189,248,0.12);
}

/* Title */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow), 0 0 40px rgba(255,23,68,0.2);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.08rem);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 24px;
}

/* CA box */
.ca-box {
  margin-bottom: 20px;
}
.ca-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.ca-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
}
.ca-text {
  flex: 1;
  font-size: clamp(0.62rem, 1.6vw, 0.82rem);
  color: var(--electric);
  word-break: break-all;
  font-family: "SF Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  user-select: all;
}
.ca-copied {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon);
  height: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  margin-top: 4px;
}
.ca-copied.show { opacity: 1; }

/* Hero buttons */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

/* LP lock row */
.lp-lock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.lp-tag {
  display: inline-block;
  background: linear-gradient(135deg, #0f1922, #132030);
  color: var(--green);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  border: 1px solid rgba(74, 222, 128, 0.25);
  box-shadow: 0 0 10px var(--green-glow);
}
.lp-note {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* Banner strip */
.banner-strip {
  margin-top: 28px;
  text-align: center;
}
.banner-neon-frame {
  display: inline-block;
  padding: 3px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon), #ff6090, var(--neon));
  box-shadow: 0 0 12px var(--neon-glow), 0 0 30px rgba(255,23,68,0.15), inset 0 0 8px var(--neon-glow);
  animation: neon-pulse 2.5s ease-in-out infinite alternate;
}
@keyframes neon-pulse {
  from { box-shadow: 0 0 8px var(--neon-glow), 0 0 20px rgba(255,23,68,0.12), inset 0 0 6px var(--neon-glow); }
  to   { box-shadow: 0 0 16px var(--neon-glow), 0 0 40px rgba(255,23,68,0.25), inset 0 0 12px var(--neon-glow); }
}
.banner-img {
  display: block;
  width: 100%;
  max-width: 580px;
  border-radius: 8px;
}

/* ════════════════════════════════════
   BUTTONS
   ════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--neon);
  color: #fff;
  padding: 13px 28px;
  font-size: 0.95rem;
  box-shadow: 0 0 14px var(--neon-glow);
}
.btn-primary:hover { box-shadow: 0 0 24px var(--neon-glow); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.btn-outline:hover {
  border-color: var(--neon);
  box-shadow: 0 0 10px var(--neon-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  padding: 6px 14px;
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-copy {
  background: var(--neon);
  color: #fff;
  padding: 7px 14px;
  font-size: 0.76rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.btn-sm { padding: 7px 14px; font-size: 0.78rem; }

/* ════════════════════════════════════
   LORE
   ════════════════════════════════════ */
.lore {
  margin-bottom: 56px;
}

.lore-heading {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  background: #080c18;
  display: inline-block;
  padding: 10px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--neon);
  box-shadow: 0 0 12px var(--neon-glow);
  width: 100%;
}

.lore-intro-card {
  background: #080c18;
  border-radius: var(--radius-sm);
  padding: 28px;
  border: 1.5px solid var(--neon);
  box-shadow: 0 0 16px var(--neon-glow), 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.75;
}
.lore-intro-card p { margin-bottom: 10px; }
.lore-intro-card .lore-closer {
  margin-bottom: 0;
  color: var(--white);
  font-weight: 700;
  font-style: italic;
}
.lore-intro-nested {
  margin-bottom: 18px;
}

/* Receipt cards */
.receipt-card {
  background: #080c18;
  border-radius: var(--radius-sm);
  padding: 28px;
  margin-bottom: 20px;
  border: 1.5px solid var(--neon);
  box-shadow: 0 0 16px var(--neon-glow), 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
}
.receipt-badge {
  display: inline-block;
  background: rgba(255, 23, 68, 0.12);
  color: var(--neon);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.receipt-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.receipt-text {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.receipt-media {
  text-align: center;
  margin-bottom: 20px;
}
.receipt-media:last-child { margin-bottom: 0; }
.receipt-img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.receipt-caption {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Mask comparison grid */
.mask-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.mask-compare-item { text-align: center; }
.mask-compare-item .receipt-img { max-width: 100%; }

/* Trail gallery */
.trail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

/* ════════════════════════════════════
   COMMUNITY
   ════════════════════════════════════ */
.community {
  text-align: center;
  margin-bottom: 48px;
  background: #080c18;
  border-radius: var(--radius-sm);
  padding: 36px 28px;
  border: 1.5px solid var(--neon);
  box-shadow: 0 0 16px var(--neon-glow), 0 4px 20px rgba(0,0,0,0.3);
}
.community .lore-heading {
  color: var(--white);
  margin-bottom: 20px;
}
.community .hero-buttons {
  justify-content: center;
  margin-bottom: 0;
}

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 28px 16px 16px;
  background: #080c18;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--neon);
  box-shadow: 0 0 16px var(--neon-glow), 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}
.footer-tagline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ════════════════════════════════════
   MOBILE
   ════════════════════════════════════ */
@media (max-width: 720px) {
  #content { padding: 12px 10px 32px; }

  .hero {
    padding: 24px 18px 24px;
    margin-bottom: 40px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 20px;
    text-align: center;
  }

  .hero-right { width: 100%; }
  .logo-glow-wrap { width: 160px; height: 160px; margin: 0 auto; }
  .hero-logo { width: 160px; height: 160px; }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 2.6rem);
  }

  .hero-sub { margin-bottom: 18px; }

  .ca-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .ca-text {
    font-size: 0.62rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-buttons .btn-outline {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    justify-content: center;
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .lp-lock-row {
    justify-content: center;
    text-align: center;
  }

  .banner-strip { margin-top: 20px; }
  .banner-neon-frame { padding: 2px; }
  .banner-img { max-width: 100%; }

  .receipt-card { padding: 18px; }
  .mask-compare { grid-template-columns: 1fr; }
  .trail-gallery { grid-template-columns: 1fr; }

  .lore-intro-card { padding: 18px; }
  .community { padding: 24px 16px; }
}

/* ════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .banner-neon-frame { animation: none; }
  .logo-glow-wrap::before { animation: none; }
  #screensaver { display: none; }
}
