/* NewMantic — site styles
   Theme: blue (Trust Bank–style) + green (Wise-style) + white, light card-based layout.
   Cross-browser target: latest Chrome, Safari, Edge, Firefox (covers 80%+ of usage). */

:root {
  /* Blue family — Trust Bank–style navy/blue */
  --navy-900: #0A2A55;
  --navy-800: #0E3568;
  --navy-700: #14417D;
  --blue: #1660D1;
  --blue-dark: #0F4CAA;
  --blue-soft: #E8F1FD;

  /* Green family — Wise-style green */
  --green: #00B67A;
  --green-dark: #009463;
  --green-soft: #E1F8EE;

  /* Neutrals */
  --ink: #0B2340;
  --text: #45566B;
  --muted: #64768C;
  --line: #E1E8F2;
  --bg: #FFFFFF;
  --bg-alt: #F2F6FC;
  --bg-tint: #EAFBF4;

  /* Status (kept separate from brand palette) */
  --danger: #D8483A;
  --danger-soft: #FCECEA;

  /* Primary brand aliases used throughout the file */
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-soft: var(--green-soft);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 4px rgba(10, 34, 64, .05), 0 12px 28px rgba(10, 34, 64, .07);
  --shadow-lg: 0 24px 60px rgba(10, 34, 64, .16);
  --max: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / cross-browser base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea {
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-900); color: #A9BACB; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow { color: #6FE0C0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section--navy .section-head p { color: #92A4B8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; flex: none; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(0, 182, 122, .30); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--outline { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: #041a38; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, padding .25s ease;
  padding: 18px 0;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 1px 2px rgba(10,34,64,.05); padding: 12px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { white-space: nowrap; flex: none; display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--ink); }
.brand__name span { color: var(--green); }
.brand__sub { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text); font-weight: 700; font-size: .95rem; transition: color .2s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--blue-dark); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--green); border-radius: 2px; }
.nav .btn { padding: 11px 22px; font-size: .9rem; white-space: nowrap; }
.nav__links a, .nav__links li { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) { .brand__sub { font-size: .58rem; letter-spacing: .08em; } .nav { gap: 12px; } .nav__links { gap: 14px; } .nav__links a { font-size: .84rem; } .nav .btn { padding: 10px 16px; font-size: .85rem; } }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(22,96,209,.12), transparent 62%),
    radial-gradient(700px 420px at 6% 102%, rgba(0,182,122,.12), transparent 60%),
    var(--bg);
  padding: 176px 0 120px;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__lead { font-size: 1.18rem; max-width: 560px; margin-bottom: 36px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); font-size: .85rem; font-weight: 700; margin-bottom: 28px;
}
.hero__badge b { background: var(--green); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; }

