/* === BASE === */
:root {
  --bg: #f8f7f4;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --accent: #00d4b4;
  --accent-dim: rgba(0, 212, 180, 0.12);
  --accent-border: rgba(0, 212, 180, 0.3);
  --surface: #ffffff;
  --border: #e2e8f0;
  --code-bg: #f1f5f9;
  --radius: 10px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  padding: 96px 32px 80px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: var(--fg-muted); margin-top: 4px; line-height: 1.3; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* === WORKFLOW WIDGET === */
.hero-visual { display: flex; justify-content: flex-end; }

.workflow-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.ww-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
}

.ww-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.ww-dot.red { background: #ff5f57; }
.ww-dot.yellow { background: #febc2e; }
.ww-dot.green { background: #28c840; }

.ww-title {
  font-size: 0.72rem;
  color: var(--fg-muted);
  margin-left: 6px;
  font-family: 'DM Sans', sans-serif;
}

.ww-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: background 0.2s;
}

.ww-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.req-icon { background: #eff6ff; color: #3b82f6; }
.ai-icon { background: var(--accent-dim); color: #00d4b4; }
.fin-icon { background: #f0fdf4; color: #22c55e; }
.po-icon { background: #f5f3ff; color: #8b5cf6; }

.ww-info { flex: 1; min-width: 0; }
.ww-label { font-size: 0.8rem; font-weight: 500; color: var(--fg); display: block; }
.ww-detail { font-size: 0.7rem; color: var(--fg-muted); display: block; margin-top: 1px; }

.ww-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.ww-status--pending { background: #fef9c3; color: #a16207; }
.ww-status--auto { background: var(--accent-dim); color: #007a65; }
.ww-status--approved { background: #dcfce7; color: #15803d; }
.ww-status--done { background: #f5f3ff; color: #6d28d9; }

.ww-connector {
  width: 1px;
  height: 12px;
  background: var(--border);
  margin: 0 auto;
}

.ww-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--code-bg);
}
.ww-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--fg);
  padding: 80px 32px;
  color: var(--bg);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
}

.manifesto-quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 32px;
  color: #ffffff;
}

.manifesto-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 40px;
}

.manifesto-tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 8px 18px;
}

.manifesto-tag span {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
}

/* === SECTION SHARED === */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

.section-header {
  margin-bottom: 48px;
}

/* === PROCESS === */
.process { padding: 96px 32px; }
.process-inner { max-width: 1100px; margin: 0 auto; }

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

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.process-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.process-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.process-card-body {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.process-visual {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 80px;
}

/* Request visual */
.rp-visual { display: flex; flex-direction: column; gap: 6px; }
.bubble {
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.bubble--req {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--fg);
  font-style: italic;
}
.bubble-meta {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}

/* Route visual */
.route-visual { display: flex; flex-direction: column; gap: 10px; }
.ruler-bar {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ruler-seg {
  padding: 6px 8px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.ruler-seg:last-child { border-right: none; }
.ruler-seg span:first-child {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--fg);
}
.ruler-seg span:last-child {
  font-size: 0.62rem;
  color: var(--fg-muted);
  margin-top: 1px;
}
.route-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.route-arrow svg { flex-shrink: 0; }
.route-arrow span { font-size: 0.7rem; color: var(--accent); font-weight: 500; }

/* Match visual */
.match-visual { display: flex; flex-direction: column; gap: 8px; }
.match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.match-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
}
.match-item--good { border-color: #86efac; background: #f0fdf4; }
.match-label { font-size: 0.62rem; color: var(--fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.match-val { font-size: 0.85rem; font-weight: 700; color: var(--fg); font-family: 'Syne', sans-serif; }
.match-plus, .match-equals {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 600;
}
.match-status {
  font-size: 0.7rem;
  color: #15803d;
  font-weight: 600;
}

/* === OUTCOMES === */
.outcomes { padding: 96px 32px; background: var(--surface); }
.outcomes-inner { max-width: 1100px; margin: 0 auto; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.outcome-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.outcome-card--primary {
  background: var(--fg);
  border-color: var(--fg);
}

.outcome-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.outcome-card--primary .outcome-num { color: var(--accent); }

.outcome-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.4;
}

.outcome-card--primary .outcome-label { color: rgba(255,255,255,0.8); }

.outcome-note {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.outcome-card--primary .outcome-note { color: rgba(255,255,255,0.45); }

.outcomes-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.outcomes-cta {
  max-width: 560px;
}

.outcomes-cta p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === CLOSING === */
.closing {
  padding: 96px 32px 80px;
  background: var(--bg);
}

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

.closing-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 56px;
}

.closing-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.closing-orb {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent-border);
  animation: pulse 3s ease-in-out infinite;
}
.orb-ring--1 { width: 80px; height: 80px; animation-delay: 0s; }
.orb-ring--2 { width: 110px; height: 110px; animation-delay: 0.5s; opacity: 0.6; }
.orb-ring--3 { width: 145px; height: 145px; animation-delay: 1s; opacity: 0.3; }

.orb-center {
  position: relative;
  z-index: 1;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--fg-muted);
}

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

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

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

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

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { justify-content: flex-start; }
  .workflow-widget { max-width: 100%; }
  .hero { padding: 64px 20px 56px; }
  .process-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 64px 20px; }
  .process { padding: 64px 20px; }
  .outcomes { padding: 64px 20px; }
  .closing { padding: 64px 20px 56px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-stats { flex-wrap: wrap; }
  .stat-div { display: none; }
  .nav-inner { padding: 14px 20px; }
}