:root {
  --bg: #050814;
  --bg-2: #08111f;
  --panel: rgba(14, 24, 44, .72);
  --panel-strong: rgba(15, 28, 54, .92);
  --stroke: rgba(148, 163, 184, .18);
  --stroke-strong: rgba(94, 234, 212, .35);
  --text: #e5f0ff;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --blue: #6366f1;
  --violet: #a855f7;
  --green: #22c55e;
  --amber: #f59e0b;
  --danger: #fb7185;
  --shadow: 0 28px 90px rgba(0, 0, 0, .45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 211, 238, .16), transparent 34rem),
    radial-gradient(circle at 85% 0%, rgba(168, 85, 247, .18), transparent 38rem),
    linear-gradient(180deg, #030711 0%, var(--bg) 42%, #050816 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-orb {
  width: 400px;
  height: 400px;
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: -2;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 211, 238, .11), transparent 62%);
  filter: blur(2px);
  transition: opacity .2s ease;
}

a { color: inherit; }
::selection { background: rgba(34, 211, 238, .32); color: #fff; }

.glass-nav {
  background: rgba(4, 10, 24, .36);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, .13);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.glass-nav.scrolled {
  background: rgba(4, 10, 24, .82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .32);
  border-color: rgba(94, 234, 212, .20);
}
.navbar-toggler { border-color: rgba(255, 255, 255, .18); }
.navbar-toggler-icon { filter: invert(1); }
.nav-link { color: rgba(226, 232, 240, .78); font-weight: 600; font-size: .94rem; }
.nav-link:hover, .nav-link:focus { color: #fff; }
.navbar-brand { color: #fff; font-weight: 800; letter-spacing: -.03em; }
.navbar-brand:hover { color: #fff; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(99, 102, 241, .24));
  border: 1px solid rgba(94, 234, 212, .35);
  box-shadow: 0 0 34px rgba(34, 211, 238, .22);
  position: relative;
  overflow: hidden;
}
.brand-mark span {
  position: absolute;
  width: 5px;
  bottom: 8px;
  border-radius: 99px;
  background: linear-gradient(to top, var(--teal), var(--cyan));
  animation: brandPulse 1.6s ease-in-out infinite;
}
.brand-mark span:nth-child(1) { height: 12px; left: 10px; animation-delay: -.3s; }
.brand-mark span:nth-child(2) { height: 18px; left: 16px; animation-delay: -.1s; }
.brand-mark span:nth-child(3) { height: 9px; left: 22px; animation-delay: -.55s; }
.brand-copy { font-size: 1.08rem; }

.btn-primary {
  --bs-btn-bg: linear-gradient(135deg, #22d3ee, #6366f1);
  --bs-btn-border-color: rgba(94, 234, 212, .3);
  --bs-btn-hover-border-color: rgba(255,255,255,.48);
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  border: 1px solid rgba(94, 234, 212, .35);
  color: #fff;
  font-weight: 750;
}
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(34, 211, 238, .18), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -30%;
  width: 40%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: btnSweep 3.2s ease-in-out infinite;
}
.btn-soft {
  border-color: rgba(226, 232, 240, .22);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.btn-soft:hover { border-color: rgba(94, 234, 212, .45); background: rgba(255,255,255,.08); color: #fff; }

.hero-section {
  position: relative;
  min-height: 100vh;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 72% 40%, rgba(34, 211, 238, .08), transparent 28rem), linear-gradient(180deg, transparent 0%, rgba(5, 8, 20, .88) 94%);
}
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .65);
  animation: liveDot 1.8s infinite;
}
.hero-title {
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #dbeafe 47%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--soft);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  max-width: 720px;
  margin-top: 1.55rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 2rem;
}
.hero-stats div {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(15, 23, 42, .54);
  backdrop-filter: blur(18px);
}
.hero-stats strong, .hero-stats span {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.04em;
}
.hero-stats strong { color: #fff; }
.hero-stats span { color: var(--cyan); }
.hero-stats p, .microcopy {
  color: var(--muted);
  font-size: .82rem;
  margin: .28rem 0 0;
}

.hero-machine {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, .18), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .72));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  transform-style: preserve-3d;
}
.hero-machine::before {
  content: "";
  position: absolute;
  inset: 42px 0 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .7;
  transform: perspective(700px) rotateX(60deg) translateY(50px) scale(1.25);
  transform-origin: bottom;
}
.machine-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .46);
  position: relative;
  z-index: 2;
}
.machine-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}
.machine-topbar span:nth-child(1) { background: var(--danger); }
.machine-topbar span:nth-child(2) { background: var(--amber); }
.machine-topbar span:nth-child(3) { background: var(--green); }
.machine-topbar em {
  color: var(--muted);
  font-style: normal;
  font-size: .82rem;
  margin-left: .5rem;
}
.machine-grid {
  position: relative;
  height: 360px;
  z-index: 1;
}
.tdms-file-card, .processor-core, .viz-stack {
  position: absolute;
  border: 1px solid rgba(94, 234, 212, .28);
  background: rgba(8, 18, 34, .84);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 80px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
}
.tdms-file-card {
  left: 8%;
  top: 24%;
  width: 128px;
  height: 154px;
  border-radius: 22px;
  padding: 1.2rem;
}
.file-corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(34,211,238,.18));
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.file-label { font-weight: 900; letter-spacing: .08em; color: #fff; margin-bottom: 1.4rem; }
.file-lines span {
  display: block;
  height: 7px;
  border-radius: 99px;
  margin: .52rem 0;
  background: linear-gradient(90deg, var(--cyan), transparent);
  animation: lineScan 1.7s ease-in-out infinite;
}
.file-lines span:nth-child(2) { width: 78%; animation-delay: -.3s; }
.file-lines span:nth-child(3) { width: 54%; animation-delay: -.6s; }
.processor-core {
  left: 42%;
  top: 20%;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  color: #a7f3d0;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 900;
}
.core-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, .45);
  animation: spin 10s linear infinite;
}
.core-ring.alt {
  inset: 34px;
  border-color: rgba(168, 85, 247, .45);
  animation-duration: 6s;
  animation-direction: reverse;
}
.viz-stack {
  right: 7%;
  top: 18%;
  width: 160px;
  height: 210px;
  border-radius: 26px;
  padding: 1rem;
  display: grid;
  gap: .75rem;
}
.mini-chart {
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.mini-chart.bars { display: flex; align-items: end; gap: .35rem; padding: .65rem; }
.mini-chart.bars span {
  flex: 1;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(to top, var(--blue), var(--cyan));
  animation: barPulse 1.6s ease-in-out infinite;
}
.mini-chart.bars span:nth-child(1) { height: 30%; }
.mini-chart.bars span:nth-child(2) { height: 76%; animation-delay: -.2s; }
.mini-chart.bars span:nth-child(3) { height: 46%; animation-delay: -.45s; }
.mini-chart.bars span:nth-child(4) { height: 88%; animation-delay: -.68s; }
.mini-chart.wave svg { width: 100%; height: 100%; }
.mini-chart.wave path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 260;
  animation: dash 2.6s linear infinite;
}
.mini-chart.pdf-card {
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,.24), rgba(34,211,238,.12));
}
.flow-beam {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  top: 44%;
  transform-origin: left center;
  filter: drop-shadow(0 0 10px var(--cyan));
  opacity: .8;
}
.beam-1 { left: 27%; width: 15%; animation: beam 2.2s ease-in-out infinite; }
.beam-2 { left: 60%; width: 15%; animation: beam 2.2s ease-in-out infinite .5s; }
.data-packet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px var(--cyan);
  offset-path: path("M92 170 C190 100, 260 230, 350 155 S520 105, 610 150");
  animation: packet 4s linear infinite;
}
.p2 { animation-delay: -1.2s; }
.p3 { animation-delay: -2.4s; }
.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 7s ease-in-out infinite; }
.float-c { animation: floatC 6.5s ease-in-out infinite; }
.terminal-card {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 7%;
  z-index: 2;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .68);
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.terminal-line { opacity: 0; transform: translateY(6px); animation: typeLine .7s ease forwards; }
.terminal-line:nth-child(2) { animation-delay: .6s; }
.terminal-line:nth-child(3) { animation-delay: 1.2s; }
.terminal-line:nth-child(4) { animation-delay: 1.8s; }
.terminal-line span { color: var(--teal); margin-right: .45rem; }

