:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --navy: #1a2744;
  --gold: #c9a84c;
  --text: #1a1a1a;
  --text-light: #5a6478;
  --border: #e8e4dc;
  --hero-accent: #f0ebe0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 80px 40px 100px;
  display: flex;
  align-items: center;
  gap: 80px;
  min-height: 580px;
}

.hero-inner { flex: 1; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.market-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px 28px;
  text-align: left;
  width: 200px;
}

.market-card.featured {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.35);
}

.market-city {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.market-card.featured .market-city { color: rgba(201,168,76,0.7); }

.market-stat {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.market-card.featured .market-stat { color: var(--gold); }

.market-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* ── Markets ── */
.markets {
  padding: 100px 40px;
  background: var(--bg);
}

.markets-inner { max-width: 960px; margin: 0 auto; }

.markets h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 20px;
}

.markets-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.neighborhood {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.neighborhood-icon {
  color: var(--gold);
}

.neighborhood-name {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.neighborhood-note {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── How it works ── */
.howitworks {
  background: var(--navy);
  padding: 100px 40px;
  color: #fff;
}

.howitworks-inner { max-width: 960px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.howitworks h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 56px;
}

.steps-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.step { flex: 1; }

.step-number {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step-title {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.step-connector { color: rgba(255,255,255,0.25); flex-shrink: 0; }

/* ── Stats ── */
.stats {
  background: var(--hero-accent);
  padding: 80px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat-block { flex: 1; }

.stat-value {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Closing ── */
.closing {
  background: var(--bg);
  padding: 100px 40px;
}

.closing-inner { max-width: 720px; margin: 0 auto; }

.closing h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 28px;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  padding: 40px 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-name {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 24px 80px;
    gap: 48px;
  }
  .hero-visual { flex-direction: row; width: 100%; }
  .market-card { flex: 1; width: auto; }
  .steps-row { flex-direction: column; gap: 40px; }
  .step-connector { display: none; }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 20px 64px; }
  .markets, .howitworks, .stats, .closing, .funnel { padding: 72px 20px; }
  .neighborhoods-grid { grid-template-columns: 1fr; }
  .hero-visual { gap: 12px; }
  .market-card { padding: 18px 20px; }
  .market-stat { font-size: 1.5rem; }
  .form-row { flex-direction: column; }
}

/* ── Funnel Form ── */
.funnel {
  background: var(--navy);
  padding: 100px 40px;
}

.funnel-inner {
  max-width: 680px;
  margin: 0 auto;
}

.funnel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.funnel-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.funnel-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  line-height: 1.6;
}

.lead-form { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}

.form-group input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, background 0.15s;
}

.form-group input::placeholder { color: rgba(255,255,255,0.35); }

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.form-group input.error { border-color: #e05c5c; }

.field-error {
  font-size: 0.78rem;
  color: #e05c5c;
  min-height: 18px;
}

.form-submit {
  background: var(--gold);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 8px;
  width: 100%;
}

.form-submit:hover { background: #b8983f; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: -4px;
}

.form-message {
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  color: #81c784;
  display: block;
}

.form-message.error {
  background: rgba(224,92,92,0.15);
  border: 1px solid rgba(224,92,92,0.3);
  color: #e05c5c;
  display: block;
}

.funnel-proof {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.proof-item { display: flex; flex-direction: column; gap: 4px; }

.proof-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.proof-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26,39,68,0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .funnel-proof { flex-wrap: wrap; gap: 24px; }
}