/* ============================================================
   NDDEO — White-Label Smart Card Management
   Design tokens + global styles
   ============================================================ */

:root {
  /* Color */
  --ink:      #0B1020;
  --ink-1:    #0E1426;
  --ink-2:    #131B30;
  --ink-3:    #1B2540;
  --ink-line: #25304f;

  --paper:    #F6F8FC;
  --paper-2:  #FFFFFF;
  --line:     #E5E9F2;
  --line-2:   #D8DEEC;

  --text:     #0D1426;
  --muted:    #57617A;
  --muted-2:  #818BA3;
  --muted-d:  #9AA6C6;   /* muted text on dark */
  --muted-d2: #687296;

  --brand:    #2F5BFF;
  --brand-d:  #1E40E6;
  --brand-l:  #5C82FF;
  --accent:   #00D2B4;   /* mint / compliance */
  --accent-d: #00A88F;
  --warn:     #FF8A4C;

  --brand-soft: rgba(47,91,255,0.10);
  --accent-soft: rgba(0,210,180,0.12);

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1180px;
  --radius:   18px;
  --radius-s: 12px;
  --radius-l: 28px;
  --gap:      clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  --shadow-s: 0 1px 2px rgba(13,20,38,0.06), 0 2px 8px rgba(13,20,38,0.05);
  --shadow-m: 0 4px 12px rgba(13,20,38,0.07), 0 18px 44px rgba(13,20,38,0.10);
  --shadow-l: 0 12px 30px rgba(13,20,38,0.12), 0 40px 80px rgba(13,20,38,0.16);
  --shadow-brand: 0 18px 50px rgba(47,91,255,0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); }
::selection { background: var(--brand); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--brand);
  display: inline-block;
}
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 60ch; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.92rem 1.5rem; border-radius: 100px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--on-dark { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.btn--on-dark:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,248,252,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.03em; color: #fff; transition: color .25s ease; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-l) 60%, var(--accent) 130%);
  position: relative; box-shadow: 0 6px 16px rgba(47,91,255,0.35);
  flex: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 7px 6px auto 6px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.85);
}
.brand__mark::before {
  content: ""; position: absolute; left: 6px; bottom: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
}
.brand sup { font-size: 0.5em; color: var(--brand); font-family: var(--font-mono); font-weight: 500; top: -0.9em; }

/* Real logo lockup — transparent PNGs, swapped by nav scroll state */
.brand--logo { background: none; padding: 0; box-shadow: none; border: none; }
.brand__img { height: 34px; width: auto; display: block; }
.brand__img--dark { display: none; }
.nav.scrolled .brand__img--light { display: none; }
.nav.scrolled .brand__img--dark { display: block; }
.footer .brand--logo { display: inline-block; }
@media (max-width: 760px) { .brand__img { height: 28px; } }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.96rem; color: rgba(255,255,255,0.74); font-weight: 500; transition: color .15s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 0.8rem; }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.22); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* Nav default (transparent over dark hero) -> light controls */
.nav .nav__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.22); }
.nav .nav__cta .btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,0.55); }

/* Nav scrolled (light background) -> dark controls */
.nav.scrolled .brand { color: var(--text); }
.nav.scrolled .nav__links a { color: var(--muted); }
.nav.scrolled .nav__links a:hover { color: var(--text); }
.nav.scrolled .nav__burger { border-color: var(--line-2); }
.nav.scrolled .nav__burger span { background: var(--text); }
.nav.scrolled .nav__cta .btn--ghost { color: var(--text); border-color: var(--line-2); }
.nav.scrolled .nav__cta .btn--ghost:hover { color: var(--brand); border-color: var(--brand); }

