@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #05070d;
  --text: #eef2f8;
  --muted: #a3afc2;
  --faint: #7d899c;
  --line: rgba(255, 255, 255, 0.13);
  --field: rgba(255, 255, 255, 0.055);
  --gold: #f3c47e;
  --mint: #82e3d2;
  color-scheme: dark;
}

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

html { background: var(--ink); }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 56px 16px;
  overflow-x: hidden;
  isolation: isolate;   /* lets the z-index:-1/-2 layers paint above the body background */
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Aurora: soft colour fields drifting slowly behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  background:
    radial-gradient(38vmax 28vmax at 24% 30%, rgba(52, 196, 176, 0.34), transparent 62%),
    radial-gradient(42vmax 32vmax at 78% 22%, rgba(118, 88, 255, 0.34), transparent 62%),
    radial-gradient(46vmax 34vmax at 66% 82%, rgba(243, 160, 92, 0.24), transparent 62%),
    radial-gradient(56vmax 44vmax at 12% 88%, rgba(28, 70, 190, 0.32), transparent 66%);
  filter: blur(36px) saturate(115%);
  animation: drift 46s ease-in-out infinite alternate;
}

/* Film grain and a gentle vignette keep the gradients from looking flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(2, 3, 8, 0.75) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.9;
  mix-blend-mode: soft-light;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(4vmax, -3vmax, 0) rotate(10deg) scale(1.08); }
}

main {
  width: 100%;
  max-width: 56rem;
  text-align: center;
}

.domain {
  font-size: clamp(1.95rem, 9vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 35%, #c3cde0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.tld { color: var(--gold); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.4rem;
  padding: 0.45em 1em 0.45em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(130, 227, 210, 0.6);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(130, 227, 210, 0.55); }
  70%  { box-shadow: 0 0 0 0.7em rgba(130, 227, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(130, 227, 210, 0); }
}

.lead {
  margin: 1.1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  text-wrap: balance;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
}

/* Form */
.panel {
  margin: 2.6rem auto 0;
  max-width: 34rem;
  padding: 1.5rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 11, 20, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fields {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .fields { grid-template-columns: 1fr 1fr; }
}

.field > span:first-child {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.wide { grid-column: 1 / -1; }

.money { position: relative; display: block; }

.money input { padding-right: 2.6rem; }

.unit {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--mint);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(130, 227, 210, 0.22);
}

input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  accent-color: var(--mint);
  cursor: pointer;
}

button {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7d79c, #f0a764);
  color: #1d1305;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(240, 167, 100, 0.55);
  transition: transform 0.15s, filter 0.15s;
}

button:hover { filter: brightness(1.06); transform: translateY(-1px); }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.fine {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--faint);
}

/* Honeypot: kept off-screen for people, still present for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thank-you, error and removed-page messages */
.message h1 {
  margin-top: 1.4rem;
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.message .status { margin-top: 0; }

.back {
  display: inline-block;
  margin-top: 2rem;
  color: var(--mint);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(130, 227, 210, 0.4);
}

.back:hover { border-bottom-color: var(--mint); }

@media (prefers-reduced-motion: reduce) {
  body::before, .dot { animation: none; }
  button { transition: none; }
}
