:root {
  --gold: #c9a227;
  --gold-soft: #e8d48b;
  --gold-dim: rgba(201, 162, 39, 0.18);
  --silver: #a8b0b8;
  --charcoal: #12151a;
  --charcoal-elevated: #1c2128;
  --ink: #e8eaed;
  --muted: #9aa3ad;
  --danger: #e57373;
  --ok: #8fd19e;
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--charcoal);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(168, 176, 184, 0.06), transparent 60%);
  z-index: 0;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.brand-wordmark {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.wm-metal {
  color: #c8cdd3;
}

.wm-ledger {
  color: var(--gold-soft);
}

.header-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.header-link:hover {
  color: var(--gold-soft);
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: 100%;
  max-width: 640px;
  padding: 1.5rem 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 1.5rem;
}

.hero-logo {
  width: min(220px, 48vw);
  height: auto;
  border-radius: 28px;
  display: block;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(201, 162, 39, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: var(--gold-dim);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #f3f4f6;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.lede {
  margin: 0 0 2rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38rem;
}

.signup {
  width: 100%;
  max-width: 520px;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  position: relative;
}

.signup input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(28, 33, 40, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup input[type="email"]::placeholder {
  color: #6b737c;
}

.signup input[type="email"]:focus {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.signup input[type="email"].invalid {
  border-color: rgba(229, 115, 115, 0.7);
}

button[type="submit"] {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 8.5rem;
  padding: 0.95rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #dfc45a 0%, var(--gold) 55%, #a8841a 100%);
  color: #1a1508;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px rgba(201, 162, 39, 0.25);
  transition: transform 0.12s, filter 0.12s, opacity 0.12s;
}

button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(26, 21, 8, 0.25);
  border-top-color: #1a1508;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.form-status.ok {
  color: var(--ok);
}

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

.fine-print {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #6f7882;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 1040px;
  text-align: left;
}

.card {
  padding: 1.35rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 33, 40, 0.95), rgba(18, 21, 26, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold-soft);
  font-size: 1.1rem;
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0f2f4;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.tracker-promo {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.15rem 1.35rem;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
  max-width: 1040px;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(135deg, rgba(28, 33, 40, 0.95) 0%, rgba(18, 21, 26, 0.98) 55%, rgba(12, 14, 18, 1) 100%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 162, 39, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tracker-promo:hover {
  border-color: rgba(232, 212, 139, 0.65);
  color: inherit;
  transform: translateY(-2px);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(232, 212, 139, 0.18);
}

.tracker-promo-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  background: #0a0a0a;
}

.tracker-promo-copy {
  min-width: 0;
}

.tracker-promo-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.tracker-promo-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.tracker-promo-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.tracker-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #dfc45a 0%, var(--gold) 55%, #a8841a 100%);
  color: #1a1508;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 16px rgba(201, 162, 39, 0.25);
}

@media (max-width: 700px) {
  .tracker-promo {
    grid-template-columns: auto 1fr;
    gap: 0.9rem 1rem;
  }

  .tracker-promo-cta {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-logo {
  width: 120px;
  height: auto;
  border-radius: 20px;
  margin: 0 auto 0.75rem;
  display: block;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.footer-wordmark {
  margin: 0 0 0.85rem !important;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: #6f7882;
}

.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: 800px) {
  .features {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 0.75rem;
  }

  button[type="submit"] {
    flex: 1 1 100%;
  }

  .brand-wordmark {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  button[type="submit"] {
    transition: none;
  }
  .btn-spinner {
    animation: none;
  }
}
