:root {
  --background: 210 40% 99%;
  --foreground: 222 64% 12%;
  --primary: 217 94% 53%;
  --primary-light: 209 100% 78%;
  --secondary: 188 86% 48%;
  --secondary-foreground: 191 95% 27%;
  --accent: 264 90% 64%;
  --accent-foreground: 263 75% 44%;
  --muted: 216 42% 95%;
  --muted-foreground: 218 18% 43%;
  --destructive: 0 84% 58%;
  --border: 219 30% 88%;
  --card: 0 0% 100%;
  --shadow-sm: 0 10px 30px hsl(222 64% 12% / 0.07);
  --shadow-md: 0 18px 44px hsl(222 64% 12% / 0.12);
  --shadow-lg: 0 30px 80px hsl(222 64% 12% / 0.16);
  --transition-fast: 160ms ease;
  --transition-smooth: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.55rem;
}

.dark {
  --background: 222 50% 7%;
  --foreground: 213 40% 96%;
  --primary: 212 100% 62%;
  --primary-light: 209 100% 75%;
  --secondary: 188 76% 54%;
  --secondary-foreground: 188 90% 78%;
  --accent: 264 90% 70%;
  --accent-foreground: 264 95% 82%;
  --muted: 222 36% 14%;
  --muted-foreground: 218 18% 72%;
  --destructive: 0 76% 64%;
  --border: 220 30% 22%;
  --card: 222 42% 10%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--foreground));
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
  border-radius: 999px;
  opacity: 0.75;
}

.hero-glow-one {
  width: 28rem;
  height: 28rem;
  top: 5rem;
  right: -12rem;
  background: radial-gradient(circle, hsl(var(--primary) / 0.22), transparent 68%);
}

.hero-glow-two {
  width: 20rem;
  height: 20rem;
  top: 22rem;
  left: -10rem;
  background: radial-gradient(circle, hsl(var(--secondary) / 0.18), transparent 70%);
}

.mockup-shell {
  position: relative;
}

.mockup-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 2rem;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.3), hsl(var(--secondary) / 0.22), transparent 65%);
}

.progress-bar {
  animation: progressPulse 2.8s ease-in-out infinite;
  transform-origin: left;
}

.feature-card {
  background-image: linear-gradient(180deg, hsl(var(--card)), hsl(var(--muted) / 0.24));
}

.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)), hsl(var(--border)), hsl(var(--muted)));
  background-size: 220% 100%;
  animation: shimmer 1.15s ease-in-out infinite;
}

.cta-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.cta-orb-one {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: -10rem;
  background: radial-gradient(circle, hsl(var(--primary) / 0.48), transparent 68%);
}

.cta-orb-two {
  width: 18rem;
  height: 18rem;
  left: -8rem;
  bottom: -8rem;
  background: radial-gradient(circle, hsl(var(--secondary) / 0.32), transparent 70%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

.animate-float {
  animation: float 5.8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes progressPulse {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; filter: saturate(1.3); }
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
