/* ============================================================
   AI Compliance Guard — Design System & Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0F4C81;
  --primary-dark: #0a3a63;
  --primary-light: #e8f1f9;
  --secondary: #1A6B3C;
  --secondary-light: #e8f5ee;
  --accent: #C0392B;
  --accent-light: #fdf0ee;
  --warning: #E67E22;
  --warning-light: #fef5ec;
  --success: #1A6B3C;
  --bg: #F8F9FA;
  --bg-alt: #EEF1F5;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 150ms ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

::selection { background: var(--primary); color: white; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.navbar-logo svg { flex-shrink: 0; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.navbar-links a:hover { color: var(--text); text-decoration: none; }

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.4);
  color: white;
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 10px 16px;
}

.btn-ghost:hover { background: var(--primary-light); }

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-danger {
  background: var(--accent);
  color: white;
}

.btn-danger:hover {
  background: #a93226;
  transform: translateY(-1px);
}

/* ---------- Hero Section ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-badge svg { color: var(--secondary); }

/* Hero Visual */
.hero-visual {
  position: relative;
}

.compliance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.compliance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.compliance-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.compliance-score-ring {
  width: 64px;
  height: 64px;
  position: relative;
}

.compliance-score-ring svg {
  transform: rotate(-90deg);
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.violations-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.violation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  font-size: 13px;
  transition: all var(--transition);
}

.violation-item.high { border-left-color: var(--accent); background: var(--accent-light); }
.violation-item.medium { border-left-color: var(--warning); background: var(--warning-light); }
.violation-item.low { border-left-color: var(--secondary); background: var(--secondary-light); }

.violation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.violation-item.high .violation-dot { background: var(--accent); }
.violation-item.medium .violation-dot { background: var(--warning); }
.violation-item.low .violation-dot { background: var(--secondary); }

.violation-label { flex: 1; font-weight: 500; color: var(--text); }
.violation-severity { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.violation-item.high .violation-severity { color: var(--accent); }
.violation-item.medium .violation-severity { color: var(--warning); }
.violation-item.low .violation-severity { color: var(--secondary); }

/* ---------- Problem / Stats Section ---------- */
.problem-section {
  background: var(--primary);
  color: white;
  padding: 80px 0;
}

.problem-section h2 {
  color: white;
  text-align: center;
  margin-bottom: 12px;
  font-size: 32px;
}

.problem-section .section-lead {
  text-align: center;
  color: rgba(255,255,255,0.7);
  margin-bottom: 56px;
  font-size: 17px;
}

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

.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ---------- How It Works ---------- */
.how-it-works {
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

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

.step-code {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Rule Engine Preview ---------- */
.rules-preview {
  background: var(--surface);
}

.rules-table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rules-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 4px;
}

.rule-tab {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  position: relative;
  transition: color var(--transition);
}

.rule-tab:hover { color: var(--text); }

.rule-tab.active {
  color: var(--primary);
}

.rule-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.rule-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  color: var(--text-muted);
}

.rule-tab.active .rule-tab-count {
  background: var(--primary-light);
  color: var(--primary);
}

.rules-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.rule-row:hover {
  border-color: var(--border);
  background: var(--bg);
}

.rule-row.expanded {
  background: var(--surface);
  border-color: var(--primary);
}

.rule-status {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-status.pass { background: var(--secondary-light); color: var(--secondary); }
.rule-status.fail { background: var(--accent-light); color: var(--accent); }
.rule-status.warn { background: var(--warning-light); color: var(--warning); }

.rule-info { flex: 1; min-width: 0; }
.rule-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.rule-name { font-size: 14px; font-weight: 600; color: var(--text); }

.severity-pill {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.severity-pill.high { background: var(--accent-light); color: var(--accent); }
.severity-pill.medium { background: var(--warning-light); color: var(--warning); }
.severity-pill.low { background: var(--secondary-light); color: var(--secondary); }

.rule-expand-icon {
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.rule-row.expanded .rule-expand-icon { transform: rotate(180deg); }

.rule-detail {
  display: none;
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rule-detail.visible { display: block; }

.rule-detail strong { color: var(--text); }

/* ---------- Pricing Section ---------- */
.pricing-section {
  background: var(--bg);
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card.enterprise {
  background: var(--text);
  border-color: var(--text);
}

.pricing-card.enterprise .pricing-name,
.pricing-card.enterprise .pricing-price,
.pricing-card.enterprise .pricing-price-sub,
.pricing-card.enterprise .pricing-desc,
.pricing-card.enterprise .pricing-feature-text { color: white; }

.pricing-card.enterprise .pricing-desc { color: rgba(255,255,255,0.6); }

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-price-wrap { margin-bottom: 24px; }

.pricing-price {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-price-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-card.enterprise .pricing-divider { background: rgba(255,255,255,0.15); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card.enterprise .pricing-feature { color: rgba(255,255,255,0.75); }

.pricing-feature svg { flex-shrink: 0; margin-top: 1px; }
.pricing-feature.on svg { color: var(--secondary); }
.pricing-feature.off svg { color: var(--text-muted); }
.pricing-feature.off .pricing-feature-text { text-decoration: line-through; opacity: 0.5; }

.pricing-cta {
  width: 100%;
}

/* Lemon Squeezy overlay style */
.lemonsqueezy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  width: 100%;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.3);
}

.lemonsqueezy-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.4);
  color: white;
  text-decoration: none;
}

.pricing-card.enterprise .lemonsqueezy-button {
  background: white;
  color: var(--text);
  box-shadow: none;
}

.pricing-card.enterprise .lemonsqueezy-button:hover {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Pre-flight Check Demo ---------- */
.preflight-section {
  background: var(--surface);
}

.preflight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.preflight-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.preflight-form h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.preflight-form > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-select, .form-textarea, .form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-select:focus, .form-textarea:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.form-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.preflight-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.preflight-result h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.preflight-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.preflight-empty svg { margin: 0 auto 16px; opacity: 0.4; }

.preflight-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.preflight-stat {
  text-align: center;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
}

.preflight-stat-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.preflight-stat-number.pass { color: var(--secondary); }
.preflight-stat-number.warn { color: var(--warning); }
.preflight-stat-number.fail { color: var(--accent); }

.preflight-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.preflight-rules { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Compliance Disclaimer ---------- */
.disclaimer-section {
  background: var(--warning-light);
  border-top: 1px solid rgba(230, 126, 34, 0.2);
  border-bottom: 1px solid rgba(230, 126, 34, 0.2);
  padding: 48px 0;
}

.disclaimer-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.disclaimer-icon {
  width: 44px;
  height: 44px;
  background: var(--warning);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.disclaimer-content h3 {
  font-size: 16px;
  color: #7d4a00;
  margin-bottom: 8px;
}

.disclaimer-content p {
  font-size: 13px;
  color: #7d4a00;
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover { color: white; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  max-width: 600px;
}

/* ---------- Dashboard ---------- */
.dashboard-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--bg);
}

.dashboard-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.dashboard-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.dashboard-stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.dashboard-stat-value { font-size: 28px; font-weight: 700; color: var(--text); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.4s ease-out forwards;
}

.pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 40px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
  .preflight-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: calc(var(--nav-height) + 48px); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 8px; }
  .section-header h2 { font-size: 28px; }
  .stat-number { font-size: 32px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- API Status / Demo Feedback ---------- */
.api-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: none;
}

.api-status.visible { display: flex; align-items: center; gap: 8px; }
.api-status.success { background: var(--secondary-light); color: var(--secondary); }
.api-status.error { background: var(--accent-light); color: var(--accent); }
.api-status.loading { background: var(--primary-light); color: var(--primary); }
