/* Ensure full-height layout works predictably */
html, body { height: 100%; }

/* Section-by-section scroll (one screen per section) */
html, body { scroll-behavior: smooth; }
main {
  scroll-snap-type: y mandatory;
}
main > section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
}
/* Enhanced CSS with animations and interactions */
:root {
  --brand: #7c3aed;
  --brand-500: #8b5cf6;
  --brand-600: #7c3aed;
  --brand-700: #6d28d9;
  --ink: rgba(226, 232, 240, 0.95);
  --ink-muted: rgba(148, 163, 184, 0.9);
  --bg-deep: #070b14;
  --glass-bg: rgba(124, 58, 237, 0.08);
  --glass-border: rgba(168, 85, 247, 0.2);
  --glass-shadow: 0 8px 32px rgba(124, 58, 237, 0.15), inset 0 1px rgba(255,255,255,0.04);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

.no-js .js-only { display: none !important; }

.header-blur { backdrop-filter: saturate(180%) blur(10px); }

.gradient-text {
  background: linear-gradient(90deg, #a78bfa 0%, #7c3aed 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 8s ease infinite;
  display: inline-block;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Enhanced glass surfaces with hover effects */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-base);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.glass:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2), inset 0 1px rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.glass-strong {
  background: linear-gradient(180deg, rgba(124,58,237,0.18), rgba(15,23,42,0.35));
  border: 1px solid rgba(168,85,247,0.35);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.ink-muted { color: var(--ink-muted); }
.ink { color: var(--ink); }

/* Enhanced animated blobs */
.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  min-width: 420px;
  min-height: 420px;
  filter: blur(60px);
  opacity: 0.4;
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.9), rgba(124, 58, 237, 0.6) 45%, rgba(15, 23, 66, 0) 70%);
  animation: blobMorph 18s ease-in-out infinite, blobPulse 15s ease-in-out infinite alternate;
  will-change: transform, opacity;
  z-index: -1;
}

@keyframes blobPulse {
  0% { opacity: 0.3; filter: blur(60px); }
  50% { opacity: 0.5; filter: blur(80px); }
  100% { opacity: 0.3; filter: blur(60px); }
}
.blob.blob-2 {
  left: auto; right: -12%; top: auto; bottom: -12%;
  background: radial-gradient(circle at 75% 75%, rgba(167,139,250,0.9), rgba(139,92,246,0.55) 45%, rgba(15,23,42,0.0) 70%);
  animation-duration: 22s;
  animation-delay: 2s;
}
.blob.blob-1 { left: -10%; top: -10%; }

@keyframes blobMorph {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(4%, -2%, 0) scale(1.05); }
  66% { transform: translate3d(-3%, 3%, 0) scale(0.98); }
}

/* Divider line (glass) */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.4), transparent);
}

/* Enhanced reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floaty {
  0%, 100% { 
    transform: translateY(0) rotate(0.5deg); 
  }
  50% { 
    transform: translateY(-10px) rotate(-0.5deg); 
  }
}

.floaty { 
  animation: floaty 8s ease-in-out infinite; 
  will-change: transform;
  transition: var(--transition-slow);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  position: relative;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.02) 40%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Enhanced hover effects */
.tilt { 
  transition: var(--transition-base); 
  will-change: transform, box-shadow;
  transform-style: preserve-3d;
}

.tilt:hover { 
  transform: translateY(-4px) rotateX(3deg) rotateY(-3deg) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.3) !important;
}

/* Parallax container for blobs */
.parallax { perspective: 1000px; }

/* Scroll progress indicator */
.progress-container {
  display: none !important; /* force hidden per design feedback */
}

.progress-bar {
  display: none !important;
}

/* Particle container */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  pointer-events: none;
  animation: float-up 15s infinite linear;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Button hover effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-base);
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Enhanced switching text */
.switching-text {
  position: relative;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* override previous gradient text so brand colors show */
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

.switching-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* tighter since icon is gone */
}

/* Ensure no decorative bullets appear */
.switching-item::before, 
.switching-item::marker {
  content: none !important;
}

.switching-item svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  opacity: 0.4;
}

.switching-item .label {
  line-height: 1;
  font-weight: 500; /* further reduced weight */
  opacity: 0.45;
}

.switching-item:hover svg, .switching-item:hover .label {
  opacity: 0.75;
}

/* Remove top spacer; allow dock to overlap hero slightly */
body { padding-top: 0; }

@media (max-width: 640px) { body { padding-top: 0; } }

/* True full-viewport hero (accounting for mobile browser UI) */
.hero-full {
  height: 100svh !important;
  min-height: 100svh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden;
}

/* Responsive anchoring for the bottom-right blob */
@media (max-width: 767px) {
  .blob.blob-2 {
    right: -22%;
    bottom: -18%;
    background: radial-gradient(circle at 85% 85%, rgba(167,139,250,0.85), rgba(139,92,246,0.5) 45%, rgba(15,23,42,0.0) 70%);
  }
}

@media (min-width: 1024px) {
  .blob.blob-2 {
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle at 80% 75%, rgba(167,139,250,0.9), rgba(139,92,246,0.55) 45%, rgba(15,23,42,0.0) 70%);
  }
}

/* Respect reduced motion */
@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;
  }
  
  .blob, 
  .floaty, 
  .shimmer,
  .particle { 
    animation: none !important; 
    opacity: 0.1 !important;
  }
  
  .reveal, 
  .tilt { 
    transition: none !important; 
    opacity: 1 !important;
    transform: none !important;
  }
}
