/* ------------------------------------------------------------------
   Blue Nodes — Marketing landing
   styles.css = design tokens + page styles
------------------------------------------------------------------ */

/* === Design tokens ============================================ */
/* Design tokens — extracted from blue-nodes-frontend/src/styles/global.css */
:root {
  /* Surfaces — charcoal/blue-gray dark */
  --surface-0: #1A1C20;
  --surface-1: #21232A;
  --surface-2: #292C34;
  --surface-3: #31343E;
  --surface-border:    rgba(255, 255, 255, 0.08);
  --surface-border-em: rgba(255, 255, 255, 0.13);

  /* Text */
  --text-primary:   #F0EFE8;
  --text-secondary: #A8A79C;
  --text-tertiary:  #6B6A60;
  --text-disabled:  #4A4A46;

  /* Marketing-only — brighter neutrals for readability on the public site */
  --mkt-body:       #D6D4C7;
  --mkt-meta:       #9C9A8E;

  /* Positive — teal */
  --pos-text:   #5DCAA5;
  --pos-bg:     rgba(29, 158, 117, 0.18);
  --pos-border: rgba(93, 202, 165, 0.30);
  --pos-mid:    #1D9E75;

  /* Negative — coral */
  --neg-text:   #F0997B;
  --neg-bg:     rgba(216, 90, 48, 0.18);
  --neg-border: rgba(240, 153, 123, 0.30);
  --neg-mid:    #D85A30;

  /* Change / new — blue */
  --chg-text:   #85B7EB;
  --chg-bg:     rgba(55, 138, 221, 0.18);
  --chg-border: rgba(133, 183, 235, 0.30);
  --chg-mid:    #378ADD;

  /* Warning — amber */
  --warn-text:   #FAC775;
  --warn-bg:     rgba(186, 117, 23, 0.18);
  --warn-border: rgba(250, 199, 117, 0.30);

  /* Closed — purple */
  --closed-text:   #AFA9EC;
  --closed-bg:     rgba(175, 169, 236, 0.12);
  --closed-border: rgba(175, 169, 236, 0.25);

  /* Engine accents (NEW — proposed to differentiate Clove / Carrick) */
  --clove-text:   #F5B965;   /* warm saffron */
  --clove-bg:     rgba(245, 185, 101, 0.10);
  --clove-border: rgba(245, 185, 101, 0.32);
  --clove-mid:    #E89A3C;

  --carrick-text:   #9B8CF0;  /* cool indigo */
  --carrick-bg:     rgba(155, 140, 240, 0.10);
  --carrick-border: rgba(155, 140, 240, 0.32);
  --carrick-mid:    #7C6BE0;

  --accent:       #5DCAA5;
  --accent-hover: #1D9E75;

  --font-ui:   'DM Sans', 'Inter', system-ui, sans-serif;
  --font-data: 'JetBrains Mono', 'Fira Code', monospace;

  --u: 4px;
  --r-xs:   3px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   10px;
  --r-pill: 20px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  background: #0e0f12;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mono {
  font-family: var(--font-data) !important;
  font-variant-numeric: tabular-nums !important;
}

/* Tiny scrollbars to match app */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: var(--surface-border-em); border-radius: 9999px; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}

