:root {
  --ls-bg: #08090b;
  --ls-bg-deep: #050609;
  --ls-surface: #111319;
  --ls-surface-2: #151820;
  --ls-text: #f3f5f7;
  --ls-muted: #8e95a3;
  --ls-cyan: #54e7ff;
  --ls-cyan-soft: #8cecff;
  --ls-lime: #c8ff5a;
  --ls-line: rgba(219, 233, 255, 0.12);
  --ls-line-cyan: rgba(84, 231, 255, 0.34);
  --ls-display: 'Space Grotesk', sans-serif;
  --ls-body: 'Inter', sans-serif;
  --ls-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ls-bg);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(90% 54% at 72% 0%, rgba(19, 77, 88, 0.12), transparent 70%),
    var(--ls-bg);
  color: var(--ls-text);
  font-family: var(--ls-body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 28% at 14% 10%, rgba(200, 255, 90, 0.035), transparent 74%),
    radial-gradient(36% 30% at 86% 46%, rgba(84, 231, 255, 0.035), transparent 72%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

em {
  color: var(--ls-lime);
  font-style: normal;
}

::selection {
  color: #071012;
  background: var(--ls-cyan);
}

.ls-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.ls-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 14%, #000, transparent 78%);
}

.ls-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ls-lime), var(--ls-cyan));
  box-shadow: 0 0 14px rgba(84, 231, 255, 0.5);
}

.ls-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 23px 42px;
  border-bottom: 1px solid transparent;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.ls-nav.is-scrolled {
  padding-block: 15px;
  background: rgba(8, 9, 11, 0.76);
  border-color: var(--ls-line);
  backdrop-filter: blur(18px);
}

.ls-brand {
  justify-self: start;
  color: var(--ls-lime);
  font-family: var(--ls-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.28em;
  transition: text-shadow 0.3s ease;
}

.ls-brand:hover {
  text-shadow: 0 0 24px rgba(200, 255, 90, 0.48);
}

.ls-nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.ls-nav-links a {
  position: relative;
  color: #cdd2da;
  font-size: 14px;
  transition: color 0.25s ease;
}

.ls-nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ls-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.ls-nav-links a:hover {
  color: #fff;
}

.ls-nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ls-nav-github {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid rgba(84, 231, 255, 0.52);
  border-radius: 8px;
  color: var(--ls-cyan-soft);
  font-size: 14px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ls-nav-github:hover {
  color: #091012;
  background: var(--ls-cyan);
  box-shadow: 0 12px 35px rgba(84, 231, 255, 0.16);
  transform: translateY(-2px);
}

.ls-nav-github svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-menu {
  display: none;
  width: 28px;
  border: 0;
  background: transparent;
}

.ls-menu span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--ls-text);
  transition: transform 0.25s ease;
}

main,
.ls-footer {
  position: relative;
  z-index: 2;
}

.ls-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(610px, 1.22fr);
  align-items: center;
  gap: 10px;
  padding: 112px 3.8vw 80px;
  overflow: hidden;
  isolation: isolate;
}

.ls-hero::after {
  content: '';
  position: absolute;
  right: -15%;
  bottom: -46%;
  left: -15%;
  height: 55%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--ls-bg) 75%);
}

.constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.68;
  pointer-events: none;
}

.ls-hero-copy {
  position: relative;
  z-index: 6;
  width: 100%;
  min-width: 0;
  max-width: 660px;
  padding-bottom: 20px;
}

.ls-product {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
  color: #e9eef3;
  font-family: var(--ls-display);
  font-size: 18px;
  font-weight: 600;
}

.ls-product img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 18px rgba(84, 231, 255, 0.25));
}

