/* ── EntraSight Design Token Foundation ──────────────────────────────────────
   base.css — imported first by every marketing/scanner template.
   All CSS custom properties, global resets, and shared nav styles live here.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg: #0b0d12;
  --surface: #12151c;
  --card: #161a24;
  --border: #222840;
  --border2: #2d3654;

  /* Text — all WCAG AAA compliant on --bg */
  --text: #e2e8f4;        /* 15.8:1 */
  --muted: #93abcf;       /* 8.3:1 */
  --white: #f0f4ff;       /* 17.7:1 */
  /* NOTE: --dim is decorative/borders only — never use for body text */
  --dim: #6b7fa3;

  /* Brand */
  --accent: #339af0;      /* 6.5:1 AA */
  --accent2: #74c0fc;     /* 9.9:1 AAA */

  /* Data states — use ONLY inside product UI, never in marketing decoration */
  --expired: #ff6b6b;     /* 7.2:1 AAA */
  --urgent: #fd7e14;      /* 7.6:1 AAA */
  --warn: #f59f00;        /* 9.1:1 AAA */
  --ok: #20c997;          /* 9.1:1 AAA */

  /* Typography scale — optimised for 4K at 125% UI scaling */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --size-hero: clamp(52px, 6vw, 76px);
  --size-h2: clamp(30px, 4vw, 44px);
  --size-h3: 22px;
  --size-body-lg: 19px;
  --size-body: 17px;
  --size-nav: 15px;
  --size-small: 14px;     /* ABSOLUTE MINIMUM — never go below this */
  --size-label: 13px;     /* section eyebrow labels only */

  --lh-body: 1.75;
  --lh-heading: 1.15;

  --weight-hero: 800;
  --weight-h2: 700;
  --weight-h3: 600;
  --weight-body: 400;
  --weight-nav: 400;

  /* Spacing */
  --section-y: 80px;
  --card-radius: 10px;
  --btn-radius: 8px;
}

/* ── Global resets ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 { font-size: var(--size-hero); font-weight: var(--weight-hero); line-height: var(--lh-heading); color: var(--white); letter-spacing: -0.02em; }
h2 { font-size: var(--size-h2);   font-weight: var(--weight-h2);   line-height: var(--lh-heading); color: var(--white); letter-spacing: -0.01em; }
h3 { font-size: var(--size-h3);   font-weight: var(--weight-h3);   line-height: 1.3;               color: var(--text); }
p  { font-size: var(--size-body); line-height: var(--lh-body);     color: var(--muted); }

a       { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--white); }

/* ── Shared marketing nav ──────────────────────────────────────────────────── */
.mktg-nav {
  position: sticky; top: 0; z-index: 200;
  height: 58px;
  background: rgba(11,13,18,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  display: flex; align-items: center; gap: 6px;
}
.mktg-nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
  flex-shrink: 0;
}
.mktg-nav-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.mktg-nav-name {
  font-size: 16px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--white);
}
.mktg-nav-links {
  display: flex; align-items: center; gap: 2px;
}
.mktg-nav-link {
  color: var(--muted); text-decoration: none;
  font-size: var(--size-nav); font-weight: var(--weight-nav);
  padding: 6px 14px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.mktg-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.mktg-nav-cta {
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--btn-radius);
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.mktg-nav-cta:hover { background: var(--accent2); color: #0b0d12; }

@media (max-width: 900px) {
  .mktg-nav { padding: 0 20px; gap: 4px; }
  .mktg-nav-links { gap: 0; }
  .mktg-nav-link { padding: 6px 10px; font-size: 14px; }
}
@media (max-width: 680px) {
  .mktg-nav-links { display: none; }
  .mktg-nav-cta { padding: 7px 14px; font-size: 13px; }
}
