@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #101318;
  --ink-soft: #252b33;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: #d6e0e7;
  --blue: #0c78f2;
  --blue-dark: #075fc2;
  --cyan: #59dbe8;
  --amber: #ffad33;
  --muted: #5e7182;
  --shell: min(1160px, calc(100% - 40px));
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 19, 24, .84);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px) saturate(140%);
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--amber));
  box-shadow: 0 0 16px rgba(89, 219, 232, .55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-wordmark,
.map-wordmark {
  display: block;
  height: auto;
}

.brand-wordmark {
  width: 132px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
}

.main-nav .nav-cta {
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: var(--white);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 45%, rgba(12, 120, 242, 0.28), transparent 28%),
    linear-gradient(135deg, #0a0d11 0%, #121820 60%, #1a222c 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: '';
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, transparent 5%, black 70%, black 100%);
}

.hero::after {
  position: absolute;
  right: -140px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  content: '';
  border: 1px solid rgba(89, 219, 232, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(89, 219, 232, 0.035), 0 0 0 150px rgba(89, 219, 232, 0.025);
  animation: halo-drift 14s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 72px;
  min-height: 720px;
  padding-top: 90px;
}

.hero-copy {
  animation: hero-enter 800ms cubic-bezier(.2,.72,.2,1) both;
}

.hero-copy .eyebrow {
  animation: hero-enter 750ms 80ms cubic-bezier(.2,.72,.2,1) both;
}

.hero-copy h1 {
  animation: hero-enter 850ms 140ms cubic-bezier(.2,.72,.2,1) both;
}

.hero-copy .hero-lead,
.hero-copy .hero-actions,
.hero-copy .hero-points {
  animation: hero-enter 850ms 220ms cubic-bezier(.2,.72,.2,1) both;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 740px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  font-weight: 700;
}

h1 span {
  color: var(--cyan);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.contact-link svg {
  width: 20px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  position: relative;
  overflow: hidden;
  background: var(--amber);
  color: var(--ink);
}

.button-primary::after {
  position: absolute;
  top: -100%;
  left: -45%;
  width: 30%;
  height: 300%;
  content: '';
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transition: left 500ms ease;
}

.button-primary:hover::after {
  left: 120%;
}

.button-primary:hover {
  background: #ffc05f;
}

.button-secondary {
  border: 1px solid rgba(255,255,255,.26);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(255,255,255,.65);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(255,255,255,.68);
  font-size: .9rem;
  list-style: none;
}

.hero-points li::before {
  margin-right: 8px;
  color: var(--cyan);
  content: '•';
}

.system-map {
  position: relative;
  min-height: 470px;
  --one-x: 0px;
  --one-y: 0px;
  --two-x: 0px;
  --two-y: 0px;
  --three-x: 0px;
  --three-y: 0px;
  --four-x: 0px;
  --four-y: 0px;
  animation: map-enter 900ms 260ms cubic-bezier(.2,.72,.2,1) both;
  perspective: 900px;
}

.system-map::before,
.system-map::after {
  position: absolute;
  content: '';
  background: rgba(89, 219, 232, .4);
}

.system-map::before {
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
  transform: scaleX(0);
  animation: connector-x 900ms 850ms ease forwards;
}

.system-map::after {
  top: 15%;
  left: 50%;
  width: 1px;
  height: 70%;
  transform: scaleY(0);
  animation: connector-y 900ms 850ms ease forwards;
}

.map-core,
.map-module {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(16, 19, 24, .92);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.map-core {
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  text-align: center;
  animation: core-float 5.4s ease-in-out infinite;
}

.map-core::before {
  position: absolute;
  inset: -13px;
  z-index: -1;
  content: '';
  border: 1px solid rgba(89, 219, 232, .2);
  border-radius: inherit;
  animation: core-ring 3.4s ease-out infinite;
}

.map-core .map-wordmark {
  width: 100px;
  margin-bottom: 14px;
}

.map-core strong {
  font-family: 'Manrope', sans-serif;
}

.map-core span {
  margin-top: 2px;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
}

.map-module {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 600;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.map-module:hover {
  border-color: rgba(89, 219, 232, .55);
  background: rgba(27, 32, 39, .97);
  box-shadow: 0 22px 55px rgba(0,0,0,.28), 0 0 28px rgba(89,219,232,.09);
}

.map-module span {
  color: var(--cyan);
  font-family: 'Manrope', sans-serif;
  font-size: .72rem;
}

.module-one { top: 7%; left: 2%; animation: module-float-one 5.2s ease-in-out infinite; }
.module-two { top: 10%; right: 0; animation: module-float-two 6s .35s ease-in-out infinite; }
.module-three { bottom: 10%; left: 0; animation: module-float-three 5.7s .7s ease-in-out infinite; }
.module-four { right: 2%; bottom: 7%; animation: module-float-four 6.3s .2s ease-in-out infinite; }

.section {
  padding: 112px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.section-heading > p,
.architecture-copy > p,
.company-copy > p {
  color: var(--muted);
}

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

.solution-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  transition: transform 300ms cubic-bezier(.2,.72,.2,1), border-color 300ms ease, box-shadow 300ms ease;
}

.solution-card:hover {
  transform: translateY(-7px);
  border-color: rgba(12, 120, 242, .3);
  box-shadow: 0 24px 58px rgba(7, 22, 37, .1);
}

.solution-card.featured {
  min-height: 260px;
  background: var(--ink);
  color: var(--white);
}

.card-index {
  margin-bottom: 44px;
  color: var(--blue);
  font-family: 'Manrope', sans-serif;
  font-size: .75rem;
  font-weight: 800;
}

.featured .card-index {
  color: var(--cyan);
}

.solution-card p {
  color: var(--muted);
}

.featured p {
  color: rgba(255,255,255,.66);
}

.solution-card ul {
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

.solution-card li {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}

.architecture {
  color: var(--white);
  background: #15191f;
}

.architecture-grid,
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.architecture-copy > p {
  color: rgba(255,255,255,.67);
  font-size: 1.04rem;
}

.architecture-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.architecture-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}

.architecture-steps li:last-child {
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.architecture-steps > li > span {
  color: var(--cyan);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.architecture-steps strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.15rem;
}

.architecture-steps p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.58);
}

.trust {
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.trust-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 44px;
}

.trust-items article {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  transition: transform 260ms ease, border-color 260ms ease;
}

.trust-items article:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.trust-items strong {
  font-family: 'Manrope', sans-serif;
  font-size: 1.04rem;
}

.trust-items p {
  margin-bottom: 0;
  color: var(--muted);
}

.company {
  background: var(--paper);
}

.company-copy > p {
  margin-top: 0;
  font-size: 1.08rem;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
}

.location-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.contact {
  padding: 85px 0;
  color: var(--white);
  background: var(--blue);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
}

.contact h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.45);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--reveal-delay, 0ms) cubic-bezier(.2,.72,.2,1),
    transform 700ms var(--reveal-delay, 0ms) cubic-bezier(.2,.72,.2,1);
}

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

