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

:root {
  --bg: #FFFBF5;
  --bg-alt: #FFF5EB;
  --surface: #FFFFFF;
  --text: #1C1917;
  --text-muted: #78716C;
  --accent: #D97706;
  --accent-light: #FEF3C7;
  --accent-dark: #92400E;
  --border: #E7E5E4;
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-800: #292524;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  padding: 80px 24px 100px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--stone-800);
  background: var(--accent-light);
  padding: 7px 14px;
  border-radius: 100px;
}

/* ── Workflow Widget ─────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
}
.workflow-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.workflow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.workflow-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.workflow-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.workflow-status.running {
  background: #DCFCE7;
  color: #166534;
}
.workflow-status.running::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16A34A;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.workflow-nodes {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.wf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.wf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.wf-node.source .wf-icon { background: var(--stone-100); }
.wf-node.ai .wf-icon { background: var(--accent-light); }
.wf-node.dest .wf-icon { background: #DCFCE7; }
.wf-node-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}
.wf-tag {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
}
.wf-arrow {
  flex-shrink: 0;
  color: var(--stone-200);
  padding: 0 4px;
}
.workflow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-200);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stone-200);
}
.wf-stat {
  background: var(--stone-100);
  padding: 14px;
  text-align: center;
}
.wf-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.wf-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Problem Section ─────────────────────────────────── */
.problem {
  background: var(--stone-800);
  padding: 100px 24px;
}
.problem-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.problem-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 40px;
}
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.problem-statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: #FAFAF9;
  letter-spacing: -0.02em;
}
.problem-statement em {
  font-style: italic;
  color: var(--accent);
}
.problem-details p {
  font-size: 1rem;
  color: #A8A29E;
  line-height: 1.8;
  margin-bottom: 20px;
}
.problem-details p:last-child { color: #D6D3D1; font-weight: 500; }

/* ── Services Section ────────────────────────────────── */
.services {
  padding: 100px 24px;
  background: var(--bg);
}
.services-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.services-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.service-icon {
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-result {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 12px;
  background: var(--accent-light);
  border-radius: 8px;
  display: inline-block;
}

/* ── Process Section ─────────────────────────────────── */
.process {
  padding: 100px 24px;
  background: var(--bg-alt);
}
.process-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.process-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.process-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 72px;
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
}
.step { padding: 0 8px; }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-detail {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 12px;
  background: var(--accent-light);
  border-radius: 6px;
  display: inline-block;
}
.step-connector {
  height: 2px;
  background: var(--stone-200);
  align-self: center;
  margin: 0;
}

/* ── Manifesto Section ───────────────────────────────── */
.manifesto {
  padding: 100px 24px;
  background: var(--text);
}
.manifesto-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}
.manifesto-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  color: #FAFAF9;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.manifesto-text p {
  font-size: 0.95rem;
  color: #A8A29E;
  line-height: 1.8;
  margin-bottom: 20px;
}
.manifesto-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #292524;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FAFAF9;
  margin-bottom: 6px;
}
.pillar p {
  font-size: 0.85rem;
  color: #78716C;
  line-height: 1.6;
}

/* ── Testimonials Section ────────────────────────────── */
.testimonials {
  padding: 100px 24px;
  background: var(--bg);
}
.testimonials-inner { max-width: 1160px; margin: 0 auto; }
.testimonials-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 48px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--stone-100);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stone-200);
}
.trust-item {
  flex: 1;
  padding: 28px 32px;
  text-align: center;
}
.trust-stat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trust-divider {
  width: 1px;
  height: 60px;
  background: var(--stone-200);
}

/* ── Closing Section ─────────────────────────────────── */
.closing {
  padding: 100px 24px;
  background: var(--accent);
}
.closing-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.closing-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.closing-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 40px;
}
.closing-cta {
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  padding: 16px 32px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: inline-block;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--stone-800);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: #FAFAF9;
}
.footer-tagline {
  font-size: 0.9rem;
  color: #78716C;
  margin-bottom: 8px;
}
.footer-meta {
  font-size: 0.8rem;
  color: #57534E;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner,
  .problem-layout,
  .manifesto-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .trust-row { flex-wrap: wrap; }
  .trust-divider { display: none; }
  .trust-item { min-width: 45%; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 20px 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .workflow-widget { max-width: 100%; }
}