:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #edf3f9;
  --ink: #111827;
  --muted: #64748b;
  --line: #d8e2ee;
  --blue: #0074d9;
  --cyan: #18c8dc;
  --purple: #7b2fc9;
  --graphite: #141922;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(20, 31, 48, .12);
  --container: min(1180px, calc(100% - 40px));
  --hero-title: #082b5f;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 248, 252, .92);
  border-bottom: 1px solid rgba(216, 226, 238, .82);
  backdrop-filter: blur(18px);
  will-change: transform;
  transition: transform 320ms var(--ease-out-quint), background-color 240ms var(--ease-out-quart), border-color 240ms var(--ease-out-quart), box-shadow 240ms var(--ease-out-quart);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(216, 226, 238, .92);
  box-shadow: 0 14px 32px rgba(20, 31, 48, .08);
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 12px));
}

.nav-shell {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--graphite);
  white-space: nowrap;
  transition: transform 220ms var(--ease-out-quart);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(216, 226, 238, .92);
  box-shadow: 0 10px 24px rgba(20, 31, 48, .08);
  transition: box-shadow 260ms var(--ease-out-quart), transform 260ms var(--ease-out-quart), border-color 260ms var(--ease-out-quart);
}

.brand:hover .brand-logo-shell {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 217, .18);
  box-shadow: 0 14px 28px rgba(20, 31, 48, .12);
}

.brand-logo {
  display: block;
  width: clamp(154px, 16vw, 248px);
  height: auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 116, 217, .98), rgba(24, 200, 220, .92)),
    var(--blue);
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 116, 217, .24);
  transition: box-shadow 260ms var(--ease-out-quart), transform 260ms var(--ease-out-quart);
}

.brand:hover .brand-mark {
  transform: rotate(-3deg) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 116, 217, .28);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, .86);
  border-left: 0;
}

.brand-word {
  font-size: 19px;
}

.brand-x {
  color: var(--blue);
  font-size: 24px;
  margin-left: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  padding: 11px 12px;
  border-radius: 6px;
  transition: color 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart), transform 180ms var(--ease-out-quart);
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(0, 116, 217, .08);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 14px 28px rgba(0, 116, 217, .22);
  transition: transform 180ms var(--ease-out-quart), box-shadow 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 116, 217, .28);
}

.nav-cta:active,
.button:active {
  transform: translateY(0) scale(.98);
}

.button.secondary {
  color: var(--graphite) !important;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(0, 116, 217, .28);
  box-shadow: 0 12px 26px rgba(20, 31, 48, .08);
}

.button.dark {
  background: var(--graphite);
  box-shadow: 0 14px 28px rgba(20, 25, 34, .22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--graphite);
  transition: transform 180ms var(--ease-out-quart), box-shadow 180ms var(--ease-out-quart);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 31, 48, .08);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  padding: 92px 0;
}

.section.tight {
  padding: 64px 0;
}

.section.dark {
  background: var(--graphite);
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 56px 0 72px;
  background:
    linear-gradient(90deg, rgba(245, 248, 252, 1) 0%, rgba(245, 248, 252, .96) 38%, rgba(245, 248, 252, .58) 62%, rgba(245, 248, 252, .2) 100%),
    radial-gradient(circle at 82% 12%, rgba(24, 200, 220, .16), transparent 30%);
}

.hero-fullbleed {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--bg);
}

.hero-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(245, 248, 252, .98) 0%, rgba(245, 248, 252, .92) 30%, rgba(245, 248, 252, .48) 56%, rgba(245, 248, 252, .08) 100%),
    linear-gradient(180deg, rgba(245, 248, 252, .18), rgba(245, 248, 252, .38)),
    radial-gradient(circle at 15% 36%, rgba(24, 200, 220, .18), transparent 34%);
  pointer-events: none;
}

.hero-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, .58fr) minmax(280px, .42fr);
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-fullbleed .hero-grid {
  grid-template-columns: minmax(320px, 720px);
  min-height: calc(100vh - 204px);
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  color: var(--hero-title);
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -.01em;
  animation: heroFadeUp 720ms var(--ease-out-expo) both;
}

.hero-fullbleed .hero-copy {
  max-width: 700px;
}

.hero-fullbleed h1 {
  max-width: 760px;
}

.hero-fullbleed .hero-copy > p {
  max-width: 600px;
  color: #3b5f8a;
  font-weight: 500;
}

.hero p,
.page-hero p,
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.62;
}

.hero-copy > p,
.page-hero .section-actions,
.hero-actions {
  animation: heroFadeUp 720ms var(--ease-out-expo) 90ms both;
}

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

.hero-media {
  position: relative;
  animation: heroImageIn 820ms var(--ease-out-expo) 160ms both;
}

.hero-fullbleed .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-fullbleed .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 0;
  box-shadow: none;
}

.hero-media img,
.wide-image img,
.media-frame img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 420ms var(--ease-out-quart), box-shadow 420ms var(--ease-out-quart);
}

.hero-media:hover img,
.media-frame:hover img,
.image-strip:hover img,
.cta-band:hover > img {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(20, 31, 48, .16);
}

.hero-fullbleed .hero-media:hover img {
  transform: none;
  box-shadow: none;
}

.hero-note strong,
.stat strong {
  display: block;
  color: var(--graphite);
  font-size: 15px;
  margin-bottom: 4px;
}