/* Mobile dropdown is on a white panel -> always dark links */
.nav__links.open a { color: var(--text) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 540px at 78% -8%, rgba(47,91,255,0.30), transparent 60%),
    radial-gradient(680px 460px at 8% 110%, rgba(0,210,180,0.16), transparent 55%),
    linear-gradient(180deg, #0A0E1C 0%, #0B1020 60%, #0C1224 100%);
  color: #fff;
  padding-top: 150px;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(800px 500px at 70% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(800px 500px at 70% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.3rem); margin-top: 1.4rem;
  letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-l), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { color: var(--muted-d); font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-top: 1.5rem; max-width: 52ch; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__trust { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center; }
.hero__trust span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-d2); display: inline-flex; align-items: center; gap: 0.5rem; letter-spacing: 0.02em; }
.hero__trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* Hero visual: smart card + CMS panel */
.hero__visual { position: relative; height: 480px; }
.cms-panel {
  position: absolute; top: 36px; right: 0; width: 100%; max-width: 480px;
  background: linear-gradient(180deg, #0F1730, #0C1326);
  border: 1px solid var(--ink-line); border-radius: var(--radius-l);
  box-shadow: 0 40px 90px rgba(0,0,0,0.5); padding: 18px; overflow: hidden;
}
.cms-panel__bar { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-3); margin-bottom: 14px; }
.cms-panel__bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #2C3960; }
.cms-panel__bar i:nth-child(1){ background:#FF5F57; } .cms-panel__bar i:nth-child(2){ background:#FEBC2E; } .cms-panel__bar i:nth-child(3){ background:#28C840; }
.cms-panel__bar span { margin-left: auto; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-d2); }
.cms-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,0.025); margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.04); }
.cms-row__ic { width: 34px; height: 34px; border-radius: 9px; flex: none; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-l); }
.cms-row__ic svg { width: 17px; height: 17px; }
.cms-row__t { font-size: 0.82rem; color: #E7ECF7; font-weight: 600; }
.cms-row__s { font-size: 0.7rem; color: var(--muted-d2); font-family: var(--font-mono); }
.cms-row__badge { margin-left: auto; font-family: var(--font-mono); font-size: 0.64rem; padding: 4px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); letter-spacing: 0.04em; }
.cms-row__badge.blue { background: var(--brand-soft); color: var(--brand-l); }

.smart-card {
  position: absolute; left: -18px; bottom: 6px; width: 290px; aspect-ratio: 1.586; z-index: 3;
  border-radius: 18px; padding: 20px;
  background: linear-gradient(135deg, #2540B8 0%, #2F5BFF 45%, #1C2C8F 100%);
  box-shadow: 0 30px 60px rgba(20,32,110,0.6); color: #fff; overflow: hidden;
  transform: rotate(-7deg);
}
.smart-card::after { content:""; position:absolute; inset:0; background: radial-gradient(120px 80px at 85% 12%, rgba(255,255,255,0.28), transparent 70%); }
.smart-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.smart-card__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1rem; }
.smart-card__brand sup { font-size: 0.55em; opacity: 0.7; }
.smart-card__chip { width: 38px; height: 28px; border-radius: 7px; margin-top: 26px; background: linear-gradient(135deg,#F4D38A,#C99A3E); position: relative; }
.smart-card__chip::before, .smart-card__chip::after { content:""; position:absolute; background: rgba(0,0,0,0.18); }
.smart-card__chip::before { inset: 9px 0; height: 1px; } .smart-card__chip::after { inset: 0 18px; width: 1px; }
.smart-card__num { font-family: var(--font-mono); letter-spacing: 0.12em; font-size: 0.82rem; margin-top: 14px; opacity: 0.92; }
.smart-card__foot { display:flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; font-family: var(--font-mono); font-size: 0.6rem; opacity: 0.78; letter-spacing: 0.05em; }
.smart-card__wave { position:absolute; right: 16px; bottom: 18px; width: 22px; height: 22px; opacity: 0.85; }

.float-chip {
  position: absolute; z-index: 4; background: rgba(13,19,40,0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--ink-line); border-radius: 12px; padding: 9px 13px;
  display: flex; align-items: center; gap: 9px; box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}
.float-chip__d { width: 8px; height: 8px; border-radius: 50%; }
.float-chip__t { font-size: 0.72rem; color: #fff; font-weight: 600; }
.float-chip__s { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted-d2); }
.float-chip.fc1 { top: 0; right: 30px; }
.float-chip.fc2 { bottom: 60px; right: -6px; }

@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }
.smart-card { animation: floaty 6s ease-in-out infinite; }
.float-chip.fc1 { animation: floaty 5s ease-in-out infinite .4s; }
.float-chip.fc2 { animation: floaty 7s ease-in-out infinite .9s; }

/* ============================================================
   MARQUEE / TRUST STRIP
   ============================================================ */
.strip { background: var(--ink); color: #fff; padding-block: clamp(2rem, 4vw, 2.6rem); border-top: 1px solid var(--ink-3); }
.strip__label { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-d2); margin-bottom: 1.4rem; }
.strip__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.4rem, 4vw, 3.4rem); }
.strip__item { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); color: #C3CCE4; letter-spacing: -0.01em; opacity: 0.9; display: inline-flex; align-items: center; gap: 0.6rem; }
.strip__item small { font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; color: var(--muted-d2); letter-spacing: 0.1em; }

