/* === SAFETY ACCOUNTABILITY — Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0F1B2D;
  --navy-mid: #162337;
  --navy-light: #1C2D44;
  --slate: #2A3A52;
  --accent: #E8A838;
  --accent-hover: #F0B84D;
  --accent-dim: rgba(232, 168, 56, 0.15);
  --accent-border: rgba(232, 168, 56, 0.3);
  --red: #E05252;
  --green: #4CAF7D;
  --blue: #4A90D9;
  --white: #F5F5F0;
  --off-white: #E8E6E0;
  --text-primary: #F5F5F0;
  --text-secondary: #B8BCC8;
  --text-muted: #7A8294;
  --text-dim: #4A5568;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--accent); color: var(--navy); }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 27, 45, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  letter-spacing: 0.5px; color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .mark {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--navy);
  font-weight: 700;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--navy); padding: 8px 18px;
  border-radius: 6px; font-weight: 600; font-size: 13px; letter-spacing: 0.3px;
}
.nav-cta:hover { background: var(--accent-hover); color: var(--navy); }

/* === HERO === */
.hero {
  padding: 140px 24px 80px; text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,168,56,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15; margin-bottom: 20px; color: var(--white);
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--accent-border);
  text-underline-offset: 6px;
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary); max-width: 620px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--navy); padding: 13px 28px;
  border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--navy); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary); padding: 13px 28px;
  border-radius: 8px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--border-light); transition: all 0.2s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent-border); color: var(--accent); }

/* === STATS BAR === */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border-radius: 12px; overflow: hidden;
  max-width: 800px; margin: -40px auto 0; position: relative; z-index: 2;
}
.stat-item {
  background: var(--navy-mid); padding: 24px 16px; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-size: 28px; color: var(--accent);
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }

/* === SECTIONS === */
.section { padding: 80px 24px; }
.section-alt { background: var(--navy-mid); }
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px; color: var(--white);
}
.section-sub {
  font-size: 17px; color: var(--text-secondary); max-width: 600px;
  margin-bottom: 48px; line-height: 1.7;
}
.overline {
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 64px; height: 64px; background: var(--accent-dim);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
  margin-bottom: 8px; color: var(--white);
}
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* === DASHBOARD PREVIEW === */
.dashboard-preview {
  background: var(--navy-light); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 24px; margin-top: 40px;
  font-family: var(--font-mono); font-size: 13px;
}
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.dash-title { font-weight: 600; color: var(--text-muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.dash-live { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--green); }
.dash-live::before {
  content: ''; width: 6px; height: 6px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi-box {
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px; text-align: center;
}
.kpi-value { font-size: 24px; font-weight: 700; color: var(--white); font-family: var(--font-body); }
.kpi-label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 4px; }
.kpi-box.red .kpi-value { color: var(--red); }
.kpi-box.green .kpi-value { color: var(--green); }
.kpi-box.amber .kpi-value { color: var(--accent); }

/* === COMPARISON TABLE === */
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 32px;
  font-size: 14px;
}
.compare-table th {
  background: var(--navy-light); padding: 14px 16px; text-align: left;
  font-weight: 600; font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
  border-bottom: 2px solid var(--accent-border);
}
.compare-table th:nth-child(2) { color: var(--accent); }
.compare-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.check { color: var(--green); font-weight: 600; }
.cross { color: var(--text-dim); }

/* === ALERT CARDS === */
.alert-card {
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
  border-left: 3px solid var(--red);
}
.alert-card.green { border-left-color: var(--green); }
.alert-card.amber { border-left-color: var(--accent); }
.alert-card.blue { border-left-color: var(--blue); }
.alert-type {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}
.alert-type.red { color: var(--red); }
.alert-type.green { color: var(--green); }
.alert-type.amber { color: var(--accent); }
.alert-type.blue { color: var(--blue); }
.alert-title { font-weight: 600; font-size: 16px; color: var(--white); margin-bottom: 12px; }
.alert-body { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.alert-meta {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); font-family: var(--font-mono);
}

/* === PRICING === */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.price-card {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; position: relative;
}
.price-card.featured { border-color: var(--accent-border); }
.price-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%); background: var(--accent); color: var(--navy);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 14px; border-radius: 100px;
}
.price-name {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px;
}
.price-amount {
  font-family: var(--font-display); font-size: 40px; color: var(--white);
  margin-bottom: 4px;
}
.price-amount span { font-size: 16px; color: var(--text-muted); font-family: var(--font-body); }
.price-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  font-size: 14px; color: var(--text-secondary); padding: 6px 0;
  padding-left: 24px; position: relative;
}
.price-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--green);
  font-weight: 600;
}

/* === FOUNDER === */
.founder-section {
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  align-items: center; max-width: 800px;
}
.founder-avatar {
  width: 80px; height: 80px; background: var(--accent-dim);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; color: var(--accent);
  border: 2px solid var(--accent-border);
}
.founder-name { font-weight: 600; color: var(--white); font-size: 16px; }
.founder-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.founder-creds {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.cred-tag {
  font-size: 11px; font-family: var(--font-mono); color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  padding: 3px 10px; border-radius: 4px;
}

/* === BLOG === */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; transition: all 0.3s;
}
.blog-card:hover {
  border-color: var(--accent-border); transform: translateY(-2px);
}
.blog-date { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 12px; }
.blog-card h3 { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 12px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.blog-link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* === ARTICLE === */
.article { max-width: 720px; margin: 0 auto; padding: 120px 24px 80px; }
.article-meta { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 16px; }
.article h1 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2; margin-bottom: 24px; color: var(--white);
}
.article-intro { font-size: 18px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.article h2 {
  font-family: var(--font-display); font-size: 26px; margin-top: 40px;
  margin-bottom: 16px; color: var(--white);
}
.article p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.article strong { color: var(--white); }
.article-cta {
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 28px; margin-top: 40px; text-align: center;
}
.article-cta p { color: var(--text-secondary); margin-bottom: 16px; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border); padding: 48px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-dim); width: 100%; text-align: center; margin-top: 24px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .founder-section { grid-template-columns: 1fr; text-align: center; }
  .founder-section > *:first-child { margin: 0 auto; }
  .hero h1 { font-size: 32px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px; }
}
