/* ==========================================================================
   Replica website
   Inter variable with optical sizing · deep navy · indigo/cyan light
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-opsz-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #070a14;
  --bg-2: #0b1020;
  --panel: rgb(255 255 255 / 0.035);
  --panel-2: rgb(255 255 255 / 0.06);
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --text: #eef1f8;
  --text-2: #b6bfd3;
  --muted: #7d88a3;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #34d399;
  --grad: linear-gradient(100deg, #a5b4fc 0%, #67e8f9 45%, #c4b5fd 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Noto Sans",
    "Noto Sans Devanagari",
    sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01", "ss03", "cv05";
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.9rem, 8.2vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin: 0 0 24px;
}

.display-sm {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0 0 18px;
}

.h2 {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 680;
  margin: 0;
}

.h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 640;
  margin: 10px 0 12px;
}

.h4 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  font-weight: 620;
  margin: 0 0 8px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 34ch;
  margin: 0 0 32px;
  letter-spacing: -0.008em;
}

.body-lg {
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 46ch;
}

p {
  color: var(--text-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease),
    background 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}

.btn.lg {
  height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn.primary {
  background: #fff;
  color: #0b1020;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.4),
    0 10px 40px -10px rgb(129 140 248 / 0.7);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px #fff,
    0 16px 50px -10px rgb(103 232 249 / 0.8);
}

.btn.ghost {
  color: var(--text-2);
}

.btn.ghost:hover {
  color: var(--text);
}

.btn.glass {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
}

.btn.glass:hover {
  background: rgb(255 255 255 / 0.1);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  transition:
    background 0.35s,
    border-color 0.35s,
    backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgb(7 10 20 / 0.72);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 6px 24px -6px rgb(99 102 241 / 0.8);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-2);
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.04);
  position: relative;
  cursor: pointer;
}

.menu span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease);
}

.menu span:first-child {
  top: 17px;
}

.menu span:last-child {
  top: 23px;
}

.nav.open .menu span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav.open .menu span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

@media (max-width: 920px) {
  .menu {
    display: inline-block;
  }

  .nav-cta .ghost {
    display: none;
  }

  .nav-links {
    position: fixed;
    inset: 70px 12px auto 12px;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgb(11 16 32 / 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px -20px #000;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.25s,
      transform 0.35s var(--ease);
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .nav.open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav.open {
    background: rgb(7 10 20 / 0.9);
    backdrop-filter: blur(14px);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: flex;
  align-items: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback (and loading) backdrop */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 45%, rgb(99 102 241 / 0.35), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgb(34 211 238 / 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgb(167 139 250 / 0.12), transparent 70%), var(--bg);
}

/* Readability scrim over the 3D scene on the text side */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(7 10 20 / 0.9) 0%, rgb(7 10 20 / 0.55) 30%, transparent 52%),
    linear-gradient(180deg, rgb(7 10 20 / 0.75) 0%, transparent 16%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  color: var(--text-2);
  margin: 0 0 28px;
}

.pulse,
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgb(52 211 153 / 0.7);
  animation: pulse 2s infinite;
  display: inline-block;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(52 211 153 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(52 211 153 / 0);
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-ctas.center {
  justify-content: center;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-facts li::before {
  content: "✓";
  color: var(--cyan);
  margin-right: 8px;
}

/* Floating sensor labels tracking 3D points */
.hero-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -46px 0 0 14px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgb(10 14 28 / 0.72);
  border: 1px solid rgb(103 232 249 / 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: opacity 0.4s;
  opacity: 0;
  box-shadow: 0 10px 30px -10px rgb(34 211 238 / 0.45);
}

.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.tag .k {
  color: var(--muted);
}

.tag .v {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #e0fbff;
}

.no-webgl .tag {
  display: none;
}

.health-card {
  position: absolute;
  right: var(--pad);
  bottom: 72px;
  width: 260px;
  padding: 18px;
  border-radius: 18px;
  background: rgb(10 14 28 / 0.66);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.9);
}

.hc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}

.sim {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.hc-score {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
}

.hc-score small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
}

.hc-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.spark {
  width: 100%;
  height: 36px;
  margin-top: 10px;
}

.spark path {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 2.4s 0.6s var(--ease) forwards;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text);
  animation: cue 1.8s infinite var(--ease);
}

@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 920px) {
  .hero {
    align-items: flex-end;
    min-height: max(100svh, 680px);
    padding-bottom: 64px;
  }

  .hero::before {
    background:
      linear-gradient(
        0deg,
        rgb(7 10 20 / 0.96) 8%,
        rgb(7 10 20 / 0.55) 48%,
        rgb(7 10 20 / 0.1) 75%
      ),
      linear-gradient(0deg, var(--bg) 0%, transparent 20%);
  }

  .health-card,
  .scroll-cue {
    display: none;
  }

  .lede {
    max-width: 40ch;
  }
}

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.track span {
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.track span::after {
  content: "✦";
  color: var(--indigo);
  font-size: 0.7rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--pad);
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Products ---------- */

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

.product {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border-color 0.4s,
    transform 0.5s var(--ease);
}

.product:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.product p {
  margin: 0 0 18px;
}

.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgb(34 211 238 / 0.1);
  border: 1px solid rgb(34 211 238 / 0.25);
  margin: 0;
}

