/* css/base.css — shared chrome for every page: reset, body, skip-link, sticky nav,
 * internal page-hero band, explore-more cards, section scaffolding (.sec/.wrap/
 * .eyebrow2/h2/.lead), scroll-reveal and the site footer.
 * Order inside this file = original cascade order (site-pages.css, then the
 * shared parts of site-sections.css). */

/* ← site-pages.css */
/* ============================================================================
 * site-pages.css — shared chrome for the Nama INTERNAL pages
 * (Platform / Security / Customers / Company). The one-page home keeps its own
 * inline hero styles; everything an internal page needs that ISN'T already in
 * the section stylesheets lives here: brand tokens, base, the always-on nav,
 * and the compact dark page-hero band that replaces the full-screen graph.
 * ========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.subpage {
  font-family: var(--font-sans);
  background: #FFFFFF;
  color: #09090B;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: #fff; color: #0B1220; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ── always-on nav: reuse .snav but keep it pinned on internal pages ── */
body.subpage .snav { transform: none; }
body.subpage .snav .sn-links a.cur { color: #09090B; font-weight: 600; }
body.subpage .snav .sn-links a.cur::after {
  content: ''; display: block; height: 2px; border-radius: 2px;
  background: var(--brand-500); margin-top: 3px;
}

/* ── page hero — compact dark band that opens every internal page ── */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #EAF0FA;
  padding: 138px 48px 72px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(78% 80% at 78% 18%, rgba(38,132,255,0.18) 0%, transparent 58%),
    radial-gradient(60% 70% at 88% 30%, rgba(201,190,255,0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 70%, #04060B 100%);
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159,176,199,0.18), transparent);
}
.ph-const {
  position: absolute; right: 0; top: 0; width: 46%; height: 100%;
  pointer-events: none; opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}
