/* ======================================
   CARD FLOW OS — CUSTOM THEME
   ====================================== */

:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE7DA;
  --fg: #1A1A18;
  --fg-muted: #5A5A52;
  --accent: #0E3D2C;
  --accent-mid: #1B5E42;
  --amber: #C97A20;
  --amber-light: #F0B45A;
  --white: #FFFFFF;
  --border: #D8D0C2;
}

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

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

/* Navigation */
.site-nav {
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
}
.nav-logo-accent {
  color: var(--amber);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link {
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-body {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}

/* Card Stack */
.hero-card-stack {
  position: relative;
  height: 320px;
}
.stack-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.stack-1 { top: 0; left: 0; }
.stack-2 { top: 36px; left: 20px; z-index: 2; border-left: 3px solid var(--amber); }
.stack-3 { top: 72px; left: 40px; z-index: 3; border-left: 3px solid var(--accent); }
.card-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 4px;
}
.card-sub {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
}

/* Stats Bar */
.stats-bar {
  background: var(--accent);
  padding: 32px 48px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-item {
  text-align: center;
  flex: 1;
}
.stat-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--amber-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}

/* Section commons */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 48px;
}

/* Process */
.process { padding: 96px 0; }
.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  flex: 1;
}
.step-number {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--bg-alt);
  line-height: 1;
  margin-bottom: 20px;
}
.step h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 300px;
}
.step-connector {
  width: 80px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 16px;
  position: relative;
  top: -24px;
}

/* Features */
.features {
  background: var(--bg-alt);
  padding: 96px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-alt);
  padding: 40px 36px;
  transition: background 0.2s;
}
.feature-card:hover {
  background: var(--white);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Quality */
.quality {
  padding: 96px 0;
}
.quality-content {
  max-width: 600px;
  margin-bottom: 48px;
}
.quality-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.8;
}
.quality-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 28px;
  min-width: 160px;
}
.badge-text {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 4px;
}
.badge-sub {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
}

/* Closing */
.closing {
  background: var(--accent);
  padding: 96px 0;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-body {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--fg);
}
.footer-logo-accent {
  color: var(--amber);
}
.footer-tagline {
  font-size: 12px;
  color: var(--fg-muted);
}
.footer-note {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .process-steps { flex-direction: column; align-items: flex-start; gap: 32px; }
  .step-connector { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .site-nav, .hero, .stats-bar, .process, .features, .quality, .closing, .site-footer { padding-left: 24px; padding-right: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; }
  .quality-badges { flex-direction: column; }
  .badge { min-width: 100%; }
}