/* ============================================================
   STAT BAND
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper-2); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2vw, 1.8rem); }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; color: var(--text); display: flex; align-items: baseline; gap: 2px; }
.stat__n .u { color: var(--brand); font-size: 0.55em; }
.stat__l { color: var(--muted); font-size: 0.92rem; margin-top: 0.45rem; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--paper-2); }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.problem-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  background: linear-gradient(180deg, #fff, #FBFCFE); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.problem-card__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,138,76,0.12); color: var(--warn); margin-bottom: 1.1rem; }
.problem-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.problem-card p { color: var(--muted); font-size: 0.98rem; }
.problem-card .tag { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--warn); letter-spacing: 0.06em; }

/* ============================================================
   PAIN -> SOLUTION (two column rows)
   ============================================================ */
.painsol { background: var(--paper); }
.ps-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.ps-row { display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: center; gap: 1.5rem; padding: 1.4rem 1.7rem; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.ps-row:last-child { border-bottom: none; }
.ps-row:hover { background: #FAFBFE; }
.ps-pain { display: flex; align-items: center; gap: 0.85rem; }
.ps-pain__ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: rgba(255,138,76,0.12); color: var(--warn); display: grid; place-items: center; }
.ps-pain__t b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--text); font-weight: 600; }
.ps-pain__t span { font-size: 0.86rem; color: var(--muted-2); }
.ps-arrow { color: var(--line-2); }
.ps-sol { display: flex; align-items: center; gap: 0.7rem; font-size: 0.97rem; color: var(--text); }
.ps-sol .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent); color: #04221d; display: grid; place-items: center; }
.ps-sol .tick svg { width: 13px; height: 13px; }
.ps-sol b { color: var(--brand); font-weight: 600; }

/* ============================================================
   SOLUTION / CAPABILITIES
   ============================================================ */
.solution { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.solution::before { content:""; position:absolute; top:-30%; right:-10%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(47,91,255,0.22), transparent 65%); pointer-events:none; }
.solution .section-head h2 { color: #fff; }
.solution .section-head p { color: var(--muted-d); }
.solution .eyebrow { color: var(--accent); } .solution .eyebrow::before { background: var(--accent); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cap {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(47,91,255,0.5); background: linear-gradient(180deg, rgba(47,91,255,0.10), rgba(255,255,255,0.015)); }
.cap__ic { width: 48px; height: 48px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-l); display: grid; place-items: center; margin-bottom: 1.1rem; }
.cap__ic svg { width: 23px; height: 23px; }
.cap h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.55rem; }
.cap p { color: var(--muted-d); font-size: 0.94rem; }
.cap--wide { grid-column: span 3; display: flex; align-items: center; gap: 1.5rem; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(110deg, rgba(47,91,255,0.16), rgba(0,210,180,0.08)); border-color: rgba(47,91,255,0.4); }
.cap--wide .l { display: flex; align-items: center; gap: 1.2rem; }

/* ============================================================
   HOW WE FIT (stack diagram)
   ============================================================ */
