/* ═══════════════════════════════════════════
   AgentRxBiz — Global Stylesheet v1.0
   Brand system: Phase 1 confirmed
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@300;400;600;700;800;900&family=Instrument+Serif:ital@0;1&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  --deep:    #ffffff;
  --navy:    #f4f6f8;
  --ink:     #eaecef;
  --teal:    #008f7a;
  --teal-hi: #00b89e;
  --teal-lo: #006358;
  --gold:    #c47f00;
  --red:     #c0392b;
  --white:   #111827;
  --mist:    rgba(17,24,39,0.6);
  --ghost:   rgba(17,24,39,0.35);
  --rule:    rgba(0,143,122,0.15);

  --display: 'Lexend Exa', sans-serif;
  --serif:   'Instrument Serif', serif;
  --mono:    'IBM Plex Mono', monospace;

  --max-w: 1100px;
  --r: 6px;
  --r-lg: 12px;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display:block; max-width:100%; }
a { color: var(--teal); text-decoration:none; }
a:hover { color: var(--teal-hi); }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin:0 auto; padding:0 40px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.section-title em { font-style:normal; color:var(--teal); }
.section-sub {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--mist);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 48px;
}
.divider { height:1px; background:linear-gradient(90deg,var(--teal),transparent); opacity:0.2; margin:8px 0; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--teal);
  color: #ffffff;
  padding: 9px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.top-bar a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.top-bar a:hover { border-color: #ffffff; }

.top-bar-sep {
  opacity: 0.35;
  font-size: 10px;
}

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.nav-logo .rx-pill {
  background: var(--teal);
  color: #ffffff;
  font-style: italic;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  padding: 2px 9px 3px;
  border-radius: 5px;
  margin-right: 3px;
  line-height: 1.35;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--mist);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--teal);
  color: var(--deep) !important;
  padding: 8px 18px;
  border-radius: var(--r);
  font-weight: 700 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--teal-hi) !important; color: var(--deep) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 12px 24px;
  border-radius: var(--r);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--deep); }
.btn-primary:hover { background: var(--teal-hi); color: var(--deep); }
.btn-secondary { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-secondary:hover { background: rgba(0,194,168,0.08); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #f0b830; color: var(--deep); }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}
.badge-teal  { background: rgba(0,194,168,0.1); color:var(--teal); border:1px solid rgba(0,194,168,0.25); }
.badge-gold  { background: rgba(232,163,32,0.1); color:var(--gold); border:1px solid rgba(232,163,32,0.25); }
.badge-red   { background: rgba(214,64,64,0.1); color:var(--red); border:1px solid rgba(214,64,64,0.25); }
.badge-ghost { background: rgba(255,255,255,0.05); color:var(--mist); border:1px solid rgba(255,255,255,0.1); }
.badge-dot { width:5px; height:5px; border-radius:50%; background:currentColor; }

/* ── CARDS ── */
.card {
  background: var(--navy);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(0,194,168,0.35); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.card-body { font-family: var(--serif); font-size: 14px; color: var(--mist); line-height: 1.7; }

/* ── STAT BLOCKS ── */
.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghost);
  line-height: 1.5;
}

/* ── INSIGHT CALLOUT ── */
.insight {
  background: #fdf8ee;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d2d;
}
.insight strong {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

/* ── GRID HELPERS ── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.footer-logo .rx-pill {
  background: var(--teal);
  color: #ffffff;
  font-style: italic;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  padding: 2px 10px 3px;
  border-radius: 5px;
  margin-right: 3px;
  line-height: 1.35;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--mist);
  margin-bottom: 20px;
  line-height: 1.6;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a {
  font-size: 13px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ghost);
  letter-spacing: 0.06em;
}

/* ── PAGE HEADER (inner pages) ── */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:'';
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,194,168,0.08) 0%, transparent 70%);
  pointer-events:none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:#f4f6f8; }
::-webkit-scrollbar-thumb { background:rgba(0,143,122,0.4); border-radius:2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .container { padding:0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .nav-links { display:none; }
  .section { padding:64px 0; }
}
