:root {
  color-scheme: light;
  --ink: #10131a;
  --ink-soft: #202636;
  --muted: #5e6676;
  --line: #dce2ea;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --blue: #315cf6;
  --accent: #3f4bd8;
  --accent-soft: #e9ebff;
  --green: #148760;
  --amber: #a45f13;
  --red: #c74343;
  --violet: #6246ea;
  --shadow: 0 28px 80px rgba(16, 19, 26, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 20;
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 226, 234, 0.84);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 860;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(16, 19, 26, 0.08);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(63, 75, 216, 0.7), transparent 58%),
    var(--ink);
  box-shadow: 0 10px 22px rgba(16, 19, 26, 0.14);
}

.brand-word {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  min-height: calc(100dvh - 70px);
  padding: clamp(52px, 7vw, 100px) clamp(20px, 5vw, 72px) 58px;
}

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

.eyebrow {
  margin: 0 0 15px;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(63, 75, 216, 0.24);
  border-radius: 999px;
  color: #3038b7;
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6.7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 820;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 19, 26, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.console {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfd8e4;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.console::before {
  position: absolute;
  inset: 48px auto auto 146px;
  width: 42%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(63, 75, 216, 0.65), transparent);
  opacity: 0.8;
  animation: scan-line 4.8s ease-in-out infinite;
}

.console-topbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.console-topbar strong {
  color: var(--ink);
}

.console-topbar > span {
  justify-self: end;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.console-topbar > span::after {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 6px;
  vertical-align: -0.16em;
  content: "";
  background: var(--accent);
  animation: cursor-blink 1.2s steps(2, start) infinite;
}

.traffic {
  display: inline-flex;
  gap: 7px;
}

.traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic span:first-child {
  background: var(--red);
}

.traffic span:nth-child(2) {
  background: var(--amber);
}

.traffic span:nth-child(3) {
  background: var(--green);
}

.console-body {
  display: grid;
  grid-template-columns: 146px minmax(290px, 1.05fr) minmax(220px, 0.75fr);
  min-height: 560px;
}

.console-sidebar {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: #edf2f6;
}

.sidebar-label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 880;
  text-transform: uppercase;
}

.console-sidebar a {
  display: block;
  margin-bottom: 8px;
  padding: 10px 11px;
  border-radius: 7px;
  color: #596273;
  font-size: 13px;
  font-weight: 760;
}

.console-sidebar a.active {
  color: #ffffff;
  background: var(--ink);
}

.change-map {
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(49, 92, 246, 0.1), transparent 32%),
    var(--surface);
}

.module-header {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.module-header span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.module-header strong {
  font-size: 28px;
  line-height: 1.1;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.node {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 22px rgba(16, 19, 26, 0.06);
  animation: node-breathe 5.6s ease-in-out infinite;
}

.node:nth-child(2) {
  animation-delay: 0.8s;
}

.node:nth-child(3) {
  animation-delay: 1.6s;
}

.node:nth-child(4) {
  animation-delay: 2.4s;
}

.node span {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.node strong {
  font-size: 26px;
}

.node.high {
  border-left: 5px solid var(--red);
}

.node.medium {
  border-left: 5px solid var(--amber);
}

.node.low {
  border-left: 5px solid var(--green);
}

.diff-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  color: #dbe6ff;
  background: #111722;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.diff-block div {
  position: relative;
  overflow-wrap: anywhere;
}

.diff-block div::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
  background: #7487ff;
  box-shadow: 0 0 14px rgba(116, 135, 255, 0.7);
  animation: diff-pulse 2.6s ease-in-out infinite;
}

.diff-block div:nth-child(2)::before {
  animation-delay: 0.45s;
}

.diff-block div:nth-child(3)::before {
  animation-delay: 0.9s;
}

.agent-stack {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 18px;
  border-left: 1px solid var(--line);
  background: #f8fafb;
}

.agent-stack article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  animation: card-lift 7s ease-in-out infinite;
}

.agent-stack article:nth-child(2) {
  animation-delay: 1s;
}

.agent-stack article:nth-child(3) {
  animation-delay: 2s;
}

.agent-stack p {
  margin: 10px 0 0;
  color: #333b49;
  font-size: 14px;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 880;
}