/* === Page styles ============================================== */
/* ────────────────────────────────────────────────────────────────
     Public marketing landing — leans on tokens.css.
     Restrained palette: surface-0 background, neutral text, blue
     (--chg-text) used sparingly as the sole accent.
     ──────────────────────────────────────────────────────────────── */
  html { scroll-behavior: smooth; }
  body {
    background: var(--surface-0);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.55;
  }

  /* layout primitives */
  .bn-shell    { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
  .bn-section  { padding: 120px 0; border-top: 0.5px solid var(--surface-border); }
  .bn-section:first-of-type { border-top: none; }

  /* eyebrow — small uppercase tracked label, lifted from the product */
  .bn-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--mkt-body);
  }
  .bn-eyebrow .dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--chg-text);
    box-shadow: 0 0 0 3px rgba(133,183,235,0.10);
  }
  .bn-eyebrow .num {
    font-family: var(--font-data);
    color: var(--chg-text);
    letter-spacing: 0.10em;
  }

  /* type scale */
  .bn-display {
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.04;
    color: var(--text-primary);
    text-wrap: balance;
  }
  .bn-h2 {
    font-size: clamp(34px, 3.6vw, 50px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--text-primary);
    text-wrap: balance;
  }
  .bn-body {
    font-size: 17px;
    line-height: 1.65;
    color: var(--mkt-body);
    max-width: 56ch;
    text-wrap: pretty;
  }
  .bn-mono-meta {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 0.10em;
    color: var(--text-tertiary);
    text-transform: uppercase;
  }

  /* CTA — quiet pill, single accent */
  .bn-cta {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 14px 22px;
    border-radius: var(--r-pill);
    background: var(--chg-bg);
    border: 1px solid var(--chg-border);
    color: var(--chg-text);
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
  }
  .bn-cta:hover {
    background: rgba(55, 138, 221, 0.28);
    border-color: rgba(133, 183, 235, 0.55);
  }
  .bn-cta .arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 999px;
    border: 1px solid var(--chg-border);
    font-size: 12px;
    transition: transform 180ms ease;
  }
  .bn-cta:hover .arrow { transform: translateX(3px); }

  .bn-ghost {
    color: var(--text-secondary);
    font-size: 13px; font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 180ms ease;
  }
  .bn-ghost:hover { color: var(--text-primary); }

  /* ──────────── Top nav ──────────── */
  .bn-nav {
    position: sticky; top: 0; z-index: 30;
    height: 60px;
    display: flex; align-items: center;
    padding: 0 40px;
    background: rgba(26, 28, 32, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 0.5px solid var(--surface-border);
  }
  .bn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .bn-brand img { width: 22px; height: 22px; }
  .bn-brand .name {
    font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--text-primary);
  }
  .bn-nav-links {
    display: flex; align-items: center; gap: 28px;
    margin-left: auto;
  }
  .bn-nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    border: 1px solid var(--surface-border-em);
    background: transparent;
    color: var(--text-primary);
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease;
  }
  .bn-nav-cta:hover {
    border-color: var(--chg-border);
    background: var(--chg-bg);
    color: var(--chg-text);
  }

  /* ──────────── Hero ──────────── */
  .bn-hero {
    position: relative;
    padding: 140px 0 160px;
    border-top: none;
    overflow: hidden;
  }
  .bn-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
  }
  .bn-hero h1 { margin: 24px 0 28px; }
  .bn-hero .lede {
    font-size: 19px;
    line-height: 1.6;
    color: var(--mkt-body);
    max-width: 52ch;
    margin: 0 0 40px;
    text-wrap: pretty;
  }
  .bn-hero-meta {
    margin-top: 56px;
    display: flex; gap: 56px;
    padding-top: 28px;
    border-top: 0.5px solid var(--surface-border);
  }
  .bn-hero-meta .item .lbl {
    font-family: var(--font-data);
    font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clove-text);
    margin-bottom: 6px;
  }
  .bn-hero-meta .item .val {
    font-size: 13px; color: var(--text-primary); font-weight: 500;
  }

  /* node motif — subtle SVG, used as decoration only */
  .bn-node-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin-left: auto;
    opacity: 0.95;
  }
  .bn-node-art .ring {
    fill: none;
    stroke: var(--surface-border-em);
    stroke-dasharray: 2 4;
  }
  .bn-node-art .edge {
    stroke: rgba(133, 183, 235, 0.32);
    stroke-width: 0.6;
    fill: none;
  }
  .bn-node-art .node {
    fill: var(--surface-2);
    stroke: var(--surface-border-em);
    stroke-width: 0.6;
  }
  .bn-node-art .node-accent {
    fill: var(--chg-bg);
    stroke: var(--chg-border);
    stroke-width: 0.6;
  }
  .bn-node-art .node-dot { fill: var(--chg-text); }
  .bn-node-art .label {
    font-family: var(--font-data);
    font-size: 6.5px;
    letter-spacing: 0.12em;
    fill: var(--text-tertiary);
    text-transform: uppercase;
  }

  /* ──────────── Positioning ──────────── */
  .bn-positioning {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 80px;
    align-items: start;
  }
  .bn-positioning h2 { margin: 18px 0 0; }
  .bn-positioning .body { margin-top: 4px; font-size: 17px; }

  /* ──────────── Focus cards ──────────── */
  .bn-focus-head { margin-bottom: 56px; max-width: 700px; }
  .bn-focus-head h2 { margin: 18px 0 0; }
  .bn-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 0.5px solid var(--surface-border);
    border-bottom: 0.5px solid var(--surface-border);
  }
  .bn-card {
    padding: 44px 36px 48px;
    border-right: 0.5px solid var(--surface-border);
    position: relative;
    transition: background 200ms ease;
  }
  .bn-card:last-child { border-right: none; }
  .bn-card:hover { background: rgba(255,255,255,0.012); }
  .bn-card-num {
    font-family: var(--font-data);
    font-size: 11px; letter-spacing: 0.16em;
    color: var(--clove-text);
    margin-bottom: 28px;
  }
  .bn-card-title {
    font-size: 22px; font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 14px;
  }
  .bn-card-body {
    font-size: 15px;
    color: var(--mkt-body);
    line-height: 1.6;
    max-width: 32ch;
  }
  .bn-card-rail {
    position: absolute; top: 0; left: 0;
    width: 28px; height: 1px;
    background: var(--chg-text);
    opacity: 0.55;
  }

  /* ──────────── Audience ──────────── */
  .bn-audience {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 80px;
    align-items: start;
  }
  .bn-audience h2 { margin: 18px 0 32px; }
  .bn-audience-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    border-top: 0.5px solid var(--surface-border);
  }
  .bn-audience-list .row {
    display: flex; align-items: baseline; gap: 18px;
    padding: 18px 0;
    border-bottom: 0.5px solid var(--surface-border);
    padding-right: 28px;
  }
  .bn-audience-list .idx {
    font-family: var(--font-data);
    font-size: 10px; letter-spacing: 0.12em;
    color: var(--clove-text);
    min-width: 24px;
  }
  .bn-audience-list .name {
    font-size: 15px; color: var(--text-primary); font-weight: 500;
  }

  /* ──────────── Standards ──────────── */
  .bn-standards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 80px;
    align-items: start;
  }
  .bn-standards h2 { margin: 18px 0 0; }
  .bn-pillars {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 0.5px solid var(--surface-border);
  }
  .bn-pillar {
    padding: 28px 24px 32px 0;
    border-right: 0.5px solid var(--surface-border);
  }
  .bn-pillar:last-child { border-right: none; padding-right: 0; }
  .bn-pillar .num {
    font-family: var(--font-data);
    font-size: 10px; letter-spacing: 0.16em;
    color: var(--clove-text);
    margin-bottom: 22px;
  }
  .bn-pillar .label {
    font-size: 14px; font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.005em;
  }

  /* ──────────── Final CTA ──────────── */
  .bn-final {
    position: relative;
    padding: 140px 0 140px;
    text-align: center;
  }
  .bn-final h2 {
    font-size: clamp(36px, 4.4vw, 60px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--text-primary);
    margin: 22px 0 22px;
    text-wrap: balance;
  }
  .bn-final p {
    color: var(--mkt-body);
    font-size: 18px;
    line-height: 1.6;
    max-width: 50ch;
    margin: 0 auto 44px;
    text-wrap: pretty;
  }
  .bn-final .eyebrow-center {
    justify-content: center;
  }

  /* ──────────── Footer ──────────── */
  .bn-footer {
    padding: 56px 0 48px;
    border-top: 0.5px solid var(--surface-border);
    background: var(--surface-0);
  }
  .bn-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }
  .bn-footer-brand {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
  }
  .bn-footer-brand img { width: 24px; height: 24px; }
  .bn-footer-brand .name {
    font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--text-primary);
  }
  .bn-footer-addr {
    font-size: 13px; color: var(--mkt-body);
    line-height: 1.7;
  }
  .bn-footer-links {
    display: flex; flex-wrap: wrap; gap: 28px;
    justify-content: flex-end;
  }
  .bn-footer-links a {
    font-size: 13px;
    color: var(--mkt-body);
    text-decoration: none;
    transition: color 180ms ease;
  }
  .bn-footer-links a:hover { color: var(--text-primary); }
  .bn-footer-meta {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 0.5px solid var(--surface-border);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-data);
    font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-disabled);
  }

  /* ──────────── Legal pages (privacy, terms) ──────────── */
  .bn-legal-hero {
    padding: 100px 0 60px;
  }
  .bn-legal-hero h1 {
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 24px 0 18px;
    text-wrap: balance;
  }
  .bn-legal-meta {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .bn-legal-lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--mkt-body);
    max-width: 64ch;
    margin: 0;
    text-wrap: pretty;
  }

  .bn-legal-section {
    padding: 56px 0;
    border-top: 0.5px solid var(--surface-border);
  }
  .bn-legal-section:first-of-type {
    border-top: none;
    padding-top: 72px;
  }
  .bn-legal-section h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 16px 0 24px;
  }
  .bn-legal-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    margin: 28px 0 12px;
  }

  .bn-legal-body { max-width: 72ch; }
  .bn-legal-body p,
  .bn-legal-body li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mkt-body);
  }
  .bn-legal-body p { margin: 0 0 18px; }
  .bn-legal-body ul {
    margin: 0 0 18px;
    padding-left: 22px;
  }
  .bn-legal-body li { margin-bottom: 8px; }
  .bn-legal-body strong {
    color: var(--text-primary);
    font-weight: 600;
  }
  .bn-legal-body a {
    color: var(--chg-text);
    text-decoration: none;
    border-bottom: 1px solid var(--chg-border);
    transition: border-color 180ms ease;
  }
  .bn-legal-body a:hover { border-color: var(--chg-text); }

  .bn-legal-callout {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 2px solid var(--chg-text);
    background: rgba(55, 138, 221, 0.06);
    border-radius: 0 var(--r-md) var(--r-md) 0;
  }
  .bn-legal-callout p { color: var(--text-primary); }
  .bn-legal-callout p:last-child { margin-bottom: 0; }

  .bn-legal-table {
    width: 100%;
    margin: 18px 0 24px;
    border-collapse: collapse;
    font-size: 14px;
  }
  .bn-legal-table th,
  .bn-legal-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--surface-border);
    vertical-align: top;
    line-height: 1.55;
  }
  .bn-legal-table th {
    font-family: var(--font-data);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    border-bottom: 0.5px solid var(--surface-border-em);
  }
  .bn-legal-table td { color: var(--mkt-body); }
  .bn-legal-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
  }

  .bn-legal-section .bn-eyebrow .num { color: var(--chg-text); }

  /* responsive */
  @media (max-width: 900px) {
    .bn-shell { padding: 0 24px; }
    .bn-section { padding: 80px 0; }
    .bn-hero { padding: 80px 0 100px; }
    .bn-hero-grid,
    .bn-positioning,
    .bn-audience,
    .bn-standards,
    .bn-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .bn-cards { grid-template-columns: 1fr; }
    .bn-card { border-right: none; border-bottom: 0.5px solid var(--surface-border); }
    .bn-card:last-child { border-bottom: none; }
    .bn-pillars { grid-template-columns: repeat(2, 1fr); }
    .bn-pillar { padding: 24px 16px 28px 0; }
    .bn-pillar:nth-child(2) { border-right: none; }
    .bn-audience-list { grid-template-columns: 1fr; }
    .bn-footer-links { justify-content: flex-start; }
    .bn-nav-links { gap: 16px; }
    .bn-nav-links .hide-sm { display: none; }
    .bn-hero-meta { gap: 32px; flex-wrap: wrap; }
  }
