:root {
  --bg: #f7f8fb;
  --bg-strong: #ffffff;
  --ink: #050814;
  --ink-soft: #273144;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.11);
  --line-strong: rgba(15, 23, 42, 0.18);
  --cobalt: #1257ff;
  --cobalt-dark: #0730a8;
  --emerald: #00c985;
  --amber: #ffb020;
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 28px 90px rgba(13, 24, 51, 0.14);
  --soft-shadow: 0 18px 46px rgba(13, 24, 51, 0.08);
  --radius: 28px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(18, 87, 255, 0.13), transparent 31rem),
    radial-gradient(circle at 8% 28%, rgba(0, 201, 133, 0.11), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  text-rendering: geometricPrecision;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.section-shell {
  width: min(var(--max), calc(100vw - 44px));
  margin: 0 auto;
}

#top,
#model,
#contact,
#agents,
#sap,
#custom {
  scroll-margin-top: 90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(247, 248, 251, 0.76);
  backdrop-filter: blur(22px) saturate(170%);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(13, 24, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #050814, #172036);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px rgba(5, 8, 20, 0.18);
}

.desktop-nav,
.site-footer nav {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--cobalt);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

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

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-dark));
  color: #fff;
  box-shadow: 0 20px 48px rgba(18, 87, 255, 0.28);
}

.button-secondary,
.button-compact {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(13, 24, 51, 0.06);
}

.button-compact {
  min-height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(72px, 9vh, 110px) 0 68px;
}

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

.hero h1,
.services-hero h1,
.section-heading h2,
.contact-copy h2,
.service-detail h2 {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.07em;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(58px, 7vw, 104px);
  line-height: 0.88;
}

.hero-copy p,
.services-hero-copy,
.section-heading h2 + p,
.contact-copy p,
.service-detail-copy > p {
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
}

.hero-copy p {
  max-width: 570px;
  margin: 28px 0 0;
}

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

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.signal-row div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.signal-row dt {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 900;
}

.signal-row dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.command-stage {
  position: relative;
  min-height: 590px;
  perspective: 1200px;
}

.orbit {
  position: absolute;
  inset: 10% 6%;
  border: 1px solid rgba(18, 87, 255, 0.13);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.orbit-two {
  inset: 19% 18%;
  border-color: rgba(0, 201, 133, 0.18);
  transform: rotate(22deg);
}

.command-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 255, 0.78)),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 520ms ease;
}

.command-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 87, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 87, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.card-topline {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.runtime-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 176px;
  height: 176px;
  transform: translate(-50%, -50%);
}

.core-badge {
  position: absolute;
  inset: 54px;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #050814, #1d2843);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: 0 24px 54px rgba(5, 8, 20, 0.26);
}

.core-rings,
.core-rings::before,
.core-rings::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(18, 87, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.core-rings::before {
  inset: 24px;
  border-color: rgba(0, 201, 133, 0.22);
}

.core-rings::after {
  inset: 48px;
  border-color: rgba(5, 8, 20, 0.12);
}

.runtime-node,
.telemetry-panel {
  position: absolute;
  z-index: 3;
  width: min(235px, 40%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.runtime-node span,
.telemetry-panel span,
.service-tile span,
.model-card span,
.section-heading p,
.service-index {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.runtime-node strong,
.telemetry-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.node-a {
  top: 94px;
  left: 34px;
}

.node-b {
  top: 108px;
  right: 32px;
}

.node-c {
  left: 46px;
  bottom: 76px;
}

.telemetry-panel {
  right: 38px;
  bottom: 52px;
}

.telemetry-panel strong {
  font-size: 34px;
  letter-spacing: -0.07em;
}

.sparkline {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 42px;
  margin-top: 14px;
}

.sparkline i {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(to top, var(--cobalt), var(--emerald));
}

.sparkline i:nth-child(1) { height: 34%; }
.sparkline i:nth-child(2) { height: 52%; }
.sparkline i:nth-child(3) { height: 42%; }
.sparkline i:nth-child(4) { height: 71%; }
.sparkline i:nth-child(5) { height: 60%; }
.sparkline i:nth-child(6) { height: 86%; }
.sparkline i:nth-child(7) { height: 76%; }

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1380px, calc(100vw - 28px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.service-tile {
  min-height: 255px;
  padding: clamp(26px, 4vw, 44px);
  border-right: 1px solid var(--line);
  transition: transform 260ms ease, background 260ms ease;
}

.service-tile:last-child {
  border-right: 0;
}

.service-tile:hover {
  background: #fff;
  transform: translateY(-6px);
}

.service-tile h2,
.model-card h3,
.detail-grid h3,
.metrics-band strong {
  margin: 18px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.service-tile p,
.model-card p,
.detail-grid p,
.metrics-band span {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.model-section {
  padding: clamp(86px, 12vw, 150px) 0 82px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.52fr 1fr;
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.94;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.model-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 252, 0.82));
  box-shadow: 0 18px 48px rgba(13, 24, 51, 0.06);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1380px, calc(100vw - 28px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background: #050814;
  color: #fff;
}

.metrics-band article {
  min-height: 210px;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metrics-band article:last-child {
  border-right: 0;
}

.metrics-band strong {
  display: block;
  color: #fff;
}

.metrics-band span {
  color: rgba(255, 255, 255, 0.66);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 16%, rgba(18, 87, 255, 0.12), transparent 24rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.contact-copy h2 {
  max-width: 840px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
}

.contact-copy p {
  max-width: 620px;
  margin: 18px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  width: min(var(--max), calc(100vw - 44px));
  margin: 0 auto;
  padding: 34px 0 46px;
  color: var(--ink-soft);
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.58fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: end;
  padding: clamp(72px, 10vh, 120px) 0 46px;
}

.services-hero h1 {
  max-width: 820px;
  font-size: clamp(52px, 7vw, 98px);
  line-height: 0.9;
}

.services-hero-copy {
  margin: 0 0 8px;
}

.service-jump {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(13, 24, 51, 0.06);
  backdrop-filter: blur(18px);
}

.service-jump a {
  display: grid;
  place-items: center;
  min-height: 50px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.service-jump a:last-child {
  border-right: 0;
}

.service-jump a:hover {
  background: var(--ink);
  color: #fff;
}

.service-detail {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(26px, 5vw, 74px);
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.service-detail h2 {
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.92;
}

.service-detail-copy > p {
  max-width: 820px;
  margin: 22px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--line);
}

.detail-grid article {
  min-height: 205px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .button-compact {
    display: none;
  }

  .menu-button {
    display: inline-block;
  }

  .mobile-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    z-index: 40;
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
  }

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

  .mobile-nav a:not(.button) {
    padding: 12px 8px;
    color: var(--ink-soft);
    font-weight: 800;
  }

  .hero,
  .services-hero,
  .section-heading,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .command-stage {
    min-height: 520px;
  }

  .service-strip,
  .model-grid,
  .metrics-band,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .service-tile,
  .metrics-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics-band article {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .service-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .brand span:last-child {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .hero h1,
  .services-hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .signal-row {
    grid-template-columns: 1fr;
  }

  .command-stage {
    min-height: 500px;
  }

  .command-card {
    min-height: 500px;
  }

  .runtime-node,
  .telemetry-panel {
    width: 58%;
    padding: 14px;
  }

  .node-a {
    left: 18px;
    top: 76px;
  }

  .node-b {
    right: 18px;
    top: 170px;
  }

  .node-c {
    left: 18px;
    bottom: 92px;
  }

  .telemetry-panel {
    right: 18px;
    bottom: 26px;
  }

  .service-jump {
    top: 72px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
