:root {
  --bg1: #0b1220;
  --bg2: #121a30;
  --bg3: #1b2440;
  --accent: #6c5ce7;
  --accent-soft: rgba(108, 92, 231, 0.22);
  --accent-strong: rgba(108, 92, 231, 0.6);
  --text: #f5f7ff;
  --muted: rgba(229, 231, 240, 0.8);
  --card: rgba(20, 26, 41, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --shadow-strong: 0 30px 90px rgba(15, 20, 38, 0.55);
  --shadow-card: 0 18px 50px rgba(10, 14, 28, 0.45);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -20%, rgba(38, 50, 86, 0), rgba(38, 50, 86, 0.4)),
    linear-gradient(180deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  overflow-x: hidden;
}

.animated-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at -10% -30%, rgba(108, 92, 231, 0.28), transparent),
    radial-gradient(900px 700px at 110% 10%, rgba(0, 206, 201, 0.12), transparent),
    linear-gradient(140deg, rgba(20, 28, 58, 0.85), rgba(13, 20, 37, 0.9));
  animation: gradientDrift 22s ease-in-out infinite alternate;
  z-index: -3;
}

.bg-particles {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-particles::before,
.bg-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 40% 28%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 72% 65%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.3px 1.3px at 82% 22%, rgba(255, 255, 255, 0.55), transparent);
  animation: twinkle 12s linear infinite;
}

.bg-particles::after {
  filter: blur(2px);
  opacity: 0.7;
  animation-delay: 3s;
}

.edge-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent, rgba(5, 8, 18, 0.65) 70%, rgba(5, 8, 18, 0.9));
  z-index: -1;
}

.site-header .cta {
  background: linear-gradient(135deg, var(--accent), #8773ff);
  color: #ffffff;
  border-radius: 14px;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #6c5ce7, #8f7bff);
  border-radius: 16px;
  padding: 12px 22px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(108, 92, 231, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 25px 60px rgba(108, 92, 231, 0.45);
}

.ghost {
  padding: 11px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  backdrop-filter: blur(12px);
}

.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.ghost-tilt {
  perspective: 600px;
}

.ghost-tilt:hover {
  transform: translateY(-2px) rotateX(6deg);
}

.shimmer-button::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3), transparent 70%);
  transform: translateX(-120%) rotate(12deg);
  animation: shimmer 4.4s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle at 50% 40%, rgba(108, 92, 231, 0.8), rgba(32, 21, 80, 0.35), transparent 70%);
  opacity: 0.8;
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.floating-sphere {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #cfd5ff, #6c5ce7 60%, #392875 82%);
  filter: saturate(1.05) contrast(1.05);
  box-shadow: 0 35px 90px rgba(108, 92, 231, 0.4);
  animation: floatSoft 8s ease-in-out infinite;
}

.bot-orb {
  position: absolute;
  bottom: 14%;
  right: 12%;
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background: rgba(22, 28, 49, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  box-shadow:
    0 25px 70px rgba(12, 15, 32, 0.45),
    0 0 40px rgba(108, 92, 231, 0.45);
  display: grid;
  place-items: center;
  animation: orbDrift 5.5s ease-in-out infinite alternate;
}

.bot-core {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
}

.bot-core::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 28px;
  border: 1px solid rgba(108, 92, 231, 0.55);
  opacity: 0.55;
  animation: breathe 4s ease-in-out infinite;
}

.particle-cluster {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2.2px 2.2px at 25% 28%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 70% 20%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 62% 68%, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0.65;
  animation: driftParticles 12s linear infinite;
}

.hero-grid {
  position: absolute;
  inset: 10% 12% 8% 22%;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: drop-shadow(0 28px 60px rgba(12, 20, 40, 0.55));
  transform: rotateX(18deg) rotateY(6deg);
  animation: gridTilt 10s ease-in-out infinite alternate;
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(108, 92, 231, 0.12), transparent 45%, rgba(0, 206, 201, 0.12), transparent 85%);
  mask-image: radial-gradient(circle at top, rgba(0, 0, 0, 0.8), transparent 70%);
}

.hero-kicker {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 35px rgba(12, 15, 28, 0.45);
}

