:root {
  --bg: #0a0a0c;
  --fg: #f2f2f0;
  --muted: #9a9a9e;
  --line: #232327;
  --accent: #4fd1c5;
  --accent-dim: #2b7a72;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6vh 1.5rem;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 75%);
  opacity: 0.6;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 132px;
  height: auto;
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.tagline {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
}

.tags li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.subscribe {
  display: flex;
  width: 100%;
  max-width: 420px;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.subscribe input[type="email"]::placeholder {
  color: #55555a;
}

.subscribe input[type="email"]:focus {
  border-color: var(--accent);
}

.subscribe button {
  flex-shrink: 0;
  background: var(--accent);
  color: #06201d;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.subscribe button:hover { background: #6fe0d5; }
.subscribe button:active { transform: translateY(1px); }
.subscribe button:disabled {
  background: var(--accent-dim);
  cursor: default;
}

.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.status {
  min-height: 1.2em;
  margin: 0 0 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.status[data-state="ok"] { color: var(--accent); }
.status[data-state="error"] { color: #f0847e; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  width: 100%;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}

.footer a:hover { color: var(--fg); }
.footer svg { flex-shrink: 0; }

.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;
}

@media (max-width: 480px) {
  .subscribe { flex-direction: column; }
  .footer { gap: 1rem 1.25rem; }
  .footer a span { font-size: 0.78rem; }
}
