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

:root {
  --bg: #f9f8f4;
  --ink: #0e0e0e;
  --ink-muted: #555;
  --radius: 2px;
}

html, body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Page ── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* ── Hero ── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

/* ── Logo ── */

.logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 62vw);
  aspect-ratio: 640 / 823;
}

.logo-stage--sm {
  width: min(120px, 32vw);
  text-decoration: none;
  margin: 0 auto 2rem;
}

.logo-stage__halo {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(14, 14, 14, 0.12);
  animation: haloPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.logo-wrap {
  position: relative;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
  will-change: transform;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-14px) rotate(-0.6deg);
  }
  65% {
    transform: translateY(-6px) rotate(0.4deg);
  }
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.35;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.06);
  }
}

/* ── Creed ── */

.creed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.creed__line {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: fadeUp 0.7s ease both;
}

.creed__line:nth-child(2) { animation-delay: 0.1s; }

.creed__accent {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.25rem;
  animation: fadeUp 0.7s ease 0.2s both;
}

/* ── Call ── */

.call {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: fadeUp 0.7s ease 0.35s both;
}

/* ── Button ── */

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--ink);
  color: var(--bg);
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: fadeUp 0.7s ease 0.5s both;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ── Form page ── */

.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.form-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-header {
  text-align: center;
}

.form-header .logo-stage {
  margin-bottom: 0;
}

.form-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: -0.01em;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field input {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 0.6rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
  width: 100%;
}

.field input::placeholder {
  color: #bbb;
}

.field input:focus {
  border-bottom-color: var(--ink);
}

.field input.field--invalid {
  border-bottom-color: #b00;
}

.field-error {
  font-size: 0.78rem;
  color: #b00;
  min-height: 1rem;
  display: none;
}

.field-error.active {
  display: block;
}

.btn--full {
  width: 100%;
  text-align: center;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

/* ── Success ── */

.success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.success.active {
  display: flex;
  max-width: 480px;
  width: 100%;
}

.success__blessing {
  width: min(320px, 85vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(14, 14, 14, 0.07));
  animation: fadeUp 0.9s ease 0.2s both;
}

.success__title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  animation: fadeUp 0.7s ease 0.4s both;
}

.success__body {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 340px;
  animation: fadeUp 0.7s ease 0.55s both;
}

.success__id {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  animation: fadeUp 0.7s ease 0.7s both;
}

.error-msg {
  font-size: 0.85rem;
  color: #b00;
  display: none;
}

.error-msg.active {
  display: block;
}

/* ── Animations ── */

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

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
