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

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EDE4;
  --charcoal: #1C1C1E;
  --charcoal-light: #2D2D32;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --teal-dim: rgba(13,148,136,0.08);
  --amber: #F59E0B;
  --amber-light: #FCD34D;
  --text: #1C1C1E;
  --text-muted: #6B6B70;
  --text-faint: #9B9BA3;
  --border: rgba(28,28,30,0.1);
  --border-strong: rgba(28,28,30,0.18);
}

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

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(13,148,136,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 14px;
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 100px;
  width: fit-content;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-headline .hero-accent {
  color: var(--teal);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 400px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal-light);
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Hero Visual — Invoice Stack */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.invoice-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.invoice-card {
  background: white;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invoice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.08);
}

.invoice-card-1 { transform: rotate(-1.5deg); z-index: 3; }
.invoice-card-2 { transform: rotate(0.8deg) translateY(-10px); z-index: 2; }
.invoice-card-3 { transform: rotate(-0.5deg) translateY(-18px); z-index: 1; }

.invoice-card-1:hover { transform: rotate(-1.5deg) translateY(-4px); }
.invoice-card-2:hover { transform: rotate(0.8deg) translateY(-14px); }
.invoice-card-3:hover { transform: rotate(-0.5deg) translateY(-22px); }

.invoice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.inv-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.inv-meta { flex: 1; }
.inv-title { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.inv-num { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.inv-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.inv-line { display: flex; justify-content: space-between; align-items: baseline; }
.inv-label { font-size: 0.85rem; color: var(--text); font-weight: 400; }
.inv-amount { font-size: 0.95rem; font-weight: 600; color: var(--charcoal); }
.inv-line-sub .inv-label { font-size: 0.72rem; color: var(--text-faint); font-style: italic; }

.inv-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  width: fit-content;
}

.inv-status-ok { background: rgba(13,148,136,0.08); color: var(--teal); }
.inv-status-pending { background: rgba(245,158,11,0.1); color: #D97706; }
.status-icon { font-size: 0.65rem; }

/* Agent Panel */
.agent-panel {
  background: var(--charcoal);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 4px;
  transform: rotate(0.3deg);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  font-weight: 500;
}

.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.agent-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid transparent;
}

.task-done { border-left-color: var(--teal); color: rgba(255,255,255,0.6); }
.task-active { border-left-color: var(--amber); color: var(--amber-light); background: rgba(245,158,11,0.06); }
.task-pending { border-left-color: rgba(255,255,255,0.15); }

/* Scroll cue */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0 32px;
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── MANIFESTO ─────────────────────────────────── */
.manifesto {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 80px;
}

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

.manifesto-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 32px;
}

.manifesto-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  font-style: normal;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.manifesto-body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.manifesto-body strong {
  color: var(--charcoal);
  font-weight: 600;
}

.manifesto-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.divider-line {
  height: 1px;
  width: 80px;
  background: var(--border-strong);
}

.divider-mark {
  color: var(--teal);
  font-size: 0.8rem;
}

/* ── CAPABILITIES ──────────────────────────────── */
.capabilities {
  background: var(--cream);
  padding: 100px 80px;
}

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

.cap-header {
  margin-bottom: 64px;
  text-align: center;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  text-align: center;
}

.cap-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cap-headline-sub {
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
}

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

.cap-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.cap-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}

.cap-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

.cap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--cream-dark);
  color: var(--text-muted);
}

.tag-urgent {
  background: rgba(245,158,11,0.1);
  color: #D97706;
}

.cap-card-cta {
  background: var(--charcoal);
  color: white;
  justify-content: center;
}

.cap-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cap-cta-inner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

.cap-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
}

/* ── HOW IT WORKS ─────────────────────────────── */
.howitworks {
  background: var(--charcoal);
  color: white;
  padding: 100px 80px;
}

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

.howitworks .section-label {
  color: var(--teal-light);
  text-align: left;
}

.hiw-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 72px;
}

.hiw-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

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

.step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  opacity: 0.5;
}

.step-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 48px 0 0;
  align-self: center;
  flex-shrink: 0;
}

.hiw-quote {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hiw-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* ── STATS ─────────────────────────────────────── */
.stats {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 80px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-unit {
  font-size: 0.5em;
  font-weight: 400;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ── CLOSING ────────────────────────────────────── */
.closing {
  background: var(--cream);
  padding: 120px 80px;
  text-align: center;
}

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

.closing-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.closing-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.closing-body {
  margin-bottom: 32px;
}

.closing-body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.closing-value {
  display: inline-block;
  padding: 16px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: white;
}

.closing-value p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ── FOOTER ────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 64px 80px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; padding: 80px 40px 60px; }
  .hero-visual { display: none; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-steps { grid-template-columns: 1fr; gap: 48px; }
  .step-connector { display: none; }
  .stats-inner { flex-direction: column; gap: 48px; }
  .stat-divider { width: 60px; height: 1px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 768px) {
  .manifesto, .capabilities, .howitworks, .closing, .footer { padding: 64px 24px; }
  .stats { padding: 48px 24px; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hiw-headline { font-size: 2rem; }
}