/* =========================================================================
   AGENTIUM CEO DESIGN SYSTEM
   Dark-first, emerald-accent, Stripe-grade enterprise CSS
   Brand: Agentium CEO | Mark: A-CEO | Domain: agentiumceo.ai
   ========================================================================= */

/* 1. CUSTOM PROPERTIES
   ========================================================================= */
:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --border: #2a2a2a;
  --border-hover: #3a3a3a;
  --primary: #10b981;
  --primary-hover: #0ea472;
  --primary-dim: #0d2b20;
  --primary-text: #34d399;
  --text: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-dim: #737373;
  --red: #ef4444;
  --red-dim: #2d1212;
  --amber: #f59e0b;
  --amber-dim: #2d2006;
  --blue: #3b82f6;
  --blue-dim: #0c1a36;
  --radius-card: 10px;
  --radius: 6px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 150ms ease;
  --sidebar-width: 220px;
  --topbar-height: 52px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #efefef;
  --surface-3: #e5e5e5;
  --border: #d4d4d4;
  --border-hover: #b5b5b5;
  --primary: #059669;
  --primary-hover: #047857;
  --primary-dim: #d1fae5;
  --primary-text: #059669;
  --text: #171717;
  --text-secondary: #525252;
  --text-dim: #737373;
  --red: #dc2626;
  --red-dim: #fef2f2;
  --amber: #d97706;
  --amber-dim: #fffbeb;
  --blue: #2563eb;
  --blue-dim: #eff6ff;
}

/* 2. RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

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

img, svg { display: block; max-width: 100%; }

input, button, select, textarea { font-family: inherit; font-size: inherit; }

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

/* 3. TYPOGRAPHY
   ========================================================================= */
h1 { font-size: 48px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 32px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 500; line-height: 1.4; }
h5 { font-size: 14px; font-weight: 500; line-height: 1.5; }

.text-dim { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 13px; }
.text-center { text-align: center; }

/* 4. LAYOUT PRIMITIVES
   ========================================================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* 5. NAVIGATION
   ========================================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}

.nav-brand svg { flex-shrink: 0; }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover { border-color: var(--border-hover); color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }

/* 6. BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-dim); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }

.btn-approve { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-approve:hover { background: var(--primary-hover); }

.btn-decline { background: var(--red); color: #fff; border-color: var(--red); }
.btn-decline:hover { opacity: 0.9; }

.btn-redirect { background: var(--surface-2); color: var(--text-secondary); border-color: var(--border); }
.btn-redirect:hover { border-color: var(--text-dim); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 7. CARDS
   ========================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color var(--transition), background-color var(--transition);
}

.card-hover:hover { border-color: var(--border-hover); }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: border-color var(--transition), background var(--transition);
}

.stat-card-value { font-size: 32px; font-weight: 500; margin-bottom: 4px; }
.stat-card-label { font-size: 13px; color: var(--text-dim); }
.stat-card-alert .stat-card-value { color: var(--red); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: border-color var(--transition), background var(--transition);
}
.feature-card:hover { border-color: var(--primary); }
.feature-card-icon {
  width: 40px; height: 40px;
  background: var(--primary-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-text);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

.dept-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.dept-card:hover { border-color: var(--border-hover); }
.dept-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dept-card-name { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dept-card-meta { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.dept-card-progress { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.dept-card-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 400ms ease; }

/* 8. FORMS
   ========================================================================= */
.form-group { margin-bottom: 16px; }

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

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-dim); }
.form-input-error { border-color: var(--red); }

.form-error { font-size: 12px; color: var(--red); margin-top: 4px; min-height: 18px; }

.password-strength { height: 3px; background: var(--surface-3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.password-strength-fill { height: 100%; border-radius: 2px; transition: width 300ms ease, background-color 300ms ease; }
.password-strength-weak { width: 33%; background: var(--red); }
.password-strength-fair { width: 66%; background: var(--amber); }
.password-strength-strong { width: 100%; background: var(--primary); }

/* 9. BADGES & STATUS
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-critical { background: var(--red-dim); color: var(--red); }
.badge-elevated { background: var(--amber-dim); color: var(--amber); }
.badge-routine { background: var(--blue-dim); color: var(--blue); }
.badge-success { background: var(--primary-dim); color: var(--primary-text); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot-green { background: var(--primary); }
.status-dot-amber { background: var(--amber); }
.status-dot-red { background: var(--red); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
}
.status-pill-green { color: var(--primary-text); }
.status-pill-amber { color: var(--amber); }
.status-pill-red { color: var(--red); }

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  background: var(--primary-dim);
  color: var(--primary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
}
.count-badge-red { background: var(--red); color: #fff; }
.count-badge-green { background: var(--primary); color: #fff; }

/* 10. PROGRESS
   ========================================================================= */
.progress-bar { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width 400ms ease; }

.step-indicator { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  color: var(--text-dim);
  background: var(--surface);
  transition: all var(--transition);
}
.step-dot-active { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); }
.step-dot-complete { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-line { width: 80px; height: 2px; background: var(--border); transition: background var(--transition); }
.step-line-active { background: var(--primary); }

/* 11. SIDEBAR
   ========================================================================= */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: background-color var(--transition), border-color var(--transition);
}

.sidebar-brand {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  height: var(--topbar-height);
}

.sidebar-nav { padding: 12px 8px; flex: 1; overflow-y: auto; }

.sidebar-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link-active {
  background: var(--primary-dim);
  color: var(--primary-text);
  border-left: 3px solid var(--primary);
  padding-left: 9px;
}

.sidebar-link-label { display: flex; align-items: center; gap: 8px; }
.sidebar-link svg { width: 16px; height: 16px; opacity: 0.6; }
.sidebar-link-active svg { opacity: 1; }

.sidebar-dept {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 1px;
}
.sidebar-dept:hover { color: var(--text-secondary); background: var(--surface-2); }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.sidebar-footer-company {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}
.sidebar-footer-meta { color: var(--text-dim); font-size: 12px; }

/* 12. TOP BAR
   ========================================================================= */
.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: background-color var(--transition), border-color var(--transition);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-dim);
  color: var(--primary-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
}

