/* ============================================================
   Urban Pulse — Main Stylesheet
   Palette: near-black bg, white text, gold accent (#C9A84C),
   subtle dark-grey panels, clean sans-serif.
   ============================================================ */

:root {
  --bg:          #0d0f11;
  --bg-alt:      #141618;
  --panel:       #1a1c1f;
  --border:      #2a2d32;
  --text:        #e8eaed;
  --text-muted:  #8a909a;
  --gold:        #C9A84C;
  --gold-light:  #e0bf72;
  --green:       #4caf7a;
  --white:       #ffffff;
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:      6px;
  --max-w:       1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 560px; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title { margin-bottom: 2.5rem; }
.section-title.centered, .centered { text-align: center; }
.section-intro { max-width: 640px; margin: 0 auto 2.5rem; color: var(--text-muted); }
.section-note { margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .two-col, .three-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #0d0f11;
}
.btn-primary:hover { background: var(--gold-light); color: #0d0f11; }
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: var(--gold); color: #0d0f11; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-disabled {
  background: var(--panel);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border);
  pointer-events: none;
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-full { width: 100%; display: block; }

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,17,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo { font-size: 1.2rem; font-weight: 700; }
.logo-urban { color: var(--white); }
.logo-pulse { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 1.5rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
}

/* ---- Flash Messages ---- */
.flash-messages { padding: 0.75rem 1.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; font-size: 0.9rem; }
.flash-error { background: #3d1515; color: #ff8a8a; border: 1px solid #6b2020; }
.flash-info  { background: #162030; color: #7dc8f0; border: 1px solid #204060; }

/* ---- Company Intro ---- */
.company-intro {
  background: var(--bg-alt);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
  text-align: center;
}
.company-intro-text {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 1.5rem 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 760px; margin-bottom: 1.25rem; }
.hero-sub { max-width: 600px; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page Hero ---- */
.page-hero {
  padding: 4rem 0 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; text-align: center; }

/* ---- Stat Card ---- */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.stat-card-row:last-child { border-bottom: none; }
.stat-card-row.highlight { background: rgba(201,168,76,0.08); }
.stat-card-row.highlight-green { background: rgba(76,175,122,0.1); }
.stat-card-row span:last-child { font-weight: 600; color: var(--white); }

/* ---- Feature List ---- */
.feature-list { margin: 1rem 0 1.5rem; }
.feature-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Pillar Cards ---- */
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.pillar-icon { font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; }
.pillar-card h3 { margin-bottom: 0.75rem; }
.pillar-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Performance Table ---- */
.perf-table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.perf-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--panel);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.perf-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.perf-table tr:last-child td { border-bottom: none; }
.highlight-green { color: var(--green) !important; }
.table-disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ---- Metrics Grid ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.metric-card.highlight { border-color: var(--gold); }
.metric-value { font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.metric-label { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Monte Carlo Grid ---- */
.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.mc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mc-value { font-size: 1.8rem; font-weight: 700; color: var(--gold); }
.mc-label { font-size: 0.8rem; color: var(--text-muted); }
.mc-positive .mc-value { color: var(--green); }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step {
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201,168,76,0.06) 0%, var(--panel) 60%);
}
.pricing-card.coming-soon { opacity: 0.6; }

.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: #0d0f11;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-tier { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 0.25rem; }
.pricing-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-equity { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text);
  font-size: 0.9rem;
}
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.coming-soon .pricing-features li::before { color: var(--text-muted); }

.pricing-notes {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.pricing-notes h3 { margin-bottom: 1rem; }
.pricing-notes ul { list-style: disc; padding-left: 1.25rem; }
.pricing-notes li { color: var(--text-muted); font-size: 0.9rem; padding: 0.2rem 0; }

/* ---- Subscribe Form ---- */
.subscribe-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.required { color: var(--gold); }
.form-group input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.form-back { margin-top: 1.25rem; text-align: center; font-size: 0.9rem; }

/* ---- Success ---- */
.success-icon {
  font-size: 3rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.centered-cta { text-align: center; margin-top: 2rem; }

/* ---- CTA Band ---- */
.cta-band {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 2rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 0;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .logo-urban { font-size: 1.1rem; font-weight: 700; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-legal p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; margin-bottom: 0.5rem; }

/* --- Helpers added for members/newsletter --- */
.container.narrow { max-width: 540px; }
.sub { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.sub.centered { text-align: center; }
.opt { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

/* --- Auth forms (register / login) --- */
.auth-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.auth-form label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.auth-form input {
  padding: 0.75rem 0.9rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-form button { margin-top: 1.25rem; }
.auth-alt { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.dev-link-box {
  margin-top: 1.5rem; padding: 1rem; background: var(--panel);
  border: 1px solid var(--gold); border-radius: var(--radius); word-break: break-all;
}

/* --- Members area --- */
.members-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.members-status { margin-top: 1rem; }
.status-pill {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border);
}
.status-active { color: var(--green); border-color: var(--green); }
.status-pending { color: var(--gold); border-color: var(--gold); }
.status-cancelled { color: var(--text-muted); }
.coming-tag {
  display: inline-block; margin-top: 0.75rem; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--border);
  padding: 0.2rem 0.6rem; border-radius: var(--radius);
}

/* --- Newsletter --- */
.newsletter-section { background: var(--bg-alt); }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 460px; margin: 1.5rem auto 0; }
.newsletter-form input {
  flex: 1; padding: 0.75rem 0.9rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 0.9rem; }
.nav-members { color: var(--text); font-size: 0.9rem; margin-right: 0.25rem; }
.nav-members:hover { color: var(--gold-light); }

/* --- Honeypot field: visually removed but still in the DOM for bots --- */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
