:root {
  --bg: #06070d;
  --bg-2: #0b0d16;
  --ink: #f3f1ea;
  --muted: #968f7e;
  --gold: #c9a227;
  --gold-bright: #e6c350;
  --gold-deep: #9a7d1c;
  --danger: #e2574e;
  --line: rgba(201, 162, 39, 0.16);
  --maxw: 920px;
}

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

html,
body {
  height: 100%;
}

body {
  background: radial-gradient(circle at 50% -10%, #14102200 0%, var(--bg) 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background layers ---------- */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.glow {
  position: fixed;
  top: -28vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1100px;
  height: 80vh;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 162, 39, 0.22) 0%,
    rgba(201, 162, 39, 0.06) 35%,
    transparent 68%
  );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.topbar {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  text-indent: 0.34em;
}

.eyebrow .rule {
  width: clamp(28px, 6vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow .rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--maxw);
  gap: 1.6rem;
  padding: 3rem 0;
}

.logo {
  width: clamp(180px, 34vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(201, 162, 39, 0.35));
  animation: rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.headline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.65rem, 6.8vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  animation: rise 1s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.headline .accent {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  line-height: 1.4;
  max-width: 640px;
  color: var(--muted);
  animation: rise 1s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tagline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.4rem;
  animation: rise 1s 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tagline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Form ---------- */
.signup {
  width: 100%;
  max-width: 480px;
  margin-top: 0.6rem;
  animation: rise 1s 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.field {
  display: flex;
  gap: 0.5rem;
  background: rgba(12, 10, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field:focus-within {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
}

.field input::placeholder {
  color: #6b6552;
}

.field button {
  flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a0712;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, filter 0.2s;
}

.field button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(201, 162, 39, 0.6);
  filter: brightness(1.08);
}

.field button:active {
  transform: translateY(0);
}

.formnote {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  min-height: 1.2em;
  transition: color 0.25s;
}

.formnote.ok {
  color: var(--gold-bright);
}

.formnote.err {
  color: var(--danger);
}

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: #6a6450;
  padding-top: 1.5rem;
}

.footer a {
  color: #6a6450;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--gold-bright);
}

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

@media (max-width: 540px) {
  .field {
    flex-direction: column;
  }
  .field button {
    width: 100%;
    padding: 0.8rem;
  }
  .footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

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