:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #635bff;
  --primary-dark: #0a2540;
  --accent: #00c6ff;
  --card: #ffffff;
  --shadow: 0 30px 70px rgba(10, 37, 64, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

section[id] {
  scroll-margin-top: 86px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(99, 91, 255, 0.14), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(0, 198, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.page-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 80px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}

.page-header.scrolled {
  height: 64px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.08);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 58px;
  width: auto;
  transition: transform 0.3s ease;
}

.page-header.scrolled .logo img {
  transform: scale(0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0a2540;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #635bff;
  font-weight: 600;
}

.nav-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav-action,
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(99, 91, 255, 0.28);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-action:hover,
.btn:hover {
  transform: translateY(-3px);
}

.dark-toggle {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dark-toggle .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
}

.dark-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dark-toggle svg path,
.dark-toggle svg circle {
  fill: none;
  stroke: currentColor;
}

.dark-toggle:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(99, 91, 255, 0.18);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(10, 37, 64, 0.94), rgba(10, 37, 64, 0.78) 52%, rgba(99, 91, 255, 0.48)),
    url("../images/banking_industry.png") center/cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 60px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1,
h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 820px;
  margin: 14px 0 24px;
  font-size: clamp(42px, 6vw, 74px);
}

.subtitle {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.metric-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.metric-card strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 42px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.section {
  padding: 90px 0;
}

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

#capabilities {
  padding: 70px 0;
}

.split-layout,
.tech-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: clamp(32px, 4vw, 48px);
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.capabilities-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 980px) 48px;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.carousel-viewport {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: clamp(320px, 52vh, 440px);
}

.carousel-control {
  position: relative;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(99, 91, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 18px 40px rgba(10, 37, 64, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.carousel-control:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(99, 91, 255, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.image-card,
.architecture-card,
.card,
.step {
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.image-card,
.architecture-card {
  position: relative;
  overflow: hidden;
}

.image-card {
  min-height: 0;
}

.image-card img,
.architecture-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.architecture-card img {
  height: auto;
  object-fit: contain;
}

.image-card:hover img,
.architecture-card:hover img {
  transform: scale(1.04);
}

.image-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 72px 24px 24px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.92), rgba(10, 37, 64, 0.42), transparent);
}

.image-caption h3,
.card h3,
.step h3 {
  font-size: 20px;
  line-height: 1.25;
}

.image-caption p {
  max-width: 420px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.zoom-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.zoom-btn:hover {
  transform: scale(1.08);
  background: rgba(99, 91, 255, 0.8);
}

.architecture-card {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(720px, calc(100vh - 190px));
  padding: 16px;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
}

.architecture-card img {
  max-height: calc(100vh - 222px);
  object-fit: contain;
}

.architecture-card .zoom-btn {
  right: 30px;
  bottom: 30px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(99, 91, 255, 0.16);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.12), rgba(0, 198, 255, 0.16));
  color: var(--primary);
  font-weight: 700;
}

.step p,
.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-section {
  position: relative;
  overflow: hidden;
}

.tech-scroll {
  display: grid;
  gap: 20px;
}

.tech-track {
  width: 100%;
}

.track-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-link {
  color: inherit;
  text-decoration: none;
}

.tech-card {
  min-width: 130px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  object-fit: contain;
}

.tech-card p {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.tech-link:hover .tech-card {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1);
}

.cta-section {
  padding: 70px 0;
}

.cta {
  padding: 70px 40px;
  border-radius: var(--radius);
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.25), transparent 34%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 40px 90px rgba(10, 37, 64, 0.22);
}

.cta h2 {
  max-width: 760px;
  margin: 10px auto 28px;
  color: #ffffff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 37, 64, 0.94);
  backdrop-filter: blur(12px);
}

.modal.open {
  display: flex;
}

.modal-content {
  max-width: 94%;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  top: 24px;
  right: 36px;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
}

#toTopBtn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 900;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 16px 32px rgba(99, 91, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

#toTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#toTopBtn:hover {
  transform: translateY(-4px);
}

.footer {
  padding: 70px 0 24px;
  background: var(--primary-dark);
  color: #cbd5e1;
  line-height: normal;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-col h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}

.footer-col p,
.footer-col a {
  margin: 7px 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: normal;
}

.footer-col p {
  display: block;
}

.footer-col a {
  display: inline-block;
}

.footer-col .contact-link {
  display: inline;
  margin: 0;
}

.footer-col > a {
  display: block;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.2s ease;
}

#progressBar.loading {
  transition: width 0.7s ease;
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .split-layout,
  .tech-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

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

@media (max-width: 640px) {
  .page-header {
    height: 72px;
  }

  .logo img {
    height: 48px;
  }

  .nav-action {
    padding: 10px 14px;
    font-size: 13px;
  }

  .dark-toggle {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-panel,
  .steps,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  #capabilities {
    padding: 54px 0;
  }

  .capabilities-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .carousel-slide {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

/* Dark mode */
/* html.dark applied by inline script before body is ready */
html.dark {
  color-scheme: dark;
  background: #070b14;
}

body.dark {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --text: #e7ecf7;
  --muted: #c8d2e5;
  --card: rgba(17, 24, 39, 0.86);
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  background:
    radial-gradient(circle at 10% 8%, rgba(99, 91, 255, 0.18), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(0, 198, 255, 0.1), transparent 28%),
    #070b14;
  color: var(--text);
}

body.dark .page-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 20, 0.84);
}

body.dark .page-header.scrolled {
  background: rgba(7, 11, 20, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

body.dark .nav-links {
  color: #c8d2e5;
}

body.dark .nav-links a:hover,
body.dark .nav-links a.active {
  color: #ffffff;
}

body.dark .dark-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

body.dark .dark-toggle .icon {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #ffffff;
}

body.dark h2,
body.dark .card h3,
body.dark .step h3 {
  color: #ffffff;
}

body.dark .lead,
body.dark .step p,
body.dark .card p {
  color: #c8d2e5;
}

body.dark .section-light {
  background: #0b1220;
}

body.dark .image-card,
body.dark .architecture-card,
body.dark .card,
body.dark .step {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(17, 24, 39, 0.86);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

body.dark .architecture-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(15, 23, 42, 0.94));
}

body.dark .carousel-control,
body.dark .tech-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.86);
  color: #e7ecf7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

body.dark .tech-card p {
  color: #d8e0ee;
}

body.dark .carousel-control:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
}

body.dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

body.dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Match landing page navigation colors */
.page-header {
  background: rgba(255, 255, 255, 0.7);
}

.page-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.nav-links a {
  color: #6b7280;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0a2540;
}

.nav-links a.active {
  color: #635bff;
  font-weight: 600;
}

.nav-links a::after {
  background: linear-gradient(90deg, #635bff, #00c6ff);
}

body.dark .page-header {
  background: rgba(7, 11, 20, 0.84);
}

body.dark .page-header.scrolled {
  background: rgba(7, 11, 20, 0.92);
}

body.dark .nav-links a {
  color: #c8d2e5;
}

body.dark .nav-links a:hover,
body.dark .nav-links a.active {
  color: #ffffff;
}
