:root {
  color-scheme: light;
  --overlay: rgba(255, 255, 255, 0.62);
  --ink: #1d2430;
  --muted: #303847;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(215, 222, 236, 0.95);
  --primary: #548dff;
  --primary-dark: #263146;
  --shadow: 0 18px 42px rgba(29, 36, 48, 0.16);
}

html, body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}

body { position: relative; }

.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: bgFade 120s linear infinite;
}

.bg-slide-1 { background-image: linear-gradient(var(--overlay), var(--overlay)), url("https://lambdalink1.blob.core.windows.net/staging-blobs/background1.jpg"); animation-delay: 0s; }
.bg-slide-2 { background-image: linear-gradient(var(--overlay), var(--overlay)), url("https://lambdalink1.blob.core.windows.net/staging-blobs/background2.jpg"); animation-delay: 30s; }
.bg-slide-3 { background-image: linear-gradient(var(--overlay), var(--overlay)), url("https://lambdalink1.blob.core.windows.net/staging-blobs/background3.jpg"); animation-delay: 60s; }
.bg-slide-4 { background-image: linear-gradient(var(--overlay), var(--overlay)), url("https://lambdalink1.blob.core.windows.net/staging-blobs/background4.jpg"); animation-delay: 90s; }

@keyframes bgFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.surface-panel {
  backdrop-filter: blur(8px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(29, 36, 48, 0.08);
}

.site-main { display: grid; gap: 24px; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  margin-bottom: 24px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
}

.brand-link, .brand-link:hover { box-shadow: none; transform: none; }
.site-logo { width: min(250px, 52vw); height: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link, .footer-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.nav-link {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.94rem;
}

.nav-link.active, .nav-link:hover {
  background: rgba(84, 141, 255, 0.14);
  color: #1f5fd1;
}

.nav-toggle-input, .nav-toggle { display: none; }

.page-hero {
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(84, 141, 255, 0.12);
}

.eyebrow {
  color: #1f5fd1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-title {
  max-width: 920px;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.03 !important;
  margin-bottom: 18px !important;
}

.page-intro {
  max-width: 850px;
  color: var(--muted);
  line-height: 1.8 !important;
  font-size: 1.08rem !important;
}

.body-copy { line-height: 1.75 !important; margin-bottom: 14px !important; color: var(--muted); }

.feature-section {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.feature-reverse .feature-media { order: 2; }

.feature-media {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #e9eef7;
}

.feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  animation: featureFade 30s infinite;
}

.feature-image-1 { animation-delay: 0s; }
.feature-image-2 { animation-delay: 10s; }
.feature-image-3 { animation-delay: 20s; }

@keyframes featureFade {
  0% { opacity: 0; transform: scale(1.05); }
  5% { opacity: 1; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.02); }
  36% { opacity: 0; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.05); }
}

.content-grid {
  display: grid;
  gap: 24px;
}

.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.content-card {
  padding: clamp(22px, 4vw, 34px);
}

.feature-card-large { grid-column: 1 / -1; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.brand-showcase-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
}

.brand-showcase-logo {
  width: 150px;
  max-height: 110px;
  object-fit: contain;
  padding: 14px;
  border-radius: 14px;
  background: rgba(247, 250, 255, 0.9);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.16));
}

.brand-overview { margin-top: 0; }

.partners-panel { padding: clamp(22px, 4vw, 34px); overflow: hidden; }
.section-heading { max-width: 850px; margin-bottom: 22px; }

.partner-carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partner-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: partnerMarquee 38s linear infinite;
}

.partner-logo-card {
  width: 180px;
  min-height: 120px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.88);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 36, 48, 0.08);
}

.partner-logo {
  max-width: 116px;
  max-height: 56px;
  object-fit: contain;
  margin-bottom: 10px;
}

@keyframes partnerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.contact-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link { color: #1f5fd1 !important; font-weight: 800 !important; }
.contact-note { text-align: center; }

.cta-row {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-button { min-width: 180px; }

.site-footer {
  margin-top: 32px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-logo { width: 180px; height: auto; margin-bottom: 12px; }
.footer-contact, .footer-nav { display: grid; gap: 8px; }
.footer-fine-print { grid-column: 1 / -1; opacity: 0.8; border-top: 1px solid rgba(38,49,70,0.12); padding-top: 16px; }

button, a, .mud-button-root { transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease !important; }
button:hover, a:hover, .mud-button-root:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(84, 141, 255, .25); }
.footer-link:hover { color: #1f5fd1; }

@media (max-width: 980px) {
  .site-header-inner { align-items: flex-start; flex-wrap: wrap; }
  .site-nav { width: 100%; justify-content: center; }
  .feature-section, .brand-showcase-card { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
  .feature-media { min-height: 260px; }
  .brand-grid, .two-column, .contact-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .page-shell { padding: 14px 12px 28px; }
  .site-header { top: 8px; }
  .site-header-inner { align-items: center; }
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: rgba(84, 141, 255, 0.12);
    cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--primary-dark); border-radius: 999px; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .nav-link { text-align: center; }
  .page-hero, .content-card, .feature-section, .partners-panel, .site-footer { border-radius: 16px; }
  .page-title { font-size: 2.25rem !important; }
  .feature-media { min-height: 230px; }
  .brand-showcase-logo { width: 100%; max-width: 180px; justify-self: center; }
  .partner-logo-card { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
