:root {
  --background: 224 46% 8%;
  --foreground: 210 40% 96%;
  --primary: 217 100% 60%;
  --secondary: 193 100% 62%;
  --muted: 222 24% 18%;
  --destructive: 0 78% 60%;
  --border: 220 25% 24%;
  --card: 224 38% 11%;
  --shadow-sm: 0 10px 30px rgba(2, 8, 23, 0.22);
  --shadow-md: 0 18px 60px rgba(30, 64, 175, 0.28);
  --shadow-lg: 0 28px 80px rgba(2, 6, 23, 0.45);
  --transition-fast: 180ms ease;
  --transition-smooth: 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

.dark {
  --background: 224 46% 8%;
  --foreground: 210 40% 96%;
  --primary: 217 100% 60%;
  --secondary: 193 100% 62%;
  --muted: 222 24% 18%;
  --destructive: 0 78% 60%;
  --border: 220 25% 24%;
  --card: 224 38% 11%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 1));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
  opacity: 0.35;
}

::selection {
  background: hsla(var(--primary), 0.28);
  color: white;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(var(--border), 0.9);
  box-shadow: var(--shadow-sm);
}

.glass-strong {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.62));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid hsla(var(--border), 1);
  box-shadow: var(--shadow-md);
}

.gradient-text {
  background: linear-gradient(90deg, hsl(var(--secondary)), white 40%, hsl(var(--primary)) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

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

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-120%);
}

.btn-shine:hover::after {
  animation: shine 1.2s ease;
}

.mock-ring {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 10px rgba(59,130,246,0.06), 0 16px 60px rgba(2, 6, 23, 0.45);
}

.logo-track {
  width: max-content;
}

.hide-scrollbar {
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hero-shell {
  isolation: isolate;
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.8;
  z-index: -1;
}

.hero-orb-left {
  left: -5%;
  top: 10%;
  width: 260px;
  height: 260px;
  background: rgba(14, 165, 233, 0.2);
}

.hero-orb-right {
  right: -2%;
  top: 18%;
  width: 340px;
  height: 340px;
  background: rgba(59, 130, 246, 0.24);
}

.hero-orb-bottom {
  left: 36%;
  bottom: 2%;
  width: 240px;
  height: 240px;
  background: rgba(96, 165, 250, 0.12);
}

.hero-main-board {
  transform-origin: center;
}

.hero-float-card {
  animation: floaty 7.5s ease-in-out infinite;
}

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

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

button:active {
  transform: translateY(0);
}

input:focus, select:focus {
  outline: none;
  border-color: hsla(var(--primary), 1);
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.18);
}

@media (max-width: 1023px) {
  .hero-main-board {
    position: relative;
    top: auto;
    right: auto;
  }

  .hero-float-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .section-reveal,
  .btn-shine::after,
  .animate-floaty,
  .animate-marquee,
  .animate-pulsegrid,
  .hero-float-card {
    animation: none !important;
    transition: none !important;
  }
}