:root {
  --brand-900: #0d0c0f;
  --brand-850: #151123;
  --brand-800: #1f1833;
  --brand-700: #270d56;
  --brand-600: #3f2a6f;
  --brand-500: #6a607b;
  --brand-300: #aba3b7;
  --brand-100: #e9e7ee;
  --brand-050: #f6f5f8;
  --ok-700: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: #171522;
  background: var(--brand-050);
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image: var(--page-photo, none);
  background-position: var(--page-photo-position, center center);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.38;
  filter: saturate(0.95) contrast(0.94);
  transform: scale(1.02);
}

body::after {
  background:
    linear-gradient(180deg, rgba(250, 248, 252, 0.84), rgba(246, 245, 248, 0.95) 62%, rgba(246, 245, 248, 0.985)),
    radial-gradient(1100px 600px at 95% -8%, rgba(106, 96, 123, 0.16), transparent 58%),
    radial-gradient(920px 520px at 5% -12%, rgba(39, 13, 86, 0.1), transparent 56%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

body[data-page="home"] {
  --page-photo: url("/assets/images/bg-collaboration-purple.webp");
  --page-photo-position: right top;
}

body[data-page="company"] {
  --page-photo: url("/assets/images/bg-lobby-purple.webp");
  --page-photo-position: center top;
}

body[data-page="trust-security"] {
  --page-photo: url("/assets/images/bg-operations-purple.webp");
  --page-photo-position: right center;
}

body[data-page="solutions"] {
  --page-photo: url("/assets/images/bg-boardroom-purple.webp");
  --page-photo-position: center top;
}

body[data-page="contact"] {
  --page-photo: url("/assets/images/bg-lobby-purple.webp");
  --page-photo-position: center center;
}

body[data-page="platforms"],
body[data-page="products"] {
  --page-photo: url("/assets/images/bg-collaboration-purple.webp");
  --page-photo-position: right center;
}

body[data-page="insights"] {
  --page-photo: url("/assets/images/bg-boardroom-purple.webp");
  --page-photo-position: center top;
}

a {
  color: inherit;
}

::selection {
  background: rgba(39, 13, 86, 0.17);
}

.top-banner {
  background: linear-gradient(96deg, #0d0c0f, #270d56 48%, #5e5274);
}

.nav-surface {
  backdrop-filter: blur(18px) saturate(135%);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(106, 96, 123, 0.22);
  box-shadow: 0 14px 40px -30px rgba(13, 10, 22, 0.72);
}

.nav-link {
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(39, 13, 86, 0.07);
}

.nav-link.is-active {
  border-color: rgba(39, 13, 86, 0.28);
  background: rgba(39, 13, 86, 0.1);
  color: #270d56;
}

.btn-primary {
  border: 1px solid #270d56;
  background: #270d56;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #200b47;
  box-shadow: 0 18px 30px -20px rgba(39, 13, 86, 0.74);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid rgba(39, 13, 86, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #270d56;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: rgba(39, 13, 86, 0.52);
  background: #fff;
}

.hero-shell {
  background-image:
    linear-gradient(130deg, rgba(32, 11, 71, 0.88), rgba(49, 23, 92, 0.82) 48%, rgba(93, 79, 118, 0.78) 100%),
    radial-gradient(680px 480px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    var(--page-photo, none);
  background-position:
    center center,
    100% 0%,
    var(--page-photo-position, center center);
  background-repeat: no-repeat;
  background-size:
    auto,
    auto,
    cover;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 64px -40px rgba(15, 7, 30, 0.98);
}

.section-label {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5a467f;
  font-size: 0.72rem;
  font-weight: 700;
}

.surface {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(106, 96, 123, 0.22);
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 24px 55px -43px rgba(13, 10, 23, 0.72);
}

.surface-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 246, 251, 0.82));
  border: 1px solid rgba(106, 96, 123, 0.22);
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 48px -42px rgba(13, 10, 23, 0.75);
}

.metric-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(106, 96, 123, 0.22);
  backdrop-filter: blur(10px) saturate(120%);
}

.metric-card dt {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: #270d56;
}

.pillar-card {
  height: 100%;
  border: 1px solid rgba(106, 96, 123, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 244, 250, 0.82));
  backdrop-filter: blur(10px) saturate(120%);
}

