:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --border: #e5e5e5;
  --border-focus: #a3a3a3;
  --text-primary: #111111;
  --text-body: #374151;
  --text-muted: #6b7280;
  --accent-cta: #111111;
  --accent-cta-fg: #ffffff;
  --code-bg: #f4f4f5;

  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Newsreader', 'Times New Roman', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background treatment: Option B — dot grid (single texture, low opacity) */
.texture {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.3;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Navigation: logo icon + product name only.
   Positioned absolutely so it does not push the hero off-center. */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-name {
  letter-spacing: 0.01em;
}

/* Centered content — text sits in the middle of the page */
.page-content {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: center;
  color: var(--text-primary);
}

/* Pure CSS ripple — 4 staggered rings sharing one center point */
.ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0.5px solid #888;
  animation: ripple 6s cubic-bezier(0.1, 0, 0.5, 1) infinite;
}

.ring:nth-child(1) { animation-delay: 0s; }
.ring:nth-child(2) { animation-delay: 1.5s; }
.ring:nth-child(3) { animation-delay: 3s; }
.ring:nth-child(4) { animation-delay: 4.5s; }

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  40% {
    opacity: 0.3;
  }
  100% {
    width: 700px;
    height: 700px;
    opacity: 0;
  }
}

.lead {
  margin-top: 24px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
}

/* Notify form */
.notify {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: #ffffff;
  outline: none;
  transition: border-color 120ms ease;
}

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

.input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  background: var(--accent-cta);
  color: var(--accent-cta-fg);
  border: none;
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 120ms ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.form-note {
  margin-top: 12px;
  min-height: 1.2em;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-note.ok {
  color: var(--text-primary);
}

.form-note.err {
  color: #b91c1c;
}

.meta {
  margin-top: 56px;
}

.meta-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Footer: three all-caps spaced links */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-subtle: #111111;
    --border: #262626;
    --border-focus: #525252;
    --text-primary: #fafafa;
    --text-body: #d4d4d4;
    --text-muted: #8a8a8a;
    --accent-cta: #fafafa;
    --accent-cta-fg: #0a0a0a;
    --code-bg: #161616;
  }

  .texture {
    background-image: radial-gradient(circle, #2a2a2a 1px, transparent 1px);
    opacity: 0.4;
  }

  .input {
    background: #0a0a0a;
  }
}