.reveal.is-visible.solution-card:hover {
  transform: translateY(-7px);
}

.trust-items article.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-link-secondary {
  color: rgba(255,255,255,.76);
  font-size: .92rem;
  font-weight: 600;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255,255,255,.58);
  background: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 40px;
  font-size: .84rem;
}

.footer-inner strong {
  color: rgba(255,255,255,.82);
  font-weight: 600;
}

.footer-brand {
  color: var(--white);
}

.footer-inner p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes map-enter {
  from { opacity: 0; transform: translateX(28px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes map-enter-mobile {
  from { opacity: 0; transform: translateX(18px) scale(.89); }
  to { opacity: 1; transform: translateX(0) scale(.93); }
}

@keyframes halo-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-42px, -28px, 0) scale(1.08); }
}

@keyframes connector-x {
  to { transform: scaleX(1); }
}

@keyframes connector-y {
  to { transform: scaleY(1); }
}

@keyframes core-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
  50% { transform: translate(-50%, -50%) translateY(-8px) scale(1.015); }
}

@keyframes core-ring {
  0% { opacity: .65; transform: scale(.96); }
  75%, 100% { opacity: 0; transform: scale(1.16); }
}

@keyframes module-float-one {
  0%, 100% { transform: translate(var(--one-x), var(--one-y)); }
  50% { transform: translate(var(--one-x), calc(var(--one-y) - 9px)); }
}

@keyframes module-float-two {
  0%, 100% { transform: translate(var(--two-x), var(--two-y)); }
  50% { transform: translate(var(--two-x), calc(var(--two-y) + 8px)); }
}

@keyframes module-float-three {
  0%, 100% { transform: translate(var(--three-x), var(--three-y)); }
  50% { transform: translate(var(--three-x), calc(var(--three-y) + 9px)); }
}

@keyframes module-float-four {
  0%, 100% { transform: translate(var(--four-x), var(--four-y)); }
  50% { transform: translate(var(--four-x), calc(var(--four-y) - 8px)); }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: #15191f;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .nav-cta {
    padding: 12px 10px;
    border: 0;
  }

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: transparent;
  }

  .menu-button > span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--white);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 150px;
    padding-bottom: 70px;
  }

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

  .system-map {
    min-height: 400px;
  }

  .section-heading,
  .architecture-grid,
  .trust-grid,
  .company-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .solution-card.featured {
    min-height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-grid {
    min-height: auto;
    padding-top: 128px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 7px;
  }

  .system-map {
    min-height: 350px;
    transform: scale(.93);
    animation-name: map-enter-mobile;
  }

  .map-core {
    width: 155px;
    height: 155px;
  }

  .map-module {
    min-width: 135px;
    padding: 11px 12px;
    font-size: .75rem;
  }

  .section {
    padding: 78px 0;
  }

  .solution-grid,
  .trust-items {
    grid-template-columns: 1fr;
  }

  .solution-card,
  .solution-card.featured {
    min-height: auto;
  }

  .contact {
    padding: 68px 0;
  }

  .contact-link {
    overflow-wrap: anywhere;
  }
}

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

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

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