/* ─── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syne:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:      #D4AF37;
  --gold-dim:  #b8962e;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --bg:        #0a0a0a;
  --bg-card:   #111111;
  --bg-input:  #161616;
  --border:    #1e1e1e;
  --text:      #e8e3d6;
  --text-muted:#8a8070;
  --red:       #e05c5c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ───────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7rem 1.5rem 6rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

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

.hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* ─── Email Form ────────────────────────────────────────────────────────── */
.email-form-wrap {
  width: 100%;
  max-width: 480px;
}

.email-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.4rem;
  transition: border-color 0.2s;
}

.email-form:focus-within {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.email-form.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 92, 92, 0.12);
}

.email-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0.75rem;
}

.email-form input[type="email"]::placeholder { color: var(--text-muted); }

.email-form button {
  flex-shrink: 0;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 0.3rem;
  padding: 0.6rem 1.25rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.email-form button:hover  { background: var(--gold-dim); }
.email-form button:active { opacity: 0.85; }
.email-form button:disabled { opacity: 0.5; cursor: not-allowed; }

.form-message {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  min-height: 1.1rem;
  text-align: left;
  padding-left: 0.25rem;
}

.form-message.error   { color: var(--red); }
.form-message.success { color: #7ecf8a; }

/* Success state — replaces form */
.form-success-state {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: rgba(126, 207, 138, 0.08);
  border: 1px solid rgba(126, 207, 138, 0.25);
  border-radius: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: #7ecf8a;
}

.form-success-state.visible { display: flex; }

.form-success-state .check-icon {
  width: 20px;
  height: 20px;
  background: rgba(126, 207, 138, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* ─── Stats ─────────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 1.5rem 5rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.25rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.features-section {
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 3.5rem;
  max-width: 520px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  transition: background 0.2s;
}

.feature-card:hover { background: #141414; }

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 3rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.footer-cta-copy h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.footer-cta-copy p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Loading spinner ───────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

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

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .email-form { flex-direction: column; }
  .email-form button { width: 100%; padding: 0.75rem; }
  .footer-cta { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar { gap: 1.5rem; }
  .stat-divider { display: none; }
}
