/* ================= CONNEX — shared site styles ================= */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --navy: #07111F;
  --deep: #030712;
  --panel: #0A1628;
  --slate: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --border: #E2E8F0;
  --border-soft: #EDF1F5;
  --accent: #2563EB;
  --accent-deep: #1D4ED8;
  --green: #16A34A;
  --amber: #D97706;
  --red: #DC2626;
  --soft-blue: #EFF6FF;
  --soft-green: #ECFDF5;
  --soft-amber: #FFFBEB;
  --soft-red: #FEF2F2;
  --font-sans: 'Geist', 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', 'IBM Plex Mono', monospace;
  --shadow-card: 0 1px 2px rgba(7,17,31,0.04), 0 4px 16px rgba(7,17,31,0.04);
  --shadow-float: 0 24px 64px -16px rgba(7,17,31,0.16), 0 2px 8px rgba(7,17,31,0.06);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- wordmark ---------- */
.cx-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.16em; font-size: 16px; color: var(--navy); }
.cx-mark { display: inline-flex; flex-direction: column; gap: 3px; }
.cx-mark span { display: block; height: 3px; border-radius: 1px; background: var(--navy); }
.cx-mark span:nth-child(1) { width: 18px; }
.cx-mark span:nth-child(2) { width: 12px; background: var(--accent); }
.cx-mark span:nth-child(3) { width: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,250,0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.scrolled {
  background: rgba(247,248,250,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; transition: color 0.15s; }
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 24px; }

/* mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
.mobile-menu { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; border-radius: 8px; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn .arr { display: inline-block; transition: transform 0.18s ease; font-weight: 500; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; font-size: 15px; padding: 13px 22px; }
.btn-primary:hover { background: #122236; box-shadow: 0 6px 20px -6px rgba(7,17,31,0.4); }
.btn-secondary { background: var(--surface); color: var(--navy); border: 1px solid var(--border); font-size: 15px; padding: 12px 20px; }
.btn-secondary:hover { border-color: #C7D2DD; background: #FCFDFE; }
.btn-ghost { color: var(--accent); font-size: 15px; padding: 12px 8px; }
.btn-ghost:hover { color: var(--accent-deep); }
.btn-sm { font-size: 13.5px; padding: 9px 16px; border-radius: 7px; }
.btn-accent { background: var(--accent); color: #fff; font-size: 15px; padding: 13px 22px; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ondark { background: #fff; color: var(--navy); font-size: 15px; padding: 13px 22px; }
.btn-ondark:hover { background: #E8EEF5; }

/* ---------- section scaffolding ---------- */
.section { padding: 104px 0; }
.section.tight { padding: 84px 0; }
.sec-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.sec-kicker b { color: var(--accent); font-weight: 500; }
.sec-kicker::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sec-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; margin-top: 22px; max-width: 24ch; text-wrap: balance; }
.sec-title em { font-style: italic; }
.sec-lede { margin-top: 18px; font-size: 17px; color: var(--slate); max-width: 62ch; text-wrap: pretty; }

/* scroll reveal — end state is base; only animate when .anim-on on html */
.rv { }
html.anim-on .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.anim-on .rv.in { opacity: 1; transform: none; }
html.anim-on .rv.d1 { transition-delay: 0.08s; }
html.anim-on .rv.d2 { transition-delay: 0.16s; }
html.anim-on .rv.d3 { transition-delay: 0.24s; }
html.anim-on .rv.d4 { transition-delay: 0.32s; }
html.anim-on .rv.d5 { transition-delay: 0.40s; }

/* ---------- generic card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---------- chips ---------- */
.chip { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 5px; white-space: nowrap; }
.chip.miss { background: var(--soft-amber); color: #B45309; border: 1px solid #FDE68A; }
.chip.risk { background: var(--soft-red); color: var(--red); border: 1px solid #FECACA; }
.chip.ok { background: var(--soft-green); color: var(--green); border: 1px solid #BBF7D0; }
.chip.info { background: var(--soft-blue); color: var(--accent-deep); border: 1px solid #DBEAFE; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #94A3B8; padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.site-footer .cx-logo { color: #fff; }
.site-footer .cx-mark span { background: #fff; }
.site-footer .cx-mark span:nth-child(2) { background: var(--accent); }
.footer-tag { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #64748B; font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #94A3B8; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(148,163,184,0.15); display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 11.5px; color: #64748B; flex-wrap: wrap; }

/* ---------- final CTA band ---------- */
.cta-band { background: var(--deep); border-radius: 16px; padding: 72px 64px; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 44px 44px; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band .sec-kicker { color: #64748B; }
.cta-band .sec-kicker::after { background: rgba(148,163,184,0.2); }
.cta-band h2 { color: #F8FAFC; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; margin-top: 20px; max-width: 24ch; }
.cta-band p { color: #94A3B8; margin-top: 16px; font-size: 16.5px; max-width: 52ch; }
.cta-band .cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.cta-band .cta-note { font-family: var(--font-mono); font-size: 11.5px; color: #64748B; margin-top: 22px; letter-spacing: 0.04em; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; position: fixed; inset: 68px 0 auto 0; z-index: 99; background: rgba(247,248,250,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 12px 24px 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  .mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--border-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .cta-band { padding: 48px 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html.anim-on .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}
