/* Home page: eyebrows, about grid, video band, expertise tabs, why cards, fact grid. */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: -.01em;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow svg { width: 15px; height: 15px; opacity: .8; }
.eyebrow-light { color: #93b4f5; }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.75rem;
}
.split-head .section-lead { margin-top: .35rem; }

/* ---------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.about-item h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.about-item p { color: var(--ink-muted); font-size: .95rem; line-height: 1.6; }
.about-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin-bottom: 1.1rem;
  color: #334155;
  background: linear-gradient(160deg, rgba(248, 250, 252, .95), rgba(226, 232, 240, .8));
  border: 1px solid rgba(203, 213, 225, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.about-icon svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------------------
   Video band
   ------------------------------------------------------------------------ */

.video-band {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 52vw, 620px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.video-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 21, 38, .18) 0%, rgba(8, 21, 38, .72) 72%, rgba(8, 21, 38, .88) 100%);
}
.video-band-overlay {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  color: #fff;
}
.video-band-eyebrow {
  font-size: .85rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #93b4f5;
  margin-bottom: .55rem;
}
.video-band-overlay h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -.03em;
  max-width: 20ch;
}
.video-band-overlay p { color: #cdddf2; margin-top: .6rem; max-width: 46ch; }

/* ---------------------------------------------------------------------------
   Expertise tabs
   ------------------------------------------------------------------------ */

.tab-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .7rem;
  margin-bottom: 2rem;
}
.tab-pill {
  padding: .95rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tab-pill:hover { border-color: #b5c8f2; color: var(--ink); }
.tab-pill.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 27, 51, .2);
}

.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: stretch;
}
.expertise-copy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}
.expertise-pane { display: none; }
.expertise-pane.is-active { display: block; animation: fadeUp .35s var(--ease-out) both; }
.expertise-pane h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.expertise-pane > p { color: var(--ink-muted); margin: .5rem 0 1.25rem; }
.expertise-pane .check-list { margin-bottom: 1.5rem; }

.expertise-media { margin: 0; border-radius: var(--radius); overflow: hidden; }
.expertise-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }

/* ---------------------------------------------------------------------------
   Why choose us
   ------------------------------------------------------------------------ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}
.why-card {
  position: relative;
  isolation: isolate;
  min-height: 400px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.why-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.why-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 21, 38, .1) 35%, rgba(8, 21, 38, .82) 100%);
}
.why-card:hover img { transform: scale(1.05); }
.why-num {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy-900);
  font-weight: 700;
  font-size: .95rem;
}
/* Frosted label panel sitting inside the card, over the photo. */
.why-body {
  margin: 1rem;
  padding: 1.1rem 1.15rem;
  width: calc(100% - 2rem);
  color: #fff;
  border-radius: 14px;
  background: rgba(14, 26, 48, .42);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 28px rgba(5, 14, 30, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: background-color .3s ease, transform .3s var(--ease-out);
}
.why-card:hover .why-body { background: rgba(14, 26, 48, .56); transform: translateY(-3px); }
.why-body h3 { font-size: 1.1rem; letter-spacing: -.02em; }
.why-body p {
  color: rgba(233, 240, 250, .92);
  font-size: .88rem;
  margin-top: .35rem;
  line-height: 1.5;
}

/* The gradient only needs to carry the very bottom now that the panel does the work. */
.why-card::after {
  background: linear-gradient(180deg, rgba(8, 21, 38, .05) 40%, rgba(8, 21, 38, .55) 100%);
}

/* ---------------------------------------------------------------------------
   Fact grid
   ------------------------------------------------------------------------ */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.fact-cell {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 230px;
}
.fact-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fact-stat {
  background: #f1f5fb;
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fact-label { font-size: 1rem; font-weight: 620; line-height: 1.4; letter-spacing: -.01em; }
.fact-value {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------------
   FAQ layout
   ------------------------------------------------------------------------ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}
.faq-layout .faq { margin-top: 0; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-weight: 650;
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   CTA over a photo
   ------------------------------------------------------------------------ */

.cta-photo { position: relative; isolation: isolate; overflow: hidden; }
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(11, 27, 51, .93), rgba(16, 42, 119, .82));
}
.cta-actions { justify-content: center; margin-top: 1.6rem; }

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .split-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-media img { min-height: 260px; }
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .about-grid { gap: 1.5rem; }
  .about-icon { width: 52px; height: 52px; border-radius: 14px; }
  .tab-row { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .tab-pill { padding: .7rem .6rem; font-size: .85rem; }
  .video-band { min-height: 320px; }
  .video-band-overlay { padding: 2rem 1.25rem 2.25rem; }
  .why-card { min-height: 330px; }
  .fact-cell { min-height: 170px; }
  .fact-stat { padding: 1.1rem; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .why-card:hover img { transform: none; }
  .expertise-pane.is-active { animation: none; }
}

/* ---------------------------------------------------------------------------
   Inside the app — product cards with live-looking mini dashboards
   ------------------------------------------------------------------------ */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.showcase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.showcase-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 33, 78, .12); }