.fit { background: var(--paper-2); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.fit-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.fit-copy p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.fit-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; list-style: none; padding: 0; }
.fit-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1rem; }
.fit-list .tick { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }
.fit-list .tick svg { width: 13px; height: 13px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack__layer { border-radius: 14px; padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 1rem; position: relative; }
.stack__layer .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.stack__layer .name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.stack__layer .meta { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.7; }
.stack__nddeo { background: linear-gradient(110deg, var(--brand), var(--brand-l)); color: #fff; box-shadow: var(--shadow-brand); transform: scale(1.04); z-index: 2; }
.stack__nddeo .badge { position:absolute; top:-10px; right: 14px; background: var(--accent); color: #04221d; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.06em; }
.stack__infra { background: var(--paper); border: 1px dashed var(--line-2); color: var(--muted); }
.stack__connector { text-align: center; color: var(--line-2); }

/* ============================================================
   COMPARISON MATRIX
   ============================================================ */
.compare { background: var(--paper); }
.matrix { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-s); }
.matrix__head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.matrix__head > div { padding: 1.3rem 1.6rem; font-family: var(--font-display); font-weight: 600; }
.mh-feature { color: var(--muted); font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; align-self: center; }
.mh-comp { color: var(--muted); border-left: 1px solid var(--line); }
.mh-nddeo { background: linear-gradient(180deg, var(--brand), var(--brand-d)); color: #fff; display: flex; align-items: center; gap: 0.55rem; }
.mh-nddeo .pill { font-family: var(--font-mono); font-size: 0.6rem; background: var(--accent); color: #04221d; padding: 3px 8px; border-radius: 20px; letter-spacing: 0.05em; }
.matrix__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); }
.matrix__row > div { padding: 1.1rem 1.6rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.96rem; }
.mr-feature { font-weight: 600; color: var(--text); }
.mr-comp { color: var(--muted); border-left: 1px solid var(--line); font-size: 0.9rem; }
.mr-nddeo { background: rgba(47,91,255,0.04); border-left: 1px solid rgba(47,91,255,0.18); color: var(--text); font-weight: 500; }
.mr-comp .x { color: var(--muted-2); width: 18px; height: 18px; flex: none; }
.mr-nddeo .check { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent); color: #04221d; display: grid; place-items: center; }
.mr-nddeo .check svg { width: 12px; height: 12px; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits { background: var(--paper-2); }
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ben { padding: 1.7rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; }
.ben:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.ben__n { font-family: var(--font-mono); font-size: 0.74rem; color: var(--brand); letter-spacing: 0.1em; }
.ben h3 { font-size: 1.2rem; margin: 0.8rem 0 0.5rem; }
.ben p { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   PARTNERS (target)
   ============================================================ */
.partners { background: var(--paper); }
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.partner { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; background: var(--paper-2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.partner:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-m); }
.partner__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.partner h4 { font-size: 1.02rem; line-height: 1.2; }
.partner p { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ============================================================
   CASE SCENARIOS
   ============================================================ */
.cases { background: var(--ink); color: #fff; }
.cases .section-head h2 { color: #fff; } .cases .section-head p { color: var(--muted-d); }
.cases .eyebrow { color: var(--accent); } .cases .eyebrow::before { background: var(--accent); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.case { border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 1.7rem; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); position: relative; overflow: hidden; }
.case__tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.case h3 { color: #fff; font-size: 1.25rem; margin: 0.9rem 0; }
.case p { color: var(--muted-d); font-size: 0.96rem; }
.case__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--ink-3); }
.case__meta .t { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }
.case__meta .l { font-size: 0.8rem; color: var(--muted-d2); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi { background: var(--paper-2); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; background: var(--paper); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--brand); opacity: 0.25; height: 1.4rem; }
.quote p { font-size: 1.02rem; color: var(--text); margin: 0.6rem 0 1.4rem; flex: 1; text-wrap: pretty; }
.quote__who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1rem; }
.quote__who b { display: block; font-size: 0.92rem; color: var(--text); }
.quote__who span { font-size: 0.82rem; color: var(--muted); }
.placeholder-note { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); text-align: center; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact::before { content:""; position:absolute; bottom:-30%; left:-5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,210,180,0.16), transparent 65%); pointer-events:none; }
.contact::after { content:""; position:absolute; top:-25%; right:-5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(47,91,255,0.22), transparent 65%); pointer-events:none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact .eyebrow { color: var(--accent); } .contact .eyebrow::before { background: var(--accent); }
.contact h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-top: 1rem; }
.contact__lead { color: var(--muted-d); font-size: 1.08rem; margin-top: 1rem; max-width: 42ch; }
.contact__items { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__item { display: flex; align-items: center; gap: 1rem; }
.contact__item .ic { width: 46px; height: 46px; border-radius: 12px; flex: none; background: rgba(255,255,255,0.06); border: 1px solid var(--ink-line); display: grid; place-items: center; color: var(--brand-l); }
.contact__item .ic svg { width: 20px; height: 20px; }
.contact__item .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-d2); }
.contact__item .val { font-size: 1.02rem; color: #fff; font-weight: 500; }
.contact__item a.val:hover { color: var(--accent); }

.form-card { background: var(--paper-2); border-radius: var(--radius-l); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: 0 40px 90px rgba(0,0,0,0.4); }
.form-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--text); margin-bottom: 0.3rem; }
.form-card__sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  padding: 0.8rem 0.95rem; border: 1px solid var(--line-2); border-radius: 11px; background: #FBFCFE;
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card .btn { width: 100%; margin-top: 0.4rem; }
.form-note { font-size: 0.76rem; color: var(--muted-2); margin-top: 0.9rem; text-align: center; }
.form-msg { display: none; padding: 0.85rem 1rem; border-radius: 11px; font-size: 0.9rem; margin-bottom: 1rem; align-items: center; gap: 0.6rem; }
.form-msg.ok { display: flex; background: var(--accent-soft); color: var(--accent-d); border: 1px solid rgba(0,210,180,0.3); }
.form-msg.err { display: flex; background: rgba(255,95,87,0.1); color: #D63A33; border: 1px solid rgba(255,95,87,0.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #070A14; color: #fff; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--ink-3); }
.footer__brand p { color: var(--muted-d2); font-size: 0.94rem; margin-top: 1rem; max-width: 34ch; }
.footer__col h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-d2); margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--muted-d); font-size: 0.92rem; margin-bottom: 0.7rem; transition: color .15s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; }
.footer__bottom p { color: var(--muted-d2); font-size: 0.84rem; font-family: var(--font-mono); }
.footer__bottom .links { display: flex; gap: 1.4rem; }
.footer__bottom .links a { color: var(--muted-d2); font-size: 0.84rem; }
.footer__bottom .links a:hover { color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .smart-card, .float-chip { animation: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; max-width: 480px; margin-top: 1rem; }
  .fit-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap--wide { grid-column: span 2; }
  .case-grid, .testi-grid, .ben-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 0.5rem 0; box-shadow: var(--shadow-m); }
  .nav__links.open a { padding: 0.9rem clamp(1.2rem,4vw,2.5rem); width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; } .cap--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .matrix__head > div, .matrix__row > div { padding: 0.9rem 1rem; font-size: 0.85rem; }
  .ps-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .ps-arrow { display: none; }
  .case-grid, .testi-grid, .ben-grid, .partner-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 1.6rem; }
  .field--row { grid-template-columns: 1fr; }
  .smart-card { width: 230px; }
}

