:root {
  --bg: #0D0F14;
  --surface: #141620;
  --surface-2: #1C1F2A;
  --gold: #C9A84C;
  --gold-light: #E2C271;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --green: #4CAF8C;
  --green-dim: rgba(76, 175, 140, 0.12);
  --text: #F5F3EE;
  --text-2: #B8B5AE;
  --text-3: #6A6D78;
  --border: #232634;
  --nav-height: 68px;
}

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

html { scroll-behavior: smooth; }

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

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 20px; color: var(--gold); }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 64px) 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
}

/* Hero Deal Card */
.hero-visual { display: flex; flex-direction: column; gap: 20px; }
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.deal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.deal-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.deal-status.new { background: var(--gold-dim); color: var(--gold); }
.deal-time { font-size: 12px; color: var(--text-3); }
.deal-address {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.deal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.metric { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.metric-label { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.metric-value { font-size: 16px; font-weight: 600; color: var(--text); }
.metric-value.gold { color: var(--gold); }
.metric-value.green { color: var(--green); }
.deal-ai-score { margin-bottom: 16px; }
.score-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.score-bar-wrap {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.score-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 3px;
}
.score-value { font-size: 12px; font-weight: 600; color: var(--gold); }
.deal-actions { display: flex; gap: 10px; }
.btn-primary {
  background: var(--gold);
  color: #0D0F14;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }
.btn-sm { font-size: 12px; padding: 8px 16px; }

/* Mini Pipeline */
.mini-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  overflow-x: auto;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 12px;
  color: var(--text-2);
  position: relative;
}
.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 1px;
  background: var(--border);
}
.pipeline-step.active .step-dot { background: var(--gold); box-shadow: 0 0 8px rgba(201,168,76,0.5); }
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.step-dot.muted { background: var(--border); }
.step-label { white-space: nowrap; }

/* ── STATS ── */
.stats-section {
  padding: 48px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.stat-item { text-align: center; flex: 1; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-desc { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.stat-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }

/* ── FEATURES ── */
.features-section {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 72px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: rgba(201,168,76,0.3); }
.feature-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── PIPELINE ── */
.pipeline-section {
  padding: 120px 48px;
  background: var(--surface);
}
.pipeline-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pipeline-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.pipeline-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 40px; }
.workflow-steps { display: flex; flex-direction: column; gap: 20px; }
.workflow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.workflow-step strong { display: block; font-size: 15px; margin-bottom: 4px; }
.workflow-step span { font-size: 13px; color: var(--text-2); }

/* Pipeline Card */
.pipeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.pc-header {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-2);
}
.pc-stages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.stage {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.stage-label { color: var(--text-2); }
.stage-count { font-weight: 600; color: var(--text); font-size: 15px; }
.stage-bar {
  height: 4px;
  background: var(--gold-dim);
  border-radius: 2px;
  width: 100px;
}
.stage-bar-gold { background: var(--gold); }
.pc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.pc-metric-label { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.pc-metric-value { font-size: 18px; font-weight: 600; color: var(--text); }
.pc-metric-value.gold { color: var(--gold); }

/* ── CONTRACTS ── */
.contracts-section {
  padding: 120px 48px;
  background: var(--bg);
}
.contracts-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contracts-visual { position: relative; }
.contract-preview {
  background: #F8F6F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  color: #1A1A1A;
}
.contract-header-bar {
  background: #0D0F14;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contract-brand { font-size: 14px; color: var(--gold); font-weight: 700; }
.contract-badge { font-size: 10px; font-weight: 700; color: #E05A5A; letter-spacing: 1px; }
.contract-body { padding: 20px 24px; }
.contract-section { margin-bottom: 16px; }
.contract-label { font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #8A8D98; margin-bottom: 10px; }
.contract-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid #E8E5DC; }
.contract-row span:last-child { font-weight: 600; }
.contract-clause { font-size: 11px; color: #6A6D78; line-height: 1.6; font-style: italic; }
.contract-signatures { display: flex; gap: 32px; margin-top: 20px; }
.sig-block { flex: 1; }
.sig-line { border-bottom: 1px solid #1A1A1A; height: 28px; margin-bottom: 6px; }
.sig-block span { font-size: 11px; color: #6A6D78; }
.contract-footer {
  background: #F0EDE5;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8A8D98;
}
.status-badge { background: #FFF3CD; color: #B8860B; font-weight: 700; font-size: 10px; padding: 3px 8px; border-radius: 4px; }

.contracts-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.contracts-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 32px; }
.contract-rules { display: flex; flex-direction: column; gap: 12px; }
.rule-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.rule-icon { color: var(--green); font-size: 16px; flex-shrink: 0; }

/* ── MARKETPLACE ── */
.marketplace-section {
  padding: 120px 48px;
  background: var(--surface);
}
.marketplace-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.marketplace-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.marketplace-desc { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 32px; }
.buyer-features { display: flex; flex-direction: column; gap: 10px; }
.buyer-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.bf-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Marketplace Card */
.marketplace-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.mc-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}
.mc-badge { font-size: 11px; color: var(--gold); background: var(--gold-dim); padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.deal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.deal-row:hover { background: var(--surface-2); }
.dr-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.dr-info span { font-size: 12px; color: var(--text-3); }
.dr-fee { font-size: 15px; font-weight: 700; color: var(--gold); }
.mc-footer {
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.buyers-online { color: var(--green); }

/* ── CLOSING ── */
.closing-section {
  padding: 140px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ── FOOTER ── */
.footer {
  padding: 64px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--text-3); margin-bottom: 32px; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content,
  .pipeline-inner,
  .contracts-inner,
  .marketplace-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider { display: none; }
  .navbar { padding: 0 24px; }
  .hero { padding: calc(var(--nav-height) + 40px) 24px 60px; }
  .features-section,
  .pipeline-section,
  .contracts-section,
  .marketplace-section,
  .closing-section,
  .stats-section,
  .footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mini-pipeline { gap: 8px; }
  .pipeline-step .step-label { display: none; }
  .hero-headline { font-size: 32px; }
}