.chip.alt {
  color: #ddd6fe;
  background: rgb(167 139 250 / 0.1);
  border-color: rgb(167 139 250 / 0.28);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}

.ticks li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
}

.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgb(34 211 238 / 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.product-visual {
  position: relative;
  height: 200px;
  margin: -6px -6px 22px;
  border-radius: 14px;
  background:
    radial-gradient(80% 90% at 50% 50%, rgb(99 102 241 / 0.18), transparent 70%), rgb(0 0 0 / 0.25);
  border: 1px solid var(--line);
  overflow: hidden;
}

.twin-visual .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgb(103 232 249 / 0.45);
  transform: translate(-50%, -50%);
}

.twin-visual .r1 {
  width: 80px;
  height: 80px;
  border-style: dashed;
  animation: spin 9s linear infinite;
}

.twin-visual .r2 {
  width: 136px;
  height: 136px;
  border-color: rgb(129 140 248 / 0.4);
  animation: spin 16s linear infinite reverse;
}

.twin-visual .r3 {
  width: 196px;
  height: 196px;
  border-color: rgb(255 255 255 / 0.08);
}

.twin-visual .core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 0 60px rgb(34 211 238 / 0.7);
  animation: float 4s ease-in-out infinite;
}

.ping {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.ping::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: ping 2.2s infinite var(--ease);
}

.p1 {
  left: 22%;
  top: 30%;
}

.p2 {
  left: 74%;
  top: 24%;
}

.p2::after {
  animation-delay: 0.7s;
}

.p3 {
  left: 66%;
  top: 76%;
}

.p3::after {
  animation-delay: 1.4s;
}

@keyframes ping {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

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

@keyframes float {
  50% {
    transform: translateY(-6px) rotate(8deg);
  }
}

.lab-visual {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider {
  height: 6px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.08);
  position: relative;
}

.slider span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 3px;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  animation: slide 5s ease-in-out infinite alternate;
}

.slider span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.5);
}

.slider:nth-child(2) span {
  animation-duration: 6.5s;
}

.slider:nth-child(3) span {
  animation-duration: 4.2s;
}

@keyframes slide {
  from {
    width: calc(var(--w) * 0.55);
  }
}

.bars {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgb(167 139 250 / 0.9), rgb(99 102 241 / 0.2));
  animation: bar 2.8s ease-in-out infinite alternate;
}

.bars i:nth-child(1) {
  height: 40%;
}
.bars i:nth-child(2) {
  height: 70%;
  animation-delay: 0.2s;
}
.bars i:nth-child(3) {
  height: 55%;
  animation-delay: 0.4s;
}
.bars i:nth-child(4) {
  height: 90%;
  animation-delay: 0.6s;
}
.bars i:nth-child(5) {
  height: 65%;
  animation-delay: 0.8s;
}
.bars i:nth-child(6) {
  height: 80%;
  animation-delay: 1s;
}
.bars i:nth-child(7) {
  height: 50%;
  animation-delay: 1.2s;
}

@keyframes bar {
  to {
    transform: scaleY(0.55);
    transform-origin: bottom;
  }
}

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  position: relative;
  display: grid;
  gap: 34px;
  --p: 0;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.steps::after {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform-origin: top;
  transform: scaleY(var(--p));
  box-shadow: 0 0 16px rgb(34 211 238 / 0.6);
}

.step {
  display: flex;
  gap: 18px;
  position: relative;
}

.step p {
  margin: 0;
  font-size: 0.98rem;
}

.num {
  position: absolute;
  left: -36px;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  font-size: 0;
}

.step.in .num {
  border-color: var(--cyan);
  box-shadow: 0 0 0 5px rgb(34 211 238 / 0.15);
  transition: all 0.6s var(--ease) 0.3s;
}

.chart-card {
  position: sticky;
  top: 100px;
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgb(99 102 241 / 0.5);
}

.chart-card figcaption {
  display: flex;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-2);
  margin-bottom: 12px;
}

.dev-chart {
  width: 100%;
  height: auto;
  display: block;
}

.dev-chart .gridlines line {
  stroke: rgb(255 255 255 / 0.06);
}

.dev-chart .band {
  fill: rgb(129 140 248 / 0.12);
}

.dev-chart .model {
  fill: none;
  stroke: #a5b4fc;
  stroke-width: 2;
  stroke-dasharray: 7 6;
  opacity: 0.85;
}

