/* Divvi — Inter + JetBrains Mono type system */

:root {
  --bg: #FAFAF7;
  --text: #1A1A1A;
  --secondary: #6B7280;
  --accent: #2563EB;
  --success: #059669;
  --border: #E5E7EB;
  --surface: #FFFFFF;
  --coral: #FF4D2E;
  --mint: #00C896;
  --amber: #FFB800;
  --slate: #9A9A9A;
  --trust-blue: #0066FF;

  /* Shadow tokens */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);

  /* Type scale (1.25 modular) */
  --text-xs:   0.64rem;
  --text-sm:   0.8rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.563rem;
  --text-2xl:  1.953rem;
  --text-3xl:  2.441rem;
  --text-4xl:  3.052rem;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav-tagline {
  color: var(--secondary);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Hero */
.hero {
  padding: 72px 48px 96px;
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--trust-blue);
  background: rgba(0, 102, 255, 0.07);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-subhead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 460px;
  margin-bottom: 36px;
}
.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover {
  background: #1d4ed8;
  box-shadow: var(--shadow-md);
}

/* Paycheck card */
.paycheck-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.paycheck-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.paycheck-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
}
.paycheck-amount {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.paycheck-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.split-list { display: flex; flex-direction: column; gap: 12px; }
.split-row {
  display: grid;
  grid-template-columns: 10px 1fr auto 48px;
  align-items: center;
  gap: 12px;
}
.split-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.split-dot--coral { background: var(--coral); }
.split-dot--mint { background: var(--mint); }
.split-dot--amber { background: var(--amber); }
.split-dot--slate { background: var(--slate); }
.split-name { font-size: 14px; font-weight: 500; color: var(--text); }
.split-value { font-size: 14px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.split-pct { font-size: 12px; color: var(--secondary); text-align: right; }
.paycheck-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.split-executed {
  display: flex;
  align-items: center;
  gap: 12px;
}
.executed-ring {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-svg { width: 40px; height: 40px; }
.ring-check {
  position: absolute;
  font-size: 14px;
  color: var(--coral);
  font-weight: 600;
}
.executed-label {
  font-size: 12px;
  color: var(--mint);
  font-weight: 500;
}

/* Sections */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}
.section-body {
  font-size: 17px;
  color: var(--secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 56px;
}

/* Split Rule Section */
.splitrule-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.rule-demo {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 40px;
}
.rule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 280px;
}
.rule-card-left { display: flex; align-items: center; gap: 14px; }
.rule-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFF0EE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rule-title { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.rule-sub { font-size: 12px; color: var(--secondary); display: block; }
.rule-metric { text-align: right; }
.metric-val { font-size: 22px; font-weight: 600; display: block; }
.metric-label { font-size: 11px; color: var(--secondary); letter-spacing: 0.5px; }
.rule-arrow svg { opacity: 0.4; }
.rule-outputs { display: flex; flex-direction: column; gap: 10px; min-width: 340px; }
.output-item {
  display: grid;
  grid-template-columns: auto 1fr auto 60px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.output-item--coral { background: #FFF0EE; }
.output-item--mint { background: #EDFAF7; }
.output-item--amber { background: #FFFBEB; }
.output-item--slate { background: #F5F5F5; }
.output-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 10px 0 0 10px;
  opacity: 0.15;
}
.output-item--coral .output-bar { background: var(--coral); }
.output-item--mint .output-bar { background: var(--mint); }
.output-item--amber .output-bar { background: var(--amber); }
.output-item--slate .output-bar { background: var(--slate); }
.output-name { font-size: 13px; font-weight: 500; color: var(--text); }
.output-amount { font-size: 13px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.output-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  text-align: right;
  letter-spacing: 0.5px;
}

/* Process */
.process-section {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 72px;
}
.step-number {
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}
.step-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.step-body { font-size: 15px; color: var(--secondary); line-height: 1.65; }
.process-loop {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.loop-ring { flex-shrink: 0; }
.loop-svg { width: 120px; height: 120px; }
.loop-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.loop-count {
  font-size: 36px;
  font-weight: 600;
  display: block;
  line-height: 1;
}
.loop-label { font-size: 11px; color: var(--secondary); letter-spacing: 1px; text-transform: uppercase; }
.loop-visual { position: relative; display: inline-block; }
.loop-copy {
  font-size: 17px;
  color: var(--secondary);
  max-width: 480px;
  line-height: 1.65;
}

/* Mechanics */
.mechanics-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.mech-card {
  background: var(--bg);
  padding: 36px 32px;
}
.mech-icon {
  margin-bottom: 20px;
}
.mech-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.mech-body { font-size: 14px; color: var(--secondary); line-height: 1.65; }

/* Manifesto */
.manifesto-section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--text);
  color: var(--bg);
}
.manifesto-inner { max-width: 680px; }
.manifesto-quote {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
  color: var(--bg);
}
.manifesto-body {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: rgba(250,249,246,0.6);
}
.manifesto-closing {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 32px;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.footer-tagline { font-size: 13px; color: var(--secondary); }
.footer-note { font-size: 12px; color: var(--secondary); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: 40px; }
  .paycheck-card { margin: 0 auto; max-width: 400px; }
  .process-steps { grid-template-columns: 1fr; }
  .mechanics-grid { grid-template-columns: 1fr; }
  .rule-demo { grid-template-columns: 1fr; }
  .process-loop { flex-direction: column; }
  .container, .hero, .nav { padding-left: 24px; padding-right: 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}