.section-pad { padding: 112px 0; position: relative; }
.section-title {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 900;
  margin-bottom: 1rem;
}
.section-text {
  color: var(--soft);
  line-height: 1.75;
  font-size: 1.05rem;
  max-width: 760px;
}
.problem-section, .blueprint-section, .automation-section {
  background: linear-gradient(180deg, rgba(2, 6, 23, .18), rgba(15, 23, 42, .28));
}

.comparison-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.1rem;
  align-items: stretch;
}
.board-column {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, .16);
  padding: 1.5rem;
  min-height: 330px;
  box-shadow: var(--shadow);
}
.muted-card { background: rgba(15, 23, 42, .58); }
.accent-card {
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, .18), transparent 15rem), rgba(15, 23, 42, .78);
  border-color: rgba(94, 234, 212, .28);
}
.board-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .22);
}
.board-column h3 { font-weight: 850; letter-spacing: -.03em; margin-bottom: 1rem; }
.board-column ul { padding-left: 1.15rem; color: var(--soft); line-height: 1.9; margin: 0; }
.board-divider { display: grid; place-items: center; width: 46px; }
.board-divider span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 40px rgba(34, 211, 238, .4);
  position: relative;
}
.board-divider span::before, .board-divider span::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.board-divider span::before { right: 38px; }
.board-divider span::after { left: 38px; transform: rotate(180deg); }