.ls-hero h1 {
  font-family: var(--ls-display);
  font-size: clamp(58px, 6.45vw, 104px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
  white-space: nowrap;
}

.ls-hero h1 em {
  display: inline-block;
  margin-top: 9px;
  text-shadow: 0 0 35px rgba(200, 255, 90, 0.12);
}

.ls-hero-copy > p {
  max-width: 510px;
  margin-top: 30px;
  color: #a9b0bd;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}

body.is-ready [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
body.is-ready [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
body.is-ready [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

.ls-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.ls-button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.ls-button::after {
  content: '';
  position: absolute;
  inset: -50% auto -50% -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.52), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

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

.ls-button:hover::after {
  left: 125%;
}

.ls-button-primary {
  color: #071113;
  background: linear-gradient(112deg, #54e7ff, #9ee7d0);
  box-shadow: 0 14px 40px rgba(84, 231, 255, 0.12);
}

.ls-button-primary:hover {
  box-shadow: 0 18px 46px rgba(84, 231, 255, 0.23);
}

.ls-button-ghost {
  border-color: rgba(84, 231, 255, 0.48);
  background: rgba(6, 12, 15, 0.5);
}

.ls-button-ghost:hover {
  border-color: var(--ls-cyan);
  background: rgba(84, 231, 255, 0.055);
}

.ls-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-button-ghost svg:first-child path {
  fill: currentColor;
  stroke: none;
}

.ls-orbit-stage {
  position: relative;
  z-index: 5;
  width: min(59vw, 910px);
  height: min(72vw, 720px);
  justify-self: end;
  perspective: 1400px;
}

.ls-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(84, 231, 255, 0.38);
  stroke-width: 0.8;
  pointer-events: none;
}

.ls-orbits ellipse:nth-child(2) {
  opacity: 0.72;
  stroke-dasharray: 3 7;
}

.ls-orbits ellipse:nth-child(3) {
  opacity: 0.44;
  stroke: rgba(200, 255, 90, 0.5);
}

.orbit-signal {
  stroke: rgba(200, 255, 90, 0.62);
  stroke-width: 1.2;
  stroke-dasharray: 2 220;
  stroke-linecap: round;
  animation: orbit-signal 6s linear infinite;
}

@keyframes orbit-signal {
  to { stroke-dashoffset: -444; }
}

.ls-app-window {
  position: absolute;
  top: 23%;
  right: -1%;
  width: 83%;
  padding: 9px 9px 10px;
  overflow: hidden;
  border: 1px solid rgba(112, 226, 255, 0.52);
  border-radius: 14px;
  background: rgba(11, 13, 17, 0.94);
  box-shadow:
    0 60px 110px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(84, 231, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(1.6deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.ls-app-window::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0.08), transparent 18% 76%, rgba(84,231,255,0.06));
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding-inline: 5px;
}

.window-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6258;
}

.window-bar > span:nth-child(2) { background: #f5bd3f; }
.window-bar > span:nth-child(3) { background: #52c950; }

.window-title {
  position: absolute;
  left: 50%;
  color: #656c78;
  font-family: var(--ls-mono);
  font-size: 9px;
  transform: translateX(-50%);
}

.window-viewport {
  position: relative;
  aspect-ratio: 1.476 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  background: #07080c;
}

.app-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.8s ease, transform 1.2s cubic-bezier(.16,1,.3,1);
}

.app-shot.is-active {
  opacity: 1;
  transform: scale(1);
}

.window-scan {
  position: absolute;
  z-index: 3;
  top: -8%;
  right: 0;
  left: 0;
  height: 12%;
  pointer-events: none;
  opacity: 0.65;
  background: linear-gradient(180deg, transparent, rgba(84, 231, 255, 0.12), rgba(84, 231, 255, 0.44), transparent);
  animation: window-scan 4.2s ease-in-out infinite;
}

@keyframes window-scan {
  0%, 10% { transform: translateY(-120%); opacity: 0; }
  28% { opacity: 0.68; }
  74% { opacity: 0.45; }
  90%, 100% { transform: translateY(940%); opacity: 0; }
}

.window-state {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 9px;
  color: #59616c;
  font-family: var(--ls-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.window-state span {
  position: relative;
  transition: color 0.35s ease;
}

.window-state span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.window-state span.is-active {
  color: var(--ls-cyan);
}

.ls-domain,
.ls-tag {
  position: absolute;
  z-index: 8;
  padding: 5px 8px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: node-float 5s ease-in-out infinite;
}

.ls-domain {
  color: var(--ls-cyan-soft);
  font-family: var(--ls-mono);
  font-size: 10px;
}

.ls-domain::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ls-cyan);
  box-shadow: 0 0 14px rgba(84, 231, 255, 0.8);
}

.ls-tag {
  border: 1px solid rgba(200, 255, 90, 0.62);
  border-radius: 5px;
  color: var(--ls-lime);
  background: rgba(8, 12, 10, 0.62);
  font-family: var(--ls-mono);
  font-size: 9px;
}

.domain-a { top: 19%; left: 2%; animation-delay: -1s; }
.domain-b { top: 5%; left: 45%; animation-delay: -2.8s; }
.domain-c { top: 14%; right: 1%; animation-delay: -0.5s; }
.domain-d { right: 5%; bottom: 7%; animation-delay: -3.7s; }
.domain-e { bottom: 4%; left: 4%; animation-delay: -1.8s; }
.tag-a { top: 8%; left: 22%; animation-delay: -2s; }
.tag-b { bottom: 23%; left: 1%; animation-delay: -4s; }
.tag-c { right: 0; bottom: 29%; animation-delay: -0.7s; }

@keyframes node-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.ls-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #6f7682;
  font-family: var(--ls-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.ls-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: var(--ls-line);
}

.ls-scroll i::after {
  content: '';
  position: absolute;
  inset: -100% 0 0;
  background: linear-gradient(var(--ls-cyan), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  to { transform: translateY(200%); }
}

.ls-workflow,
.ls-control {
  position: relative;
  padding: 100px 4vw;
}

.ls-workflow {
  min-height: 1100px;
  overflow: hidden;
  border-top: 1px solid var(--ls-line);
  background:
    radial-gradient(42% 28% at 51% 44%, rgba(84, 231, 255, 0.045), transparent 74%),
    linear-gradient(180deg, var(--ls-bg-deep), var(--ls-bg));
}

.ls-section-intro,
.control-copy {
  position: relative;
  z-index: 4;
  max-width: 700px;
}

[data-section-reveal] {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}

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

.ls-section-intro h2,
.control-copy h2 {
  font-family: var(--ls-display);
  font-size: clamp(44px, 4.65vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.ls-section-intro > p,
.control-copy > p {
  max-width: 600px;
  margin-top: 24px;
  color: var(--ls-muted);
  font-size: 17px;
  line-height: 1.7;
}

.flow-scene {
  position: relative;
  width: min(1400px, 100%);
  height: 395px;
  margin: 32px auto 0;
}

.flow-path {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}

.flow-path-base,
.flow-path-live {
  fill: none;
  stroke-width: 1.3;
}

.flow-path-base {
  stroke: rgba(84, 231, 255, 0.16);
}

.flow-path-live {
  stroke: url('#unused');
  stroke: var(--ls-cyan);
  filter: drop-shadow(0 0 7px rgba(84, 231, 255, 0.55));
  stroke-linecap: round;
}

.flow-panel {
  position: absolute;
  z-index: 2;
  width: min(36vw, 500px);
  opacity: 0.4;
  transition: opacity 0.5s ease, filter 0.5s ease;
  filter: saturate(0.55);
}

.flow-panel.is-active {
  opacity: 1;
  filter: saturate(1);
}

.flow-capture {
  top: 48px;
  left: -3vw;
  transform: rotateZ(-1.4deg) perspective(1000px) rotateY(5deg);
}

.flow-retrieve {
  top: 0;
  right: -2.6vw;
  transform: rotateZ(1.2deg) perspective(1000px) rotateY(-5deg);
}

.flow-screen {
  position: relative;
  aspect-ratio: 1.476 / 1;
  overflow: hidden;
  border: 1px solid rgba(134, 163, 190, 0.24);
  border-radius: 12px;
  background: var(--ls-surface);
  box-shadow: 0 45px 75px rgba(0,0,0,0.42);
}

.flow-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-burst {
  position: absolute;
  right: -17%;
  bottom: 19%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tag-burst span {
  padding: 6px 10px;
  border: 1px solid rgba(84, 231, 255, 0.35);
  border-radius: 100px;
  color: var(--ls-cyan);
  background: rgba(12, 34, 36, 0.88);
  font-family: var(--ls-mono);
  font-size: 9px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.16,1,.3,1);
}

.flow-capture.is-active .tag-burst span {
  opacity: 1;
  transform: translateX(0);
}

.flow-capture.is-active .tag-burst span:nth-child(2) { transition-delay: 0.08s; }
.flow-capture.is-active .tag-burst span:nth-child(3) { transition-delay: 0.16s; }

.local-node {
  position: absolute;
  top: 102px;
  left: 50%;
  z-index: 3;
  display: flex;
  width: 148px;
  height: 174px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(84, 231, 255, 0.26);
  border-radius: 22px;
  color: #a9afb9;
  background: rgba(10, 14, 17, 0.9);
  box-shadow: 0 24px 60px rgba(0,0,0,0.42);
  transform: translateX(-50%);
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.local-node.is-active {
  color: var(--ls-text);
  border-color: rgba(84, 231, 255, 0.78);
  box-shadow: 0 24px 80px rgba(0,0,0,0.46), 0 0 45px rgba(84, 231, 255, 0.11);
  transform: translateX(-50%) scale(1.04);
}

.local-node strong {
  font-family: var(--ls-display);
  font-size: 14px;
}

.local-node > span {
  color: var(--ls-muted);
  font-size: 10px;
}

.database-icon {
  position: relative;
  width: 56px;
  height: 50px;
}

.database-icon i {
  position: absolute;
  left: 7px;
  width: 42px;
  height: 17px;
  border: 2px solid var(--ls-cyan);
  border-radius: 50%;
}

.database-icon i:nth-child(1) { top: 2px; }
.database-icon i:nth-child(2) { top: 15px; border-top-color: transparent; }
.database-icon i:nth-child(3) { top: 28px; border-top-color: transparent; }

.local-node.is-active .database-icon {
  animation: db-pulse 1.8s ease-in-out infinite;
}

@keyframes db-pulse {
  50% { filter: drop-shadow(0 0 8px rgba(84, 231, 255, 0.68)); transform: translateY(-2px); }
}

.signal-dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(200, 255, 90, 0.7);
  border-radius: 50%;
  background: var(--ls-lime);
  box-shadow: 0 0 7px var(--ls-lime), 0 0 26px rgba(200, 255, 90, 0.7);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.flow-notes {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1280px, 100%);
  margin: -2px auto 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 8vw, 130px);
  list-style: none;
}

.flow-notes li {
  opacity: 0.34;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.flow-notes li.is-active {
  opacity: 1;
  transform: translateY(0);
}

.flow-notes li > span {
  color: var(--ls-lime);
  font-family: var(--ls-mono);
  font-size: 13px;
}

.flow-notes h3 {
  margin: 10px 0 25px;
  color: var(--ls-text);
  font-family: var(--ls-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.flow-notes h3::after {
  content: '';
  display: block;
  width: 38px;
  height: 1px;
  margin-top: 12px;
  background: var(--ls-cyan);
}

.flow-notes strong {
  display: block;
  margin-bottom: 11px;
  font-family: var(--ls-display);
  font-size: 17px;
  font-weight: 600;
}

.flow-notes p {
  color: var(--ls-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ls-control {
  padding-top: 60px;
  padding-bottom: 0;
  overflow: hidden;
  border-top: 1px solid var(--ls-line);
  background:
    radial-gradient(45% 33% at 84% 40%, rgba(84, 231, 255, 0.045), transparent 72%),
    var(--ls-bg-deep);
}

.control-copy {
  max-width: 640px;
}

.control-system {
  position: relative;
  width: min(1440px, 100%);
  min-height: 410px;
  margin: 25px auto 0;
}

.manage-window {
  position: absolute;
  top: 10px;
  left: -8%;
  z-index: 3;
  width: min(42vw, 600px);
  aspect-ratio: 1.476 / 1;
  overflow: hidden;
  border: 1px solid rgba(132, 157, 185, 0.24);
  border-radius: 13px;
  background: var(--ls-surface);
  box-shadow: 0 55px 100px rgba(0,0,0,0.5);
  transform: perspective(1200px) rotateY(8deg) rotateZ(1.2deg);
  will-change: transform;
}

.manage-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manage-pulse {
  position: absolute;
  top: 37%;
  left: 45%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ls-cyan);
  box-shadow: 0 0 0 0 rgba(84, 231, 255, 0.45);
  animation: manage-pulse 2.5s ease-out infinite;
}

@keyframes manage-pulse {
  65%, 100% { box-shadow: 0 0 0 38px rgba(84, 231, 255, 0); }
}

.data-streams {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 410px;
  overflow: visible;
  pointer-events: none;
  fill: var(--ls-lime);
}

.data-streams path {
  fill: none;
  stroke: rgba(84, 231, 255, 0.28);
  stroke-width: 1.15;
  stroke-dasharray: 5 7;
  stroke-dashoffset: 120;
}

.ls-control.is-visible .data-streams path {
  animation: stream-flow 6s linear infinite;
}

.data-streams path:nth-child(2) { animation-delay: -2s !important; }
.data-streams path:nth-child(3) { animation-delay: -4s !important; }

@keyframes stream-flow {
  to { stroke-dashoffset: 0; }
}

.data-streams circle {
  filter: drop-shadow(0 0 6px var(--ls-lime));
}

.capability-lines {
  position: absolute;
  top: 0;
  right: 8%;
  z-index: 4;
  width: min(38vw, 520px);
}

.capability-lines article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  min-height: 105px;
  align-items: center;
  border-bottom: 1px solid var(--ls-line);
  opacity: 0.28;
  transform: translateX(25px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.16,1,.3,1);
}

.ls-control.is-visible .capability-lines article {
  opacity: 1;
  transform: translateX(0);
}

.ls-control.is-visible .capability-lines article:nth-child(2) { transition-delay: 0.14s; }
.ls-control.is-visible .capability-lines article:nth-child(3) { transition-delay: 0.28s; }

.cap-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(84, 231, 255, 0.3);
  border-radius: 50%;
  color: var(--ls-cyan);
  background: rgba(8, 18, 20, 0.72);
}

.cap-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-lines article:nth-child(3) .cap-icon svg path {
  fill: currentColor;
  stroke: none;
}

.capability-lines h3 {
  margin-bottom: 8px;
  font-family: var(--ls-display);
  font-size: 19px;
  font-weight: 600;
}

.capability-lines p {
  color: var(--ls-muted);
  font-size: 13px;
  line-height: 1.55;
}

.export-files {
  position: absolute;
  top: 15px;
  right: -4%;
  z-index: 5;
  width: 100px;
  height: 310px;
}

.export-file {
  position: absolute;
  display: flex;
  width: 93px;
  height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(130, 224, 236, 0.38);
  border-radius: 8px 18px 8px 8px;
  color: var(--ls-cyan-soft);
  background: linear-gradient(145deg, rgba(22,26,31,0.96), rgba(8,10,13,0.96));
  box-shadow: 0 22px 60px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.16,1,.3,1);
}

.ls-control.is-visible .export-file {
  opacity: 1;
  transform: translateX(0);
}

.file-json { top: 0; transition-delay: 0.38s; }
.file-csv { bottom: 0; transition-delay: 0.55s !important; }

.export-file i {
  font-family: var(--ls-mono);
  font-size: 27px;
  font-style: normal;
}

.export-file span {
  font-family: var(--ls-mono);
  font-size: 12px;
}

.ls-final-cta {
  position: relative;
  display: grid;
  width: min(1240px, 92vw);
  min-height: 205px;
  margin: 0 auto;
  grid-template-columns: 270px 1fr;
  align-items: center;
  gap: 35px;
  border-top: 1px solid var(--ls-line);
  border-bottom: 1px solid var(--ls-line);
  overflow: hidden;
}

.ls-final-cta::before,
.ls-final-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -3%;
  width: 54%;
  height: 68%;
  border: 1px solid rgba(84, 231, 255, 0.22);
  border-radius: 50%;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.ls-final-cta::after {
  left: -5%;
  width: 64%;
  height: 42%;
  border-color: rgba(200, 255, 90, 0.18);
  transform: translateY(-50%) rotate(8deg);
}

.clip-drawing {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.clip-drawing svg {
  width: 130px;
  overflow: visible;
  fill: none;
  stroke: var(--ls-cyan-soft);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(84, 231, 255, 0.32));
}

.clip-drawing path {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  transition: stroke-dashoffset 1.8s cubic-bezier(.16,1,.3,1);
}

.ls-control.is-visible .clip-drawing path {
  stroke-dashoffset: 0;
}

.ls-final-cta > div:last-child {
  position: relative;
  z-index: 3;
}

.ls-final-cta h2 {
  font-family: var(--ls-display);
  font-size: clamp(34px, 3.55vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.ls-footer {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 0 30px;
  grid-template-columns: repeat(3, 1fr);
  color: #686f7b;
  font-size: 13px;
}

.ls-footer a {
  transition: color 0.25s ease;
}

.ls-footer a:hover { color: var(--ls-cyan); }
.ls-footer a:nth-child(2) { justify-self: center; }
.ls-footer a:nth-child(3) { justify-self: end; }

@media (max-width: 1220px) {
  .ls-nav { padding-inline: 28px; }
  .ls-hero { grid-template-columns: minmax(350px, 0.82fr) minmax(520px, 1.18fr); padding-inline: 28px; }
  .ls-orbit-stage { width: 62vw; transform: translateX(4vw); }
  .ls-domain, .ls-tag { transform: scale(0.9); }
  .capability-lines { right: 7%; width: 39vw; }
  .export-files { display: none; }
  .ls-footer { max-width: calc(100% - 56px); }
}

@media (max-width: 960px) {
  .ls-nav { grid-template-columns: 1fr auto auto; }
  .ls-nav-links {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    width: min(78vw, 350px);
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 120px 38px;
    border-left: 1px solid var(--ls-line);
    background: rgba(5, 7, 9, 0.97);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(.16,1,.3,1);
  }
  .ls-nav-links.is-open { transform: translateX(0); }
  .ls-nav-links a { font-size: 19px; }
  .ls-menu { position: relative; z-index: 2; display: block; border: 0; background: none; }
  .ls-menu.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .ls-menu.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .ls-hero {
    min-height: 1120px;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-top: 145px;
    text-align: center;
  }
  .ls-hero-copy { max-width: 760px; margin: 0 auto; }
  .ls-product, .ls-actions { justify-content: center; }
  .ls-hero-copy > p { margin-inline: auto; }
  .ls-orbit-stage { width: min(92vw, 840px); height: min(76vw, 700px); justify-self: center; transform: none; }
  .ls-app-window { top: 18%; right: 6%; width: 88%; }
  .ls-scroll { bottom: 20px; }

  .ls-workflow, .ls-control { padding-inline: 28px; }
  .flow-scene { height: 800px; margin-top: 55px; }
  .flow-path { opacity: 0.55; }
  .flow-panel { width: min(66vw, 500px); }
  .flow-capture { top: 40px; left: -4vw; }
  .flow-retrieve { top: 410px; right: -4vw; }
  .local-node { top: 305px; }
  .flow-notes { margin-top: 30px; gap: 35px; }

  .control-system { min-height: 1040px; }
  .manage-window { top: 30px; left: -8%; width: min(72vw, 650px); }
  .capability-lines { top: 480px; right: 0; width: min(78vw, 610px); }
  .data-streams { top: 240px; transform: rotate(19deg); transform-origin: center; }
  .ls-final-cta { margin-top: -20px; grid-template-columns: 240px 1fr; gap: 30px; }
}

@media (max-width: 700px) {
  .ls-nav { gap: 14px; padding: 17px 18px; }
  .ls-nav-github { padding: 9px 12px; }
  .ls-nav-github svg { display: none; }
  .ls-brand { font-size: 15px; letter-spacing: 0.2em; }

  .ls-hero { min-height: 930px; padding: 112px 18px 90px; }
  .ls-product { margin-bottom: 22px; font-size: 16px; }
  .ls-product img { width: 38px; height: 38px; }
  .ls-hero > * { min-width: 0; }
  .ls-hero h1 { font-size: clamp(38px, 10.2vw, 48px); white-space: normal; }
  .ls-hero h1 > span, .ls-hero h1 > em { display: inline-block; white-space: nowrap; }
  .ls-hero-copy > p { margin-top: 23px; font-size: 16px; }
  .ls-hero .ls-actions { display: grid; width: min(270px, 100%); margin: 28px auto 0; grid-template-columns: 1fr; }
  .ls-button { min-height: 50px; padding-inline: 19px; font-size: 14px; }
  .ls-orbit-stage { width: calc(100vw + 50px); max-width: none; height: 520px; margin-top: 10px; }
  .ls-app-window { top: 25%; right: 7%; width: 86%; transform: rotateZ(1.3deg); }
  .ls-domain, .ls-tag { display: none; }
  .ls-orbits { opacity: 0.72; }

  .ls-workflow, .ls-control { padding: 100px 18px; }
  .ls-workflow { min-height: 1450px; }
  .ls-section-intro h2, .control-copy h2 { font-size: clamp(42px, 12vw, 58px); white-space: normal; }
  .ls-section-intro > p, .control-copy > p { font-size: 15px; }
  .flow-scene { height: 670px; margin-top: 50px; }
  .flow-path { display: none; }
  .flow-panel { width: 92vw; }
  .flow-capture { top: 0; left: -10vw; }
  .flow-retrieve { top: 400px; right: -10vw; }
  .local-node { top: 270px; width: 126px; height: 144px; }
  .tag-burst { right: -4%; }
  .signal-dot { display: none; }
  .flow-notes { grid-template-columns: 1fr; margin-top: 35px; gap: 45px; }
  .flow-notes li { opacity: 1; transform: none; }
  .flow-notes h3 { margin-bottom: 16px; font-size: 31px; }

  .ls-control { padding-bottom: 0; }
  .control-system { min-height: 940px; margin-top: 25px; }
  .manage-window { top: 20px; left: -22%; width: 115vw; transform: rotateZ(1deg); }
  .data-streams { display: none; }
  .capability-lines { top: 390px; right: 0; width: 100%; }
  .capability-lines article { grid-template-columns: 50px 1fr; gap: 14px; min-height: 155px; }
  .cap-icon { width: 45px; height: 45px; }
  .capability-lines h3 { font-size: 17px; }
  .ls-final-cta { width: 100%; min-height: 440px; margin-top: 20px; grid-template-columns: 1fr; gap: 0; padding: 40px 0; text-align: center; }
  .ls-final-cta::before, .ls-final-cta::after { top: 31%; left: 50%; width: 90%; height: 45%; transform: translate(-50%, -50%) rotate(-7deg); }
  .clip-drawing svg { width: 130px; }
  .ls-final-cta .ls-actions { justify-content: center; }
  .ls-final-cta h2 { font-size: 38px; }
  .ls-footer { max-width: none; margin: 0 18px; padding-bottom: 32px; grid-template-columns: 1fr; gap: 19px; text-align: center; }
  .ls-footer a:nth-child(n) { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-section-reveal], .flow-notes li, .capability-lines article, .export-file {
    opacity: 1 !important;
    transform: none !important;
  }
  .clip-drawing path { stroke-dashoffset: 0; }
}
