/* ── Custom base styles ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero gradient ── */
.hero-gradient {
  background: linear-gradient(135deg, #581c87 0%, #7e22ce 30%, #a855f7 55%, #d97706 85%, #f59e0b 100%);
}

/* ── Floating animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(1deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

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

/* ── Scroll reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header scroll state ── */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(88, 28, 135, 0.07);
  border-bottom: 1px solid rgba(88, 28, 135, 0.06);
}

/* ── Mobile link transitions ── */
.mobile-link {
  position: relative;
}

.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9333ea, #f59e0b);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.mobile-link:hover::after {
  width: 100%;
}

/* ── Custom select arrow ── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Selection color ── */
::selection {
  background: rgba(147, 51, 234, 0.15);
  color: #581c87;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Subtle gradient divider ── */
.gradient-divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, #9333ea, #f59e0b);
  border-radius: 3px;
}

/* ── Input autofill override ── */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}
