:root {
  --bg: #03030a;
  --bg-alt: #05081a;
  --panel: rgba(10, 14, 30, 0.8);
  --panel-alt: rgba(18, 23, 44, 0.9);
  --accent: #9c4dff;
  --accent-alt: #41e6ff;
  --accent-hot: #ff5ea2;
  --text: #f7faff;
  --text-muted: #8aa0d0;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --font-ui: "Space Grotesk", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
}

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

body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 15%, rgba(255, 94, 162, 0.2), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(65, 230, 255, 0.15), transparent 40%), var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(3, 5, 18, 0.8);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-alt) 100%);
  border-radius: 999px;
  border: 2px solid rgba(3, 5, 18, 0.8);
}

body::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 12px rgba(65, 230, 255, 0.6);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 52, 120, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
}

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

.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 120px;
  position: relative;
  z-index: 1;
}

.bubble-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble-field span {
  position: absolute;
  bottom: -200px;
  width: var(--bubble-size, 160px);
  height: var(--bubble-size, 160px);
  border-radius: 50%;
  
  /* Default to Blue/Cyan */
  --bubble-color: 65, 230, 255; 
  
  background: radial-gradient(circle, rgba(var(--bubble-color), 0.4), transparent 60%);
  box-shadow: 0 0 40px rgba(var(--bubble-color), 0.25);
  border: 1px solid rgba(var(--bubble-color), 0.1);
  
  mix-blend-mode: screen;
  animation: bubble-rise var(--bubble-duration, 24s) linear infinite,
    bubble-shimmer var(--bubble-shimmer, 8s) ease-in-out infinite;
  animation-delay: var(--bubble-delay, 0s);
  left: var(--bubble-left, 50%);
  transform: translateX(-50%) scale(var(--bubble-scale, 1));
  filter: blur(0.5px) saturate(140%);
  opacity: 0;
  will-change: transform, opacity, filter;
}

/* Right-side bubbles get the Pink/Magenta treatment */
.bubble-field span:nth-child(6),
.bubble-field span:nth-child(7),
.bubble-field span:nth-child(8),
.bubble-field span:nth-child(9),
.bubble-field span:nth-child(10),
.bubble-field span:nth-child(15),
.bubble-field span:nth-child(16),
.bubble-field span:nth-child(17),
.bubble-field span:nth-child(18) {
  --bubble-color: 255, 94, 162; /* Pink */
}

