/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF7;
  --bg-alt: #F2EFE8;
  --fg: #1C1C1E;
  --fg-muted: #6B6B6B;
  --accent: #D97706;
  --accent-light: #FEF3C7;
  --border: #E5E0D5;
  --chat-bg: #FFFFFF;
  --chat-border: #E5E0D5;
  --store-msg: #EFF6FF;
  --customer-msg: #F0FDF4;
  --high-severity: #DC2626;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header { margin-bottom: 3.5rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 600; color: var(--fg); margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 44ch; }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-headline em { font-style: italic; color: var(--accent); }

.hero-sub { font-size: 1.1rem; color: var(--fg-muted); max-width: 42ch; line-height: 1.7; margin-bottom: 0; }

/* ── Chat Window ── */
.chat-window {
  background: var(--chat-bg);
  border: 1px solid var(--chat-border);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.chat-header {
  background: var(--fg);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
}

.chat-store-name { color: #fff; font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }

.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  display: inline-block;
}

.chat-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg { font-size: 0.8rem; line-height: 1.5; }

.msg-store p { background: var(--store-msg); color: var(--fg); padding: 0.6rem 0.85rem; border-radius: 12px 12px 12px 3px; display: inline-block; }

.msg-customer p { background: #F0FDF4; color: var(--fg); padding: 0.6rem 0.85rem; border-radius: 12px 12px 3px 12px; display: inline-block; }

.msg-time { display: block; font-size: 0.7rem; color: var(--fg-muted); margin-top: 0.25rem; padding-left: 0.25rem; }
.double-check { color: #22C55E; }

.complaint-card {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-top: 0.25rem;
}

.complaint-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }

.complaint-label { font-size: 0.72rem; font-weight: 700; color: var(--fg); }
.complaint-severity.high { background: #FEE2E2; color: var(--high-severity); font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 20px; }
.complaint-text { font-size: 0.78rem; color: var(--fg-muted); margin-bottom: 0.2rem; }
.complaint-sla { font-size: 0.72rem; font-weight: 600; color: #D97706; }

/* ── Integrations Bar ── */
.integrations-bar {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 2.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.integrations-label { font-size: 0.75rem; color: var(--fg-muted); font-weight: 500; white-space: nowrap; }

.integration-logos { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.logo-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg);
}

/* ── Stats Row ── */
.stats-row {
  background: var(--fg);
  padding: 3rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  padding: 0 3rem;
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit { font-size: 1.6rem; }

.stat-desc { font-size: 0.8rem; color: #9CA3AF; line-height: 1.4; }

.stat-divider { width: 1px; height: 60px; background: #374151; flex-shrink: 0; }

/* ── Features ── */
.features {
  padding: 6rem 2.5rem;
  background: var(--bg);
}

.features .section-header { max-width: 1200px; margin: 0 auto 3.5rem; }

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}
.feature-card:hover { background: #F7F5EF; }

.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--fg); }
.feature-desc { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 1rem; line-height: 1.6; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.feature-list li { font-size: 0.8rem; color: var(--fg-muted); padding-left: 1rem; position: relative; }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* ── Process ── */
.process {
  padding: 6rem 2.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process .section-header { max-width: 1200px; margin: 0 auto 3.5rem; }

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
}

.process-step { display: flex; gap: 1.25rem; align-items: flex-start; }

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}

.step-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--fg); }
.step-desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 0.75rem; }

.step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

/* ── Intelligence ── */
.intelligence {
  padding: 6rem 2.5rem;
  background: var(--fg);
  color: #fff;
}

.intelligence-inner {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.intelligence-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; margin-bottom: 1rem; }
.intelligence-sub { color: #9CA3AF; font-size: 0.95rem; line-height: 1.7; }

.intelligence-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.insight-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.insight-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.insight-text { font-size: 0.875rem; color: #E5E7EB; line-height: 1.65; margin-bottom: 0.75rem; }
.insight-text strong { color: #fff; }
.insight-action { font-size: 0.78rem; color: #9CA3AF; font-style: italic; }

/* ── Complaints Centre ── */
.complaints-centre {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2.5rem;
}

.centre-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 1.75rem; color: #fff; }

.centre-stats { display: flex; gap: 3rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.centre-stat { text-align: center; }
.centre-num { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1; }
.centre-label { font-size: 0.75rem; color: #9CA3AF; margin-top: 0.4rem; display: block; }

.centre-issues-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #9CA3AF; margin-bottom: 1rem; }

.issue-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.issue-name { font-size: 0.8rem; color: #D1D5DB; min-width: 120px; }
.issue-bar-fill { height: 8px; background: var(--accent); border-radius: 4px; min-width: 4px; }
.issue-pct { font-size: 0.75rem; color: #9CA3AF; min-width: 2.5rem; }

/* ── Closing ── */
.closing {
  padding: 6rem 2.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.closing-body { font-size: 1.05rem; color: var(--fg-muted); max-width: 58ch; margin: 0 auto 2.5rem; line-height: 1.8; }

.closing-cta-text { font-size: 1rem; color: var(--fg-muted); font-style: italic; }

/* ── Footer ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem;
}

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

.footer-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.footer-tagline { font-size: 0.85rem; color: var(--fg-muted); display: block; margin-top: 0.25rem; }
.footer-links span { font-size: 0.8rem; color: var(--fg-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .intelligence-inner { grid-template-columns: 1fr; }
  .intelligence-insights { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stat { min-width: 120px; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { padding: 0 1.25rem; }
  .stats-row { padding: 2rem 1.25rem; }
  .features { padding: 4rem 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .process { padding: 4rem 1.25rem; }
  .process-steps { grid-template-columns: 1fr; }
  .intelligence { padding: 4rem 1.25rem; }
  .complaints-centre { padding: 1.5rem; }
  .closing { padding: 4rem 1.25rem; }
  footer { padding: 2rem 1.25rem; }
  .stat { padding: 0 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}