/* =========================================================================
   SCOFIT — Premium B2B Fintech Infrastructure Design System
   PM2 Final Brief — Productized platform, Navy/Blue identity, SVG icons.
   All assets used with RELATIVE paths (works on any host / file:// preview).
   ========================================================================= */

/* -------------------------------------------------------------------------
   0. DESIGN TOKENS  (PM2 §37 colour system)
   ------------------------------------------------------------------------- */
:root {
  --navy: #011922;            /* Primary Navy (B2C logo-dark) */
  --navy-2: #01141d;          /* darker section */
  --blue: #27c2f3;            /* Primary Cyan (B2C accent) */
  --blue-600: #00aded;
  --blue-700: #1293c9;
  --blue-50: #f2fbff;
  --blue-100: #eaf7ff;

  --bg: #f5f5ff;              /* Background (B2C light) */
  --surface: #FFFFFF;
  --text: #1b1b3a;            /* Primary text (B2C ink) */
  --text-2: #6b6b93;          /* Secondary text (B2C muted) */
  --text-3: #8a8aad;
  --border: #e6e6ff;

  --green: #34e5a6;
  --green-bg: #e8fbf3;
  --amber: #ffb84d;
  --red: #EF4444;

  --shadow-sm: 0 1px 2px rgba(1,25,34,.05);
  --shadow-md: 0 4px 14px rgba(1,25,34,.07);
  --shadow-lg: 0 14px 40px rgba(1,25,34,.12);
  --shadow-blue: 0 10px 28px rgba(39,194,243,.24);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;

  --container: 1200px;
  --nav-h: 74px;
}

/* -------------------------------------------------------------------------
   1. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
::selection { background: var(--blue-100); color: var(--blue-700); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* SVG icon defaults (Lucide-style line icons) */
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   2. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--bg); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
/* Bare soft/navy sections (no .section class) still need vertical spacing
   so content never sits flush against adjacent sections or the footer. */
.section--soft:not(.section), .section--navy:not(.section) { padding: 96px 0; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 6px 12px; border-radius: var(--r-full); margin-bottom: 16px;
}
.section--navy .eyebrow { background: rgba(39,194,243,.14); color: #9be0f5; border-color: rgba(39,194,243,.3); }
.section-head h2 { margin-top: 8px; }
.section--navy .section-head h2 { color: #fff; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--text-2); }
.section--navy .section-head p { color: #a8c9db; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 14px 22px;
  border-radius: var(--r-md); border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: linear-gradient(120deg, #27c2f3, #34e5a6); color: #01141d; box-shadow: 0 10px 30px rgba(39,194,243,.35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(52,229,166,.4); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { border-color: var(--text-3); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--white { background: #fff; color: var(--blue); }

/* -------------------------------------------------------------------------
   3. NAVIGATION — sticky, with Platform mega-menu (PM2 §12-13)
   ------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(1,25,34,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo-img { display: block; height: 68px; width: auto; }
.nav__logo .mark { display: grid; place-items: center; width: 34px; height: 34px; background: linear-gradient(135deg,var(--navy),var(--blue)); border-radius: 9px; color: #fff; font-size: 17px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; padding: 10px 13px; font-weight: 500; font-size: 15px;
  color: #c7dde8; border-radius: 8px; transition: color .15s ease, background .15s ease;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

/* Dropdown containers */
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 560px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 18px; display: none; z-index: 50;
  transform-origin: top left;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; }
.nav__item:hover > .dropdown, .nav__item.open > .dropdown { display: grid; animation: dropdownIn .18s ease; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Platform mega-menu: 5 columns */
.mega { grid-template-columns: repeat(5, 1fr); min-width: 900px; gap: 16px; }
.mega__col h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; font-weight: 700; padding: 0 8px; }
.mega__col a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; transition: background .15s ease; }
.mega__col a:hover { background: var(--bg); }
.mega__col a .m-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.mega__col a b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.mega__col a span { font-size: 12px; color: var(--text-2); display: block; white-space: nowrap; }

/* Standard menu (Products / Solutions / Resources / Company) */
.menu { grid-template-columns: 1fr 1fr; min-width: 480px; }
.menu__col h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 10px 8px; font-weight: 700; }
.menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; transition: background .15s ease; }
.menu a:hover { background: var(--bg); }
.menu a b { font-size: 15px; font-weight: 600; color: var(--text); }
.menu a span { font-size: 13px; color: var(--text-2); white-space: nowrap; }

