/* ApexOS — Premium Real Estate Brokerage OS */
:root {
  --bg: #0B1628;
  --bg-card: #0F1D30;
  --bg-card-hover: #142336;
  --fg: #EDE8DF;
  --fg-muted: #8A94A6;
  --accent: #B8975A;
  --accent-dim: rgba(184, 151, 90, 0.15);
  --text-muted: #6B7A8C;
  --border: rgba(255,255,255,0.07);
  --status-green: #4CAF82;
  --status-blue: #5B8DEF;
  --status-amber: #D4A843;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* — NAV — */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark { color: var(--accent); font-size: 18px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* — HERO — */
.hero {
  padding: 80px 48px 64px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  max-width: 1200px;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

.hero-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:first-child { border-top: 1px solid var(--border); }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-divider { display: none; }

/* hero visual card */
.hero-visual { margin-top: 48px; }

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.vc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.vc-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.vc-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(76, 175, 130, 0.15);
  color: var(--status-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vc-items { padding: 8px 0; }

.vc-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vc-item:last-child { border-bottom: none; }

.vc-address {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.vc-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

.vc-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-escrow { background: rgba(76,175,130,0.15); color: var(--status-green); }
.status-listed { background: rgba(91,141,239,0.15); color: var(--status-blue); }
.status-offmarket { background: rgba(212,168,67,0.15); color: var(--status-amber); }

/* — SECTION SHARED — */
.section-inner { max-width: 1200px; margin: 0 auto; }

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

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

/* — PIPELINE — */
.pipeline {
  padding: 80px 48px;
  background: #08111F;
  border-top: 1px solid var(--border);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pipe-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pipe-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
}

.pipe-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.pipe-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* — MARKET INTEL — */
.marketintel {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.market-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.mstat {}

.mstat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.mstat-key {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.market-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg);
  align-items: center;
}

.table-row:last-child { border-bottom: none; }

.table-row span:nth-child(2) { color: var(--fg-muted); }

.trend-up { color: var(--status-green); font-size: 11px; font-weight: 500; }
.trend-flat { color: var(--fg-muted); font-size: 11px; }

/* — AI LAYER — */
.ailayer {
  padding: 80px 48px;
  background: #08111F;
  border-top: 1px solid var(--border);
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ai-feat {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ai-feat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ai-feat-icon { font-size: 18px; color: var(--accent); }

.ai-feat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.ai-feat p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* — CLOSING — */
.closing {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 40px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* — FOOTER — */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* — RESPONSIVE — */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stat-block { flex-direction: row; gap: 0; }
  .stat-item { padding: 12px 0; flex: 1; }
  .pipeline, .marketintel, .ailayer { padding: 56px 24px; }
  .pipeline-grid, .ai-features { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; gap: 40px; }
  .market-stats { flex-direction: column; gap: 24px; }
  .table-header, .table-row { grid-template-columns: 1fr auto; gap: 12px; }
  .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}