.hero-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.feature-card {
  position: relative;
  overflow: hidden;
  background: rgba(16, 22, 38, 0.75);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  border: 1px solid rgba(108, 92, 231, 0.16);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 28px 70px rgba(14, 18, 34, 0.55);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.14);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

.demo-section {
  position: relative;
  overflow: hidden;
}

.demo-section::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(108, 92, 231, 0.2), transparent 70%);
  filter: blur(80px);
  opacity: 0.7;
  z-index: -1;
}

.demo-window {
  background: rgba(16, 22, 38, 0.9);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(10, 17, 34, 0.65);
  overflow: hidden;
  backdrop-filter: blur(18px);
  animation: floatSoft 12s ease-in-out infinite;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 22px;
  background: rgba(10, 16, 29, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.demo-header span {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.demo-header span:nth-child(1) {
  background: #ff6b6b;
}

.demo-header span:nth-child(2) {
  background: #f6d365;
}

.demo-header span:nth-child(3) {
  background: #1dd1a1;
}

.demo-header p {
  margin: 0 0 0 auto;
}

.demo-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}

.demo-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 20, 35, 0.9);
  padding: 24px 18px;
  display: grid;
  gap: 12px;
}

.demo-nav {
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.demo-nav:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}

.demo-nav-active {
  background: rgba(108, 92, 231, 0.18);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(108, 92, 231, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.demo-content {
  padding: 28px 30px;
  display: grid;
  gap: 20px;
  background:
    linear-gradient(140deg, rgba(108, 92, 231, 0.08), rgba(29, 39, 72, 0.4)),
    rgba(14, 20, 35, 0.82);
}

.demo-card {
  border-radius: 20px;
  padding: 20px;
  background: rgba(10, 16, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 18px 40px rgba(8, 14, 28, 0.4);
  animation: cardFade 10s ease infinite alternate;
}

.demo-card-primary {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(108, 92, 231, 0.05));
  border: 1px solid rgba(108, 92, 231, 0.35);
}

.demo-card-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.05rem;
}

.demo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.demo-kpi-label {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.demo-kpi-value {
  margin: 6px 0 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.demo-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.demo-activity li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
}

.dot-success {
  color: #1dd1a1;
}

.dot-info {
  color: #54a0ff;
}

.dot-warning {
  color: #feca57;
}

.demo-command {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(10, 13, 25, 0.4);
  animation: commandGlow 4.5s ease-in-out infinite;
}

.demo-command .prompt {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.demo-command .cursor {
  display: inline-block;
  width: 8px;
  height: 22px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: cursorBlink 1.4s steps(1, end) infinite;
}

.demo-chip {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.18);
  border: 1px solid rgba(108, 92, 231, 0.35);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-chip svg {
  width: 14px;
  height: 14px;
}

.promo {
  padding-bottom: 60px;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(15, 22, 40, 0.95), rgba(26, 38, 70, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 26px 32px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.promo-inner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding: 20px 0 40px;
  color: rgba(229, 231, 240, 0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .links {
  display: flex;
  gap: 14px;
}

.footer-inner a {
  color: rgba(229, 231, 240, 0.75);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-inner a:hover {
  color: #ffffff;
}

@keyframes gradientDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-4%, -2%, 0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-120%) rotate(15deg);
  }
  60% {
    transform: translateX(140%) rotate(15deg);
  }
  100% {
    transform: translateX(140%) rotate(15deg);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translate3d(0, -6px, 0);
  }
  50% {
    transform: translate3d(0, 12px, 0);
  }
}

@keyframes orbDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  100% {
    transform: translate3d(-12px, -18px, 0) rotate(3deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.7;
    transform: scale(1);
  }
}

@keyframes driftParticles {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-45px, -30px, 0);
  }
}

@keyframes gridTilt {
  0% {
    transform: rotateX(16deg) rotateY(4deg);
  }
  100% {
    transform: rotateX(22deg) rotateY(8deg);
  }
}

@keyframes cardFade {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

@keyframes commandGlow {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(10, 13, 25, 0.35);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(108, 92, 231, 0.35), 0 15px 40px rgba(108, 92, 231, 0.35);
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 14px;
  }

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

  .hero-glow {
    display: none;
  }

  .floating-sphere {
    width: 180px;
    height: 180px;
  }

  .bot-orb {
    width: 140px;
    height: 140px;
  }

  .promo-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