.dev-chart .alarm {
  stroke: var(--danger);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.dev-chart text {
  font-family: inherit;
  font-size: 12px;
}

.dev-chart .alarm-t {
  fill: var(--danger);
}

.dev-chart .model-t {
  fill: #a5b4fc;
}

.dev-chart .measured {
  fill: none;
  stroke: url(#meas);
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgb(34 211 238 / 0.6));
}

.dev-chart .projection {
  fill: none;
  stroke: var(--violet);
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.dev-chart .draw {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

.dev-chart .projection.draw {
  stroke-dasharray: 2 6;
  stroke-dashoffset: 0;
  opacity: 0;
}

.chart-card.in .measured.draw {
  animation: draw 2.4s var(--ease) 0.2s forwards;
}

.chart-card.in .projection.draw {
  animation: fade 0.8s ease 2.4s forwards;
}

.dev-chart .now {
  fill: #fff;
  stroke: var(--violet);
  stroke-width: 3;
  opacity: 0;
}

.chart-card.in .now {
  animation: fade 0.6s ease 2.3s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

.chart-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #e0fbff;
}

.stat-num.warn {
  color: var(--warn);
}

.stat-unit {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 560;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Lab ---------- */

.lab {
  position: relative;
}

.lab::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto auto;
  width: 60%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(167 139 250 / 0.16), transparent);
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.lab .h2 {
  margin-bottom: 22px;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.feature-list div {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  border-left: 2px solid rgb(167 139 250 / 0.4);
}

.feature-list strong {
  font-weight: 620;
  letter-spacing: -0.01em;
}

.feature-list span {
  color: var(--text-2);
  font-size: 0.96rem;
}

.chat {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgb(167 139 250 / 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
  font-family: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.97rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}

.msg.me {
  align-self: flex-end;
  background: #fff;
  color: #0b1020;
  border-bottom-right-radius: 4px;
}

.msg.bot {
  align-self: flex-start;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.msg.bot b {
  color: #fcd34d;
  font-weight: 600;
}

.msg.show,
.typing.show {
  opacity: 1;
  transform: none;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
  opacity: 0;
  transition: opacity 0.4s;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Industries ---------- */

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

.tile {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s,
    background 0.4s;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgb(34 211 238 / 0.35);
  background: var(--panel-2);
}

.tile p {
  margin: 0;
  font-size: 0.97rem;
}

.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #a5f3fc;
  background: linear-gradient(135deg, rgb(99 102 241 / 0.25), rgb(34 211 238 / 0.15));
  border: 1px solid var(--line-2);
}

.tile-icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Platform bento ---------- */

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

.b {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.b p {
  margin: 0;
  font-size: 0.96rem;
}

.b-wide {
  grid-column: span 2;
}

.big-num {
  display: block;
  font-size: 4.6rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.role-row span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.04);
}

.formula {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid var(--line);
  color: #a5f3fc;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.flap {
  display: flex;
  gap: 6px;
  margin-top: 22px;
}

.flap i {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
}

.b.in .flap i:nth-child(n + 5):nth-child(-n + 9) {
  background: rgb(251 191 36 / 0.6);
  box-shadow: 0 0 18px rgb(251 191 36 / 0.35);
  transition:
    background 0.6s 0.6s,
    box-shadow 0.6s 0.6s;
}

/* ---------- CTA & footer ---------- */

.cta {
  position: relative;
  max-width: 1000px;
  margin: 0 auto clamp(80px, 10vw, 140px);
  padding: clamp(48px, 8vw, 96px) var(--pad);
  text-align: center;
  border-radius: 32px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 90% at 50% 0%, rgb(99 102 241 / 0.32), transparent 70%),
    radial-gradient(50% 60% at 80% 100%, rgb(34 211 238 / 0.16), transparent 70%), var(--bg-2);
  overflow: hidden;
}

.cta p {
  margin: 0 auto 32px;
  max-width: 48ch;
  font-size: 1.1rem;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 60px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer .fine {
  font-size: 0.82rem;
  color: var(--muted);
}

.logo.small {
  font-size: 1rem;
}

.by {
  font-weight: 450;
  color: var(--muted);
  font-size: 0.88rem;
  margin-left: 2px;
}

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 1.1s var(--ease) var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .product-grid,
  .how-grid,
  .lab-grid,
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-card {
    position: relative;
    top: 0;
  }

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

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-wide {
    grid-column: auto;
  }

  .product,
  .tile,
  .b {
    padding: 22px;
  }

  .chart-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .stat-label {
    font-size: 0.72rem;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .dev-chart .draw {
    stroke-dashoffset: 0;
  }

  .dev-chart .projection.draw,
  .dev-chart .now,
  .msg,
  .typing {
    opacity: 1;
    transform: none;
  }
}

/* ---------- FAQ ---------- */

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

.faq-item {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.faq-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer links ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-2);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 120px var(--pad) 60px;
}

.not-found .lede {
  margin: 0 auto 28px;
}
