/* ═══════════════════════════════════════════════════════════════
   CLEARED — Shared Design System for Landing Pages
   Colors, typography, and components matching the app.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #F8F5F0;
  --surface: #FFFFFF;
  --text-primary: #1C1C1E;
  --text-secondary: #6B6B6F;
  --text-tertiary: #9E9EA3;
  --teal: #4A8B8C;
  --teal-light: #E8F4F4;
  --teal-dark: #3A6E6F;
  --amber: #D4956A;
  --amber-light: #FDF2EB;
  --green: #4A8B6A;
  --green-light: #E8F4ED;
  --red: #C75450;
  --border: #E5E2DD;
  --border-light: #F0EDE8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248,245,240,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}
.logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ——— PAGE SECTIONS ——— */
.page-section {
  padding: 100px 32px 80px;
  max-width: 1080px;
  margin: 0 auto;
}

.page-hero {
  text-align: center;
  padding: 140px 32px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.page-hero .subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ——— STAT GRID ——— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stat-source {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ——— DATA SECTION ——— */
.data-section {
  margin: 64px 0;
}

.data-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.data-section > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ——— FEATURE CARDS ——— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28,28,30,0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 16px;
  letter-spacing: 0.3px;
}

/* ——— DIAGRAM / VISUAL BLOCK ——— */
.visual-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.visual-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

/* ——— FLOW DIAGRAM ——— */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 20px 0;
}

.flow-step {
  text-align: center;
  padding: 20px;
  min-width: 140px;
}

.flow-step .step-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.flow-step .step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.flow-step .step-detail {
  font-size: 12px;
  color: var(--text-tertiary);
}

.flow-arrow {
  font-size: 24px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ——— BAR CHART ——— */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 13px;
  font-weight: 500;
  min-width: 120px;
  text-align: right;
  color: var(--text-secondary);
}

.bar-track {
  flex: 1;
  height: 28px;
  background: var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  transition: width 1s ease;
}

/* ——— COMPARISON TABLE ——— */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.comparison-table th {
  background: var(--text-primary);
  color: white;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.comparison-table th.highlight {
  background: var(--teal);
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.highlight {
  background: var(--teal-light);
  font-weight: 600;
}

/* ——— CTA SECTION ——— */
.cta-section {
  text-align: center;
  background: var(--text-primary);
  color: white;
  padding: 100px 32px;
  margin: 0 -32px;
}

.cta-section h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: white;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-section .cta-button {
  display: inline-block;
  background: var(--teal);
  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.cta-section .cta-button:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ——— FOOTER ——— */
footer {
  background: var(--text-primary);
  padding: 40px 32px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 13px;
}
footer a:hover { color: rgba(255,255,255,0.7); }

/* ——— FADE-IN ——— */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .page-section { padding: 80px 20px 60px; }
  .page-hero { padding: 120px 20px 60px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .visual-block { padding: 28px 20px; }
  .bar-label { min-width: 80px; font-size: 11px; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .cta-section { padding: 80px 20px; margin: 0 -20px; }
}
