:root {
  --background: 220 18% 5%;
  --foreground: 180 18% 94%;
  --primary: 86 100% 57%;
  --secondary: 191 100% 46%;
  --muted: 220 14% 14%;
  --destructive: 0 72% 56%;
  --border: 210 16% 22%;
  --card: 220 16% 9%;
  --shadow-sm: 0 10px 30px hsla(0, 0%, 0%, 0.18);
  --shadow-md: 0 18px 50px hsla(0, 0%, 0%, 0.28);
  --shadow-lg: 0 30px 100px hsla(86, 100%, 57%, 0.14), 0 22px 80px hsla(191, 100%, 46%, 0.12);
  --transition-fast: 180ms ease;
  --transition-smooth: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 220 18% 5%;
  --foreground: 180 18% 94%;
  --primary: 86 100% 57%;
  --secondary: 191 100% 46%;
  --muted: 220 14% 14%;
  --destructive: 0 72% 56%;
  --border: 210 16% 22%;
  --card: 220 16% 9%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, hsla(191, 100%, 46%, 0.08), transparent 28%),
    radial-gradient(circle at 20% 20%, hsla(86, 100%, 57%, 0.1), transparent 24%),
    hsl(var(--background));
}

::selection {
  background: hsla(86, 100%, 57%, 0.28);
  color: hsl(var(--foreground));
}

.glass-panel {
  background: linear-gradient(180deg, hsla(220, 16%, 12%, 0.82), hsla(220, 16%, 8%, 0.72));
  border: 1px solid hsla(var(--border), 0.7);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-md);
}

.neon-ring {
  box-shadow: 0 0 0 1px hsla(191, 100%, 46%, 0.3), 0 0 40px hsla(191, 100%, 46%, 0.12), inset 0 0 30px hsla(86, 100%, 57%, 0.08);
}

.neon-text {
  text-shadow: 0 0 30px hsla(86, 100%, 57%, 0.24);
}

.grid-bg {
  background-image:
    linear-gradient(hsla(var(--border), 0.25) 1px, transparent 1px),
    linear-gradient(90deg, hsla(var(--border), 0.25) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.metric-arc {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.metric-arc::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: hsl(var(--card));
  border: 1px solid hsla(var(--border), 0.7);
}

.metric-arc > * {
  position: relative;
  z-index: 1;
}

.badge-glow {
  box-shadow: 0 0 30px hsla(86, 100%, 57%, 0.2);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.tilt-card:hover {
  box-shadow: var(--shadow-lg);
}

.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid hsla(var(--border), 0.75);
  min-height: 280px;
}

.before-after .after-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.range-accent {
  accent-color: hsl(var(--primary));
}

.sticky-cta {
  position: sticky;
  bottom: 18px;
  z-index: 20;
}

.hero-canvas-wrap {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid hsla(var(--border), 0.7);
  background: radial-gradient(circle at 50% 25%, hsla(191, 100%, 46%, 0.08), transparent 40%), linear-gradient(180deg, hsla(220, 16%, 8%, 0.85), hsla(220, 16%, 6%, 0.98));
}

.section-title {
  letter-spacing: -0.03em;
}

.pill {
  border-radius: 999px;
  border: 1px solid hsla(var(--border), 0.75);
  background: hsla(var(--muted), 0.7);
}

button, a {
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

button:hover, a:hover {
  transform: translateY(-1px);
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid hsla(var(--secondary), 0.75);
  outline-offset: 2px;
}

.fade-in {
  animation: fadeIn 700ms var(--transition-smooth);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
