:root {
  --ink: #14201a;
  --ink-soft: #3d4a42;
  --paper: #f3efe6;
  --accent: #c45c26;
  --accent-ink: #fff8f1;
  --glow: rgba(196, 92, 38, 0.35);
  /* System fonts only — no external CDN required before auth */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background: #1a1712;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, #2a4034 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 20%, #5c2e16 0%, transparent 50%),
    radial-gradient(80% 60% at 50% 100%, #1c2a36 0%, transparent 55%),
    linear-gradient(165deg, #201c16 0%, #12161a 100%);
  z-index: 0;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 34rem;
  animation: rise 0.8s ease-out both;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-shadow: 0 0 40px var(--glow);
  animation: brandIn 1s ease-out both;
}

.headline {
  margin: 0.25rem 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  color: var(--paper);
  opacity: 0.92;
}

.lede {
  margin: 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(243, 239, 230, 0.72);
}

.cta {
  appearance: none;
  border: 0;
  margin-top: 0.75rem;
  padding: 0.95rem 1.6rem;
  min-width: 10.5rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  animation: ctaIn 0.9s ease-out 0.15s both;
}

.cta:hover {
  transform: translateY(-1px);
  background: #d4682d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.cta:active {
  transform: translateY(1px);
}

.cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.status {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #f0b090;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandIn {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.02em;
    filter: blur(0);
  }
}

@keyframes ctaIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .brand,
  .cta {
    animation: none;
  }
}
