/* === BASE === */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F3EFE8;
  --bg-dark: #0F172A;
  --fg: #1C1917;
  --fg-muted: #78716C;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --white: #FFFFFF;
  --border: #E7E5E0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.3px;
}

/* === HERO === */
.hero {
  padding: 140px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 24px;
}

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

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* Agent Widget */
.agent-widget {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 28px;
  color: white;
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18), 0 8px 24px rgba(15, 23, 42, 0.1);
}

.agent-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}

.agent-status {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.agent-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.agent-event {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.event-time {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  min-width: 60px;
  padding-top: 2px;
}

.event-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
}

.event-text em {
  font-style: italic;
  color: var(--accent);
}

.agent-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.agent-metric { text-align: center; }

.metric-value {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === WHAT IT DOES === */
.what-it-does {
  background: var(--bg-alt);
  padding: 96px 32px;
}

.wid-content {
  max-width: 1200px;
  margin: 0 auto;
}

.wid-header { margin-bottom: 48px; }

.wid-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
}

.wid-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.wid-col {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
}

.wid-col-old { border-left: 3px solid #D1CCC4; }
.wid-col-new { border-left: 3px solid var(--accent); }

.wid-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 16px;
}

.wid-col p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.wid-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.wid-col-new .wid-list li::before { background: var(--accent); }

/* === FEATURES === */
.features {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 48px;
}

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

.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

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

/* === PHILOSOPHY === */
.philosophy {
  background: var(--accent);
  padding: 80px 32px;
}

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

.quote-text {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.quote-attr {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 96px 32px;
  background: var(--bg-alt);
}

.hiw-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 56px;
}

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

.hiw-step { position: relative; }

.hiw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: var(--border);
}

.step-number {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.hiw-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.hiw-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* === CLOSING === */
.closing {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  max-width: 800px;
  margin-bottom: 24px;
}

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

.closing-vision {
  max-width: 680px;
  padding: 40px;
  background: var(--bg-alt);
  border-radius: 16px;
  border-left: 4px solid var(--accent);
}

.closing-vision p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-muted);
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .wid-comparison { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-step:not(:last-child)::after { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 120px 20px 64px; }
  .what-it-does, .features, .how-it-works, .closing { padding: 64px 20px; }
  .philosophy { padding: 56px 20px; }
  .footer { padding: 40px 20px 32px; }
  .wid-col { padding: 24px; }
  .feature-card { padding: 24px; }
}