body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes priceFlash {
  0% { color: #fde68a; }
  100% { color: #ffffff; }
}

.price-flash {
  animation: priceFlash 1s ease-out;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInPartial {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(var(--tw-rotate));
  }

  to {
    opacity: 0.1;
    transform: translateY(0) rotate(var(--tw-rotate));
  }
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0) rotate(var(--tw-rotate));
  }

  50% {
    transform: translateY(-12px) rotate(calc(var(--tw-rotate, 0deg) + 3deg));
  }
}

.animate-on-scroll {
  opacity: 0;
}

.animate-active {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-active.bg-icon {
  animation: fadeInPartial 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    heroFloat 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s), calc(var(--float-delay, 0s) + 1.2s);
}

@media (prefers-reduced-motion: reduce) {
  .animate-active.bg-icon {
    animation: fadeInPartial 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
}

.hero-glow {
  position: relative;
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: -60px -80px;
  background: radial-gradient(ellipse at center, rgba(247, 147, 26, 0.07) 0%, rgba(234, 179, 8, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-gradient-text {
  background: linear-gradient(270deg, #f59e0b, #f7931a, #fbbf24, #f59e0b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  filter: drop-shadow(0 0 15px rgba(247, 147, 26, 0.35));
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1);
  }
}

.cta-sparkle {
  position: relative;
  overflow: visible;
}

.cta-sparkle::after {
  content: "✦";
  position: absolute;
  right: -4px;
  top: -4px;
  font-size: 10px;
  color: #fde68a;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.cta-sparkle:hover::after {
  animation: sparkleFloat 0.6s ease-out forwards;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.8;
  }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 1 !important;
}

.trust-badge-icon {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-gradient-text {
    animation: none;
    background: none;
    -webkit-text-fill-color: #facc15;
    color: #facc15;
  }

  .scroll-indicator {
    animation: none;
  }
}

@keyframes generatorPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
    opacity: 1;
  }

  70% {
    box-shadow: 0 0 0 16px rgba(234, 179, 8, 0);
    opacity: 0;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    opacity: 0;
  }
}

.generator-highlight {
  position: relative;
  border-color: rgba(234, 179, 8, 0.6) !important;
  transition: border-color 0.4s ease;
}

.generator-highlight::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
  animation: generatorPulse 0.8s ease-out 2;
}

.hover-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(253, 224, 71, 0.4);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.hover-card:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
  background-color: rgba(234, 179, 8, 0.25);
}

.icon-container {
  transition: transform 0.4s ease, background-color 0.4s ease;
}

details summary .chevron {
  transition: transform 0.25s ease;
}

details[open] summary .chevron {
  transform: rotate(180deg);
}

#mobile-dropdown {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

#mobile-dropdown.open {
  max-height: 300px;
  opacity: 1;
}

#mobile-menu-btn.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu-btn.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#scroll-to-top {
  transition: bottom 0.25s ease, opacity 0.3s ease, transform 0.2s ease;
}

#scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 120px;
}

.preset-active {
  border-color: rgba(234, 179, 8, 0.6) !important;
  background-color: rgba(234, 179, 8, 0.1) !important;
  box-shadow: 0 0 15px -5px rgba(234, 179, 8, 0.3);
}

.preset-active span {
  color: #fef08a !important;
}

.preset-active div {
  background-color: rgba(234, 179, 8, 0.2) !important;
  transform: scale(1.1);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

::selection {
  background: rgba(234, 179, 8, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(113, 113, 122, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(113, 113, 122, 0.4);
}