
:root {
  --kx-bg: #020817;
  --kx-panel: rgba(14, 25, 39, .78);
  --kx-panel-2: rgba(20, 35, 54, .72);
  --kx-line: rgba(126, 226, 255, .18);
  --kx-text: #eef7ff;
  --kx-muted: rgba(235, 246, 255, .72);
  --kx-accent: #62eaff;
  --kx-accent-2: #8d76ff;
}

* { box-sizing: border-box; }

body.kx-orbitmap-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% 16%, rgba(98,234,255,.16), transparent 32%),
    radial-gradient(circle at 10% 0%, rgba(141,118,255,.14), transparent 34%),
    linear-gradient(135deg, #020817, #061426 52%, #100a26);
  color: var(--kx-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.kx-page-shell {
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.kx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 28px;
  align-items: stretch;
  min-height: 560px;
}

.kx-hero-copy,
.kx-visual-card,
.kx-section,
.kx-footer-cta {
  border: 1px solid rgba(126,226,255,.16);
  background:
    radial-gradient(circle at 16% 0%, rgba(98,234,255,.10), transparent 36%),
    linear-gradient(180deg, rgba(16,30,48,.78), rgba(7,16,30,.72));
  box-shadow: 0 24px 80px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.025);
  border-radius: 28px;
}

.kx-hero-copy {
  padding: clamp(36px, 5vw, 72px);
}

.kx-eyebrow {
  color: var(--kx-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.kx-title {
  font-size: clamp(44px, 6vw, 86px);
  line-height: .94;
  letter-spacing: -.055em;
  margin: 0 0 24px;
  max-width: 960px;
}

.kx-lead {
  color: var(--kx-muted);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.65;
  max-width: 920px;
  margin: 0 0 30px;
}

.kx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.kx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(98,234,255,.38);
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
  background: rgba(98,234,255,.08);
}

.kx-btn.primary {
  background: linear-gradient(135deg, rgba(87,143,255,.96), rgba(136,112,255,.96));
  border-color: rgba(255,255,255,.16);
}

.kx-visual-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 26px;
}

.kx-visual-title {
  position: relative;
  z-index: 4;
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(126,226,255,.22);
  background: rgba(4, 12, 24, .58);
}

.kx-visual-text {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 4;
  color: rgba(235,246,255,.78);
  line-height: 1.5;
  padding: 18px;
  border-radius: 20px;
  background: rgba(3, 10, 20, .62);
  border: 1px solid rgba(126,226,255,.14);
}

.kx-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.kx-core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, #ffffff 0 8%, var(--kx-accent) 9% 22%, rgba(98,234,255,.18) 23% 55%, transparent 56%);
  box-shadow: 0 0 60px rgba(98,234,255,.38);
  animation: kxPulse 3s ease-in-out infinite;
}

.kx-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(98,234,255,.14);
  transform: translate(-50%, -50%);
  animation: kxSpin var(--d) linear infinite;
}

.kx-node {
  position: absolute;
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(126,226,255,.22);
  background: rgba(9, 24, 40, .72);
  box-shadow: 0 0 18px rgba(98,234,255,.12);
  animation: kxFloat 4s ease-in-out infinite;
}

.kx-n1 { left: 12%; top: 22%; }
.kx-n2 { right: 12%; top: 24%; animation-delay: .3s; }
.kx-n3 { left: 16%; bottom: 30%; animation-delay: .6s; }
.kx-n4 { right: 14%; bottom: 28%; animation-delay: .9s; }
.kx-n5 { left: 42%; top: 13%; animation-delay: 1.2s; }
.kx-n6 { left: 42%; bottom: 13%; animation-delay: 1.5s; }

.kx-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98,234,255,.52), transparent);
  transform-origin: left center;
  animation: kxLine 2.8s ease-in-out infinite;
}

.kx-l1 { left: 20%; top: 35%; width: 60%; transform: rotate(16deg); }
.kx-l2 { left: 22%; top: 62%; width: 58%; transform: rotate(-18deg); animation-delay: .4s; }
.kx-l3 { left: 50%; top: 19%; width: 1px; height: 62%; background: linear-gradient(180deg, transparent, rgba(141,118,255,.48), transparent); animation-delay: .8s; }

.kx-stack {
  position: absolute;
  left: 50%;
  bottom: 115px;
  width: 290px;
  transform: translateX(-50%);
}

.kx-layer {
  height: 46px;
  margin: 10px 0;
  border-radius: 14px;
  border: 1px solid rgba(126,226,255,.20);
  background: linear-gradient(90deg, rgba(98,234,255,.10), rgba(141,118,255,.12));
  animation: kxRise 3.6s ease-in-out infinite;
}

.kx-layer:nth-child(2) { animation-delay: .25s; }
.kx-layer:nth-child(3) { animation-delay: .5s; }
.kx-layer:nth-child(4) { animation-delay: .75s; }

.kx-grid-field {
  position: absolute;
  inset: 84px 48px 112px;
  background-image:
    linear-gradient(rgba(98,234,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,234,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  border-radius: 24px;
  border: 1px solid rgba(126,226,255,.16);
  animation: kxGridMove 6s linear infinite;
}

.kx-flow-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--kx-accent);
  box-shadow: 0 0 24px rgba(98,234,255,.64);
  animation: kxTravel 4s linear infinite;
}

.kx-flow-dot.d2 { animation-delay: .7s; }
.kx-flow-dot.d3 { animation-delay: 1.4s; }

.kx-sections {
  display: grid;
  gap: 24px;
  margin-top: 26px;
}

.kx-section {
  padding: clamp(28px, 4vw, 46px);
}

.kx-section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 46px);
  letter-spacing: -.035em;
}

.kx-section p {
  color: var(--kx-muted);
  font-size: 17px;
  line-height: 1.7;
}

.kx-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.kx-card {
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(126,226,255,.16);
  background: rgba(255,255,255,.035);
}

.kx-card strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 8px;
}

.kx-card span {
  color: rgba(235,246,255,.64);
  font-size: 13px;
  line-height: 1.45;
}

.kx-flow-list {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.kx-flow-item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(126,226,255,.14);
}

.kx-flow-item::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #061426;
  font-weight: 950;
  background: linear-gradient(135deg, var(--kx-accent), var(--kx-accent-2));
}

.kx-footer-cta {
  padding: 34px;
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.kx-footer-cta p {
  margin: 0;
  color: var(--kx-muted);
  font-size: 18px;
  line-height: 1.5;
}

@keyframes kxSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes kxPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(.96); opacity: .88; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes kxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes kxLine {
  0%, 100% { opacity: .2; }
  50% { opacity: 1; }
}

@keyframes kxRise {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes kxGridMove {
  to { background-position: 42px 42px; }
}

@keyframes kxTravel {
  0% { left: 15%; top: 74%; opacity: 0; }
  15% { opacity: 1; }
  50% { left: 50%; top: 42%; }
  85% { opacity: 1; }
  100% { left: 84%; top: 22%; opacity: 0; }
}

@media (max-width: 1100px) {
  .kx-hero { grid-template-columns: 1fr; }
  .kx-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .kx-page-shell { width: min(100% - 24px, 1500px); padding-top: 20px; }
  .kx-card-grid { grid-template-columns: 1fr; }
  .kx-footer-cta { flex-direction: column; align-items: flex-start; }
}
