/* ============================================================
   ashveil.game — launch microsite
   Brand: cracked stone + arcane purple. Dark by identity.
   Palette (brand guide v1.0):
     Deep Black #0A0A0A · Charcoal #1A1A1A · Stone #4A4A4A
     Royal Purple #6B2D8B · Electric Purple #9B4DCA · Ember #E07A3D
   Type: Inknut Antiqua (display) · DM Sans (body/UI)
   ============================================================ */

:root {
  --black: #0A0A0A;
  --charcoal: #1A1A1A;
  --panel: #151217;
  --stone: #4A4A4A;
  --royal: #6B2D8B;
  --electric: #9B4DCA;
  --ember: #E07A3D;
  --bone: #DAD5CC;
  --white: #F0EDE6;
  --ash: #9A948B;
  --line: #29242e;
  --w-color: #5B7A99;
  --f-color: #C08A3E;
  --p-color: #9B4DCA;
  --display: "Inknut Antiqua", "Palatino Linotype", Georgia, serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--electric); text-decoration: none; }
a:hover { color: #BE7EE4; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
}
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--electric)); }
.eyebrow::after { background: linear-gradient(270deg, transparent, var(--electric)); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.22;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.lede { color: var(--ash); max-width: 60ch; font-size: 18px; margin-inline: auto; }

/* ---------- buttons & form ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: linear-gradient(160deg, #7A35A0, var(--royal) 55%, #571F75);
  color: #F5EFFA;
  box-shadow: 0 0 0 1px rgba(155, 77, 202, 0.4), 0 8px 30px rgba(107, 45, 139, 0.35);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(155, 77, 202, 0.9), 0 8px 40px rgba(155, 77, 202, 0.5);
  transform: translateY(-1px);
}

.signup {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}
.signup-names {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 460px) { .signup-names { grid-template-columns: 1fr; } }
.signup input[type="email"],
.signup .signup-names input {
  flex: 1 1 280px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(154, 148, 139, 0.5);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  padding: 15px 18px;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s;
}
.signup input[type="email"]::placeholder,
.signup .signup-names input::placeholder { color: #7d776e; }
.signup input[type="email"]:focus,
.signup .signup-names input:focus { border-color: var(--electric); outline: none; }
.signup-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: #857f76;
  text-align: center;
}
.signup-status {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  color: var(--electric);
  min-height: 1.4em;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 90px 24px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: var(--black) center 30% / cover no-repeat;
  animation: heroDrift 36s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to   { transform: scale(1.12) translateY(-1.5%); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.1) 24%, rgba(10,10,10,0.05) 55%, rgba(10,10,10,0.92) 88%, var(--black) 100%),
    radial-gradient(ellipse 90% 60% at 50% 46%, transparent 40%, rgba(10,10,10,0.55) 100%);
}

.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-wordmark {
  width: min(780px, 94%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 60px rgba(0, 0, 0, 0.9));
}

.hero-tag {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
  margin-top: -4px;
}

.hero-sub {
  color: #C9C3B9;
  max-width: 52ch;
  margin: 16px auto 42px;
  font-size: 18px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #857f76;
  border: 1px solid rgba(74, 74, 74, 0.5);
  background: rgba(10, 10, 10, 0.45);
  padding: 8px 18px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #6d675e;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, var(--electric), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ---------- teaser ---------- */

.teaser { padding: 120px 0 100px; text-align: center; }

.teaser .kicker {
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--bone);
  max-width: 34em;
  margin: 26px auto 0;
}


/* ---------- final cta ---------- */

.cta-final {
  position: relative;
  text-align: center;
  padding: 170px 0 150px;
  background: var(--black) center 60% / cover no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--black) 0%, rgba(10,10,10,0.45) 30%, rgba(10,10,10,0.6) 75%, var(--black) 100%);
}
.cta-final .emblem {
  width: 92px;
  margin: 0 auto 26px;
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(155, 77, 202, 0.45);
}
.cta-final h2 { margin-bottom: 14px; }
.cta-final .lede { margin-bottom: 44px; color: #C9C3B9; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--black);
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6d675e;
}
.foot-inner .brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ash);
}
.foot-inner .spacer { margin-left: auto; }
