/* BioDecode — Clinical/Trustworthy Design System */

:root {
  --primary: #0c2461;
  --primary-light: #1e3799;
  --primary-lighter: #4a69bd;
  --accent: #0984e3;
  --accent-light: #74b9ff;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #d63031;
  --text: #2d3436;
  --text-light: #636e72;
  --text-lighter: #b2bec3;
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --bg-card: #ffffff;
  --border: #e8ecf1;
  --border-light: #f1f2f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--primary); }
h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { color: var(--text-light); font-size: 1.05rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ---- Navigation ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-light); }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: white !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ---- Hero ---- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8f4fd; color: var(--accent); padding: 6px 14px;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 16px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; margin-bottom: 28px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-weight: 600;
  font-size: 1rem; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(12,36,97,0.25);
}
.btn-primary:hover {
  background: var(--primary-light); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,36,97,0.3); color: white;
}
.btn-secondary {
  background: var(--bg); color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary-lighter); background: var(--bg-alt); color: var(--primary); }
.hero-visual {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: white;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  overflow: hidden;
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 36px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-visual .dots {
  position: absolute; top: 11px; left: 14px;
  display: flex; gap: 6px;
}
.hero-visual .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-visual .dot-red { background: #ff5f56; }
.hero-visual .dot-yellow { background: #ffbd2e; }
.hero-visual .dot-green { background: #27c93f; }
.hero-visual pre { margin-top: 24px; white-space: pre-wrap; }
/* ---- App mockup (hero visual) ---- */
.app-mockup {
  margin-top: 20px; padding: 0;
}
.app-header-mock {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; background: rgba(255,255,255,0.07);
  border-radius: 6px; margin-bottom: 16px;
}
.app-title-mock {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700; font-size: 0.95rem; color: white;
}
.app-status-mock {
  font-size: 0.72rem; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 6px;
}
.status-dot-mock {
  width: 7px; height: 7px; border-radius: 50%; background: #00b894;
  display: inline-block;
}
.app-results-mock {
  padding: 20px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
}
.results-title-mock {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700; font-size: 1rem; color: white; margin-bottom: 16px;
}
.results-stats-mock {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.stat-mock { text-align: center; }
.stat-value-mock {
  display: block; font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 800; font-size: 1.5rem; color: rgba(255,255,255,0.9);
  line-height: 1.2;
}
.stat-value-mock.stat-highlight { color: #55efc4; }
.stat-label-mock {
  display: block; font-size: 0.65rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px;
}
.results-bar-mock {
  height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px;
  margin-bottom: 10px; overflow: hidden;
}
.bar-fill-mock {
  height: 100%; background: linear-gradient(90deg, #0984e3, #74b9ff);
  border-radius: 2px;
}
.results-meta-mock {
  font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-bottom: 16px;
  text-align: center;
}
.results-actions-mock {
  display: flex; gap: 8px; justify-content: flex-end;
}
.btn-mock {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.68rem; font-weight: 600; padding: 6px 12px;
  border-radius: 5px; display: inline-block;
}
.btn-mock-secondary {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-mock-primary {
  background: #0984e3; color: white;
}

/* ---- Trust bar ---- */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.trust-items {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-light);
}
.trust-item svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; }

/* ---- How it works ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-alt); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ---- Features ---- */
.features { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #e8f4fd; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature-card p { font-size: 0.9rem; }

/* ---- Consent / Purchase ---- */
.purchase { background: var(--bg); }
.purchase-box {
  max-width: 720px; margin: 48px auto 0;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md);
}
.consent-list { list-style: none; margin-bottom: 28px; }
.consent-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem; color: var(--text);
}
.consent-list li:last-child { border-bottom: none; }
.consent-list input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--primary);
}
.purchase-btn {
  width: 100%; padding: 16px; font-size: 1.1rem;
  border-radius: 10px; border: none; cursor: pointer;
  font-weight: 700; transition: all 0.2s;
}
.purchase-btn:disabled {
  background: var(--border); color: var(--text-lighter); cursor: not-allowed;
}
.purchase-btn:not(:disabled) {
  background: var(--primary); color: white;
  box-shadow: 0 4px 14px rgba(12,36,97,0.25);
}
.purchase-btn:not(:disabled):hover {
  background: var(--primary-light); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,36,97,0.3);
}
.purchase-price {
  text-align: center; margin-bottom: 24px;
}
.purchase-price .amount {
  font-size: 2.5rem; font-weight: 800; color: var(--primary);
}
.purchase-price .period {
  font-size: 1rem; color: var(--text-light);
}
.purchase-note {
  text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--text-lighter);
}

/* ---- Footer ---- */
footer {
  background: var(--primary); color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand h3 { color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-col h4 { color: white; margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; text-align: center; font-size: 0.8rem;
}

/* ---- Section headers ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto; }
.section-header p { margin-top: 12px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 100px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .trust-items { gap: 20px; }
}