/* The middle card carries the section — darker, so the eye lands there first. */
.showcase-card.is-feature {
  background: linear-gradient(150deg, #12356f, #0b1b33);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 44px rgba(11, 27, 51, .3);
}
.showcase-card.is-feature p { color: #c3d6f2; }
.showcase-card.is-feature .showcase-tag { background: rgba(255, 255, 255, .16); color: #cfe0fb; }

.showcase-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: .9rem;
}
.showcase-card h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.showcase-card > p { font-size: .92rem; color: var(--ink-muted); margin-top: .4rem; line-height: 1.55; }

.showcase-panel {
  margin-top: 1.35rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 33, 78, .1);
}
.mini { display: block; width: 100%; height: auto; }

/* Type inside the SVG panels. */
.mini-label  { font: 600 11px "Segoe UI", system-ui, sans-serif; fill: #64748b; }
.mini-sub    { font: 500 10px "Segoe UI", system-ui, sans-serif; fill: #94a3b8; }
.mini-figure { font: 700 21px "Segoe UI", system-ui, sans-serif; fill: #0f172a; letter-spacing: -.5px; }
.mini-delta  { font: 700 11px "Segoe UI", system-ui, sans-serif; fill: #b91c1c; }
.mini-delta.is-up { fill: #047857; }
.mini-row    { font: 600 10px "Segoe UI", system-ui, sans-serif; fill: #475569; }
.mini-pct    { font: 700 10px "Segoe UI", system-ui, sans-serif; fill: #0f172a; }
.mini-foot   { font: 500 9px "Segoe UI", system-ui, sans-serif; fill: #94a3b8; }

@media (max-width: 640px) {
  .showcase-card { padding: 1.2rem; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card:hover { transform: none; }
}

/* ---------------------------------------------------------------------------
   Video hero
   The film sits behind a navy shade. As the visitor scrolls, --p runs 0 → 1
   and the shade deepens to solid navy so the hero dissolves into the blue
   ticker instead of ending on a hard edge.
   ------------------------------------------------------------------------ */

.hero-video {
  --p: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 120px);
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem 6.5rem;
  background: var(--navy-900);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(0, calc(var(--p) * 12%), 0) scale(calc(1.12 + var(--p) * .06));
  transition: opacity 1.6s ease, transform 2.4s cubic-bezier(.2, .7, .2, 1);
  will-change: transform, opacity;
}
.hero-bg.is-playing { opacity: 1; }
.is-ready .hero-bg.is-playing {
  transform: translate3d(0, calc(var(--p) * 12%), 0) scale(calc(1.02 + var(--p) * .06));
}
/* Once the settle-in has finished, follow the scroll without lag. */
.hero-bg.is-settled { transition: opacity 1.6s ease; }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 18, 38, .88) 0%, rgba(7, 18, 38, .62) 45%, rgba(7, 18, 38, .28) 100%),
    linear-gradient(180deg, rgba(7, 18, 38, .35) 0%, rgba(7, 18, 38, 0) 30%, rgba(7, 18, 38, 0) 60%, var(--brand) 100%);
}
/* A second, solid layer that fades in with scroll. */
.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--brand) 100%);
  opacity: calc(var(--p) * .9);
}

.hero-video .hero-inner {
  position: relative;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  align-items: end;
  gap: 3rem;
  opacity: calc(1 - var(--p) * 1.15);
  transform: translate3d(0, calc(var(--p) * -60px), 0);
}
.hero-video .hero-copy { max-width: 40rem; }
.hero-video .hero-copy h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  text-shadow: 0 2px 24px rgba(4, 12, 28, .35);
}
.hero-video .hero-sub { color: #d6e2f2; font-size: 1.15rem; }
.hero-video .pill {
  background: rgba(255, 255, 255, .1);
  color: #dbe7fb;
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-video .hero-stats {
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: rgba(10, 22, 44, .38);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  gap: 1.5rem;
}
.hero-video .hero-stat + .hero-stat {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Entrance sequence: waits for the preloader, then plays top to bottom. */
.hero-seq > * { opacity: 0; transform: translateY(28px); filter: blur(8px); animation: none; }
.is-ready .hero-seq > * {
  animation: heroIn 1s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.2s + var(--i, 0) * .14s);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
/* The headline's own word-by-word rise holds until the page is ready. */
.hero-seq [data-split].is-split .word { animation-play-state: paused; }
.is-ready .hero-seq [data-split].is-split .word {
  animation-play-state: running;
  animation-delay: calc(.4s + var(--w) * .08s);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 14px;
  opacity: 0;
  transition: opacity .8s ease 1.8s;
}
.is-ready .hero-scroll { opacity: calc(1 - var(--p) * 3); }
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* The section after the blue ticker picks up a soft blue wash and lets it go. */
.hero-video + .ticker + #about {
  background: linear-gradient(180deg, #e3ecfb 0%, var(--canvas) 340px);
}

@media (max-width: 900px) {
  .hero-video { min-height: calc(100svh - 110px); padding: 3.5rem 1.25rem 5.5rem; align-items: flex-end; }
  .hero-video .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-video .hero-stats { grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .14); }
  .hero-video .hero-stat + .hero-stat { padding-top: 0; border-top: 0; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 18, 38, .45) 0%, rgba(7, 18, 38, .55) 40%, rgba(7, 18, 38, .88) 78%, var(--brand) 100%);
  }
}

@media (max-width: 640px) {
  .hero-video .hero-stats { grid-template-columns: 1fr 1fr; padding: 1.1rem; gap: 1rem; }
  .hero-video .hero-stat-value { font-size: 1.9rem; }
  .hero-video .hero-stat-label { font-size: .78rem; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-seq > *, .is-ready .hero-seq > * { animation: none; opacity: 1; transform: none; filter: none; }
  .hero-bg { transition: opacity .3s ease; transform: none !important; }
  .hero-video .hero-inner { transform: none; }
}

/* ---------------------------------------------------------------------------
   Public header: logo left, actions right, on one row at every width
   ------------------------------------------------------------------------ */

.topbar-public .topbar-user { margin-left: auto; }

@media (max-width: 640px) {
  .topbar-public .topbar-inner { flex-wrap: nowrap; gap: .6rem; }
  .topbar-public .brand { font-size: 1rem; flex: none; }
  .topbar-public .topbar-user { gap: .45rem; }
  .topbar-public .topbar-user .btn { padding: .45rem .8rem; font-size: .84rem; min-height: 36px; white-space: nowrap; }
}
@media (max-width: 400px) {
  .topbar-public .topbar-inner { padding-left: .85rem; padding-right: .85rem; gap: .5rem; }
  .topbar-public .brand { font-size: .95rem; gap: .4rem; }
  .topbar-public .brand-mark { width: 22px; height: 22px; }
  .topbar-public .topbar-user { gap: .35rem; }
  .topbar-public .topbar-user .btn { padding: .4rem .7rem; font-size: .8rem; min-height: 34px; }
  .topbar-public .topbar-user .btn-pill svg { display: none; }
}

/* Tight headline leading: give the word mask room for descenders. */
.hero-video [data-split].is-split .line { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---------------------------------------------------------------------------
   Fact grid: square tiles, two in brand blue
   ------------------------------------------------------------------------ */

.fact-cell { aspect-ratio: 1 / 1; min-height: 0; border-radius: 22px; }
.fact-photo { background: #e6ecf5; }
.fact-stat { background: #f3f6fb; border-color: #e3e9f3; }
.fact-stat.is-blue {
  background: linear-gradient(155deg, #2458e6 0%, var(--brand) 55%, #1a3fae 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(29, 78, 216, .22);
}
.fact-stat.is-blue .fact-label { color: rgba(255, 255, 255, .88); }
.fact-stat.is-blue .fact-value { color: #fff; }

@media (max-width: 640px) {
  .fact-grid { gap: .8rem; }
  .fact-cell { min-height: 0; border-radius: 20px; }
  .fact-stat { padding: 1rem; }
  .fact-label { font-size: .88rem; line-height: 1.35; }
  .fact-value { font-size: 2rem; }
}

/* ---------------------------------------------------------------------------
   About on phones: icon beside the text, compact
   ------------------------------------------------------------------------ */

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; gap: .75rem; }
  .about-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: .9rem;
    align-items: start;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid #e3e9f3;
  }
  .about-icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .about-icon svg { width: 21px; height: 21px; }
  .about-item h3 { font-size: .98rem; margin: .1rem 0 .25rem; }
  .about-item p { font-size: .86rem; line-height: 1.5; }
}

/* ---------------------------------------------------------------------------
   Phones: a deeper, shorter blue at the foot of the hero
   ------------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-video { --fade-end: #1a3a8f; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 18, 38, .45) 0%, rgba(7, 18, 38, .55) 40%,
        rgba(7, 18, 38, .88) 82%, rgba(11, 27, 51, .96) 92%, var(--fade-end) 100%);
  }
  .hero-shade::after {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-900) 70%, var(--navy-800) 90%, var(--fade-end) 100%);
  }
  .hero-video + .ticker { background: #1a3a8f; }
  .hero-video + .ticker + #about { background: linear-gradient(180deg, #edf2fb 0%, var(--canvas) 180px); }
}

/* Tablet: the four text links crowd the buttons, so they go the way of phones. */
.topbar-public .nav a { white-space: nowrap; }
@media (max-width: 900px) {
  .topbar-public .nav { display: none; }
}

/* Portrait branch photo: frame the ATMs and the customer rather than the sign. */
.fact-photo img[src*="atm-branch"] { object-position: 50% 62%; }
