:root {
  --ui-bg-1: #f6faff;
  --ui-bg-2: #f1f7ff;
  --ui-bg-3: #ffffff;
  --ui-ink-1: #0f2038;
  --ui-ink-2: #355272;
  --ui-line-1: #d7e4f5;
  --ui-brand-1: #0a3f96;
  --ui-brand-2: #1a69d6;
  --ui-brand-3: #12b1cf;
  --ui-radius-1: 14px;
  --ui-radius-2: 18px;
  --ui-shadow-1: 0 8px 22px rgba(8, 36, 84, 0.08);
  --ui-shadow-2: 0 14px 34px rgba(8, 36, 84, 0.12);
  --ui-shadow-3: 0 20px 40px rgba(7, 32, 74, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ui-ink-1);
  background:
    radial-gradient(44rem 24rem at 6% -12%, rgba(26, 106, 214, 0.11), rgba(26, 106, 214, 0)),
    radial-gradient(34rem 19rem at 100% -10%, rgba(18, 177, 207, 0.09), rgba(18, 177, 207, 0)),
    linear-gradient(180deg, var(--ui-bg-1), var(--ui-bg-2) 42%, var(--ui-bg-3) 100%);
}

main > section {
  scroll-margin-top: 102px;
}

.site-header {
  transition: background-color 260ms ease, box-shadow 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}

body.nav-scrolled .site-header {
  border-bottom-color: rgba(11, 42, 87, 0.16);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(8, 38, 89, 0.12);
}

.nav-shell {
  transition: min-height 220ms ease;
}

body.nav-scrolled .nav-shell {
  min-height: 70px;
}

.site-nav {
  border-color: rgba(10, 62, 144, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.92)),
    linear-gradient(120deg, rgba(16, 95, 190, 0.04), rgba(18, 177, 207, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(8, 39, 92, 0.1);
}

.site-nav a {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 240ms ease, color 220ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  transform: translateY(-1px);
}

.site-nav a.nav-solutioning {
  min-width: 156px;
}

.site-nav a.nav-solutioning .nav-main {
  font-weight: 800;
}

.site-nav a.nav-solutioning .nav-micro {
  opacity: 0.98;
}

main > section:nth-of-type(odd):not(.home-hero):not(.hero) {
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.72), rgba(245, 250, 255, 0.42));
}

main > section:nth-of-type(even):not(.home-hero):not(.hero) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 253, 255, 0.38));
}

.section-intro h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.54rem;
}

.section-intro h2::before {
  content: '';
  width: 1.08rem;
  height: 1.08rem;
  border-radius: 999px;
  flex: 0 0 1.08rem;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #1562cf, #0d3e95);
  box-shadow: 0 4px 12px rgba(10, 68, 155, 0.24);
}

.card,
.lead-strip,
.fork-card,
.diff-card,
.value-card,
.plan-card,
.site-journey-step,
.hero-preview,
.val2-card,
.meth2-card,
.sv2-card,
.pp-card,
.tc-card,
.rd-card {
  border-radius: var(--ui-radius-2);
  border-color: var(--ui-line-1);
  box-shadow: var(--ui-shadow-1);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 220ms ease;
}

.card:hover,
.lead-strip:hover,
.fork-card:hover,
.diff-card:hover,
.value-card:hover,
.plan-card:hover,
.site-journey-step:hover,
.hero-preview:hover,
.val2-card:hover,
.meth2-card:hover,
.sv2-card:hover,
.pp-card:hover,
.tc-card:hover,
.rd-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-2);
  border-color: #bfd5ef;
}

.button,
button,
input[type='submit'] {
  box-shadow: 0 12px 30px rgba(10, 66, 150, 0.24);
}

.button:hover,
button:hover,
input[type='submit']:hover {
  box-shadow: 0 16px 34px rgba(10, 66, 150, 0.3);
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(18, 102, 214, 0.28);
  outline-offset: 2px;
}

.table-wrap,
.comparison-table-wrap,
.value-table-wrap,
.mapping-table-wrap,
.terms-table-wrap,
.policy-table-wrap {
  border: 1px solid #d6e3f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(8, 36, 82, 0.05);
}

table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

table tbody tr:nth-child(2n) td {
  background: #f8fbff;
}

table tbody tr:hover td {
  background: #eef5ff;
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid #cddcf0;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 200ms ease, background 200ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #a7c3e8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1a69d6;
  box-shadow: 0 0 0 4px rgba(26, 105, 214, 0.14);
}

.ui-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  background: rgba(15, 57, 123, 0.08);
}

.ui-scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a3f96 0%, #1a69d6 54%, #1ab3d5 100%);
  box-shadow: 0 0 12px rgba(15, 83, 189, 0.38);
  transition: width 110ms linear;
}

.ui-back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 260;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #c6d8ee;
  color: #0f448f;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 28px rgba(7, 35, 80, 0.16);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.ui-back-to-top:hover {
  box-shadow: var(--ui-shadow-3);
}

.ui-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ui-reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-reveal.ui-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ui-parallax {
  --ui-parallax: 0px;
  transform: translate3d(0, var(--ui-parallax), 0);
  transition: transform 80ms linear;
  will-change: transform;
}

body:not(.ui-ready) main {
  opacity: 0.985;
}

body.ui-ready main {
  opacity: 1;
  transition: opacity 280ms ease;
}

html.ui-page-transitioning body {
  opacity: 0.86;
  transition: opacity 140ms ease;
}

@media (max-width: 1120px) {
  .site-nav a.nav-solutioning {
    min-width: 0;
  }

  .ui-back-to-top {
    right: 0.7rem;
    bottom: 0.75rem;
  }

  table th {
    position: static;
  }
}

@media (min-width: 981px) {
  body.home-page .home-differentiation .section-intro h2 {
    white-space: nowrap;
    font-size: clamp(1.3rem, 1.95vw, 1.84rem);
  }
}

@media (max-width: 980px) {
  body.home-page .home-differentiation .section-intro h2 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ui-reveal,
  .ui-parallax,
  .site-nav a,
  .card,
  .button,
  .ui-back-to-top {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
