:root {
  --bg: #151210;
  --panel: #201b17;
  --panel-2: #181411;
  --text: #d9d4cd;
  --muted: #9a9188;
  --faint: #6f675f;
  --line: #332d28;
  --brass: #c9a05a;
  --brass-bright: #e0b96f;
  --brass-dark: #8a6a34;
}

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

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #241f1a 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* film-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10;
}

::selection { background: var(--brass); color: #1a1510; }

h1, h2, .eyebrow, .badge, .feature h3, button {
  font-family: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
}

/* ---------- hero ---------- */
.hero { position: relative; }

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
.hero::before {
  top: 0;
  height: 14%;
  background: linear-gradient(to top, transparent, var(--bg));
}
.hero::after {
  bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* ---------- pitch ---------- */
.pitch {
  position: relative;
  z-index: 1;
  margin-top: clamp(-5rem, -6vw, -2rem);
  padding: 0 1.5rem;
  text-align: center;
}

.eyebrow {
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  font-weight: 500;
}

h1 {
  margin-top: 0.5rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #e8e8e8 0%, #b9b9b9 45%, #8d8d8d 55%, #cfcfcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.tagline {
  margin-top: 0.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--brass);
  border-radius: 4px;
  transform: rotate(-2deg);
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- features ---------- */
.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 3.5rem auto 0;
  text-align: center;
}

.feature {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.feature h3 {
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  font-weight: 600;
}

.feature p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- signup ---------- */
.signup {
  max-width: 660px;
  margin: 4.5rem auto 0;
  padding: 0 1.5rem;
}

.signup-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.signup h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #dcd7d0;
}

.signup .blurb {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* Result banners, revealed by the /#sent and /#error redirects — no script. */
.banner {
  display: none;
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  scroll-margin-top: 6rem;
}
.banner:target { display: block; }
.banner-success { border: 1px solid #4a5d3a; background: #1c2417; color: #a3c98a; }
.banner-error { border: 1px solid #6b4034; background: #291b16; color: #d98b7a; }

/* After a successful signup there's nothing left to submit. */
#sent:target ~ form { display: none; }

form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  background: #12100e;
  border: 1px solid #3a332d;
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}

input[type="email"]::placeholder { color: var(--faint); }

input[type="email"]:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

button {
  padding: 0.95rem 1.6rem;
  background: linear-gradient(180deg, var(--brass-bright), #b98d45);
  border: 1px solid var(--brass-dark);
  border-radius: 6px;
  color: #221a0e;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  button { transition: filter 0.15s, transform 0.15s; }
  button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
  button:active:not(:disabled) { transform: translateY(0); }
}

button:disabled { opacity: 0.6; cursor: default; }

/* Honeypot: moved out of view, not display:none, so naive bots still see it */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

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

/* ---------- footer ---------- */
footer {
  margin-top: 5rem;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 560px) {
  form { flex-direction: column; }
  button { width: 100%; }
}