.pill.blue {
  color: var(--blue);
  background: #e8edff;
}

.pill.amber {
  color: var(--amber);
  background: #fff1dc;
}

.pill.green {
  color: var(--green);
  background: #e5f7ef;
}

.signal-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #10131a;
}

.signal-card div {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.signal-card span {
  display: block;
  color: #aab4c6;
  font-size: 11px;
  font-weight: 820;
}

.signal-card strong {
  display: block;
  margin-top: 0;
  font-size: 27px;
}

.section {
  padding: 88px clamp(20px, 5vw, 72px);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
  gap: clamp(30px, 5vw, 84px);
  background: var(--surface);
}

.statement > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.capability-grid article {
  min-height: 310px;
  padding: 34px;
  border-right: 1px solid var(--line);
}

.capability-grid article:last-child {
  border-right: 0;
}

.cap-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.capability-grid p,
.workflow p,
.architecture p {
  color: var(--muted);
  line-height: 1.6;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.timeline div {
  display: grid;
  grid-template-columns: 48px 132px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.timeline div:last-child {
  border-bottom: 0;
}

.timeline span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.timeline strong {
  font-size: 18px;
}

.timeline p {
  margin: 0;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(380px, 0.72fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(49, 92, 246, 0.18), transparent 34%),
    #111722;
}

.architecture .eyebrow {
  border-color: rgba(145, 161, 255, 0.34);
  color: #c8d0ff;
  background: rgba(255, 255, 255, 0.06);
}

@keyframes scan-line {
  0%,
  100% {
    transform: translateX(-40px);
    opacity: 0;
  }

  18%,
  72% {
    opacity: 0.8;
  }

  50% {
    transform: translateX(250px);
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes node-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 8px 22px rgba(16, 19, 26, 0.06);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(16, 19, 26, 0.09);
  }
}

@keyframes diff-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.78);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes card-lift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.architecture-panel {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.row:last-child {
  border-bottom: 0;
}

.row span {
  color: #9ba9bd;
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.row strong {
  font-size: 18px;
  line-height: 1.35;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
  padding: 76px clamp(20px, 5vw, 72px);
  color: var(--ink);
  background: #d8efe6;
}

.cta-section h2 {
  max-width: 900px;
}

.cta-copy p:last-child {
  max-width: 640px;
  margin-top: 22px;
  color: #40524c;
  font-size: 18px;
  line-height: 1.6;
}

.access-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(16, 19, 26, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(16, 19, 26, 0.1);
}

.access-form label {
  display: grid;
  gap: 8px;
  color: #31413d;
  font-size: 13px;
  font-weight: 820;
}

.access-form .full,
.access-form button {
  grid-column: 1 / -1;
}

.access-form input,
.access-form select,
.access-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 19, 26, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 620;
}

.access-form textarea {
  min-height: 108px;
  resize: vertical;
}

.access-form input:focus,
.access-form select:focus,
.access-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(63, 75, 216, 0.18);
}

.access-form button {
  width: 100%;
  cursor: pointer;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #aab4c6;
  background: #0d1017;
}

footer span {
  color: #ffffff;
  font-weight: 820;
}

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

@media (max-width: 1180px) {
  .hero,
  .statement,
  .workflow,
  .architecture {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .console {
    max-width: 980px;
  }

  .console-body {
    grid-template-columns: 146px minmax(320px, 1fr) minmax(220px, 0.72fr);
  }

  .signal-card {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .capability-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  .hero {
    padding-top: 42px;
  }

  .console-body {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .console-sidebar a {
    margin-bottom: 0;
  }

  .agent-stack {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .capability-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-grid article:last-child {
    border-bottom: 0;
  }

  .timeline div {
    grid-template-columns: 40px 1fr;
  }

  .timeline p {
    grid-column: 2;
  }

  .cta-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 540px) {
  .console-topbar {
    grid-template-columns: auto 1fr;
  }

  .console-topbar > span {
    grid-column: 1 / -1;
    justify-self: start;
    padding-bottom: 12px;
  }

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

  .map-grid,
  .signal-card {
    grid-template-columns: 1fr;
  }

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

  .access-form {
    grid-template-columns: 1fr;
  }
}