.feature-grid { perspective: 1200px; }
.feature-card {
  height: 100%;
  min-height: 280px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, .72), rgba(15, 23, 42, .36));
  padding: 1.45rem;
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 70%;
  background: radial-gradient(circle, rgba(34, 211, 238, .13), transparent 58%);
  opacity: 0;
  transition: opacity .25s ease;
}
.feature-card:hover { border-color: rgba(94, 234, 212, .38); box-shadow: 0 28px 92px rgba(34, 211, 238, .12); }
.feature-card:hover::after { opacity: 1; }
.feature-card h3 { margin-top: 1.5rem; font-weight: 850; letter-spacing: -.04em; }
.feature-card p { color: var(--soft); line-height: 1.65; margin: 0; }
.feature-orbit, .feature-wave, .feature-doc, .feature-bot {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .18);
  position: relative;
  display: grid;
  place-items: center;
}
.feature-orbit::before, .feature-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(34, 211, 238, .55);
  border-radius: 50%;
  inset: 13px;
  animation: spin 8s linear infinite;
}
.feature-orbit::after { inset: 25px; border-color: rgba(168,85,247,.55); animation-direction: reverse; animation-duration: 5s; }
.feature-orbit span { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.feature-wave { overflow: hidden; }
.feature-wave span {
  position: absolute;
  width: 115%;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: waveMove 2s linear infinite;
}
.feature-wave span:nth-child(1) { top: 26px; }
.feature-wave span:nth-child(2) { top: 39px; animation-delay: -.4s; }
.feature-wave span:nth-child(3) { top: 52px; animation-delay: -.8s; }
.feature-doc span {
  display: block;
  width: 38px;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin: 3px 0;
  animation: lineScan 1.8s ease-in-out infinite;
}
.feature-bot::before {
  content: "";
  width: 42px;
  height: 30px;
  border-radius: 13px;
  border: 2px solid rgba(34, 211, 238, .7);
  box-shadow: 0 0 20px rgba(34, 211, 238, .25);
}
.feature-bot span::before, .feature-bot span::after {
  content: "";
  position: absolute;
  top: 38px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.feature-bot span::before { left: 29px; }
.feature-bot span::after { left: 43px; }

.ideas-marquee {
  margin-top: 3.5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 999px;
  background: rgba(15, 23, 42, .5);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: .75rem;
  width: max-content;
  padding: .72rem;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  white-space: nowrap;
  color: #dbeafe;
  font-weight: 700;
  border: 1px solid rgba(94, 234, 212, .2);
  background: rgba(34, 211, 238, .07);
  border-radius: 999px;
  padding: .65rem 1rem;
}

.pipeline-map {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  align-items: center;
  padding: 1.3rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .54);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pipeline-node {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3rem;
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.pipeline-node.active { border-color: rgba(94, 234, 212, .35); box-shadow: inset 0 0 30px rgba(34,211,238,.08); }
.pipeline-node span { color: var(--cyan); font-size: .8rem; font-weight: 900; letter-spacing: .1em; }
.pipeline-node strong { font-size: 1.35rem; letter-spacing: -.04em; }
.pipeline-node small { color: var(--muted); }
.pipeline-link { height: 2px; background: rgba(148, 163, 184, .18); position: relative; overflow: hidden; }
.pipeline-link i { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: linkPulse 1.8s linear infinite; }
.radar-card {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .58);
  padding: 1.4rem;
}
.radar {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.2), transparent 65%);
  border: 1px solid rgba(34, 211, 238, .24);
  overflow: hidden;
}
.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(34,211,238,.58), transparent 30%, transparent 100%);
  animation: spin 3s linear infinite;
}
.radar span {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.radar span:nth-child(1) { inset: 12%; }
.radar span:nth-child(2) { inset: 27%; }
.radar span:nth-child(3) { inset: 42%; }
.radar span:nth-child(4) { width: 7px; height: 7px; background: var(--danger); border: 0; left: 64%; top: 32%; box-shadow: 0 0 14px var(--danger); }
.radar-card h3 { letter-spacing: -.04em; font-weight: 850; }
.radar-card p { color: var(--soft); margin: 0; line-height: 1.65; }

.demo-shell {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(94, 234, 212, .22);
  background: linear-gradient(145deg, rgba(15, 23, 42, .86), rgba(2, 6, 23, .72));
  padding: 1.2rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
}
.demo-shell::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  right: -18rem;
  top: -18rem;
  background: radial-gradient(circle, rgba(34, 211, 238, .16), transparent 64%);
  pointer-events: none;
}
.demo-toolbar, .table-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.pill-label {
  display: inline-flex;
  margin-bottom: .4rem;
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 900;
  color: #a7f3d0;
}
.demo-toolbar h3, .table-panel h4 { margin: 0; letter-spacing: -.04em; font-weight: 850; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  border: 1px solid rgba(148, 163, 184, .18);
  color: var(--soft);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: .62rem .95rem;
  font-weight: 800;
  transition: all .2s ease;
}
.chip:hover, .chip.active { border-color: rgba(94, 234, 212, .45); color: #fff; background: rgba(34, 211, 238, .12); box-shadow: 0 0 24px rgba(34,211,238,.12); }
.chart-panel {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .5);
  overflow: hidden;
}
.plot-area { position: relative; z-index: 1; width: 100%; height: 440px; }
.chart-glow {
  position: absolute;
  inset: auto 10% -35% 10%;
  height: 55%;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.kpi-card {
  min-height: 130px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi-card span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.kpi-card strong { font-size: 2rem; font-weight: 950; letter-spacing: -.06em; line-height: 1; }
.kpi-card small { color: var(--cyan); font-weight: 800; }
.report-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  border: 1px solid rgba(94, 234, 212, .2);
  border-radius: 24px;
  background: rgba(34, 211, 238, .07);
  padding: 1rem;
}
.report-card button { grid-column: 1 / -1; }
.report-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.58), rgba(34,211,238,.35));
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.report-card h4 { margin: 0 0 .35rem; font-weight: 850; letter-spacing: -.04em; }
.report-card p { margin: 0; color: var(--soft); font-size: .92rem; line-height: 1.5; }
.table-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, .42);
  padding: 1rem;
  overflow: hidden;
}
.table-panel-head p { color: var(--muted); margin: .25rem 0 0; }
.demo-table { --bs-table-bg: transparent; --bs-table-border-color: rgba(148, 163, 184, .12); }
.demo-table th { color: #a7f3d0; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.demo-table td { color: #dbeafe; }
.badge-pass, .badge-warn {
  display: inline-flex;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-weight: 900;
  font-size: .73rem;
  letter-spacing: .08em;
}
.badge-pass { background: rgba(34, 197, 94, .14); color: #86efac; border: 1px solid rgba(34, 197, 94, .22); }
.badge-warn { background: rgba(251, 113, 133, .14); color: #fda4af; border: 1px solid rgba(251, 113, 133, .28); }
.toggle-switch { display: inline-flex; align-items: center; gap: .6rem; color: var(--soft); font-weight: 750; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-switch span {
  width: 46px;
  height: 26px;
  border-radius: 99px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(255,255,255,.06);
  position: relative;
}
.toggle-switch span::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease, background .2s ease;
}
.toggle-switch input:checked + span { background: rgba(34,211,238,.22); border-color: rgba(94,234,212,.4); }
.toggle-switch input:checked + span::before { transform: translateX(19px); background: var(--cyan); }

.automation-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.automation-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .45);
  border-radius: 18px;
  padding: .9rem;
}
.automation-list span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .2);
  color: var(--cyan);
  font-weight: 950;
}
.automation-list p { color: var(--soft); margin: .3rem 0 0; line-height: 1.55; }
.automation-visual { position: relative; min-height: 460px; }
.code-window {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(94, 234, 212, .22);
  border-radius: var(--radius-xl);
  background: rgba(2, 6, 23, .72);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.code-window pre {
  margin: 0;
  padding: 2rem;
  color: #dbeafe;
  font-size: clamp(.85rem, 1.5vw, 1rem);
  line-height: 1.8;
  white-space: pre-wrap;
}
.code-window code { color: inherit; }
.floating-badges span {
  position: absolute;
  display: inline-flex;
  border: 1px solid rgba(94, 234, 212, .3);
  background: rgba(15, 23, 42, .75);
  backdrop-filter: blur(12px);
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  padding: .65rem .9rem;
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
  animation: floatBadge 7s ease-in-out infinite;
}
.floating-badges span:nth-child(1) { right: 4%; top: 15%; }
.floating-badges span:nth-child(2) { right: 20%; bottom: 10%; animation-delay: -1.3s; }
.floating-badges span:nth-child(3) { left: 8%; bottom: 16%; animation-delay: -2.2s; }
.floating-badges span:nth-child(4) { right: 2%; bottom: 30%; color: #fda4af; animation-delay: -3.4s; }
.floating-badges span:nth-child(5) { left: 18%; top: 10%; animation-delay: -4.5s; }

.proof-card {
  height: 100%;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, .5);
  padding: 1.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.proof-card strong { display: block; font-size: 1.2rem; letter-spacing: -.04em; margin-bottom: .7rem; }
.proof-card p { color: var(--soft); margin: 0; line-height: 1.65; }
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(94, 234, 212, .25);
  background: radial-gradient(circle at 82% 20%, rgba(34, 211, 238, .2), transparent 24rem), linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .82));
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3rem);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 30rem;
  height: 30rem;
  background: conic-gradient(from 180deg, rgba(34,211,238,.28), rgba(99,102,241,.25), transparent, rgba(34,211,238,.28));
  filter: blur(34px);
  animation: spin 12s linear infinite;
}
.contact-card .row { position: relative; z-index: 1; }
.contact-card h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.06em; font-weight: 900; margin-bottom: 1rem; }
.contact-card p { color: var(--soft); line-height: 1.7; margin-bottom: 0; }
.footer {
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding: 2rem 0;
  color: var(--muted);
  background: rgba(2, 6, 23, .55);
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@keyframes brandPulse { 0%,100% { transform: scaleY(.75); opacity: .65; } 50% { transform: scaleY(1.2); opacity: 1; } }
@keyframes btnSweep { 0%, 45% { transform: translateX(0) rotate(20deg); opacity: 0; } 55% { opacity: 1; } 100% { transform: translateX(420%) rotate(20deg); opacity: 0; } }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.65); } 70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lineScan { 0%,100% { opacity: .45; transform: scaleX(.72); transform-origin: left; } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes barPulse { 0%,100% { transform: scaleY(.65); opacity: .72; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -520; } }
@keyframes beam { 0%,100% { opacity: .18; transform: scaleX(.3); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes packet { to { offset-distance: 100%; } }
@keyframes typeLine { to { opacity: 1; transform: translateY(0); } }
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(14px) scale(1.03); } }
@keyframes floatC { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-13px) rotate(-2deg); } }
@keyframes waveMove { 0% { transform: translateX(-18%) skewY(-12deg); } 100% { transform: translateX(18%) skewY(12deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes linkPulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes floatBadge { 0%,100% { transform: translate3d(0,0,0) rotate(-2deg); } 50% { transform: translate3d(10px,-18px,0) rotate(2deg); } }


/* Desktop-only clearance for the fixed navbar in the hero.
   Mobile already has its own top spacing in the max-width media query below. */
@media (min-width: 992px) {
  .hero-copy-col {
    transform: translateY(clamp(1.75rem, 3.5vh, 3rem));
  }
}

@media (max-width: 1199.98px) {
  .hero-machine { min-height: 520px; }
  .processor-core { left: 39%; }
  .viz-stack { right: 5%; }
}
@media (max-width: 991.98px) {
  .hero-section .min-vh-100 { min-height: auto !important; padding-top: 8rem !important; padding-bottom: 4rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .comparison-board { grid-template-columns: 1fr; }
  .board-divider { display: none; }
  .pipeline-map { grid-template-columns: 1fr; gap: .8rem; }
  .pipeline-link { height: 34px; width: 2px; margin: auto; }
  .pipeline-link i { animation: linkPulseVertical 1.8s linear infinite; }
  .radar-card { grid-template-columns: 1fr; }
  .radar { max-width: 150px; }
}
@keyframes linkPulseVertical { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@media (max-width: 767.98px) {
  .section-pad { padding: 80px 0; }
  .demo-toolbar, .table-panel-head { align-items: flex-start; flex-direction: column; }
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-machine { min-height: 520px; border-radius: 24px; }
  .tdms-file-card { left: 7%; top: 22%; transform: scale(.86); }
  .processor-core { left: 34%; top: 18%; transform: scale(.86); }
  .viz-stack { right: 5%; top: 25%; transform: scale(.84); }
  .flow-beam, .data-packet { display: none; }
  .terminal-card { font-size: .78rem; left: 4%; right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
