:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.11), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(56, 189, 248, 0.09), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(129, 140, 248, 0.08), transparent 24%),
    linear-gradient(135deg, #020617 0%, #081226 48%, #030712 100%);
  color: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

.glass-panel {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 50px rgba(2, 6, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 55px rgba(34, 211, 238, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

.noise-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 86%);
}

.orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.38;
  mix-blend-mode: screen;
  will-change: transform;
  animation: floaty var(--duration, 16s) ease-in-out infinite;
}

.orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.orb-ring {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.06);
  animation: spin var(--duration, 24s) linear infinite;
}

.orb-core {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.95), rgba(34, 211, 238, 0.12) 56%, transparent 72%);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.14);
  animation: pulse 7s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #020617;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
  background: linear-gradient(135deg, #67e8f9, #a78bfa);
  box-shadow: 0 14px 40px rgba(103, 232, 249, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn-pulse {
  animation: pulseButton 3.8s ease-in-out infinite;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #fff;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.section-shell {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .section-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .section-shell {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-copy {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.75rem;
  color: #cbd5e1;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(24px, -18px, 0) scale(1.04);
  }

  50% {
    transform: translate3d(-14px, 22px, 0) scale(0.98);
  }

  75% {
    transform: translate3d(18px, 12px, 0) scale(1.02);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes pulseButton {
  0%,
  100% {
    box-shadow: 0 14px 40px rgba(103, 232, 249, 0.18);
  }

  50% {
    box-shadow: 0 16px 46px rgba(167, 139, 250, 0.18);
  }
}

.low-power .orb {
  filter: blur(1px);
  opacity: 0.28;
}

.low-power .glass-panel,
.low-power .glass-card {
  backdrop-filter: blur(8px);
}

.low-power .btn-pulse {
  animation: none;
}

@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;
    scroll-behavior: auto !important;
  }

  .orb,
  .orb-ring,
  .orb-core,
  .btn-pulse {
    animation: none !important;
  }

  .glass-panel,
  .glass-card {
    backdrop-filter: blur(6px);
  }
}