/* Mobile nav */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .25s ease; }
.nav__burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2){ opacity: 0; }
.nav__burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--surface); z-index: 90; padding: 20px 24px; display: none; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu .mm-group { margin-bottom: 14px; }
.mobile-menu .mm-group h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.mobile-menu a { display: block; padding: 12px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--bg); color: var(--text); }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* -------------------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------------------- */
.hero { padding: 96px 0 84px; position: relative; overflow: hidden; background: var(--surface); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(640px 440px at 88% 8%, rgba(39,194,243,.08), transparent 60%),
    radial-gradient(520px 420px at 6% 92%, rgba(1,25,34,.06), transparent 60%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100); padding: 6px 13px; border-radius: var(--r-full); margin-bottom: 22px;
}
.hero h1 { color: var(--navy); }
.hero h1 .grad { background: linear-gradient(100deg, var(--navy) 15%, var(--blue) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 22px; font-size: 1.18rem; color: var(--text-2); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__sub-link { margin-top: 18px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

/* Hero technical visualization */
.hero-viz { position: relative; }
.viz {
  background: var(--navy); border-radius: var(--r-xl); padding: 30px 26px; color: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden;
}
.viz::before { content: ""; position: absolute; inset: 0; opacity: .3; background: radial-gradient(420px 320px at 50% 0%, rgba(39,194,243,.4), transparent 70%); pointer-events: none; }
.viz-top { text-align: center; position: relative; }
.viz-core { display: inline-block; font-weight: 800; letter-spacing: .12em; font-size: 14px; padding: 8px 20px; border: 1px solid rgba(39,194,243,.5); border-radius: var(--r-md); background: rgba(39,194,243,.12); }
.viz-pipe { width: 1px; height: 26px; margin: 4px auto; background: linear-gradient(to bottom, rgba(39,194,243,.6), rgba(255,255,255,.15)); }
.viz-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; position: relative; }
.viz-card2 { text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 12px 8px; background: rgba(255,255,255,.03); }
.viz-card2 .vt { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.viz-card2 .vc { font-size: 11px; color: #a8c9db; margin-top: 4px; }
.viz-node { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 7px 0; font-size: 12px; color: #d7ecf4; }
.viz-node .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.5);} 70%{box-shadow:0 0 0 7px rgba(16,185,129,0);} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0);} }
.viz-float { position: absolute; font-family: var(--mono); font-size: 12px; color: var(--navy); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; box-shadow: var(--shadow-md); animation: floaty 4.5s ease-in-out infinite; }
.viz-float--1 { top: -12px; right: 8px; }
.viz-float--2 { bottom: 30px; right: -10px; }
@keyframes floaty { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-7px);} }

/* -------------------------------------------------------------------------
   5. CAPABILITY STRIP  (PM2 §16)
   ------------------------------------------------------------------------- */