/* 13. DASHBOARD VIEWS
   ========================================================================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.dashboard-main {
  grid-column: 2;
  padding: 28px 32px;
  overflow-y: auto;
  min-height: calc(100vh - var(--topbar-height));
}

.view { display: none; }
.view-active { display: block; }

.view-header { margin-bottom: 24px; }
.view-header h2 { margin-bottom: 4px; }
.view-header p { color: var(--text-dim); font-size: 14px; }

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

/* Escalation rows */
.escalation-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.escalation-row:hover { border-color: var(--border-hover); }

.escalation-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
}
.escalation-summary-text { flex: 1; font-size: 14px; }
.escalation-summary-dept { font-size: 12px; color: var(--text-dim); }
.escalation-summary-actions { display: flex; gap: 6px; }

.escalation-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.escalation-row-expanded .escalation-detail { max-height: 600px; }

.escalation-detail-inner { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.escalation-section { margin-top: 16px; }
.escalation-section-label { font-size: 12px; font-weight: 500; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.escalation-options { list-style: none; }
.escalation-options li { padding: 4px 0; font-size: 14px; color: var(--text-secondary); }
.escalation-options li::before { content: "→ "; color: var(--text-dim); }

.decision-panel { margin-top: 16px; }
.decision-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition);
}
.decision-textarea:focus { border-color: var(--primary); }
.decision-actions { display: flex; gap: 8px; }

.escalation-resolved {
  padding: 14px 20px;
  color: var(--primary-text);
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}

/* Briefing cards */
.briefing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.briefing-card:hover { border-color: var(--border-hover); }
.briefing-card-latest { border-left: 3px solid var(--primary); }

.briefing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
}
.briefing-summary-left { display: flex; flex-direction: column; gap: 2px; }
.briefing-summary-title { font-weight: 500; }
.briefing-summary-meta { font-size: 13px; color: var(--text-dim); }
.briefing-summary-right { font-size: 12px; color: var(--text-dim); }

.briefing-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}
.briefing-card-expanded .briefing-content { max-height: 2000px; }
.briefing-content-inner {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

/* 14. FOOTER
   ========================================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
  transition: border-color var(--transition);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-weight: 500; font-size: 15px; }
.footer-tagline { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { color: var(--text); }

/* 15. SIGNUP WIZARD
   ========================================================================= */
.wizard { min-height: 100vh; display: flex; flex-direction: column; }
.wizard-header { padding: 24px 0; text-align: center; }
.wizard-body { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 24px; }
.wizard-step { display: none; width: 100%; max-width: 480px; }
.wizard-step-active { display: block; }
.wizard-step h2 { margin-bottom: 8px; }
.wizard-step .text-dim { margin-bottom: 28px; }

.dept-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition);
}
.dept-toggle:hover { border-color: var(--border-hover); }
.dept-toggle-selected { border-color: var(--primary); background: var(--primary-dim); }
.dept-toggle-locked { opacity: 0.7; cursor: default; }
.dept-toggle-left { display: flex; flex-direction: column; gap: 2px; }
.dept-toggle-name { font-weight: 500; }
.dept-toggle-desc { font-size: 13px; color: var(--text-dim); }
.dept-toggle-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.dept-toggle-selected .dept-toggle-check { background: var(--primary); border-color: var(--primary); color: #fff; }

.build-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 400ms ease;
}
.build-step-done { color: var(--text); }
.build-step-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 400ms ease;
  flex-shrink: 0;
}
.build-step-done .build-step-icon {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  animation: checkPop 400ms ease;
}

/* 16. PRICING
   ========================================================================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.pricing-card-highlight {
  border-color: var(--primary);
  position: relative;
}
.pricing-card-highlight::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 12px;
  border-radius: 99px;
}

.pricing-name { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 500; margin-bottom: 4px; }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--text-dim); }
.pricing-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }

.pricing-features { list-style: none; margin-bottom: 32px; flex: 1; }
.pricing-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

.pricing-cta { margin-top: auto; }

/* 17. ANIMATIONS
   ========================================================================= */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes checkPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

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

.fade-in { animation: fadeIn 400ms ease forwards; }

/* 18. HERO
   ========================================================================= */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 { margin-bottom: 16px; }
.hero p { color: var(--text-dim); font-size: 18px; max-width: 560px; margin: 0 auto 36px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-dim); }

/* 19. RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .nav { padding: 12px 16px; }
  .nav-links { gap: 16px; }
  .nav-links .nav-link-desktop { display: none; }

  .hero { padding: 60px 0 40px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .container { padding: 0 16px; }

  .sidebar { transform: translateX(-100%); transition: transform 300ms ease; }
  .sidebar-open .sidebar { transform: translateX(0); }

  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-main { grid-column: 1; padding: 20px 16px; }

  .topbar { padding: 0 16px; }

  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .stat-card-value { font-size: 28px; }
}

/* FAQ ACCORDION (landing page)
   ========================================================================= */
.faq-open .faq-answer { max-height: 200px !important; }
.faq-open .faq-arrow { transform: rotate(45deg); }

/* A-CEO BRAND MARK
   ========================================================================= */
.a-ceo-mark {
  font-weight: 500;
  letter-spacing: -0.02em;
}
.a-ceo-mark span {
  color: var(--primary);
}

/* UTILITY: HIDDEN
   ========================================================================= */
.hidden { display: none !important; }