.eyeline {
  display: inline-flex;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(280px, .42fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.section-head.dark h2,
.section-head.dark p,
.dark h2,
.dark h3 {
  color: #ffffff;
}

.section-head.dark p,
.dark p {
  color: #b8c6d8;
}

.ecosystem-grid,
.solution-grid,
.trust-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-item,
.solution-item,
.trust-card,
.support-card,
.distributor-card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 220ms var(--ease-out-quart), box-shadow 220ms var(--ease-out-quart), border-color 220ms var(--ease-out-quart);
}

.product-item:hover,
.solution-item:hover,
.trust-card:hover,
.support-card:hover,
.distributor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 116, 217, .22);
  box-shadow: 0 16px 36px rgba(20, 31, 48, .08);
}

.product-item h3,
.solution-item h3,
.trust-card h3,
.support-card h3,
.distributor-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.product-item p,
.solution-item p,
.trust-card p,
.support-card p,
.distributor-card p {
  line-height: 1.62;
}

.product-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 6px;
  color: var(--blue);
  background: rgba(0, 116, 217, .09);
  font-weight: 900;
  transition: transform 220ms var(--ease-out-quart), background-color 220ms var(--ease-out-quart);
}

.product-item:hover .product-code {
  transform: scale(1.06);
  background: rgba(24, 200, 220, .16);
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.proof-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.proof-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.proof-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(24, 200, 220, .16);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.software-band {
  background:
    linear-gradient(135deg, rgba(20, 25, 34, 1), rgba(27, 31, 47, 1) 54%, rgba(45, 26, 65, 1));
  color: #ffffff;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.feature-list span {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e8eef7;
  font-weight: 700;
  transition: transform 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart);
}

.feature-list span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
}

.quote {
  font-size: 20px;
  line-height: 1.42;
  color: var(--graphite);
  margin-bottom: 20px;
}

.quote-source {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.cta-band {
  padding: 52px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(260px, .55fr);
  gap: 34px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.page-hero {
  padding: 78px 0 56px;
  background: linear-gradient(180deg, #ffffff, var(--bg));
}

.page-hero-fullbleed {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--bg);
}

.page-hero-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(245, 248, 252, .98) 0%, rgba(245, 248, 252, .92) 32%, rgba(245, 248, 252, .52) 58%, rgba(245, 248, 252, .12) 100%),
    linear-gradient(180deg, rgba(245, 248, 252, .12), rgba(245, 248, 252, .34)),
    radial-gradient(circle at 18% 28%, rgba(0, 116, 217, .14), transparent 30%);
  pointer-events: none;
}

.page-hero-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1fr;
  gap: 42px;
  align-items: center;
}

.page-hero-fullbleed .page-hero-grid {
  grid-template-columns: minmax(320px, 700px);
  min-height: calc(100vh - 210px);
  position: relative;
  z-index: 2;
}

.page-hero-fullbleed .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero-fullbleed .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  border-radius: 0;
  box-shadow: none;
}

.page-hero-fullbleed h1 {
  max-width: 780px;
  color: var(--hero-title);
}

.page-hero-fullbleed p {
  max-width: 580px;
  color: #355986;
  font-weight: 500;
}

.page-hero.simple .page-hero-grid {
  grid-template-columns: 1fr;
}

.image-strip {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-detail,
.solution-detail {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.product-detail:last-child,
.solution-detail:last-child {
  border-bottom: 0;
}

.detail-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.detail-link {
  color: var(--blue);
  font-weight: 850;
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.region-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms var(--ease-out-quart), background-color 180ms var(--ease-out-quart), color 180ms var(--ease-out-quart), border-color 180ms var(--ease-out-quart);
}

.region-tabs button:hover {
  transform: translateY(-1px);
}

.region-tabs button[aria-pressed="true"] {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.region-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  animation: panelIn 260ms var(--ease-out-quart) both;
}

.download-list {
  display: grid;
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms var(--ease-out-quart);
}

.download-item:hover {
  transform: translateX(4px);
}

.site-footer {
  padding: 44px 0;
  background: var(--graphite);
  color: #ffffff;
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #b8c6d8;
  font-size: 14px;
}

.footer-note {
  color: #b8c6d8;
  font-size: 14px;
  margin-top: 12px;
  max-width: 620px;
}

:focus-visible {
  outline: 3px solid rgba(24, 200, 220, .72);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms var(--ease-out-quart), transform 620ms var(--ease-out-quart);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .split-band,
  .cta-band,
  .region-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid,
  .solution-grid,
  .trust-grid,
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail,
  .solution-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand-logo-shell {
    padding: 7px 10px;
  }

  .brand-logo {
    width: clamp(146px, 42vw, 196px);
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 14px auto 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 220ms var(--ease-out-quart), transform 220ms var(--ease-out-quart), visibility 220ms var(--ease-out-quart);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 56px;
  }

  .hero-fullbleed {
    min-height: calc(100vh - 68px);
    padding: 52px 0;
  }

  .page-hero-fullbleed {
    min-height: calc(100vh - 68px);
    padding: 52px 0;
  }

  .hero-fullbleed::before {
    background:
      linear-gradient(180deg, rgba(245, 248, 252, .96) 0%, rgba(245, 248, 252, .9) 52%, rgba(245, 248, 252, .7) 100%);
  }

  .page-hero-fullbleed::before {
    background:
      linear-gradient(180deg, rgba(245, 248, 252, .96) 0%, rgba(245, 248, 252, .88) 48%, rgba(245, 248, 252, .68) 100%);
  }

  .hero-fullbleed .hero-media img {
    object-position: 64% center;
    opacity: .42;
  }

  .page-hero-fullbleed .hero-media img {
    object-position: 62% center;
    opacity: .38;
  }

  .hero-grid,
  .page-hero-grid {
    gap: 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-fullbleed h1 {
    font-size: 42px;
  }

  .section {
    padding: 64px 0;
  }

  .ecosystem-grid,
  .solution-grid,
  .trust-grid,
  .support-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