.strip { background: var(--navy); color: #fff; padding: 34px 0; }
.strip__label { text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #9be0f5; font-weight: 700; margin-bottom: 22px; }
.strip__row { display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; }
.strip__chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #d7ecf4; }
.strip__chip .ch { color: #9be0f5; font-weight: 700; }
.strip__count { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.strip__count .n { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.strip__count .l { font-size: 14px; color: #a8c9db; }

/* -------------------------------------------------------------------------
   6. PROBLEM / HOW IT WORKS  (PM2 §17)
   ------------------------------------------------------------------------- */
.problem-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.problem { position: relative; padding: 40px 32px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.problem__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 20px; }
.problem__num { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.problem h3 { margin-top: 10px; font-size: 1.5rem; }
.problem p { margin-top: 10px; color: var(--text-2); font-size: 1.02rem; }

/* -------------------------------------------------------------------------
   7. PLATFORM — 6 product families  (PM2 §18)
   ------------------------------------------------------------------------- */
.family-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.family-grid--tight { grid-template-columns: repeat(4,1fr); gap: 16px; }
.family-grid--tight .family { padding: 20px 18px; gap: 12px; min-height: 0; }
.family-grid--tight .family h3 { font-size: 1.05rem; }
.family-grid--tight .f-desc { font-size: 13.5px; }
.family {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 34px 30px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.family:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.family__head { display: flex; justify-content: space-between; align-items: center; }
.family__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg,var(--navy),var(--blue)); color: #fff; transition: transform .25s ease; }
.family:hover .family__ic { transform: scale(1.06) rotate(-4deg); }
.family__arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-3); transition: all .25s ease; }
.family:hover .family__arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.family h3 { font-size: 1.25rem; }
.family .f-desc { color: var(--text-2); font-size: 15px; flex-grow: 1; }
.family .f-meta { display: flex; align-items: center; justify-content: space-between; }
.family .f-count { font-size: 12px; font-weight: 600; color: var(--text-2); }
.family .f-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); font-size: 14.5px; }
.family .f-link .arrow { transition: transform .2s ease; }
.family:hover .f-link .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   8. LENDING LIFECYCLE — 11 stages  (PM2 §19)
   ------------------------------------------------------------------------- */
.lc-tabs { display: grid; grid-template-columns: repeat(11,1fr); gap: 6px; }
.lc-tab { position: relative; padding: 12px 4px; text-align: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); transition: all .2s ease; font-weight: 600; }
.lc-tab .n { display: block; font-size: 10px; color: var(--text-3); font-weight: 700; }
.lc-tab .t { display: block; font-size: 12px; margin-top: 2px; color: var(--text); }
.lc-tab:hover { border-color: var(--blue-100); background: var(--blue-50); }
.lc-tab.active { background: var(--blue); border-color: var(--blue); box-shadow: var(--shadow-blue); }
.lc-tab.active .n, .lc-tab.active .t { color: #fff; }
.lc-panel { display: none; margin-top: 26px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; background: var(--surface); }
.lc-panel.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lc-panel h3 { font-size: 1.4rem; }
.lc-panel > p { color: var(--text-2); margin-top: 8px; max-width: 540px; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lc-chips span { font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.lc-chips span b { color: var(--blue-600); }

/* -------------------------------------------------------------------------
   9. CREDIT INTELLIGENCE WORKFLOW  (PM2 §7)
   ------------------------------------------------------------------------- */
.credit-flow { display: flex; flex-direction: column; align-items: center; }
.cf-step { display: flex; align-items: center; gap: 14px; padding: 14px 24px; min-width: 300px; justify-content: flex-start; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-weight: 600; transition: transform .2s ease, border-color .2s ease; }
.cf-step:hover { transform: translateX(4px); border-color: var(--blue); }
.cf-step .n { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.cf-pipe { width: 1px; height: 20px; background: var(--blue-100); }

/* Credit module chips */
.module-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 24px; }
.module { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.module .m-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.module b { display: block; font-size: 15px; }
.module a b { color: var(--blue); }
.module a b:hover { text-decoration: underline; }
.module span { font-size: 13px; color: var(--text-2); }
.module--link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.module--link b { color: var(--blue); }
.module--link:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.module--link:hover b { text-decoration: underline; }
.module.hidden { display: none; }
.cats-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cats-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); transition: border-color .15s, color .15s; }
.cats-nav a b { font-weight: 700; color: var(--blue); }
.cats-nav a:hover { border-color: var(--blue); color: var(--blue); }
.catsub { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.catsub:first-of-type { margin-top: 4px; }

/* -------------------------------------------------------------------------
   10. UNDERWRITE formula  (PM2 §9)
   ------------------------------------------------------------------------- */
.uw-stack { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.uw-chip { padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); font-weight: 600; font-size: 14px; }
.uw-chip.plus { border: none; color: var(--text-3); font-weight: 700; padding: 0 4px; }
.uw-chip.result { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }

/* -------------------------------------------------------------------------
   11. CODE BLOCKS / DEVELOPER
   ------------------------------------------------------------------------- */
.dev { background: var(--navy); color: #fff; }
.dev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.code-block { background: #01141d; border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); overflow: hidden; font-family: var(--mono); font-size: 13.5px; box-shadow: var(--shadow-lg); }
.code-block__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.09); }
.code-block__bar .dotc { width: 10px; height: 10px; border-radius: 50%; }
.code-block__bar .dotc--r { background: #EF4444; }
.code-block__bar .dotc--y { background: #F59E0B; }
.code-block__bar .dotc--g { background: #10B981; }
.code-block__bar .t { margin-left: 8px; font-size: 12px; color: var(--text-3); }
.code-block pre { padding: 20px; overflow-x: auto; color: #d3eaf6; line-height: 1.7; }
.code-block .c-key { color: #93d0f5; }
.code-block .c-str { color: #86EFAC; }
.code-block .c-cmt { color: #64748B; }

/* API playground */
.playground { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.playground__bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--bg); flex-wrap: wrap; }
.playground__bar .method { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); padding: 3px 10px; border-radius: 6px; }
.playground__bar code { font-family: var(--mono); font-size: 14px; color: var(--text); }
.playground__lang { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.playground__lang button { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.playground__lang button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.playground__body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.playground__pane { padding: 18px; }
.playground__pane + .playground__pane { border-left: 1px solid var(--border); }
.playground__pane h5 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.playground__pane pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--text-2); overflow-x: auto; }
.playground__actions { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   12. TIERS / PRICING
   ------------------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tier { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px 32px; background: var(--surface); position: relative; display: flex; flex-direction: column; }
.tier--featured { border-color: var(--blue); box-shadow: var(--shadow-blue); }
.tier--featured::before { content: "MOST POPULAR"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 12px; border-radius: var(--r-full); }
.tier h3 { font-size: 1.2rem; }
.tier .t-desc { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.tier .t-price { font-size: 1.9rem; font-weight: 800; margin-top: 20px; letter-spacing: -0.02em; color: var(--navy); }
.tier .t-price small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.tier ul { margin-top: 22px; flex-grow: 1; }
.tier ul li { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--text-2); }
.tier ul li .chk { color: var(--green); font-weight: 700; }
.tier .btn { margin-top: 24px; width: 100%; }

/* -------------------------------------------------------------------------
   13. API CATALOGUE
   ------------------------------------------------------------------------- */
.api-toolbar { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.api-search { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.api-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.api-search input { border: none; outline: none; flex: 1; font-size: 15px; background: transparent; color: var(--text); }
.filter-chip { padding: 8px 16px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: all .15s ease; }
.filter-chip:hover { border-color: var(--blue-100); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.api-count { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }
.api-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.api-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.api-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.api-card .ac-cat { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); background: var(--blue-50); color: var(--blue-700); text-transform: uppercase; letter-spacing: .04em; align-self: flex-start; }
.api-card h3 { font-size: 1.08rem; }
.api-card p { font-size: 14px; color: var(--text-2); }
.api-card .ac-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.api-card .ac-method { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--green); }
.api-card .ac-link { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.api-card.hidden { display: none; }
.no-results { display: none; text-align: center; padding: 60px 0; color: var(--text-2); }

/* -------------------------------------------------------------------------
   14. PAGE HERO (inner)
   ------------------------------------------------------------------------- */
.page-hero { padding: 68px 0 54px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero--navy { background: var(--navy); color: #fff; border-bottom: none; }
.page-hero--navy h1, .page-hero--navy p, .page-hero--navy .crumb a { color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--navy); }
.page-hero p { margin-top: 16px; color: var(--text-2); font-size: 1.125rem; max-width: 640px; }
.page-hero--navy p { color: #a8c9db; }
.crumb { font-size: 13px; color: var(--text-2); margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { color: var(--text-3); }

/* -------------------------------------------------------------------------
   15. SECURITY / contact / legal / misc
   ------------------------------------------------------------------------- */
.sec-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.sec-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; background: var(--surface); }
.sec-card .sc-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; }
.sec-card h3 { font-size: 1.05rem; }
.sec-card p { font-size: 14px; color: var(--text-2); margin-top: 6px; }

.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 28px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-item .chk { color: var(--green); font-weight: 700; margin-top: 2px; }
.check-item p { font-size: 15px; color: var(--text-2); }
.check-item b { color: var(--text); }

.form-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; background: var(--surface); }
.ci-card h3 { font-size: 1.05rem; }
.ci-card p, .ci-card a { font-size: 14.5px; color: var(--text-2); margin-top: 6px; display: block; }

/* Contact page (expanded form) */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form h3 { margin-bottom: 6px; color: var(--navy); }
.contact-form .form-field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.contact-form .btn { width: 100%; margin-top: 4px; }

/* Long-form two-column prose */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cols2 .col { font-size: 15.5px; color: var(--text-2); line-height: 1.75; }
.cols2 .col p + p { margin-top: 16px; }
.cols2 .col h3, .article-col h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.article-col { max-width: 860px; }
.article-col p { font-size: 15.5px; color: var(--text-2); line-height: 1.8; }
.article-col p + p { margin-top: 16px; }

/* Stat row (small counters) */
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
.stat .n { font-size: 2rem; font-weight: 800; color: var(--blue); }
.stat .l { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

/* API search field */
.api-search { width: 100%; max-width: 560px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 15px; font-family: inherit; box-shadow: var(--shadow-sm); }
.api-search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }

.legal-content { max-width: 780px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 48px; }
.legal-content h2 { font-size: 1.4rem; margin: 34px 0 12px; color: var(--navy); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal-content p, .legal-content li { font-size: 15px; color: var(--text-2); line-height: 1.8; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content code { background: var(--bg); padding: 2px 6px; border-radius: 5px; font-family: var(--mono); font-size: 13.5px; }
.legal-table { overflow-x: auto; margin: 18px 0; }
.legal-table table { width: 100%; border-collapse: collapse; background: var(--surface); }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; font-size: 14px; line-height: 1.5; border: 1px solid var(--border); }
.legal-table th { background: var(--bg); color: var(--navy); font-weight: 700; }
.legal-table td { color: var(--text-2); }
.thin-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.thin-contact__row { display: flex; gap: 14px; align-items: flex-start; }
.thin-contact__row b { display: block; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.thin-contact__row p, .thin-contact__row a { font-size: 14px; line-height: 1.55; margin: 0; color: var(--text-2); }
.thin-contact__row a:hover { color: var(--blue); text-decoration: underline; }
.thin-contact__row .m-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; background: var(--blue-50); color: var(--blue);
}
.section--navy:has(.thin-contact) { padding: 76px 0; }
.section--navy .thin-contact__row b { color: #fff; }
.section--navy .thin-contact__row p, .section--navy .thin-contact__row a { color: rgba(255,255,255,.8); }
.section--navy .thin-contact__row a:hover { color: var(--blue); }
.section--navy .thin-contact__row .m-ic { background: rgba(39,194,243,.14); color: var(--blue); }

.cta-banner { background: linear-gradient(120deg, var(--navy) 0%, #01222e 60%, var(--blue) 130%); border-radius: var(--r-xl); padding: 64px 56px; color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; }
.cta-banner p { margin: 14px auto 32px; max-width: 540px; opacity: .9; font-size: 1.1rem; color: #d7ecf4; }

/* Solution / flow */
.flow-stack { display: flex; flex-direction: column; align-items: center; }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 14px 26px; min-width: 290px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-weight: 600; transition: transform .2s ease, border-color .2s ease; }
.flow-step:hover { transform: translateX(4px); border-color: var(--blue); }
.flow-step .fs-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.flow-pipe { width: 1px; height: 20px; background: var(--blue-100); }

/* Resource article */
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 56px; max-width: 820px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 12px; color: var(--navy); }
.article h2:first-of-type { margin-top: 0; }
.article h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.article p, .article li { font-size: 15.5px; color: var(--text-2); line-height: 1.8; }
.article ul { padding-left: 20px; list-style: disc; margin-top: 8px; }
.article ul li { margin-bottom: 6px; }
.article .lead { font-size: 1.15rem; color: var(--text); }

/* -------------------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------------------- */
.footer { background: var(--navy); color: #9ec6d8; padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 32px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer ul li { margin-bottom: 11px; }
.footer ul li a { font-size: 14.5px; transition: color .15s ease; }
.footer ul li a:hover { color: #fff; }
.footer__brand .footer__logo-img { display: block; height: 76px; width: auto; margin-bottom: 16px; opacity: .98; }
.footer__brand p { font-size: 14px; max-width: 250px; }
.footer__brand .m-ic { font-size: 13.5px; }
.footer__brand .f-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #9ec6d8; }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer__bottom a { color: #9ec6d8; }
.footer__bottom a:hover { color: #fff; }

/* -------------------------------------------------------------------------
   17. PM3 PREMIUM HOMEPAGE — animated infra, rhythm, depth
   ------------------------------------------------------------------------- */

/* Hero: layered technical background + animated infrastructure */
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 520px at 86% -4%, rgba(39,194,243,.12), transparent 62%),
    radial-gradient(600px 460px at 2% 100%, rgba(1,25,34,.06), transparent 60%),
    radial-gradient(400px 300px at 60% 40%, rgba(39,194,243,.04), transparent 70%);
}
.hero__copy { position: relative; }
.hero__support { margin-top: 14px; font-size: 1.02rem; color: var(--text-2); max-width: 560px; }
.hero__trust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--text-2); }
.hero__trust .ht b { color: var(--navy); }
.hero__trust .sep { color: var(--text-3); }
.glow.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; display: inline-block; vertical-align: middle; }

/* Infrastructure diagram */
.hero-viz { position: relative; }
.infra {
  position: relative; background: var(--navy); border-radius: var(--r-xl); padding: 30px 26px;
  color: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.infra__glow { content: ""; position: absolute; inset: 0; background: radial-gradient(480px 360px at 50% 0%, rgba(39,194,243,.45), transparent 70%); pointer-events: none; }
.infra__core { text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.infra__logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,var(--blue),#7ad8f0); display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 0 24px rgba(39,194,243,.6); }
.infra__title { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: #c6e7f5; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.infra__title small { font-size: 9px; letter-spacing: .34em; font-weight: 600; color: #83c9e8; }
.infra__conn { width: 100%; height: 40px; display: block; position: relative; }
.cl { fill: none; stroke: rgba(39,194,243,.9); stroke-width: 1.4; stroke-dasharray: 8 7; animation: flow 2.4s linear infinite; }
.cl2 { fill: none; stroke: rgba(122,162,255,.5); stroke-width: 1; }
@keyframes flow { to { stroke-dashoffset: -30; } }
.infra__row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; position: relative; }
.node { text-align: center; padding: 14px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); background: rgba(255,255,255,.04); position: relative; transition: all .25s ease; }
.node__ic { width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 10px; display: grid; place-items: center; color: #9be0f5; background: rgba(39,194,243,.18); }
.node__t { font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.node__s { font-size: 10.5px; color: #9ec6d8; margin-top: 3px; }
.node--on { border-color: rgba(122,162,255,.5); box-shadow: 0 0 20px rgba(39,194,243,.25); }
.node--on .node__ic { color: #fff; background: var(--blue); }
.infra__deep { display: flex; flex-direction: column; gap: 10px; position: relative; }
.deep-node { position: relative; height: 40px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden; display: flex; align-items: center; }
.deep-node__fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(39,194,243,.35), rgba(39,194,243,.05)); }
.deep-node__l { position: relative; padding-left: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: #d7ecf4; }
.deep-node__p { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: pulse 1.8s infinite; }
/* moving data packets along connectors */
.pkt { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #7ad8f0; box-shadow: 0 0 10px #7ad8f0; opacity: 0; }
.pkt--1 { position:absolute; left: 6%; top: 38%; animation: packet 3s linear infinite; }
.pkt--2 { left: 88%; top: 47%; animation: packet 3.6s linear .8s infinite; }
.pkt--3 { left: 50%; top: 30%; animation: packet 2.6s linear .4s infinite; }
.pkt--4 { left: 30%; top: 70%; animation: packet 4s linear 1.2s infinite; }
@keyframes packet { 0%{ transform: translateY(0); opacity: 0;} 10%{opacity:1;} 90%{opacity:1;} 100%{ transform: translateY(60px); opacity:0;} }
.req { position: absolute; font-family: var(--mono); font-size: 11px; color: #a8c9db; background: rgba(11,30,51,.9); border: 1px solid rgba(122,162,255,.3); border-radius: 8px; padding: 5px 9px; box-shadow: var(--shadow-md); animation: floaty 4.5s ease-in-out infinite; }
.req b { color: #7dd3fc; }
.req .d { display:inline-block; width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:6px; }
.req--1 { top: -10px; right: 6px; }
.req--2 { bottom: 8px; left: 6px; animation-delay: 1s; }
.badge { position:absolute; font-size:11px; font-weight:700; letter-spacing:.06em; color:#fff; background:var(--blue); border-radius:var(--r-full); padding:5px 11px; box-shadow:var(--shadow-blue); }
.badge--1 { top: 26px; left: 14px; }
.badge--2 { bottom: -8px; right: 18px; background: var(--navy-2); border:1px solid rgba(122,162,255,.4); }

/* Capability strip (dark infra zone) */
.cap-strip { background: var(--navy); color: #fff; padding: 44px 0 38px; position: relative; overflow: hidden; }
.cap-strip::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 240px at 50% 0, rgba(39,194,243,.3), transparent 70%); }
.cap-strip__label { text-align:center; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:#9be0f5; font-weight:700; margin-bottom:30px; position:relative; }
.cap-strip__counts { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; max-width:820px; margin:0 auto 30px; position:relative; text-align:center; }
.cnt { border-left:1px solid rgba(255,255,255,.12); padding:4px 24px; }
.cnt:first-child { border-left:none; }
.cnt__n { font-size: clamp(1.9rem,3.4vw,2.6rem); font-weight:800; color:#fff; letter-spacing:-.02em; }
.cnt--alt .cnt__n { color:#9be0f5; }
.cnt__l { font-size:14px; font-weight:600; color:#d7ecf4; margin-top:2px; }
.cnt__note { font-size:12px; color:#8A94A6; margin-top:2px; }
.cap-strip__row { display:flex; justify-content:center; gap:10px 22px; flex-wrap:wrap; position:relative; }
.cap-strip .chip { font-size:13px; color:#d7ecf4; }
.cap-strip .chip b { color:#9be0f5; font-weight:700; }

/* Why Scofit */
.why-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.why { border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.04); border-radius:var(--r-lg); padding:28px 26px; transition:transform .25s ease, border-color .25s ease; }
.why:hover { transform:translateY(-4px); border-color:rgba(122,162,255,.4); }
.why--lead { grid-column: 1 / -1; position: relative; background: linear-gradient(150deg, rgba(39,194,243,.16), rgba(1,25,34,.4)); border-color: rgba(122,162,255,.35); padding:34px 32px; }
.why__tag { display:inline-block; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#9be0f5; font-weight:700; margin-bottom:8px; }
.why__flow { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:20px; padding:16px 18px; background:rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.08); border-radius:12px; }
.why__flow span { font-family:var(--mono); font-size:12.5px; letter-spacing:.08em; color:#fff; font-weight:700; }
.why__flow i { flex:1; min-width:18px; height:1px; background:linear-gradient(90deg, rgba(122,162,255,.6), rgba(39,194,243,.1)); position:relative; }
.why__flow i::after { content:""; position:absolute; right:0; top:-3px; width:7px; height:7px; border-radius:50%; background:var(--blue); box-shadow:0 0 8px rgba(39,194,243,.8); }
.why__leadnote { margin-top:14px; font-size:13px; color:#9be0f5; font-weight:600; }
.why__ic { width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:rgba(39,194,243,.2);color:#9be0f5;margin-bottom:16px; }
.why h3 { font-size:1.08rem; color:#fff; }
.why p { font-size:14px; color:#a8c9db; margin-top:8px; }

/* Platform: featured + mini grid */
.platform-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:stretch; }
.featured { position:relative; display:flex; flex-direction:column; gap:16px; padding:34px 32px; border:1px solid var(--blue-100); border-radius:var(--r-lg); background:linear-gradient(160deg,var(--blue-50),var(--surface) 55%); transition:transform .25s ease, box-shadow .25s ease; }
.featured:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.featured__top { display:flex; justify-content:space-between; align-items:center; }
.featured__label { display:inline-flex; align-items:center; gap:10px; font-weight:700; color:var(--navy); }
.fbadge { font-size:11px; font-weight:700; letter-spacing:.06em; background:var(--blue); color:#fff; padding:4px 10px; border-radius:var(--r-full); }
.featured__go { width:34px;height:34px;border-radius:50%;border:1px solid var(--border);display:grid;place-items:center;color:var(--text-3);background:var(--surface); }
.featured:hover .featured__go { background:var(--blue); border-color:var(--blue); color:#fff; }
.featured h3 { font-size:1.6rem; color:var(--navy); }
.featured__sub { color:var(--text-2); font-size:15px; }
.flow { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px; }
.flow__item { font-size:13px; font-weight:600; padding:9px 14px; border:1px solid var(--border); border-radius:var(--r-full); background:var(--surface); color:var(--text); display:inline-flex; align-items:center; gap:7px; }
.flow__item .fdot { width:7px; height:7px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 3px var(--blue-100); }
.flow__item--risk { background:var(--navy); border-color:var(--navy); color:#fff; }
.flow__item--risk .fdot { background:#fff; box-shadow:none; }
.flow__arrow { color:var(--blue); display:inline-flex; }
.featured__foot { margin-top:auto; font-weight:600; color:var(--blue); }
.featured .arrow { transition: transform .2s ease; }
.featured:hover .arrow { transform: translateX(3px); }
.family-grid--mini { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
.family-grid--mini .family { padding:26px 24px; gap:12px; }
.family-grid--mini .family h3 { font-size:1.08rem; }
.family .family__go { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--blue); font-size:14px; margin-top:auto; padding-top:8px; }
.family:hover .family__go { transform: translateX(3px); }

/* Lending lifecycle: rail + rich panel */
.lc-stage { display:grid; grid-template-columns: 200px 1fr; gap:26px; margin-top:26px; align-items:stretch; }
.lc-stage__rail { border:1px solid var(--border); border-radius:var(--r-lg); padding:22px 18px; background:var(--bg); display:flex; flex-direction:column; gap:12px; }
.rail-step { display:flex; align-items:center; gap:10px; font-size:13.5px; font-weight:600; color:var(--text-2); }
.rs-d { width:9px; height:9px; border-radius:50%; background:var(--border); border:2px solid var(--surface); box-shadow:0 0 0 1px var(--border); }
.rail-step.rail-step--on { color:var(--blue); }
.rail-step--on .rs-d { background:var(--blue); box-shadow:0 0 0 3px var(--blue-100); }
.rail-cap { margin-top:auto; padding-top:16px; border-top:1px solid var(--border); font-size:11px; font-weight:700; letter-spacing:.1em; color:var(--blue); }
.lc-pane-wrap { position:relative; }
.lc-panel { display:none; border:1px solid var(--border); border-radius:var(--r-lg); padding:40px; background:var(--surface); height:100%; }
.lc-panel.active { display:block; animation:fadeUp .3s ease; }
.lc-stage-tag { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.1em; color:var(--blue); background:var(--blue-50); padding:4px 10px; border-radius:var(--r-full); margin-bottom:14px; }
.lc-panel h3 { font-size:1.5rem; }
.lc-panel > p { color:var(--text-2); margin-top:8px; max-width:540px; }
.lc-data { margin-top:20px; font-size:13px; color:var(--text-2); display:flex; align-items:center; gap:8px; }
.lc-data b { color:var(--text); }
.lcd-dot { width:7px;height:7px;border-radius:50%;background:var(--blue); }
.lc-list { display:flex; flex-direction:column; gap:12px; margin-top:20px; }
.ll { font-size:13.5px; font-weight:600; color:var(--text); display:grid; grid-template-columns:150px 1fr; gap:14px; align-items:center; }
.llb { display:block; height:8px; border-radius:var(--r-full); background:linear-gradient(90deg,var(--blue),#9db8ff); opacity:.85; }
.lc-result { margin-top:22px; font-size:14px; font-weight:600; color:var(--green); border-top:1px solid var(--border); padding-top:16px; }

/* Credit intelligence visual (demo data) */
.credit-vis { display:grid; grid-template-columns: 1.25fr 1fr 1fr; gap:22px; align-items:stretch; margin-top:10px; }
.credit-card { background:linear-gradient(160deg,#01141d,#01141d); border:1px solid rgba(122,162,255,.25); border-radius:var(--r-lg); padding:26px 24px; color:#fff; box-shadow:var(--shadow-lg); }
.cc-head { display:flex; justify-content:space-between; align-items:center; font-size:11px; letter-spacing:.1em; font-weight:700; color:#9be0f5; }
.cc-demo { color:#8A94A6; font-size:10px; letter-spacing:.08em; border:1px solid rgba(255,255,255,.15); padding:3px 8px; border-radius:var(--r-full); }
.cc-score-row { display:flex; gap:26px; margin-top:22px; align-items:center; }
.cc-score__n { font-size:3rem; font-weight:800; letter-spacing:-.02em; color:#fff; line-height:1; }
.cc-score__l { font-size:12px; color:#9ec6d8; margin-top:6px; }
.cc-bars { flex:1; display:flex; flex-direction:column; gap:12px; }
.cb { font-size:11.5px; color:#d7ecf4; display:grid; grid-template-columns:120px 1fr; gap:10px; align-items:center; }
.cb-l { text-align:right; }
.cb-r { background:rgba(255,255,255,.08); height:7px; border-radius:var(--r-full); display:block; overflow:hidden; }
.cb-r i { display:block; height:100%; background:linear-gradient(90deg,var(--blue),#7ad8f0); border-radius:var(--r-full); }
.credit-flow { display:flex; flex-direction:column; justify-content:center; gap:14px; }
.cf-step { text-align:center; font-weight:700; letter-spacing:.06em; padding:18px 14px; border:1px solid rgba(255,255,255,.15); border-radius:var(--r-md); color:#fff; background:rgba(255,255,255,.05); display:flex; flex-direction:column; align-items:center; gap:10px; font-size:13px; }
.cf-step--last { background:rgba(39,194,243,.25); border-color:rgba(122,162,255,.5); }
.cf-dot { width:10px;height:10px;border-radius:50%;background:#7ad8f0;box-shadow:0 0 10px #7ad8f0; }
.cf-arrow { text-align:center; color:#7ad8f0; }
.credit-vis .credit-api { align-self:center; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; padding:24px 20px; border:1px solid rgba(122,162,255,.3); border-radius:var(--r-lg); background:rgba(39,194,243,.12); }
.credit-api .ca-ic { width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--blue);color:#fff;box-shadow:var(--shadow-blue); }
.credit-api b { display:block; color:#fff; font-size:15px; }
.credit-api span { font-size:12px; color:#9be0f5; }

/* Architecture section */
.arch { max-width:640px; margin:10px auto 0; border:1px solid var(--border); border-radius:var(--r-xl); padding:40px 30px; background:var(--surface); text-align:center; box-shadow:var(--shadow-md); position:relative; }
.arch__row { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; }
.arch .src { font-size:13px; font-weight:600; padding:9px 18px; border:1px solid var(--border); border-radius:var(--r-full); background:var(--bg); color:var(--text); display:inline-flex; align-items:center; gap:8px; }
.sr-dot { width:7px;height:7px;border-radius:50%;background:var(--text-3); }
.arch__pipe { width:1px; height:26px; background:linear-gradient(to bottom,var(--blue-100),var(--blue)); margin:6px auto; }
.arch__core { display:inline-block; font-weight:800; letter-spacing:.1em; font-size:13px; padding:10px 26px; border:1px solid var(--blue); border-radius:var(--r-md); background:var(--navy); color:#fff; box-shadow:var(--shadow-blue); }
.arch .out { font-size:13px; font-weight:700; letter-spacing:.05em; padding:9px 16px; border:1px solid var(--blue-100); border-radius:var(--r-full); color:var(--blue-700); background:var(--blue-50); }
.arch__base { display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:700; letter-spacing:.08em; padding:12px 22px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--bg); color:var(--text); }
.b-dot { width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(16,185,129,.2); }

/* Build the stack (replaces pricing) */
.stack-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.stack { border:1px solid var(--border); border-radius:var(--r-lg); padding:36px 32px; background:var(--surface); display:flex; flex-direction:column; gap:14px; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.stack:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--blue-100); }
.stack--featured { border-color:var(--blue); box-shadow:var(--shadow-blue); }
.stack__ic { width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff; }
.stack h3 { font-size:1.3rem; }
.stack p { color:var(--text-2); font-size:15px; flex-grow:1; }
.stack .btn { align-self:flex-start; }

/* Developer points + code tabs */
.dev__points { display:flex; flex-direction:column; gap:9px; }
.dp { font-size:14.5px; color:#d7ecf4; display:flex; align-items:center; gap:9px; }
.chkd { color:var(--green); font-weight:700; }
.code-block__bar .tabs { margin-left:auto; display:flex; gap:2px; }
.code-block__bar .tab { font-size:12px; font-weight:600; padding:4px 10px; border-radius:6px; color:var(--text-3); cursor:pointer; }
.code-block__bar .tab.active, .code-block__bar .tab:hover { background:rgba(255,255,255,.08); color:#fff; }
.code-block .c-num { color:#fbbf24; }
.code-block__actions { display:flex; gap:10px; padding:12px 16px; border-top:1px solid rgba(255,255,255,.09); flex-wrap:wrap; }
.cc-btn { font-family:var(--font); font-size:12.5px; font-weight:600; padding:8px 14px; border-radius:8px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#d7ecf4; transition:all .15s ease; }
.cc-btn:hover { background:var(--blue); border-color:var(--blue); color:#fff; }
.cc-btn--link { border:none; background:none; color:#9be0f5; }
.cc-btn--link:hover { background:none; color:#fff; }

/* Security & Data Protection 8-pillar grid */
.sec-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.sec { border:1px solid var(--border); border-radius:var(--r-lg); padding:26px 24px; background:var(--surface); transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.sec:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--blue-100); }
.sec .sc-ic { width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:var(--blue-50);color:var(--blue);margin-bottom:14px; }
.sec h3 { font-size:1.02rem; }
.sec p { font-size:13.5px; color:var(--text-2); margin-top:6px; }

/* -------------------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__grid, .dev__grid, .form-grid { grid-template-columns: 1fr; }
  .family-grid, .problem-grid, .tiers, .family-grid--tight { grid-template-columns: repeat(2,1fr); }
  .mega { display: none !important; }        /* mega menu off on smaller screens */
  .menu { display: none !important; }
  .nav__links { display: none; }
  .nav__cta .btn--desktop { display: none; }
  .nav__burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .section--soft:not(.section), .section--navy:not(.section) { padding: 64px 0; }
  .lc-tabs { grid-template-columns: repeat(6,1fr); }
  .api-list { grid-template-columns: 1fr; }
  .playground__body { grid-template-columns: 1fr; }
  .playground__pane + .playground__pane { border-left: none; border-top: 1px solid var(--border); }
  .stats-row { grid-template-columns: repeat(3,1fr); }
  .platform-grid, .lc-stage, .credit-vis { grid-template-columns: 1fr; }
  .why-grid, .stack-grid, .sec-grid { grid-template-columns: repeat(2,1fr); }
  .lc-stage__rail { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .rail-cap { margin: 0 0 0 auto; border-top: none; padding-top: 0; }
}
@media (max-width: 620px) {
  .family-grid, .problem-grid, .tiers, .sec-cards, .module-grid, .family-grid--tight { grid-template-columns: 1fr; }
  .lc-tabs { grid-template-columns: repeat(3,1fr); }
  .container { padding-inline: 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-banner, .article, .legal-content, .form-card, .contact-form { padding: 28px 22px; }
  .form-grid2, .form-row, .cols2, .contact-grid, .stats-row { grid-template-columns: 1fr; }
  .why-grid, .stack-grid, .sec-grid, .family-grid--mini { grid-template-columns: 1fr; }
  .cap-strip__counts { grid-template-columns: 1fr; gap: 14px; }
  .cnt { border-left: none; border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0 0; }
  .cnt:first-child { border-top: none; }
  .infra__row { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: flex-start; }
  .flow__arrow { transform: rotate(90deg); }
  .cb { grid-template-columns: 90px 1fr; }
  .ll { grid-template-columns: 110px 1fr; }
  .code-block__bar .tabs { display: none; }
  .thin-contact { grid-template-columns: 1fr; gap: 24px; }
  .section--navy:has(.thin-contact) { padding: 56px 0; }
}

/* Scroll reveal + reduced motion */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; }
}

/* -------------------------------------------------------------------------
   18. PM4 — API MARKETPLACE + PRODUCT LAUNCH FLOW
   ------------------------------------------------------------------------- */
.api-mkt__search { position: relative; max-width: 720px; margin: 4px auto 12px; }
.api-mkt__search input {
  width: 100%; padding: 15px 18px 15px 46px; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-full);
  box-shadow: 0 1px 2px rgba(1,25,34,.04); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.api-mkt__search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.api-mkt__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.api-mkt__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 26px; }
.api-mkt__chips .chip { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: var(--r-full); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.api-mkt__chips .chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.api-mkt__chips .chip--on { background: var(--navy); border-color: var(--navy); color: #fff; }
.api-mkt__chips .chip--on:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.api-mkt__note { text-align: center; font-size: 13px; color: var(--text-2); margin: 0 0 22px; min-height: 20px; }
.api-mkt__note b { color: var(--navy); }
.api-mkt__grid--empty { display: none !important; }
.api-card--hidden { display: none !important; }
.api-mkt__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.api-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.api-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.api-card--featured { background: linear-gradient(160deg, #01141d, #01222e); border: none; color: #fff; justify-content: flex-start; }
.api-card--featured .api-card__tag { color: #9be0f5; }
.api-card--featured h3 { color: #fff; font-size: 20px; }
.api-card--featured p { color: #a8c9db; }
.api-card__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.api-card--featured .api-card__ic { background: rgba(39,194,243,.18); color: #9be0f5; }
.api-card h3 { font-size: 15.5px; font-weight: 700; }
.api-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.api-card__tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.api-card__endpoint { font-family: var(--mono); font-size: 12px; color: var(--text-3); background: var(--bg); border: 1px solid var(--border); padding: 6px 9px; border-radius: 8px; display: inline-block; align-self: flex-start; }
.api-card--featured .api-card__endpoint { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #9be0f5; }
.api-card__go { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 13.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* Product launch flow */
.launch { background: var(--navy); }
.launch__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: ls; }
.launch__step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg);
  padding: 22px 18px 20px; position: relative; color: #fff;
}
.launch__step::before { counter-increment: ls; content: "0" counter(ls); font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; display: block; margin-bottom: 10px; }
.launch__step h3 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.launch__step p { color: #9ec6d8; font-size: 13px; line-height: 1.5; }
.launch__arrow { position: absolute; right: -10px; top: 32px; color: rgba(255,255,255,.2); font-size: 15px; z-index: 2; }
.launch__cta { text-align: center; margin-top: 34px; }
@media (max-width: 1000px) {
  .api-mkt__grid { grid-template-columns: repeat(2, 1fr); }
  .api-card--featured { grid-row: auto; }
  .launch__steps { grid-template-columns: repeat(2, 1fr); }
  .launch__step:nth-child(n+5) { display: none; }
  .launch__arrow { display: none; }
}
@media (max-width: 620px) {
  .api-mkt__grid { grid-template-columns: 1fr; }
  .launch__steps { grid-template-columns: 1fr; }
  .launch__step:nth-child(n+4) { display: none; }
}

