/* Mercurium websites: the ONE shared look of mercurium-analytics.ai and the Mercurium Data site.
   Owned by the public website (public/), linked by both sites. Values are the Data app's light theme
   (static/css/mercuriumdata.css) and the logo's blues: the Mercurium font, white cards on the light grey
   page, hairline borders, the dark primary button. Very rounded rectangles, never pills; no gradients,
   no glow, no purple.
   Served through the app's asset view (home:home_v2_asset 'mercurium-site.css'), so the font addresses
   are absolute: the static host is the same on every environment. */

@font-face { font-family: "Mercurium"; src: url("https://static.mercurium-analytics.ai/fonts/mercurium_fonts/MercuriumFont-light.woff2") format("woff2"), url("https://static.mercurium-analytics.ai/fonts/mercurium_fonts/MercuriumFont-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Mercurium"; src: url("https://static.mercurium-analytics.ai/fonts/mercurium_fonts/MercuriumFont-Regular.woff2") format("woff2"), url("https://static.mercurium-analytics.ai/fonts/mercurium_fonts/MercuriumFont-Regular.woff") format("woff"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mercurium"; src: url("https://static.mercurium-analytics.ai/fonts/mercurium_fonts/MercuriumFont-Boldsubset.woff2") format("woff2"), url("https://static.mercurium-analytics.ai/fonts/mercurium_fonts/MercuriumFont-Boldsubset.woff") format("woff"); font-weight: 700 800; font-style: normal; font-display: swap; }

:root {
  --page: #f5f6fa;
  --card: #ffffff;
  --text: #1a1f36;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --border: rgba(0, 0, 0, .08);
  --border-strong: rgba(0, 0, 0, .16);
  --shadow: 0 1px 15px rgba(0, 0, 0, .05);
  --shadow-raised: 0 4px 24px rgba(15, 23, 42, .08);
  --hover: rgba(128, 128, 128, .08);
  --link: #1a73e8;
  --primary-bg: #1a1f36;
  --primary-bg-hover: #2a3150;
  --primary-ink: #ffffff;
  --brand: #59b7e5;
  --brand-deep: #1c76bc;
  --brand-tint: rgba(89, 183, 229, .14);
  --good: #0ca30c;

  --seq-1: #cde2fb;
  --seq-2: #9ec5f4;
  --seq-3: #6da7ec;
  --seq-4: #3987e5;
  --seq-5: #256abf;
  --seq-6: #184f95;
  --map-nodata: #e4e7ee;
  --map-stroke: #ffffff;

  --night: #121829;
  --night-text: rgba(255, 255, 255, .68);
  --night-line: rgba(255, 255, 255, .10);
  --shot-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 28px 60px -22px rgba(15, 23, 42, .28);
  --float-shadow: 0 2px 6px rgba(15, 23, 42, .08), 0 40px 80px -26px rgba(15, 23, 42, .40);

  --r-shot: 16px;
  --r-card: 14px;
  --r-ctl: 10px;
  --r-tag: 6px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--text); font-family: "Mercurium", system-ui, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* ── buttons: very rounded rectangles, never pills ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--r-ctl); font: inherit; font-size: 15px; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-primary { background: var(--primary-bg); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-bg-hover); color: var(--primary-ink); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: #f0f2f6; color: var(--text); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }

/* ── navigation: the app's rounded section bar ── */
.nav { position: sticky; top: 0; z-index: 20; padding: 14px var(--gutter) 0; }
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 10px 14px 10px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); }
.nav.is-scrolled .nav-inner { box-shadow: var(--shadow-raised); }
.nav-brand { display: flex; align-items: center; flex: none; }
.nav-brand svg { display: block; height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-ctl); color: var(--text); font-size: 15px; }
.nav-links a:hover { background: var(--hover); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); background: var(--card); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.nav-drawer { display: none; }

/* ── cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px 0; }
.card-title { font-size: 18px; }
.card-hint { color: var(--text-muted); font-size: 14px; }

/* ── stat cards: the app's figures ── */
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.3; }
.stat-label i { color: var(--text-faint); }
.stat-value { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }

/* ── product screenshots: the real screens in a frame, never a drawn lookalike ── */
.shot { margin: 0; overflow: hidden; background: var(--card); border: 1px solid rgba(15, 23, 42, .08); border-radius: var(--r-shot); box-shadow: var(--shot-shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot-float { position: absolute; box-shadow: var(--float-shadow); }

/* ── the dark band (network graph, closing call to action) ── */
.band-dark { background: var(--night); color: #fff; }
.band-dark .shot { border-color: var(--night-line); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .65); }
.btn-light { background: #ffffff; color: var(--text); }
.btn-light:hover { background: #e9edf5; }
.btn-outline-light { color: #ffffff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }

/* ── one-of-several choice: grey frame, the chosen option on a white block that slides ── */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; background: rgba(128, 128, 128, .12); border-radius: 12px; }
.seg button { position: relative; z-index: 1; padding: 8px 20px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted); font: inherit; font-size: 15px; white-space: nowrap; cursor: pointer; transition: color .2s; }
.seg button[aria-selected="true"] { color: var(--text); }
.seg[data-n="2"] .seg-thumb { width: calc((100% - 6px) / 2); }
.seg[data-n="3"] .seg-thumb { width: calc((100% - 6px) / 3); }
.seg[data-at="1"] .seg-thumb { transform: translateX(100%); }
.seg[data-at="2"] .seg-thumb { transform: translateX(200%); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: #ffffff; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .04); transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }

/* ── smaller screens: the menu folds into the drawer ── */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav-drawer.is-open { display: flex; flex-direction: column; margin-top: 8px; padding: 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow); }
  .nav-drawer a { padding: 10px 12px; border-radius: var(--r-ctl); color: var(--text); }
  .nav-drawer a:hover { background: var(--hover); }
}
@media (max-width: 680px) {
  .nav-brand svg { height: 32px; }
  .nav-actions .btn-primary { padding: 8px 12px; font-size: 14px; }
}