.bubble-field span:nth-child(1) { --bubble-size: 220px; --bubble-left: 8%; --bubble-duration: 34s; --bubble-delay: 0s; --bubble-shimmer: 10s; }
.bubble-field span:nth-child(2) { --bubble-size: 110px; --bubble-left: 18%; --bubble-duration: 20s; --bubble-delay: -3s; --bubble-shimmer: 6s; }
.bubble-field span:nth-child(3) { --bubble-size: 260px; --bubble-left: 28%; --bubble-duration: 32s; --bubble-delay: -8s; --bubble-shimmer: 12s; }
.bubble-field span:nth-child(4) { --bubble-size: 150px; --bubble-left: 38%; --bubble-duration: 24s; --bubble-delay: -12s; --bubble-shimmer: 7s; }
.bubble-field span:nth-child(5) { --bubble-size: 180px; --bubble-left: 48%; --bubble-duration: 26s; --bubble-delay: -5s; --bubble-shimmer: 9s; }
.bubble-field span:nth-child(6) { --bubble-size: 120px; --bubble-left: 58%; --bubble-duration: 19s; --bubble-delay: -9s; --bubble-shimmer: 5s; }
.bubble-field span:nth-child(7) { --bubble-size: 210px; --bubble-left: 68%; --bubble-duration: 28s; --bubble-delay: -2s; --bubble-shimmer: 11s; }
.bubble-field span:nth-child(8) { --bubble-size: 140px; --bubble-left: 78%; --bubble-duration: 21s; --bubble-delay: -6s; --bubble-shimmer: 6s; }
.bubble-field span:nth-child(9) { --bubble-size: 250px; --bubble-left: 88%; --bubble-duration: 33s; --bubble-delay: -14s; --bubble-shimmer: 13s; }
.bubble-field span:nth-child(10) { --bubble-size: 170px; --bubble-left: 96%; --bubble-duration: 23s; --bubble-delay: -4s; --bubble-shimmer: 8s; }
.bubble-field span:nth-child(11) { --bubble-size: 190px; --bubble-left: 4%; --bubble-duration: 30s; --bubble-delay: -10s; --bubble-shimmer: 9s; }
.bubble-field span:nth-child(12) { --bubble-size: 130px; --bubble-left: 24%; --bubble-duration: 22s; --bubble-delay: -16s; --bubble-shimmer: 6.5s; }
.bubble-field span:nth-child(13) { --bubble-size: 205px; --bubble-left: 34%; --bubble-duration: 27s; --bubble-delay: -1s; --bubble-shimmer: 10.5s; }
.bubble-field span:nth-child(14) { --bubble-size: 145px; --bubble-left: 44%; --bubble-duration: 20s; --bubble-delay: -7s; --bubble-shimmer: 7.5s; }
.bubble-field span:nth-child(15) { --bubble-size: 235px; --bubble-left: 54%; --bubble-duration: 31s; --bubble-delay: -11s; --bubble-shimmer: 12.5s; }
.bubble-field span:nth-child(16) { --bubble-size: 125px; --bubble-left: 64%; --bubble-duration: 18s; --bubble-delay: -13s; --bubble-shimmer: 5.5s; }
.bubble-field span:nth-child(17) { --bubble-size: 215px; --bubble-left: 74%; --bubble-duration: 29s; --bubble-delay: -15s; --bubble-shimmer: 11.5s; }
.bubble-field span:nth-child(18) { --bubble-size: 160px; --bubble-left: 84%; --bubble-duration: 24s; --bubble-delay: -6s; --bubble-shimmer: 8.5s; }

@keyframes bubble-rise {
  0% {
    transform: translate(-50%, 0) scale(0.7);
    opacity: 0;
  }
  5% {
    opacity: 0.4;
  }
  60% {
    opacity: 0.35;
  }
  85% {
    opacity: 0.15;
  }
  100% {
    transform: translate(-50%, -115vh) scale(1.35);
    opacity: 0;
  }
}

@keyframes bubble-shimmer {
  0% {
    filter: blur(0.4px) saturate(120%);
    box-shadow: 0 0 20px rgba(var(--bubble-color), 0.2);
  }
  50% {
    filter: blur(0.8px) saturate(160%);
    box-shadow: 0 0 50px rgba(var(--bubble-color), 0.5);
  }
  100% {
    filter: blur(0.4px) saturate(130%);
    box-shadow: 0 0 20px rgba(var(--bubble-color), 0.25);
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(24px);
  background: rgba(4, 6, 18, 0.85);
  border: 1px solid rgba(65, 230, 255, 0.15);
  border-radius: 999px;
  padding-inline: 32px;
  margin-top: 24px;
  box-shadow: 0 30px 80px rgba(3, 3, 12, 0.45);
  transition: transform 0.4s ease, border 0.4s ease, background 0.4s ease;
}

nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  mix-blend-mode: screen;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-brand strong {
  letter-spacing: 0.35em;
  font-size: 1rem;
}

.nav-brand span {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(110deg, var(--accent), var(--accent-alt));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions .cta {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(110deg, rgba(156, 77, 255, 0.2), rgba(65, 230, 255, 0.2));
  box-shadow: 0 10px 40px rgba(65, 230, 255, 0.25);
}

nav.nav-condensed {
  transform: translateY(-10px);
  background: rgba(3, 5, 18, 0.92);
  border-color: rgba(65, 230, 255, 0.35);
}

.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  padding-right: 20px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: -20px -40px 10px auto;
  width: 260px;
  background: radial-gradient(circle, rgba(255, 94, 162, 0.25), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin: 24px 0 18px;
  letter-spacing: -0.03em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 26px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.pill-primary {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-alt) 45%, var(--accent-hot) 100%);
  color: #03030a;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(156, 77, 255, 0.45);
}

.pill-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
}