.hero__visual { position: relative; }
.momentum-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg);
}
.momentum-card__title { color: var(--ink); font-weight: 800; font-size: .95rem; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.momentum-card__title small { color: var(--green-dark); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.flow { display: grid; gap: 12px; }
.flow__step {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line);
}
.flow__step i { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; }
.flow__step:nth-child(1) i { background: var(--navy-700); }
.flow__step:nth-child(2) i { background: var(--blue); }
.flow__step:nth-child(3) i { background: var(--green-dark); }
.flow__step:nth-child(4) i { background: var(--green); }
.flow__step:nth-child(5) i { background: var(--navy-900); }
.flow__step strong { color: var(--ink); display: block; font-size: .95rem; }
.flow__step span { font-size: .82rem; color: var(--muted); }
.momentum-bar { margin-top: 20px; height: 6px; border-radius: 6px; background: var(--bg-alt); overflow: hidden; }
.momentum-bar div { height: 100%; width: 78%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 6px; }

/* Pillars strip */
.pillars { border-top: 1px solid var(--line); margin-top: 90px; padding-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.pillar strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.pillar span { font-size: .88rem; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CBDAF0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 22px;
}
.card:nth-child(even) .card__icon { background: var(--green-soft); color: var(--green-dark); }
.card__icon svg { width: 26px; height: 26px; }
.card__num { position: absolute; top: 28px; right: 30px; font-weight: 800; font-size: .85rem; color: #C4D2E4; letter-spacing: .06em; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card li { font-size: .9rem; color: var(--text); padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }

/* Products */
.products { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.products__side { display: grid; gap: 24px; }
.product {
  border-radius: 20px; padding: 40px; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.product h3 { color: var(--ink); font-size: 1.6rem; margin-bottom: 12px; }
.product--featured {
  background: linear-gradient(165deg, var(--bg-tint), #fff 60%);
  border-color: #CDEFDE;
  display: flex; flex-direction: column;
}
.product--featured h3 { font-size: 2.2rem; }
.product__tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.product__modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 32px; }
.module { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.module strong { color: var(--ink); display: block; font-size: .98rem; }
.module span { font-size: .84rem; color: var(--muted); }
.product__link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; margin-top: auto; }
.product__link svg { width: 18px; height: 18px; transition: transform .2s; }
.product__link:hover svg { transform: translateX(4px); }
.product__link.accent { color: var(--green-dark); }
.product p { margin-bottom: 20px; }

/* Approach */
.approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; }
.step__n { font-size: 2rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
.quote {
  position: sticky; top: 110px; background: var(--navy-900); color: #B9C8D8; border-radius: 20px; padding: 44px;
}
.quote p.big { font-size: 1.55rem; line-height: 1.35; color: #fff; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 26px; }
.quote p.big em { font-style: normal; color: #4FE3B0; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); font-size: .95rem; }
.chip svg { width: 18px; height: 18px; color: var(--blue-dark); }
.chip:nth-child(even) svg { color: var(--green-dark); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green), var(--blue)); border-radius: 24px; padding: 56px 60px; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.cta-band .btn { background: var(--navy-900); color: #fff; }
.cta-band .btn:hover { background: #041a38; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact__info { display: grid; gap: 18px; }
.info-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.info-item__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item small { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.info-item a, .info-item address { font-style: normal; color: var(--ink); font-weight: 700; word-break: break-word; }
.info-item a:hover { color: var(--blue-dark); }
.map { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); height: 220px; background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* NexFill demo panel (contact page) */
.nf-demo {
  margin-top: 24px; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(165deg, var(--bg-tint), #fff 65%); border: 1px solid #CDEFDE;
}
.nf-demo h3 { margin-bottom: 8px; }
.nf-demo > p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.nf-demo__channels { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.nf-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: border-color .2s, background .2s, transform .15s;
}
.nf-chip svg { width: 17px; height: 17px; color: var(--green-dark); flex: none; }
.nf-chip:hover { border-color: var(--green); background: var(--green-soft); }
.nf-chip:active { transform: scale(.97); }
.nf-chip[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.nf-chip.is-active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.nf-demo__status {
  min-height: 24px; font-size: .9rem; font-weight: 700; color: var(--green-dark);
  display: flex; align-items: center; gap: 8px;
}
.nf-demo__status.is-working::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none;
  animation: nf-pulse 1s ease-in-out infinite;
}
.nf-demo__status.is-done { color: #0A7A57; }
.nf-demo__status.is-done::before { content: "\2713"; color: #0A7A57; font-size: 1rem; }
@keyframes nf-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.field.nf-filling input, .field.nf-filling select, .field.nf-filling textarea {
  border-color: var(--green); background: var(--green-soft);
  transition: background .25s ease, border-color .25s ease;
}
@media (prefers-reduced-motion: reduce) { .nf-demo__status.is-working::before { animation: none; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.field label span { color: var(--green-dark); }
.field input, .field select, .field textarea {
  font-size: 1rem; /* 16px — prevents iOS Safari auto-zoom on focus */
  color: var(--ink); padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg-alt); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364768C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); background: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 24px; }
.consent input { -webkit-appearance: checkbox; appearance: checkbox; margin-top: 4px; accent-color: var(--green); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--green-dark); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form__status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-weight: 700; font-size: .93rem; display: none; }
.form__status.ok { display: block; background: var(--green-soft); color: #0A7A57; }
.form__status.err { display: block; background: var(--danger-soft); color: #A6362A; }

/* Footer */
.footer { background: var(--navy-900); color: #8395AA; padding: 72px 0 32px; font-size: .93rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 18px; }
.footer .brand__name, .footer .brand__sub { color: #fff; }
.footer .brand__sub { color: #8FA1B6; }
.footer__tagline { font-weight: 700; color: #C7D2DE; font-style: italic; }
.footer__bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer address { font-style: normal; line-height: 1.7; }

/* Sub-page hero */
.page-hero { background: var(--bg-alt); padding: 168px 0 84px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 820px; }
.page-hero p.lead { font-size: 1.15rem; max-width: 680px; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.breadcrumb a:hover { color: var(--blue-dark); }

/* NexFill page */
.nf-hero { background: linear-gradient(180deg, var(--bg-tint), #fff 70%); }
.nf-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.nf-diagram { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.nf-diagram__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.nf-src { font-size: .72rem; font-weight: 700; color: var(--ink); text-align: center; padding: 10px 4px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); }
.nf-arrow { text-align: center; color: var(--blue-dark); font-size: 1.2rem; line-height: 1; margin: 6px 0 12px; }
.nf-core { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nf-core div { padding: 16px; border-radius: 12px; }
.nf-core strong { display: block; color: #fff; }
.nf-core span { font-size: .8rem; color: rgba(255,255,255,.85); }
.nf-core .c1 { background: var(--navy-700); }
.nf-core .c2 { background: var(--green); }
.nf-core .c3 { background: var(--blue); }
.nf-core .c4 { background: var(--green-dark); }
.nf-out { margin-top: 12px; padding: 14px; border-radius: 10px; border: 1.5px dashed #8FDCC0; color: #0A7A57; background: var(--green-soft); text-align: center; font-size: .85rem; font-weight: 700; }

.component { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.component__badge { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; }
.component h3 { margin-bottom: 4px; }
.component .kicker { font-size: .78rem; font-weight: 700; color: var(--blue-dark); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.component p { color: var(--muted); margin: 0; font-size: .96rem; }

.channel { text-align: center; padding: 28px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.channel svg { width: 34px; height: 34px; color: var(--blue-dark); margin: 0 auto 14px; }
.channel:nth-child(even) svg { color: var(--green-dark); }
.channel strong { color: var(--ink); display: block; margin-bottom: 4px; }
.channel span { font-size: .86rem; color: var(--muted); }

.compliance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.comp-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.comp-card:nth-child(2) { border-top-color: var(--green); }
.comp-card:nth-child(3) { border-top-color: var(--navy-700); }
.comp-card small { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-size: .72rem; }
.comp-card h3 { margin: 6px 0 10px; }
.comp-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.note { font-size: .82rem; color: var(--muted); margin-top: 22px; text-align: center; }

/* FAQ (accordion) — also mirrored in FAQPage structured data for answer engines */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--blue-dark); border-bottom: 2px solid var(--blue-dark);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item .faq-answer { padding: 4px 24px 22px; color: var(--muted); font-size: .97rem; line-height: 1.7; }
.faq-item .faq-answer p { margin: 0 0 .8em; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Legal page */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; }
.legal ul { padding-left: 20px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
/* No-JS fallback: content is always visible if the reveal script doesn't run */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive (RWD) ---------- */
@media (max-width: 1180px) {
  .container { padding: 0 20px; }
}
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__inner, .nf-hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .approach, .contact { grid-template-columns: 1fr; gap: 48px; }
  .quote { position: static; }
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px 28px; gap: 18px; border-top: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav__links a.is-active::after { display: none; }
}
@media (max-width: 860px) {
  .grid--3, .grid--2, .compliance { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .section { padding: 76px 0; }
  .hero { padding: 140px 0 90px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .grid--4, .pillars, .form__row, .product__modules, .footer__top { grid-template-columns: 1fr; }
  .card, .form, .product { padding: 26px; }
  .cta-band { padding: 36px 26px; }
  .brand__sub { display: none; }
  .nf-diagram__row { grid-template-columns: repeat(3, 1fr); }
  .component { grid-template-columns: 1fr; }
  .nf-demo { padding: 22px; }
}
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .btn { padding: 13px 20px; font-size: .92rem; }
  .hero { padding: 132px 0 72px; }
  h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}

/* Landscape phones: shrink the fixed-height map so it doesn't dominate a short viewport */
@media (max-height: 500px) and (orientation: landscape) {
  .map { height: 160px; }
}

/* Print: strip fixed header/nav and dark chrome so a printed page is usable */
@media print {
  .header, .nav-toggle, .nf-demo, .cta-band .btn { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}

/* Header dropdown sub-menus */
.nav__links > li { position: relative; }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: -14px; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.nav__links > li.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.nav__sub a:hover { background: var(--blue-soft, #E8F1FD); color: var(--blue-dark); }
.has-sub > a::before { content: ""; position: absolute; right: -12px; top: 50%; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .6; }
.has-sub > a { margin-right: 12px; }
@media (max-width: 960px) {
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .nav__sub a { padding: 7px 0; font-size: .95rem; font-weight: 500; color: var(--muted); }
  .has-sub > a::before, .nav__links > li.has-sub::after { display: none; }
  .has-sub > a { margin-right: 0; }
}

.form__status.wait { display: block; background: var(--blue-soft); color: var(--blue-dark); }

/* N5 use-case cards: compact */
.uc-grid { gap: 16px; }
.uc-grid .card { padding: 20px 20px 18px; border-radius: 14px; }
.uc-grid .card__icon { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; }
.uc-grid .card__icon svg { width: 20px; height: 20px; }
.uc-grid .card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.uc-grid .card p { font-size: .87rem; line-height: 1.5; }
.uc-grid .card:hover { transform: translateY(-2px); }
@media (max-width: 1100px) { .uc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uc-grid { grid-template-columns: 1fr; } }

/* N2 components: even columns at every width */
.component--wide { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  /* badge + title on one row, description full width underneath: shorter, even cards */
  .component { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 0; padding: 22px; align-content: start; }
  .component > div:not(.component__badge) { display: contents; }
  .component__badge { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
  .component .kicker { grid-column: 2; grid-row: 1; margin: 0; align-self: end; font-size: .72rem; }
  .component h3 { grid-column: 2; grid-row: 2; margin: 2px 0 0; align-self: start; }
  .component p { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; font-size: .92rem; line-height: 1.55; }
}
@media (max-width: 860px) {
  #components .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

/* Photo banners (H1, N1, S1, C1, P1): navy overlay keeps text readable; photo sits on the right */
.photo-hero {
  --hero-img: none;
  /* The photo files already fade into navy on their left side; this overlay only tones the photo. */
  background:
    linear-gradient(100deg, rgba(10,42,85,.62) 0%, rgba(10,42,85,.42) 46%, rgba(10,42,85,.08) 74%, rgba(10,42,85,0) 100%),
    var(--hero-img) right center / cover no-repeat,
    radial-gradient(900px 480px at 88% -8%, rgba(22,96,209,.55), transparent 62%),
    radial-gradient(700px 420px at 6% 102%, rgba(0,182,122,.28), transparent 60%),
    var(--navy-900);
  color: #D6E2F0;
}
.photo-hero--texture {
  background:
    radial-gradient(800px 380px at 90% -10%, rgba(22,96,209,.5), transparent 62%),
    radial-gradient(600px 360px at 0% 110%, rgba(0,182,122,.22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px),
    var(--navy-900);
}
.photo-hero h1 { color: #fff; }
.photo-hero h1 em { color: #2EE6A6; }
.photo-hero .hero__lead, .photo-hero p.lead { color: #CFDCEC; }
.photo-hero .eyebrow { color: #6FE0C0; }
.photo-hero .breadcrumb { color: #9FB3CC; }
.photo-hero .breadcrumb a { color: #CFDCEC; }
.photo-hero .breadcrumb a:hover { color: #fff; }
.photo-hero .hero__badge { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.photo-hero .btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.photo-hero .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-900); }

.photo-hero .momentum-card, .photo-hero .nf-diagram { color: var(--text); }

/* Home: the four pillars sit below the photo banner, on the plain page background */
.hero-strip { background: var(--bg); padding: 0 0 8px; border-top: 1px solid var(--line); }
.hero-strip .pillars { border-top: 0; margin-top: 0; padding-top: 40px; padding-bottom: 36px; }
.photo-hero.hero { padding-bottom: 100px; }
.photo-hero h1, .photo-hero .hero__lead { text-shadow: 0 2px 18px rgba(7,20,45,.45); }
/* Sub-page banners: text runs wider, so keep the left 60% a little darker */
.page-hero.photo-hero { background:
    linear-gradient(100deg, rgba(10,42,85,.72) 0%, rgba(10,42,85,.62) 52%, rgba(10,42,85,.14) 80%, rgba(10,42,85,0) 100%),
    var(--hero-img) right center / cover no-repeat,
    radial-gradient(900px 480px at 88% -8%, rgba(22,96,209,.55), transparent 62%),
    var(--navy-900); }
.page-hero.photo-hero.photo-hero--texture { background:
    radial-gradient(800px 380px at 90% -10%, rgba(22,96,209,.5), transparent 62%),
    radial-gradient(600px 360px at 0% 110%, rgba(0,182,122,.22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px),
    var(--navy-900); }
@media (max-width: 860px) { .page-hero.photo-hero { background:
    linear-gradient(180deg, rgba(10,42,85,.92), rgba(10,42,85,.84)),
    var(--hero-img) right center / cover no-repeat,
    var(--navy-900); } }


/* Home hero: photo sits behind the layout so the "Idea to impact" card lands on the whiteboard and both faces stay visible */
.photo-hero--board { background: radial-gradient(900px 480px at 88% -8%, rgba(22,96,209,.5), transparent 62%), var(--navy-900); }
.photo-hero--board::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 1440px); transform: translateX(-50%);
  background: var(--hero-img) 44px 20% / 120% auto no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 52%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 52%, #000 92%, transparent 100%);
}
.photo-hero--board .container { position: relative; }


.photo-hero--board { padding-bottom: 96px; }

/* No-photo variant (NexFill until its own photo is added): navy gradient only */
.photo-hero--nophoto { background: radial-gradient(900px 480px at 88% -8%, rgba(22,96,209,.55), transparent 62%), radial-gradient(700px 420px at 6% 102%, rgba(0,182,122,.28), transparent 60%), var(--navy-900); }
.photo-hero > .container { position: relative; }

/* Mobile / tablet: photo becomes its own band at the top of the banner so the people stay visible; text sits on navy below */
@media (max-width: 1100px) {
  .photo-hero--board:not(.photo-hero--nophoto) { padding-top: 340px; background: var(--navy-900); }
  .photo-hero--board::before {
    left: 0; right: 0; top: 64px; bottom: auto; width: auto; height: 270px; transform: none; opacity: 1;
    background: var(--hero-img-m) center 10% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  }
}
@media (max-width: 860px) {
  .photo-hero:not(.photo-hero--texture):not(.photo-hero--nophoto):not(.photo-hero--board) { background: var(--navy-900); }
  .hero.photo-hero:not(.photo-hero--nophoto), .page-hero.photo-hero:not(.photo-hero--texture):not(.photo-hero--nophoto) { padding-top: 340px; }
  .photo-hero:not(.photo-hero--texture):not(.photo-hero--nophoto):not(.photo-hero--board)::before {
    content: ""; position: absolute; top: 64px; left: 0; right: 0; height: 270px;
    background: var(--hero-img-m) center 10% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  }
}

/* NexFill hero (wide screens): text left, photo with devices clear, wide short card bottom-right */
@media (min-width: 1181px) {
  .nf-hero.photo-hero .nf-hero__inner { grid-template-columns: 480px 1fr 450px; gap: 28px; align-items: end; }
  .nf-hero.photo-hero .nf-hero__inner > div:first-child { align-self: center; }
  .nf-hero.photo-hero .nf-diagram { grid-column: 3; justify-self: end; width: 450px; min-height: 370px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; }
  .nf-hero.photo-hero .nf-diagram__row { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
  .nf-hero.photo-hero .nf-src { font-size: .66rem; padding: 7px 2px; }
  .nf-hero.photo-hero .nf-arrow { margin: 0 0 6px; line-height: 1; }
  .nf-hero.photo-hero .nf-core { gap: 8px; }
  .nf-hero.photo-hero .nf-core div { padding: 9px 12px; }
  .nf-hero.photo-hero .nf-core span { display: block; line-height: 1.3; }
  .nf-hero.photo-hero .nf-out { margin-top: 8px; padding: 9px 12px; font-size: .8rem; }
  .nf-hero.photo-hero h1 { font-size: 2.6rem; }
  .nf-hero.photo-hero .hero__lead, .nf-hero.photo-hero p.lead { max-width: 430px; }
}
