:root {
  --bg: #0A1628;
  --surface: #0F1F38;
  --surface2: #152440;
  --border: rgba(255,255,255,0.07);
  --fg: #F0F4FF;
  --fg-muted: rgba(240,244,255,0.5);
  --accent: #00D4AA;
  --accent-dim: rgba(0,212,170,0.15);
  --accent2: #7B5CFF;
  --accent2-dim: rgba(123,92,255,0.15);
  --danger: #FF6B6B;
  --warn: #FFB347;
  --good: #00D4AA;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

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

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 8vw 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 2rem 0 0;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 2rem;
}

/* Pipeline Widget */
.hero-visual {
  position: relative;
  z-index: 1;
}

.pipeline-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 60px rgba(0,212,170,0.05);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
}

.pipeline-row:last-of-type { border-bottom: none; }
.pipeline-row.muted { opacity: 0.4; }

.deal-name { color: var(--fg); font-weight: 500; }
.deal-amount { color: var(--fg); font-family: var(--font-head); font-weight: 600; }

.deal-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-ai { background: var(--accent2-dim); color: #A07EFF; }
.status-approved { background: var(--accent-dim); color: var(--accent); }
.status-routing { background: rgba(255,179,71,0.1); color: #FFB347; }
.status-pending { background: rgba(255,255,255,0.07); color: var(--fg-muted); }

.widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.total-label { color: var(--fg-muted); }
.total-amount { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--accent); }

/* ── PROBLEM ── */
.problem {
  padding: 6rem 8vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner { max-width: 760px; }

.problem-label, .features-label, .section-label, .outcomes-label {
  font-size: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.problem-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.problem-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.problem-stats { display: flex; flex-direction: column; gap: 1.25rem; }

.prob-item { display: flex; flex-direction: column; gap: 8px; }

.prob-text {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.prob-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
}

/* ── FEATURES ── */
.features { padding: 6rem 8vw; }

.features-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface2); }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── PIPELINE SECTION ── */
.pipeline-section {
  padding: 6rem 8vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pipeline-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.pipeline-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.pipeline-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.pipeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-list li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pipeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Timeline widget */
.timeline-widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.timeline-header {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.timeline-step {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 13px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid rgba(255,255,255,0.1);
}

.timeline-step.done .step-dot { background: var(--accent); border-color: var(--accent); }
.timeline-step.active .step-dot { background: var(--accent2); border-color: var(--accent2); box-shadow: 0 0 8px rgba(123,92,255,0.5); }

.step-text { color: var(--fg); }
.timeline-step.pending .step-text { color: var(--fg-muted); }
.step-time { color: var(--fg-muted); font-size: 12px; font-family: var(--font-head); }

.timeline-ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--accent2);
}

.ai-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
}

/* ── UNDERWRITING SECTION ── */
.underwriting-section {
  padding: 6rem 8vw;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.underwriting-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.underwriting-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.underwriting-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.underwriting-proof {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.proof-stat { display: flex; align-items: baseline; gap: 1rem; }

.proof-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 70px;
}

.proof-text { font-size: 14px; color: var(--fg-muted); line-height: 1.4; }

/* Underwriting widget */
.underwriting-widget {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.uw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.uw-badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.uw-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.uw-metric { display: flex; flex-direction: column; gap: 4px; }

.uw-metric-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

.uw-metric-value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.uw-metric-value.good { color: var(--good); }
.uw-metric-value.recommend {
  color: var(--good);
  font-size: 0.9rem;
}

.uw-metric-sub {
  font-size: 11px;
  color: var(--fg-muted);
}

.uw-factors { display: flex; flex-direction: column; gap: 0.75rem; }

.factor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

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

.factor-bar-wrap {
  width: 80px;
  height: 4px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}

.factor-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.factor-bar.good { background: var(--good); }

.uw-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
}

.uw-footer strong { color: var(--accent); }

/* ── OUTCOMES ── */
.outcomes-section {
  padding: 6rem 8vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.outcomes-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.outcome-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
}

.outcome-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.outcome-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.outcome-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ── CLOSING ── */
.closing-section {
  padding: 8rem 8vw;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,212,170,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  position: relative;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

/* ── FOOTER ── */
.site-footer {
  padding: 2.5rem 8vw;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-sep { color: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-inner, .underwriting-inner { grid-template-columns: 1fr; gap: 3rem; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .uw-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 6vw 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
}