/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --bg: #F9F7F4;
  --bg-alt: #F0EDE8;
  --fg: #1A1A2E;
  --fg-muted: #6B6B7B;
  --accent: #F59E0B;
  --accent-light: rgba(245, 158, 11, 0.12);
  --surface: #FFFFFF;
  --border: rgba(26, 26, 46, 0.1);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 100px;
  width: fit-content;
}

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

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

.status-text {
  font-size: 0.8rem;
  color: var(--fg);
  font-weight: 500;
}

/* Agent Display Card */
.agent-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.08);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--fg);
  color: white;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-info {
  flex: 1;
}

.agent-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.agent-mode {
  font-size: 0.75rem;
  opacity: 0.7;
}

.agent-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: #22C55E;
  color: white;
  padding: 4px 10px;
  border-radius: 100px;
}

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

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.feed-watching .feed-icon {
  color: var(--accent);
  font-size: 0.5rem;
  margin-top: 4px;
}

.feed-action .feed-icon {
  color: #22C55E;
  font-size: 0.6rem;
  margin-top: 4px;
}

.feed-item span:last-child {
  color: var(--fg-muted);
}

.feed-item.feed-action span:last-child {
  color: var(--fg);
  font-weight: 500;
}

.agent-memory {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.memory-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.memory-bar {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.memory-fill {
  height: 100%;
  width: 78%;
  background: var(--accent);
  border-radius: 2px;
}

.memory-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--accent-light);
  color: #B45309;
  border-radius: 100px;
  font-weight: 500;
}

/* ===========================
   ALWAYS-ON SECTION
   =========================== */
.always-on {
  background: var(--fg);
  color: white;
  padding: 100px 40px;
}

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

.ao-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.ao-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.ao-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.comparison-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid;
}

.comparison-passive {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.comparison-wren {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.comparison-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #EF4444;
}

.wren-icon {
  color: var(--accent) !important;
}

.comparison-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-list li {
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.comparison-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 8px;
  flex-shrink: 0;
}

.comparison-wren .comparison-list li {
  color: rgba(255, 255, 255, 0.9);
}

.comparison-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
}

.divider-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.divider-arrow {
  font-size: 1.2rem;
  color: var(--accent);
}

/* ===========================
   FEATURES
   =========================== */
.features {
  padding: 100px 40px;
  background: var(--bg);
}

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

.features-header {
  margin-bottom: 64px;
}

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

.features-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

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

.hiw-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.hiw-steps {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 64px;
}

.hiw-step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 20px;
  color: rgba(245, 158, 11, 0.15);
  -webkit-text-stroke: 1px rgba(245, 158, 11, 0.3);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

.hiw-arrow {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
  padding-top: 32px;
}

.hiw-integrations {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.int-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.int-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.int-badge {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 100px 40px;
  background: var(--fg);
  color: white;
}

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

.cta-quote {
  margin-bottom: 40px;
}

.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 8px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cta-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-body p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

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

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

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}

.footer-descriptor {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px;
  }

  .hero-visual {
    order: -1;
  }

  .ao-comparison {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comparison-divider {
    flex-direction: row;
    padding: 0;
  }

  .divider-line {
    width: 40px;
    height: 1px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hiw-steps {
    flex-direction: column;
  }

  .hiw-arrow {
    transform: rotate(90deg);
    padding: 0;
    width: auto;
    height: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .always-on,
  .features,
  .how-it-works,
  .cta-section {
    padding: 80px 24px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 16px 24px;
  }

  .hero {
    padding: 48px 20px;
  }

  .agent-display {
    transform: scale(0.9);
    transform-origin: top left;
  }
}