.ph-wrap {
  position: relative; z-index: 1;
  max-width: 1248px; margin: 0 auto;
}
.ph-crumb {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; margin-bottom: 26px;
  transition: color .15s ease;
}
.ph-crumb:hover { color: #C3CEE0; }
.ph-crumb svg { width: 13px; height: 13px; }
.ph-crumb b { color: #C3CEE0; font-weight: 600; }
.ph-eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-300);
  margin-bottom: 18px;
}
.ph-eyebrow .s { color: var(--brand-400); }
.page-hero h1 {
  font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.026em;
  font-weight: 600; color: #F4F8FF; margin: 0 0 20px; max-width: 880px; text-wrap: balance;
}
.page-hero h1 .accent { color: var(--brand-400); }
.page-hero h1 em {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-style: italic; font-weight: 500; color: #DCE6FF;
}
.ph-sub {
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: #AEBBD2;
  font-weight: 400; margin: 0; max-width: 620px; text-wrap: pretty;
}
.ph-jump {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.ph-jump a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: #C3CEE0; text-decoration: none;
  background: rgba(159,176,199,0.09); border: 1px solid rgba(159,176,199,0.20);
  border-radius: 999px; padding: 7px 15px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ph-jump a:hover { background: rgba(38,132,255,0.16); border-color: rgba(38,132,255,0.42); color: #EAF0FA; }
.ph-jump a svg { width: 13px; height: 13px; color: var(--brand-300); }

/* keep the editorial index spine numbering legible on the first light section */
body.subpage .sec:first-of-type { scroll-margin-top: 76px; }

/* the dark knowledge-graph interlude sits flush after a light section — give it
   a touch more top air on internal pages where it can lead */
body.subpage .s-graph .wrap,
body.subpage .s-sec .wrap { position: relative; }

/* ── cross-page "explore more" cards (home → internals, internals → siblings) ── */
.morenav { background: #F7F8FA; border-top: 1px solid #ECEDF1; }
.morenav .wrap { max-width: 1248px; margin: 0 auto; padding: 64px 48px 72px; }
.morenav .mn-lab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #71717A; margin-bottom: 22px;
}
.morenav .mn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.morenav a.mn-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: #FFFFFF; border: 1px solid #E4E4E7; border-radius: 12px;
  padding: 20px 20px 22px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.morenav a.mn-card:hover {
  border-color: var(--brand-300); box-shadow: 0 12px 30px -18px rgba(11,18,32,0.4); transform: translateY(-2px);
}
.morenav .mn-ic {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 4px;
}
.morenav .mn-ic svg { width: 20px; height: 20px; }
.morenav .mn-t { font-size: 16px; font-weight: 600; color: #0B1220; display: flex; align-items: center; gap: 6px; }
.morenav .mn-t svg { width: 15px; height: 15px; color: #9CA1AB; transition: transform .15s ease, color .15s ease; }
.morenav a.mn-card:hover .mn-t svg { transform: translateX(3px); color: var(--brand-500); }
.morenav .mn-d { font-size: 13.5px; line-height: 1.5; color: #71717A; text-wrap: pretty; }

@media (max-width: 980px) {
  .page-hero { padding: 118px 24px 56px; }
  .ph-const { display: none; }
  .morenav .mn-grid { grid-template-columns: repeat(2, 1fr); }
  .morenav .wrap { padding: 48px 24px 56px; }
}
@media (max-width: 600px) {
  .morenav .mn-grid { grid-template-columns: 1fr; }
}

/* ← site-sections.css · section scaffolding + motif marks */
/* ============================================================================
 * site-sections.css — below-the-fold sections for the Nama one-page site.
 * The hero (dark) keeps its inline styles; everything here is the light,
 * flat-white editorial system from the Nama Design System.
 * ========================================================================== */

/* ── shared section scaffolding ── */
.sec { background: #FFFFFF; color: #09090B; position: relative; }
.sec.soft { background: #F7F8FA; }
.sec .wrap { max-width: 1248px; margin: 0 auto; padding: 104px 48px; position: relative; }
.sec .eyebrow2 {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #006ADF; margin-bottom: 18px;
}
.sec h2 {
  font-size: clamp(30px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -0.01em;
  font-weight: 600; color: #0B1220; margin: 0 0 16px; max-width: 680px; text-wrap: pretty;
}
.sec .lead { font-size: 17px; line-height: 1.55; color: #52525B; max-width: 580px; margin: 0 0 56px; text-wrap: pretty; }

/* graph-thread motif marks (toggled by the Graph motif tweak) */
.motif-mark {
  position: absolute; pointer-events: none; opacity: 0.5;
  right: 48px; top: 84px; width: 250px; height: 140px;
}
body[data-motif="bookends"] .motif-mark { display: none; }

/* ← site-sections.css · footer, sticky nav, scroll reveal */
/* footer — multi-column, with a Security & Legal column for regulated buyers */
.site-foot { background: #04060B; color: #8A99B5; }
.site-foot .wrap { max-width: 1248px; margin: 0 auto; padding: 56px 48px 30px; }
.site-foot .foot-top {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 48px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(159,176,199,0.12);
}
.site-foot .foot-brand { display: flex; flex-direction: column; gap: 15px; max-width: 320px; }
.site-foot .foot-brand > img { height: 48px; filter: brightness(0) invert(1); opacity: 0.9; align-self: flex-start; }
.site-foot .foot-brand p { font-size: 13.5px; line-height: 1.55; color: #8A99B5; margin: 0; text-wrap: pretty; }
.site-foot .foot-backed { display: flex; align-items: center; gap: 15px; margin-top: 3px; }
.site-foot .foot-backed .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #525F78; }
.site-foot .foot-backed img { filter: brightness(0) invert(1); opacity: 0.5; }
.site-foot .foot-backed .gdm { height: 13px; } .site-foot .foot-backed .nv { height: 22px; } .site-foot .foot-backed .cdl { height: 20px; }
.site-foot .foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.site-foot .foot-col { display: flex; flex-direction: column; gap: 11px; }
.site-foot .foot-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #525F78; margin: 0 0 4px; }
.site-foot .foot-col a { color: #C3CEE0; text-decoration: none; font-size: 14px; transition: color .15s ease; }
.site-foot .foot-col a:hover { color: #EAF0FA; }
.site-foot .foot-bottom { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 22px; }
.site-foot .foot-bottom .cp { font-size: 12.5px; color: #6B7A96; }
.site-foot .foot-bottom a { color: #8A99B5; text-decoration: none; font-size: 13px; }
.site-foot .foot-bottom a:hover { color: #EAF0FA; }
.site-foot .foot-bottom .foot-sec { margin-left: auto; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: #525F78; }

/* ── sticky nav — slides in past the hero, keeps the CTA at hand ── */
.snav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 60px;
  display: flex; align-items: center; gap: 36px; padding: 0 48px;
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(9,9,11,0.07);
  transform: translateY(-100%); transition: transform .32s cubic-bezier(.3,.7,.3,1);
}
.snav.on { transform: none; }
.snav .sn-brand { display: flex; }
.snav .sn-brand img { height: 34px; }
.snav .sn-links { display: flex; gap: 26px; }
.snav .sn-links a { font-size: 14px; color: #3F3F46; text-decoration: none; transition: color .15s ease; }
.snav .sn-links a:hover { color: #09090B; }
.snav .sn-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.snav .sbtn {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  border-radius: 8px; padding: 8px 15px; border: 1px solid transparent; transition: background .15s ease;
}
.snav .sbtn.ghost { background: transparent; color: #3F3F46; border-color: #E4E4E7; }
.snav .sbtn.ghost:hover { background: #F4F4F5; }
.snav .sbtn.primary { background: #2684FF; color: #fff; }
.snav .sbtn.primary:hover { background: #006ADF; }

/* ── headline / audience tweaks ──
   Copy variants are swapped in place by site-tweaks-v2.js (single variant ships
   in the HTML, so crawlers see one clean H1 / sub / proof line — no hidden
   duplicate content). No display:none variant rules needed here anymore. */

/* ── scroll reveal (JS adds .rv; without JS everything is simply visible) ── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.7,.3,1); transition-delay: var(--rvd, 0ms); }
  .rv.rv-in { opacity: 1; transform: none; }
}

/* ── responsive ── */

/* ← site-sections.css · shared part of the responsive block */
@media (max-width: 980px) {
  .sec .wrap { padding: 72px 24px; }
  .snav { padding: 0 20px; gap: 18px; }
  .snav .sn-links { display: none; }
  .motif-mark { display: none; }
  .site-foot .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .site-foot .wrap { padding: 44px 24px 28px; }
}
