/* ============================================================
   MediatorAI Demo - Premium Investor-Focused Stylesheet
   Stripe-level attention to detail. Dark hero, light content.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (from DESIGN_SPEC.md) --- */
:root {
  /* Core palette */
  --color-bg: #0F0F14;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F8FAFC;
  --color-primary: #6366F1;
  --color-primary-light: #818CF8;
  --color-primary-dark: #4F46E5;
  --color-accent: #10B981;
  --color-accent-light: #34D399;

  /* Text */
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-text-on-dark: #F1F5F9;

  /* Border */
  --color-border: #E2E8F0;

  /* Party colors */
  --color-party-a: #8B5CF6;
  --color-party-b: #10B981;
  --color-ai: #6366F1;

  /* Semantic */
  --color-success: #10B981;
  --color-success-light: #D1FAE5;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow-primary: 0 0 40px rgba(99, 102, 241, 0.3);
  --shadow-glow-accent: 0 0 40px rgba(16, 185, 129, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1120px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}


/* ============================================================
   TYPOGRAPHY (from spec)
   ============================================================ */
h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2, .section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}


/* ============================================================
   1. HERO SECTION
   ============================================================ */
.hero {
  background: var(--color-bg);
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial gradient for depth */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Badge: pill shape, indigo bg with low opacity, indigo text */
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out both;
}

/* Title: white, 56px, bold */
.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Highlight span: gradient text (indigo to emerald) */
.hero-highlight {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Stats: 3 columns, white values, muted labels */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA: large indigo button with glow effect */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 4px 16px rgba(99, 102, 241, 0.3);
  animation: fadeInUp 0.6s ease-out 0.4s both;
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 8px 24px rgba(99, 102, 241, 0.3);
}

.hero-cta:active {
  transform: translateY(0);
}


/* ============================================================
   2. HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 24px;
  background: var(--color-surface);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-it-works .section-title {
  margin-bottom: 64px;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.step-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Connector line between step cards */
.step-connector {
  width: 48px;
  height: 2px;
  background: var(--color-border);
  flex-shrink: 0;
  margin-top: 28px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-border);
  border-right: 2px solid var(--color-border);
  transform: rotate(45deg);
}


/* ============================================================
   3. INTERACTIVE DEMO SECTION
   ============================================================ */
.demo-section {
  padding: 100px 24px;
  background: var(--color-surface-alt);
}

.demo-inner {
  max-width: 900px;
  margin: 0 auto;
}

.demo-section .section-title {
  margin-bottom: 12px;
}

/* --- Demo Nav: pill-shaped tab buttons --- */
.demo-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.demo-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.demo-tab:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(99, 102, 241, 0.04);
}

.demo-tab.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* --- Demo Stages --- */
.demo-stage {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.demo-stage.active {
  display: block;
}


/* ============================================================
   DEVICE MOCKUP: Browser Frame
   ============================================================ */
.device-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--color-border);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots::before,
.browser-dots::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots::before {
  background: #EF4444;
  box-shadow: 16px 0 0 #F59E0B, 32px 0 0 #22C55E;
}

.browser-url {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  background: var(--color-surface);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-left: 28px;
}

.browser-content {
  padding: 32px;
  background: var(--color-surface);
  min-height: 200px;
}

/* --- Form inside browser mockup --- */
.browser-content .mock-form-group {
  margin-bottom: 16px;
}

.browser-content .mock-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.browser-content .mock-form-group .mock-input,
.browser-content .mock-form-group .mock-select,
.browser-content .mock-form-group .mock-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
}

.browser-content .mock-form-group .mock-textarea {
  min-height: 60px;
  resize: none;
}

.browser-content .mock-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.browser-content .mock-submit {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: default;
}


/* ============================================================
   DEVICE MOCKUP: Phone Frame
   ============================================================ */
.device-phone {
  width: 280px;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface-alt);
}

.phone-status-bar .phone-time {
  font-weight: 600;
}

.phone-status-bar .phone-icons {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.phone-content {
  padding: 16px;
  min-height: 280px;
}

/* SMS bubbles */
.sms-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: 90%;
}

.sms-incoming {
  background: #DCF8C6;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  color: var(--color-text);
}

.sms-outgoing {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-bottom-right-radius: 4px;
  margin-left: auto;
  color: var(--color-text);
}

.sms-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}


/* ============================================================
   DEVICE MOCKUP: Email Window
   ============================================================ */
.device-email {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  flex: 1;
}

