:root {
  --navy: #082547;
  --blue: #155a8a;
  --green: #167a5a;
  --green-dark: #0e5f47;
  --gold: #d5a23f;
  --ink: #13202b;
  --muted: #596b7b;
  --line: #d9e2e8;
  --soft: #f4f7f9;
  --soft-green: #edf6f1;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(9, 34, 58, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(213, 162, 63, 0.8);
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 226, 232, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--green));
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.primary-nav {
  position: absolute;
  inset: 72px 16px auto 16px;
  display: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.primary-nav.is-open {
  display: grid;
}

.primary-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.primary-nav a:hover {
  color: var(--green-dark);
}

.nav-login {
  color: var(--white) !important;
  background: var(--navy);
  border-radius: var(--radius);
  justify-content: center;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.section-muted {
  background: var(--soft);
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background-image: url("assets/digital-banking-platform.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 37, 71, 0.92), rgba(8, 37, 71, 0.72) 47%, rgba(8, 37, 71, 0.2)),
    linear-gradient(0deg, rgba(8, 37, 71, 0.68), rgba(8, 37, 71, 0.1));
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 112px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: #bde7d1;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 4.8rem, 4.8rem);
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 2.7rem, 2.7rem);
}

.section-dark h2 {
  color: var(--white);
}

h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.section-dark h3 {
  color: var(--white);
}

p {
  margin: 0;
  color: var(--muted);
}

.section-dark p,
.hero p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy {
  max-width: 600px;
  margin-top: 18px;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button span {
  display: grid;
  place-items: center;
  min-width: 18px;
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--navy);
  background: var(--gold);
}

.button-secondary:hover {
  background: #c89431;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 850px;
  margin: 42px 0 0;
}

.hero-trust div {
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.hero-trust dt {
  font-weight: 800;
}

.hero-trust dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-start {
  margin-inline: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow),
.feature-band p,
.contact-layout > div > p,
.login-layout > div > p {
  margin-top: 12px;
  font-size: 1.05rem;
}

.product-grid,
.service-grid,
.resource-grid,
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.product-card,
.service-grid article,
.resource-grid article,
.branch-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(9, 34, 58, 0.06);
}

.product-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
}

.product-card p,
.service-grid p {
  margin-top: 10px;
}

.product-card a,
.resource-grid a,
.text-link {
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.product-card a:hover,
.resource-grid a:hover,
.text-link:hover {
  text-decoration: underline;
}

.split-layout {
  display: grid;
  gap: 28px;
}

.ai-workspace {
  display: grid;
  gap: 16px;
}

.assistant-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tool-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tool-button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--soft-green);
  font-size: 0.78rem;
}

.tool-button.is-active {
  border-color: rgba(22, 122, 90, 0.55);
  background: var(--soft-green);
}

.assistant-panel,
.workflow-detail,
.login-panel,
.contact-form,
.locator-panel,
.admin-shell,
.portal-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.assistant-panel {
  padding: 24px;
}

.assistant-panel h3,
.workflow-detail h3 {
  margin-bottom: 10px;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.microcopy {
  margin-top: 14px;
  font-size: 0.88rem;
}

.portal-shell {
  overflow: hidden;
  display: grid;
}

.portal-sidebar {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--navy);
  color: var(--white);
}

.portal-sidebar strong {
  margin-bottom: 8px;
}

.portal-sidebar a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.portal-sidebar a.is-current,
.portal-sidebar a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.portal-main {
  padding: 22px;
}

.portal-topline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.status-pill {
  width: fit-content;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--green-dark);
  background: var(--soft-green);
  font-weight: 800;
  font-size: 0.84rem;
}

.account-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.account-summary div,
.admin-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.account-summary span,
.admin-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-summary strong,
.admin-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1.35rem;
}

.portal-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.portal-list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--white);
}

.portal-list span {
  color: var(--muted);
}

.workflow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.workflow-step {
  min-height: 128px;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.workflow-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.workflow-step small {
  color: var(--muted);
}

.workflow-step.is-active {
  border-color: rgba(22, 122, 90, 0.65);
  box-shadow: 0 12px 28px rgba(22, 122, 90, 0.12);
}

.workflow-step.is-active span {
  background: var(--green);
}

.workflow-detail {
  margin-top: 18px;
  padding: 22px;
}

.feature-band {
  display: grid;
  gap: 24px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-list div,
.contact-methods div {
  padding: 16px;
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.feature-list span,
.contact-methods span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.location-layout,
.contact-layout,
.login-layout {
  display: grid;
  gap: 22px;
}

.locator-panel,
.contact-form,
.login-panel {
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #c6d4de;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.input-row {
  display: grid;
  gap: 10px;
}

.input-row input {
  margin: 0;
}

.branch-list {
  display: grid;
  gap: 16px;
}

.branch-card {
  padding: 20px;
}

.branch-card p {
  margin-top: 8px;
}

.branch-card dl {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.branch-card dt {
  color: var(--navy);
  font-weight: 800;
}

.branch-card dd {
  margin: 0;
  color: var(--muted);
}

.trust-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.trust-grid {
  align-items: stretch;
}

.trust-badge,
.trust-grid a {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.trust-grid a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.service-grid article {
  padding: 22px;
}

.resource-grid article {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.resource-grid span {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: var(--radius);
  color: var(--green-dark);
  background: var(--soft-green);
  font-weight: 800;
  font-size: 0.78rem;
}

.admin-shell {
  overflow: hidden;
}

.admin-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
  background: var(--soft);
}

.admin-board {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.admin-board > div {
  padding: 22px;
  background: var(--white);
}

.admin-board ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.login-links a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.84);
  background: #071d34;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.ceo-note {
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 620px) {
  .hero-trust,
  .account-summary,
  .admin-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-metrics {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid,
  .service-grid,
  .resource-grid,
  .trust-grid,
  .workflow,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1080px) {
  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .primary-nav a {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.84rem;
  }

  .nav-login {
    min-width: 72px;
    margin-left: 4px;
  }

  .hero-content {
    padding-block: 138px 70px;
  }

  .hero-trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .split-layout,
  .feature-band,
  .location-layout,
  .contact-layout,
  .login-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .ai-workspace {
    grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1fr);
  }

  .portal-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .portal-topline {
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
  }

  .workflow {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid,
  .service-grid,
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .container,
  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 82vh;
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 37, 71, 0.96), rgba(8, 37, 71, 0.78)),
      linear-gradient(0deg, rgba(8, 37, 71, 0.74), rgba(8, 37, 71, 0.2));
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-card,
  .service-grid article,
  .resource-grid article,
  .branch-card,
  .assistant-panel,
  .workflow-detail,
  .locator-panel,
  .contact-form,
  .login-panel {
    padding: 18px;
  }
}