main .bg-white {
  background-color: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(12px) saturate(120%);
}

.pillar-card h3,
.pillar-card h4 {
  color: #221839;
}

.dark-panel {
  background: linear-gradient(160deg, #0d0c0f, #171127 52%, #26193f);
  color: #fff;
  border: 1px solid rgba(171, 163, 183, 0.24);
}

.site-footer-panel {
  background: linear-gradient(145deg, rgba(13, 12, 15, 0.98), rgba(28, 16, 46, 0.96) 55%, rgba(48, 28, 78, 0.94));
  border: 1px solid rgba(171, 163, 183, 0.18);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 48px -34px rgba(12, 8, 22, 0.8);
}

.site-footer-panel p,
.site-footer-panel div,
.site-footer-panel span {
  color: inherit;
}

.site-footer-panel .text-white,
.site-footer-panel .font-semibold {
  color: #fff;
}

.site-footer-panel a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.site-footer-panel a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.site-footer-panel .border-white\/15 {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.site-footer-panel .text-white\/70 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.platform-card {
  height: 100%;
}

.platform-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(106, 96, 123, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.platform-logo-shell img {
  display: block;
  max-width: 100%;
  max-height: 2.9rem;
  width: auto;
  height: auto;
}

.platform-logo-shell.logo-dark {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(20, 28, 47, 0.94));
  border-color: rgba(15, 23, 42, 0.18);
}

.platform-logo-shell.logo-dark img {
  max-height: 2.2rem;
}

.contact-turnstile-shell {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.contact-form-status {
  border: 1px solid transparent;
}

.contact-form-status.is-info {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.92);
  color: #1d4ed8;
}

.contact-form-status.is-success {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(240, 253, 250, 0.92);
  color: var(--ok-700);
}

.contact-form-status.is-error {
  border-color: rgba(190, 24, 93, 0.18);
  background: rgba(253, 242, 248, 0.94);
  color: #9d174d;
}

.timeline-step {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.56rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 9999px;
  background: #6a607b;
  box-shadow: 0 0 0 6px rgba(106, 96, 123, 0.17);
}

.timeline-step::after {
  content: "";
  position: absolute;
  left: 0.86rem;
  top: 1.44rem;
  width: 2px;
  height: calc(100% - 1.35rem);
  background: linear-gradient(#9a90aa, transparent 95%);
}

.timeline-step:last-child::after {
  display: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(106, 96, 123, 0.25);
  padding: 0.8rem 0.88rem;
  vertical-align: top;
}

.data-table th {
  background: rgba(39, 13, 86, 0.08);
  color: #2d1f49;
  font-weight: 700;
}

.focus-list li {
  position: relative;
  padding-left: 1.2rem;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #5d5173;
}

.callout {
  border-left: 4px solid #6a607b;
  background: rgba(106, 96, 123, 0.1);
}

.fade-in {
  opacity: 0;
  transform: translateY(14px);
}

.fade-in.in-view {
  animation: slideFade 0.58s ease forwards;
}

@keyframes slideFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body::before {
    opacity: 0.24;
    background-position: center center;
  }

  body::after {
    background:
      linear-gradient(180deg, rgba(250, 248, 252, 0.9), rgba(246, 245, 248, 0.97)),
      radial-gradient(720px 420px at 100% -6%, rgba(106, 96, 123, 0.14), transparent 60%),
      radial-gradient(640px 360px at 0% -6%, rgba(39, 13, 86, 0.08), transparent 58%);
  }

  .metric-card dt {
    font-size: 1.7rem;
  }

  .timeline-step {
    padding-left: 2.1rem;
  }
}