.email-header {
  padding: 16px 20px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.email-field {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.email-field strong {
  font-weight: 600;
  color: var(--color-text);
  display: inline-block;
  min-width: 56px;
}

.email-body {
  padding: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

.email-body p {
  margin-bottom: 12px;
}

/* Device row: side by side */
.device-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}


/* ============================================================
   CHAT WINDOW (Demo Mediation stage)
   ============================================================ */
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.chat-message {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  animation: slideUp 0.4s ease-out both;
}

.chat-message:nth-child(1) { animation-delay: 0s; }
.chat-message:nth-child(2) { animation-delay: 0.2s; }
.chat-message:nth-child(3) { animation-delay: 0.4s; }
.chat-message:nth-child(4) { animation-delay: 0.6s; }
.chat-message:nth-child(5) { animation-delay: 0.8s; }
.chat-message:nth-child(6) { animation-delay: 1.0s; }

/* AI messages: indigo left border, light indigo bg */
.chat-ai {
  border-left-color: var(--color-ai);
  background: rgba(99, 102, 241, 0.06);
}

/* Party A (Sarah): violet left border, light violet bg */
.chat-party-a {
  border-left-color: var(--color-party-a);
  background: rgba(139, 92, 246, 0.06);
}

/* Party B (Mike): emerald left border, light emerald bg */
.chat-party-b {
  border-left-color: var(--color-party-b);
  background: rgba(16, 185, 129, 0.06);
}

/* Chat avatar: 32px circle with initial */
.chat-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  flex-shrink: 0;
}

.chat-ai .chat-avatar {
  background: linear-gradient(135deg, var(--color-ai), var(--color-primary-dark));
}

.chat-party-a .chat-avatar {
  background: linear-gradient(135deg, var(--color-party-a), #7C3AED);
}

.chat-party-b .chat-avatar {
  background: linear-gradient(135deg, var(--color-party-b), #059669);
}

.chat-body {
  flex: 1;
}

/* Bold sender name */
.chat-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.chat-ai .chat-name {
  color: var(--color-ai);
}

.chat-party-a .chat-name {
  color: var(--color-party-a);
}

.chat-party-b .chat-name {
  color: var(--color-party-b);
}

/* Message content (SHORT) */
.chat-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
}

.chat-text p {
  margin-bottom: 0;
}

.chat-recipient {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ============================================================
   PROPOSAL CARD (Negotiate stage)
   ============================================================ */
.proposal-card {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), var(--shadow-lg);
}

.proposal-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.proposal-card p,
.proposal-card li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

.proposal-card ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.proposal-card li {
  margin-bottom: 8px;
}

.proposal-responses {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal-response {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
}

.proposal-response.party-a {
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid var(--color-party-a);
}

.proposal-response.party-b {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--color-party-b);
}

.proposal-response .response-name {
  font-weight: 700;
  font-size: 13px;
}

.proposal-response.party-a .response-name {
  color: var(--color-party-a);
}

.proposal-response.party-b .response-name {
  color: var(--color-party-b);
}


/* ============================================================
   RESOLUTION CARD (Resolve stage)
   ============================================================ */
.resolution-card {
  text-align: center;
  padding: 56px 40px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08), var(--shadow-2xl);
  max-width: 560px;
  margin: 0 auto;
  animation: scaleIn 0.5s ease-out both;
}

.resolution-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.resolution-card h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
}

.resolution-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* Stats grid within resolution card */
.resolution-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.resolution-stat {
  padding: 16px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.resolution-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.resolution-stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.resolution-note {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ============================================================
   DEMO CONTROLS (Progress bar + navigation)
   ============================================================ */
.demo-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.demo-prev,
.demo-next {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.demo-prev {
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.demo-prev:hover:not(:disabled) {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.demo-prev:disabled,
.demo-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-next {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.demo-next:hover:not(:disabled) {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

/* Progress bar */
.demo-progress {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.demo-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}


/* ============================================================
   4. BUSINESS CASE / METRICS SECTION
   ============================================================ */
.business-case {
  padding: 100px 24px;
  background: var(--color-surface);
}

.business-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.business-case .section-title {
  margin-bottom: 56px;
}

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

.metric-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.metric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.metric-value {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}


/* ============================================================
   5. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

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

.site-footer p {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Utility animation classes */
.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-secondary); }
.hidden { display: none !important; }


/* ============================================================
   RESPONSIVE -- Tablet (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding: 80px 20px 64px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .hero-stat-value {
    font-size: 28px;
  }

  /* How It Works */
  .how-it-works {
    padding: 64px 20px;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-card {
    max-width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin-top: 0;
  }

  .step-connector::after {
    right: -3px;
    top: auto;
    bottom: -2px;
    transform: rotate(135deg);
  }

  /* Section headings */
  .section-title {
    font-size: 28px;
  }

  /* Demo */
  .demo-section {
    padding: 64px 16px;
  }

  .demo-nav {
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .demo-nav::-webkit-scrollbar {
    display: none;
  }

  .demo-tab {
    flex-shrink: 0;
  }

  /* Device mockups: stack */
  .device-row {
    flex-direction: column;
    align-items: center;
  }

  .device-phone {
    width: 100%;
    max-width: 320px;
  }

  .device-email {
    width: 100%;
  }

  /* Business */
  .business-case {
    padding: 64px 20px;
  }

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

  .metric-value {
    font-size: 32px;
  }

  /* Resolution */
  .resolution-card {
    padding: 40px 24px;
  }

  .resolution-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* Demo controls */
  .demo-controls {
    flex-wrap: wrap;
  }

  .demo-progress {
    order: -1;
    width: 100%;
    flex: auto;
  }
}


/* ============================================================
   RESPONSIVE -- Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero {
    padding: 60px 16px 48px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .hero-cta {
    width: 100%;
    padding: 14px 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-subtitle {
    font-size: 15px;
  }

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

  .metric-card {
    padding: 24px 16px;
  }

  .metric-value {
    font-size: 28px;
  }

  .chat-message {
    padding: 12px;
    gap: 10px;
  }

  .chat-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 11px;
  }

  .proposal-card {
    padding: 24px 20px;
  }

  .resolution-card {
    padding: 32px 20px;
  }

  .resolution-stats {
    grid-template-columns: 1fr;
  }

  .browser-content {
    padding: 20px;
  }

  .browser-content .mock-form-row {
    grid-template-columns: 1fr;
  }

  .demo-controls {
    gap: 12px;
  }

  .demo-prev,
  .demo-next {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .site-footer {
    padding: 32px 16px;
  }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .hero,
  .demo-nav,
  .demo-controls,
  .site-footer {
    display: none;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .demo-stage {
    display: block !important;
    page-break-after: always;
  }
}
