/* ========================
   BIDBASE THEME
   Typography: Fraunces (display) + DM Sans (body)
   Palette: Charcoal #1A1A1A, Amber #F5A623, Slate #64748B
   ======================== */

:root {
  --bg-primary: #0E0E0E;
  --bg-secondary: #161616;
  --bg-card: #1E1E1E;
  --bg-card-hover: #252525;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --accent-mid: rgba(245, 166, 35, 0.25);
  --text-primary: #F5F5F5;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255,255,255,0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* Blueprint grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* ========================
   NAVBAR
   ======================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ========================
   HERO
   ======================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding: 80px 48px 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero-types {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  max-width: 560px;
}
.type-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  flex: 1;
}
.type-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.type-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Estimate mockup */
.hero-estimate-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,166,35,0.08);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FEBC2E; }
.mockup-dot.green { background: #28C840; }
.mockup-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 8px;
  font-weight: 500;
}
.mockup-body { padding: 20px; }
.mock-section { margin-bottom: 16px; }
.mock-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.8;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mock-amount {
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mock-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.mock-total-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.mock-total-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
}
.mock-confidence { margin-top: 12px; }
.confidence-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.confidence-fill {
  height: 100%;
  width: 88%;
  background: linear-gradient(90deg, var(--accent), #F7C56A);
  border-radius: 4px;
}
.confidence-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================
   HOW IT WORKS
   ======================== */
.how-it-works {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  max-width: 600px;
  line-height: 1.2;
  margin-bottom: 56px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.step { padding: 0 32px 0 0; }
.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-connector {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ========================
   FEATURES
   ======================== */
.features {
  padding: 80px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }
.feature-card { }
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Chat window mockup */
.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.chat-status { font-size: 11px; color: #28C840; font-weight: 500; }
.chat-bubbles { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bot {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 4px;
  font-size: 13px;
  color: var(--text-secondary);
  align-self: flex-start;
  max-width: 90%;
}
.chat-user {
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  padding: 10px 14px;
  border-radius: 12px 12px 4px 12px;
  font-size: 13px;
  color: var(--text-primary);
  align-self: flex-end;
  max-width: 85%;
}
.chat-generating {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.4s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Breakdown window */
.breakdown-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.breakdown-title {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}
.breakdown-rows { padding: 16px 20px; }
.bd-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-top: 14px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245,166,35,0.1);
}
.bd-item {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.bd-cat + .bd-item { border-top: none; }

/* Community window */
.community-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: 20px;
}
.comm-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.comm-range { margin-bottom: 16px; }
.range-label {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}
.range-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 8px;
  position: relative;
  margin-bottom: 8px;
}
.range-fill {
  position: absolute;
  left: 15%;
  right: 25%;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(245,166,35,0.3), var(--accent));
  border-radius: 8px;
}
.range-marker {
  position: absolute;
  top: -6px;
  left: 38%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.comm-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #28C840;
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(40,200,64,0.08);
  border-radius: 8px;
}

/* ========================
   OUTCOMES
   ======================== */
.outcomes {
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.outcome-card {
  background: var(--bg-card);
  padding: 32px 28px;
  text-align: center;
}
.outcome-stat {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.outcome-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================
   MANIFESTO
   ======================== */
.manifesto {
  padding: 100px 48px;
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 640px; }
.manifesto-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  margin-top: 32px;
}
.manifesto-label:first-child { margin-top: 0; }
.manifesto-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.manifesto-highlight {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-primary);
  font-style: italic;
}
.manifesto-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin: 40px 0;
}

/* ========================
   CLOSING
   ======================== */
.closing {
  padding: 100px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(245,166,35,0.04) 100%);
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ========================
   WAITLIST FORM
   ======================== */
.waitlist-section {
  margin-top: 48px;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.waitlist-social-proof {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.waitlist-headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.waitlist-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-primary);
  min-width: 260px;
  transition: border-color 0.15s;
  outline: none;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-btn {
  background: var(--accent);
  color: #1A1A1A;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.waitlist-btn:hover:not(:disabled) { opacity: 0.88; }
.waitlist-btn:active:not(:disabled) { transform: scale(0.97); }
.waitlist-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-msg {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}
.waitlist-msg-success { color: #4ade80; }
.waitlist-msg-error   { color: #f87171; }

/* ========================
   STICKY CTA
   ======================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  animation: slideUp 0.35s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.sticky-cta-btn {
  background: var(--accent);
  color: #1A1A1A;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.sticky-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245, 166, 35, 0.45);
}
.sticky-cta-btn:active { transform: translateY(0); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px 80px; }
  .hero-estimate-mockup { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .step-connector { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row-reverse { direction: ltr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .navbar { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .hero { padding: 48px 24px 64px; }
  .hero-headline { font-size: 40px; letter-spacing: -1px; }
  .hero-types { flex-direction: column; }
  .type-divider { width: 100%; height: 1px; }
  .how-it-works, .features, .outcomes, .manifesto, .closing { padding: 60px 24px; }
  .steps { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}