.holo-frame {
  border: 1px solid rgba(65, 230, 255, 0.4);
  border-radius: 24px;
  padding: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(65, 230, 255, 0.15), transparent 70%);
  position: relative;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.holo-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  pointer-events: none;
}

.hero img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(3, 5, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.stat-card {
  background: rgba(5, 14, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.stat-card span {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-card strong {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.section-heading {
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.section-heading h2 {
  margin-top: 12px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.code-block {
  background: rgba(3, 8, 26, 0.95);
  border: 1px solid rgba(65, 230, 255, 0.3);
  border-radius: 24px;
  padding: 32px;
  font-family: var(--mono);
  position: relative;
  box-shadow: 0 40px 120px rgba(3, 8, 26, 0.85);
  padding-top: 64px;
}

.code-block-header {
  position: absolute;
  inset: 24px 24px auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.code-block small {
  letter-spacing: 0.2em;
  color: var(--accent-alt);
}

.code-block pre {
  margin-top: 0;
  overflow-x: auto;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin-top: 30px;
}

.badge-list li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.feature-grid,
.card-grid,
.demo-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.glass-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 94, 162, 0.2), transparent 60%);
  pointer-events: none;
}


.demo-card {
  background: var(--panel-alt);
  border: 1px solid rgba(65, 230, 255, 0.2);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
}

.demo-card header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-card header h3 {
  margin-top: 6px;
}

.demo-card header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.demo-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-meta strong {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tag-pill {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 18px;
}

.tag-pill.tag-new {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  border: none;
  color: white;
  font-weight: 600;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(156, 77, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 94, 162, 0.7);
  }
}

.mini-code {
  font-family: var(--mono);
  background: rgba(3, 5, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px;
  padding-top: 60px;
  position: relative;
  min-height: 180px;
}

.mini-code pre {
  margin: 0;
  max-height: 240px;
  overflow: auto;
}

.mini-code pre::-webkit-scrollbar,
.code-block pre::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.mini-code pre::-webkit-scrollbar-track,
.code-block pre::-webkit-scrollbar-track {
  background: rgba(6, 10, 26, 0.8);
  border-radius: 999px;
}

.mini-code pre::-webkit-scrollbar-thumb,
.code-block pre::-webkit-scrollbar-thumb {
  background: rgba(65, 230, 255, 0.7);
  border-radius: 999px;
}

.mini-code pre::-webkit-scrollbar-thumb:hover,
.code-block pre::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 77, 255, 0.8);
}

.mini-code code,
.code-block code {
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.copy-btn {
  border: 1px solid rgba(65, 230, 255, 0.4);
  border-radius: 999px;
  background: rgba(65, 230, 255, 0.08);
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 18px;
  cursor: pointer;
  transition: border 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.copy-btn.floating {
  position: absolute;
  top: 18px;
  right: 18px;
}

.copy-btn:hover {
  border-color: var(--accent-alt);
  color: var(--accent-alt);
}

.copy-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(156, 77, 255, 0.12);
}

.doc-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.doc-step {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 28px;
  background: rgba(5, 8, 22, 0.85);
  position: relative;
  overflow: hidden;
}

.doc-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(65, 230, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.doc-step h3 {
  margin: 8px 0 12px;
  letter-spacing: -0.01em;
}

.step-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--accent-alt);
  text-transform: uppercase;
}

.step-points {
  margin-top: 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.doc-links {
  margin-top: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  background: rgba(4, 6, 18, 0.85);
}

.doc-link-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cta-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.resources {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
  background: rgba(4, 6, 16, 0.8);
}

.resources ul {
  list-style: none;
}

.resources li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resources li:last-child {
  border-bottom: none;
}

footer {
  text-align: center;
  padding: 40px 0 80px;
  color: var(--text-muted);
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  border-radius: 999px;
  padding: 12px 26px;
  background: rgba(3, 8, 26, 0.9);
  border: 1px solid rgba(65, 230, 255, 0.4);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-6px);
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    gap: 18px;
    position: static;
    border-radius: 28px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-flow {
    grid-template-columns: 1fr;
  }
}
