:root {
  --midnight: #0D3B4C;
  --midnight-light: #1A5A72;
  --amber: #D4920A;
  --amber-light: #F0B84A;
  --off-white: #F5F3EF;
  --warm-gray: #8A8680;
  --dark: #1C1A17;
  --success: #2E7D5A;
  --radius: 12px;
  --radius-lg: 20px;
}

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

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

h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  line-height: 1.15;
}

/* NAV */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 59, 76, 0.08);
  z-index: 100;
  padding: 0 48px;
}

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

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--midnight);
  font-weight: 400;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  padding: 80px 48px 72px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--midnight);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 460px;
  line-height: 1.7;
}

/* AGENT WIDGET */
.agent-widget {
  background: var(--midnight);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  font-size: 0.82rem;
  box-shadow: 0 24px 64px rgba(13,59,76,0.28);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.agent-dot.active {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s infinite;
}

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

.agent-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agent-msg {
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.5;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.agent-msg.system {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-style: italic;
}

.agent-msg.user {
  background: rgba(212,146,10,0.2);
  color: var(--amber-light);
  border: 1px solid rgba(212,146,10,0.3);
}

.agent-msg.agent {
  background: rgba(46,125,90,0.2);
  color: #6FCF9B;
  border: 1px solid rgba(46,125,90,0.3);
  font-size: 0.75rem;
}

.agent-match {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 14px;
  animation: fadeIn 0.4s ease;
}

.match-rank {
  width: 22px;
  height: 22px;
  background: var(--amber);
  color: var(--midnight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-info strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.match-info span {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.55);
}

.match-tag {
  color: var(--amber) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
}

/* SECTIONS */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--midnight);
  margin-bottom: 48px;
}

/* HOW IT WORKS */
.howitworks {
  background: #fff;
  padding: 80px 0;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step-num {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: rgba(13,59,76,0.12);
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 1.1rem;
  color: var(--midnight);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* FEATURES */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--off-white);
  border: 1px solid rgba(13,59,76,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(13,59,76,0.2);
  box-shadow: 0 8px 32px rgba(13,59,76,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--midnight);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--amber);
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--midnight);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* OUTCOMES */
.outcomes {
  background: var(--midnight);
  padding: 72px 0;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.outcome {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 28px;
}

.outcome-num {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.outcome-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 12px;
}

.outcome p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* CLOSING */
.closing {
  background: var(--off-white);
  padding: 96px 0;
}

.closing-headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--midnight);
  max-width: 720px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing-sub {
  font-size: 1rem;
  color: var(--warm-gray);
  max-width: 640px;
  line-height: 1.7;
}

/* FOOTER */
.site-footer {
  background: var(--midnight);
  padding: 32px 48px;
}

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

.footer-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: #fff;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .agent-widget { max-width: 480px; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-nav, .hero, .section-inner, .site-footer { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .steps-row, .features-grid, .outcomes-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .hero-headline { font-size: 2rem; }
}