/* ===========================
   AquaViva Group — B2B Health AI Hub
   Design: Corporate Medical Professional
   Palette: Deep Navy, Teal Accent, White
=========================== */

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

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1a3a5c;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-pale: #ccfbf1;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Disclosure Banner ---- */
.disclosure-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  padding: 8px 24px;
  text-align: center;
  font-size: 12px;
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.dismiss-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #92400e;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.dismiss-btn:hover { background: #fde68a; }

/* ---- Navbar ---- */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(10,22,40,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: white;
  font-size: 14px;
}
.brand-logo.small { width: 32px; height: 32px; font-size: 12px; }
.brand-name { font-weight: 700; color: white; font-size: 15px; }
.brand-sub { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-longevity { color: var(--teal-light) !important; border: 1px solid rgba(20,184,166,0.3); }
.nav-longevity:hover { background: rgba(20,184,166,0.1) !important; border-color: var(--teal-light) !important; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  padding: 12px 24px 20px;
  gap: 4px;
}
.mobile-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 12px 20px !important;
  border-radius: 8px;
  text-align: center;
  margin-top: 8px;
  border: none !important;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,148,136,0.15);
  border: 1px solid rgba(13,148,136,0.3);
  color: var(--teal-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-accent { color: var(--teal-light); }
.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--teal-light); line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--teal);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,0.35); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); }

/* Lead Card */
.lead-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
}
.lead-card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lead-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}
.lead-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.form-input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
  width: 100%;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus { outline: none; border-color: var(--teal-light); background: rgba(255,255,255,0.12); }
.btn-submit {
  background: var(--gold);
  color: var(--navy);
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-submit:active { transform: scale(0.98); }
.form-note { font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; margin-top: 4px; }

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}
.trust-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Tool Cards ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.tool-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--teal-pale); }
.tool-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}
.tool-card-header { display: flex; justify-content: space-between; align-items: center; }
.tool-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.tool-badge.editor { background: var(--teal-pale); color: var(--teal); }
.tool-badge.high-commission { background: #fef3c7; color: #92400e; }
.tool-badge.consumer { background: #ede9fe; color: #5b21b6; }
.tool-badge.enterprise { background: #dbeafe; color: #1d4ed8; }
.tool-badge.education { background: #dcfce7; color: #15803d; }
.tool-commission { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
}
.sully-icon { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.ai-hb-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); font-size: 13px; }
.doc-icon { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.omni-icon { background: linear-gradient(135deg, #0a1628, #1a3a5c); }
.cert-icon { background: linear-gradient(135deg, #15803d, #4ade80); }
.tool-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.tool-category { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; }
.tool-rating { display: flex; align-items: center; gap: 8px; }
.stars { color: var(--gold); font-size: 15px; }
.rating-num { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.tool-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.tool-highlights { display: flex; flex-direction: column; gap: 6px; }
.highlight { font-size: 13px; color: var(--gray-600); font-weight: 500; }
.tool-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.btn-tool-primary {
  background: var(--teal);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s;
  display: block;
}
.btn-tool-primary:hover { background: var(--teal-light); transform: translateY(-1px); }
.btn-tool-secondary {
  color: var(--teal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn-tool-secondary:hover { background: var(--teal-pale); }
.affiliate-note { font-size: 11px; color: var(--gray-400); line-height: 1.5; }
.affiliate-note a { color: var(--teal); text-decoration: none; }

/* ---- Comparison Table ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}
.compare-table th {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text);
  vertical-align: top;
}
.compare-table td small { font-size: 11px; color: var(--text-muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--gray-50); }
.featured-row td { background: rgba(13,148,136,0.04); }
.featured-row td:first-child { border-left: 3px solid var(--teal); }
.commission-cell { font-weight: 700; color: var(--teal); }
.badge-pick {
  font-size: 10px;
  background: var(--teal-pale);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
}

/* ---- Networks Grid ---- */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.network-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}
.network-card:hover { box-shadow: var(--shadow); border-color: var(--teal); transform: translateY(-2px); }
.network-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--navy); }
.network-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.network-highlight { font-size: 12px; font-weight: 600; color: var(--teal); }
.btn-network {
  background: var(--navy);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s;
  display: block;
  margin-top: auto;
}
.btn-network:hover { background: var(--navy-light); }

/* ---- Articles Grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.article-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.article-meta { font-size: 12px; color: var(--gray-400); }
.article-link { color: var(--teal); text-decoration: none; font-size: 14px; font-weight: 700; transition: color 0.15s; }
.article-link:hover { color: var(--teal-light); }

/* ---- Cross-link Section ---- */
.crosslink-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 72px 0;
}
.crosslink-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.crosslink-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.crosslink-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.25;
}
.crosslink-desc { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.btn-crosslink {
  background: var(--teal);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  transition: all 0.2s;
}
.btn-crosslink:hover { background: var(--teal-light); transform: translateY(-1px); }
.crosslink-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.crosslink-topic {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ---- Newsletter ---- */
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 12px;
}
.newsletter-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form .form-input {
  background: white;
  border: 1.5px solid var(--gray-200);
  color: var(--text);
  flex: 1;
}
.newsletter-form .form-input::placeholder { color: var(--gray-400); }
.newsletter-form .form-input:focus { border-color: var(--teal); }
.newsletter-form .btn-submit { white-space: nowrap; }

/* ---- Footer ---- */
.footer { background: var(--navy); color: white; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-name { font-weight: 700; color: white; font-size: 15px; }
.footer-brand-sub { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 14px; }
.footer-email { color: var(--teal-light); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-email:hover { color: white; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-disclosure {
  background: rgba(0,0,0,0.2);
  padding: 28px 0;
  margin-top: 0;
}
.footer-disclosure p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-disclosure a { color: rgba(255,255,255,0.6); }
.footer-copy { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.3); }
.mt-2 { margin-top: 12px; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--teal);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .crosslink-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: flex; }
  .hero { padding: 56px 0 72px; }
  .newsletter-form { flex-direction: column; }
  .crosslink-topics { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .trust-inner { gap: 6px 16px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .footer-links { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .networks-grid { grid-template-columns: 1fr 1fr; }
}