/* ============================================================
   ============================================================
   MULTI-PAGE SYSTEM  —  added for the 9-section site structure
   (Platform / Solutions / Industries / Partners / Pricing /
    Resources / Company / Contact)
   ============================================================
   ============================================================ */

/* ---------- NAV: dropdown menus ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__links > a, .nav__top { font-size: 0.96rem; font-weight: 500; }
.nav__top { display: inline-flex; align-items: center; gap: 0.32rem; color: rgba(255,255,255,0.74); transition: color .15s ease; cursor: pointer; }
.nav__top:hover { color: #fff; }
.nav.scrolled .nav__top { color: var(--muted); }
.nav.scrolled .nav__top:hover { color: var(--text); }
.nav__top .chev { width: 10px; height: 10px; opacity: 0.55; transition: transform .2s ease; }
.nav__item:hover .chev { transform: rotate(180deg); }

.nav__links .is-active > a, .nav__links a.is-active { color: #fff; }
.nav.scrolled .nav__links .is-active > a, .nav.scrolled .nav__links a.is-active { color: var(--brand); }
.nav__links .is-active > a::after, .nav__links a.is-active::after {
  content: ""; display: block; height: 2px; border-radius: 2px; margin-top: 5px; background: var(--accent);
}

.nav__drop {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px); padding-top: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav__panel {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-l); padding: 0.7rem; display: grid; gap: 2px; min-width: 300px;
}
.nav__panel--2 { grid-template-columns: 1fr 1fr; min-width: 560px; }
.nav__drop a { display: block; padding: 0.6rem 0.8rem; border-radius: 12px; color: var(--text) !important; transition: background .15s ease; }
.nav__drop a:hover { background: var(--brand-soft); }
.nav__drop b { display: block; font-family: var(--font-display); font-size: 0.93rem; font-weight: 600; letter-spacing: -0.012em; }
.nav__drop span { display: block; font-size: 0.77rem; color: var(--muted-2); margin-top: 2px; line-height: 1.35; }
.nav__panel .nav__all { grid-column: 1 / -1; margin-top: 4px; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.nav__panel .nav__all a { font-family: var(--font-mono); font-size: 0.76rem; color: var(--brand) !important; letter-spacing: 0.04em; }

/* ---------- PAGE HERO (inner pages) ---------- */
.phero {
  position: relative; color: #fff; overflow: hidden;
  padding-top: 142px; padding-bottom: clamp(3rem, 6vw, 4.6rem);
  background:
    radial-gradient(760px 440px at 82% -12%, rgba(47,91,255,0.28), transparent 62%),
    radial-gradient(560px 380px at 4% 112%, rgba(0,210,180,0.14), transparent 58%),
    linear-gradient(180deg, #0A0E1C 0%, #0B1020 70%, #0C1224 100%);
}
.phero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(760px 420px at 75% 10%, #000 0%, transparent 78%);
  mask-image: radial-gradient(760px 420px at 75% 10%, #000 0%, transparent 78%);
  pointer-events: none;
}
.phero > .container { position: relative; }
.phero .eyebrow { color: var(--accent); }
.phero .eyebrow::before { background: var(--accent); }
.phero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -0.032em; line-height: 1.05; margin-top: 1.1rem; max-width: 21ch; }
.phero__lead { color: var(--muted-d); font-size: clamp(1.02rem, 1.4vw, 1.18rem); margin-top: 1.2rem; max-width: 62ch; text-wrap: pretty; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.phero__facts { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; margin-top: 2.2rem; }
.phero__facts span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-d2); display: inline-flex; align-items: center; gap: 0.5rem; }
.phero__facts .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.crumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted-d2); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--muted-d2); transition: color .15s ease; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: 0.45; }
.crumb b { color: #fff; font-weight: 500; }

/* ---------- STICKY IN-PAGE ANCHOR BAR ---------- */
.anchors {
  position: sticky; top: 74px; z-index: 60;
  background: rgba(246,248,252,0.90);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.anchors__row { display: flex; gap: 0.4rem; overflow-x: auto; padding-block: 0.7rem; scrollbar-width: none; }
.anchors__row::-webkit-scrollbar { display: none; }
.anchors__row a {
  flex: none; font-size: 0.86rem; font-weight: 500; color: var(--muted);
  padding: 0.5rem 0.9rem; border-radius: 100px; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap;
}
.anchors__row a:hover { color: var(--text); background: #fff; border-color: var(--line); }
.anchors__row a.here { color: var(--brand); background: var(--brand-soft); border-color: rgba(47,91,255,0.22); }
.anchor-h, :target { scroll-margin-top: 142px; }

/* ---------- FEATURE BLOCK (alternating copy / visual) ---------- */
.fblock { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.2rem); align-items: center; }
.fblock + .fblock { margin-top: clamp(3.5rem, 7vw, 6rem); }
.fblock--flip .fblock__copy { order: 2; }
.fblock__copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 0.9rem; }
.fblock__copy h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin-top: 0.9rem; }
.fblock__copy > p { color: var(--muted); font-size: 1.04rem; margin-top: 1rem; max-width: 56ch; text-wrap: pretty; }
.fblock__note { margin-top: 1.5rem; padding: 0.9rem 1.1rem; border-radius: 13px; background: var(--brand-soft); border: 1px solid rgba(47,91,255,0.18); font-size: 0.93rem; color: var(--text); }
.fblock__note b { color: var(--brand); }
.section--ink .fblock__copy h2, .section--ink .fblock__copy h3 { color: #fff; }
.section--ink .fblock__copy > p { color: var(--muted-d); }

/* ---------- TICK LIST ---------- */
.flist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.flist li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.99rem; color: var(--text); }
.flist .tick { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.flist .tick svg { width: 12px; height: 12px; }
.flist b { font-weight: 600; }
.flist span { color: var(--muted); }
.flist--2 { grid-template-columns: 1fr 1fr; gap: 0.75rem 1.4rem; }
.flist--dark li { color: #E7ECF7; }
.flist--dark .tick { background: rgba(0,210,180,0.14); color: var(--accent); }
.flist--dark span { color: var(--muted-d); }

/* ---------- GENERIC CARD GRIDS ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  background: var(--paper-2); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.card--link:hover { border-color: var(--brand); }
.card__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.05rem; flex: none; }
.card__ic svg { width: 22px; height: 22px; }
.card__ic--mint { background: var(--accent-soft); color: var(--accent-d); }
.card__ic--warn { background: rgba(255,138,76,0.12); color: var(--warn); }
.card h3 { font-size: 1.14rem; margin-bottom: 0.5rem; }
.card h4 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__kicker { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.7rem; }
.card__more { margin-top: auto; padding-top: 1.1rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--brand); display: inline-flex; align-items: center; gap: 0.4rem; }
.card__more svg { width: 13px; height: 13px; transition: transform .2s ease; }
.card:hover .card__more svg { transform: translateX(3px); }
.card--dark { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); border-color: var(--ink-line); }
.card--dark:hover { border-color: rgba(47,91,255,0.5); }
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p { color: var(--muted-d); }
.card--dark .card__ic { background: var(--brand-soft); color: var(--brand-l); }

/* ---------- TRUST MODEL FLOW (Bank > BIN Sponsor > Processor > NDDEO > Customers) ---------- */
.flow { display: flex; align-items: stretch; }
.flow__node {
  flex: 1 1 0; min-width: 0; text-align: center;
  border: 1px solid var(--line); background: var(--paper-2);
  border-radius: var(--radius-s); padding: 1.15rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.28rem; justify-content: center; position: relative;
}
.flow__node .lbl { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.flow__node .name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; }
.flow__node .sub { font-size: 0.79rem; color: var(--muted); }
.flow__node--us {
  background: linear-gradient(135deg, var(--brand), var(--brand-l)); color: #fff;
  border-color: transparent; box-shadow: var(--shadow-brand); z-index: 2; transform: scale(1.06);
}
.flow__node--us .lbl { color: rgba(255,255,255,0.72); }
.flow__node--us .sub { color: rgba(255,255,255,0.88); }
.flow__node--us .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #04221d; font-family: var(--font-mono); font-size: 0.56rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.06em; white-space: nowrap; }
.flow__arrow { flex: 0 0 36px; display: grid; place-items: center; color: var(--line-2); }
.flow__arrow svg { width: 18px; height: 18px; }
.flow__cap { text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-2); margin-top: 1.4rem; }
.flow--dark .flow__node { background: rgba(255,255,255,0.035); border-color: var(--ink-line); color: #fff; }
.flow--dark .flow__node .sub { color: var(--muted-d); }
.flow--dark .flow__node .lbl { color: var(--muted-d2); }
.flow--dark .flow__arrow { color: var(--ink-3); }
.flow--dark .flow__cap { color: var(--muted-d2); }

/* ---------- ARCHITECTURE LAYERS ---------- */
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer { border-radius: 15px; padding: 1.15rem 1.35rem; border: 1px solid var(--line); background: var(--paper-2); display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.layer__n { font-family: var(--font-mono); font-size: 0.68rem; color: var(--brand); letter-spacing: 0.1em; flex: none; width: 34px; }
.layer__t { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; flex: none; min-width: 172px; }
.layer__d { color: var(--muted); font-size: 0.92rem; flex: 1 1 260px; }
.layer--us { background: linear-gradient(110deg, rgba(47,91,255,0.10), rgba(0,210,180,0.06)); border-color: rgba(47,91,255,0.3); }
.layer--us .layer__t { color: var(--brand); }
.layer--infra { background: var(--paper); border-style: dashed; }
.layer--infra .layer__t { color: var(--muted); }

/* ---------- WALLET / ACCOUNT TREE ---------- */
.tree { font-family: var(--font-mono); font-size: 0.85rem; background: var(--ink-1); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 1.5rem 1.6rem; color: #D6DEF2; overflow-x: auto; }
.tree .ln { white-space: pre; display: block; line-height: 1.9; }
.tree .root { color: #fff; font-weight: 500; }
.tree .br { color: var(--muted-d2); }
.tree .cur { color: var(--accent); }
.tree .amt { color: var(--muted-d2); }
.tree .tag { color: var(--brand-l); }

/* ---------- SPEC / KEY-VALUE TABLE ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.spec__row { display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec__row:last-child { border-bottom: none; }
.spec__k { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.spec__v { font-size: 0.96rem; color: var(--text); }
.spec__v b { color: var(--brand); font-weight: 600; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.step { padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.step__n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-mono); font-size: 0.78rem; display: grid; place-items: center; margin-bottom: 1rem; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; margin-bottom: 0.45rem; letter-spacing: -0.015em; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step__when { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent-d); letter-spacing: 0.08em; margin-top: 0.85rem; display: block; }

/* ---------- PRICING ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.9rem 1.7rem;
  background: var(--paper-2); display: flex; flex-direction: column; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-m); }
.plan--featured::before {
  content: "Most chosen"; position: absolute; top: -12px; left: 1.7rem;
  background: var(--brand); color: #fff; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.08em; padding: 4px 11px; border-radius: 20px;
}
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.plan__for { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; min-height: 3.2em; }
.plan__price { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.plan__price .amt { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: -0.03em; display: block; }
.plan__price .per { font-family: var(--font-mono); font-size: 0.73rem; color: var(--muted-2); letter-spacing: 0.04em; }
.plan .flist { margin-top: 1.3rem; }
.plan .flist li { font-size: 0.93rem; }
.plan .btn { margin-top: auto; width: 100%; }
.plan__spacer { flex: 1; min-height: 1.6rem; }
.plan__foot { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.69rem; color: var(--muted-2); text-align: center; }
.price-note { margin-top: 1.8rem; font-size: 0.9rem; color: var(--muted); text-align: center; max-width: 72ch; margin-inline: auto; }

/* ---------- RESOURCES ---------- */
.res { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); padding: 1.6rem; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.res:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--brand); }
.res__type { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.res h3 { font-size: 1.1rem; margin: 0.7rem 0 0.5rem; line-height: 1.25; }
.res p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.res__meta { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.69rem; color: var(--muted-2); display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.res__meta .soon { color: var(--warn); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.03rem; letter-spacing: -0.015em;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #FAFBFE; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -5px;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq details > div { padding: 0 1.5rem 1.4rem; color: var(--muted); font-size: 0.97rem; max-width: 80ch; }
.faq details > div p + p { margin-top: 0.8rem; }

/* ---------- CTA BAND ---------- */
.ctaband { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ctaband::after { content: ""; position: absolute; top: -40%; right: -8%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(47,91,255,0.24), transparent 65%); pointer-events: none; }
.ctaband::before { content: ""; position: absolute; bottom: -45%; left: -8%; width: 560px; height: 560px; background: radial-gradient(circle, rgba(0,210,180,0.14), transparent 65%); pointer-events: none; }
.ctaband__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ctaband h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 19ch; }
.ctaband p { color: var(--muted-d); margin-top: 0.9rem; max-width: 46ch; font-size: 1.02rem; }
.ctaband .btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- MISC HELPERS ---------- */
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.section--ink .section-head h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .section-head p { color: var(--muted-d); }
.section--ink .eyebrow { color: var(--accent); }
.section--ink .eyebrow::before { background: var(--accent); }
.section--ink .subhead p { color: var(--muted-d); }
.section--ink .spec { background: rgba(255,255,255,0.03); border-color: var(--ink-line); }
.section--ink .spec__row { border-bottom-color: var(--ink-3); }
.section--ink .spec__v { color: #E7ECF7; }
.section--ink .spec__v b { color: var(--brand-l); }
.section--ink .fblock__copy h2, .section--ink .fblock__copy h3 { color: #fff; }
.section--ink .fblock__copy > p { color: var(--muted-d); }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 66ch; text-wrap: pretty; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.pill { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 0.42rem 0.85rem; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); background: var(--paper-2); }
.pill--on { border-color: rgba(47,91,255,0.28); background: var(--brand-soft); color: var(--brand); }
.pill--dark { border-color: var(--ink-line); background: rgba(255,255,255,0.04); color: var(--muted-d); }

.callout { border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 14px 14px 0; padding: 1.2rem 1.4rem; font-size: 1rem; }
.callout b { color: var(--brand); }
.callout--mint { border-left-color: var(--accent-d); background: var(--accent-soft); }
.callout--mint b { color: var(--accent-d); }
.section--ink .callout { background: rgba(47,91,255,0.12); color: #E7ECF7; }
.section--ink .callout b { color: var(--brand-l); }

.subhead { margin-bottom: 1.5rem; max-width: 70ch; }
.subhead h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.subhead p { color: var(--muted); margin-top: 0.6rem; }
.divider { height: 1px; background: var(--line); margin-block: clamp(3rem, 6vw, 5rem); border: none; }
.section--ink .divider { background: var(--ink-3); }

/* ---------- RESPONSIVE (multi-page additions) ---------- */
@media (max-width: 1080px) {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .fblock { grid-template-columns: 1fr; }
  .fblock--flip .fblock__copy { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow__node--us { transform: none; }
  .flow__arrow { flex: none; height: 32px; transform: rotate(90deg); }
  .spec__row { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (max-width: 760px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .flist--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .phero { padding-top: 120px; }
  .anchor-h, :target { scroll-margin-top: 130px; }
  .nav__links.open { max-height: calc(100vh - 74px); overflow-y: auto; }
  .nav__item { display: block; width: 100%; }
  .nav__top { width: 100%; justify-content: space-between; padding: 0.9rem clamp(1.2rem,4vw,2.5rem); color: var(--text) !important; }
  .nav__top .chev { opacity: 1; }
  .nav__drop { position: static; transform: none; padding-top: 0; opacity: 1; visibility: visible; pointer-events: auto; display: none; }
  .nav__item.open-sub .nav__drop { display: block; }
  .nav__item.open-sub .chev { transform: rotate(180deg); }
  .nav__panel { box-shadow: none; border: none; border-radius: 0; background: #F2F5FA; min-width: 0; padding: 0.35rem 0.4rem; grid-template-columns: 1fr !important; }
  .nav__drop a { padding: 0.6rem clamp(1.2rem,4vw,2.5rem); }
  .nav__drop span { display: none; }
  .nav__links .is-active > a::after, .nav__links a.is-active::after { display: none; }
  .ctaband__inner { flex-direction: column; align-items: flex-start; }
}
