/* Site-wide styles that complement Tailwind */
body {
  background-color: #FAF9F6;
  color: #1F1F1F;
}

.site-nav {
  animation: slideDown 700ms ease both;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #FFA726 0%, #FF7043 100%);
  background-size: 180% 180%;
  animation: gradientShift 7s ease-in-out infinite;
}

.bg-gradient-primary:hover {
  background: linear-gradient(135deg, #FF9800 0%, #F4511E 100%);
}

/* Wavy underline for playful feel */
.wavy-underline {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #FFA726;
  text-underline-offset: 4px;
  animation: underlinePulse 3.2s ease-in-out infinite;
}

/* Soft page motion */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

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

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 45% 55% 60% 40%;
  }

  33% {
    transform: translate(24px, -28px) scale(1.08);
    border-radius: 65% 35% 45% 55%;
  }

  66% {
    transform: translate(-18px, 18px) scale(0.96);
    border-radius: 40% 60% 35% 65%;
  }
}

@keyframes imageDrift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.01);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  }

  50% {
    box-shadow: 0 30px 70px -25px rgba(255, 112, 67, 0.32);
  }
}

@keyframes ambientGlow {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.96);
  }

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

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

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

@keyframes underlinePulse {
  0%,
  100% {
    text-decoration-color: #FFA726;
  }

  50% {
    text-decoration-color: #FF7043;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(var(--rotation, 0deg));
  }

  50% {
    transform: translateY(-10px) rotate(var(--rotation, 0deg));
  }

  100% {
    transform: translateY(0px) rotate(var(--rotation, 0deg));
  }
}

.floating-note {
  animation: float 6s ease-in-out infinite;
}

.animate-blob {
  animation: blob 12s ease-in-out infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.hero-copy > * {
  animation: revealUp 800ms ease both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 120ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 240ms;
}

.hero-mockup {
  animation: revealUp 900ms ease 320ms both, glowPulse 5s ease-in-out 1.3s infinite;
  transition: transform 300ms ease;
}

.hero-mockup:hover {
  transform: translateY(-6px);
}

.carousel-image {
  transform: scale(0.985) translateY(10px);
}

.carousel-image.is-active {
  transform: scale(1) translateY(0);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.feature-card {
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(31, 31, 31, 0.16);
}

.feature-card svg {
  transition: transform 240ms ease;
}

.feature-card:hover svg {
  transform: scale(1.06);
}

.features-section {
  background: #ffffff;
}

.features-heading {
  border-bottom: 1px solid rgba(31, 31, 31, 0.08);
  padding-bottom: 2rem;
}

.feature-grid {
  align-items: stretch;
}

.feature-note-card {
  position: relative;
  min-height: 230px;
  padding: 1.75rem;
  border: 1px solid rgba(31, 31, 31, 0.09);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px -30px rgba(31, 31, 31, 0.45);
  overflow: hidden;
}

.feature-note-card h3 {
  margin: 1.5rem 0 0.7rem;
  color: #1F1F1F;
  font-family: Outfit, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.feature-note-card p {
  color: #626262;
  font-family: Nunito, sans-serif;
  font-size: 0.96rem;
  line-height: 1.72;
}

.feature-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 31, 31, 0.09);
  border-radius: 8px;
  color: #1F1F1F;
  background: #FAF9F6;
}

.feature-icon svg {
  width: 1.42rem;
  height: 1.42rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-visible .feature-card {
  animation: revealUp 650ms ease both;
}

.is-visible .feature-card:nth-child(2) {
  animation-delay: 80ms;
}

.is-visible .feature-card:nth-child(3) {
  animation-delay: 160ms;
}

.is-visible .feature-card:nth-child(4) {
  animation-delay: 240ms;
}

.is-visible .feature-card:nth-child(5) {
  animation-delay: 320ms;
}

.is-visible .feature-card:nth-child(6) {
  animation-delay: 400ms;
}

.mini-stat {
  transition: transform 220ms ease, border-color 220ms ease;
}

.mini-stat:hover {
  transform: translateX(4px);
  border-color: #FF7043;
}

.preview-image-card {
  animation: imageDrift 6.5s ease-in-out infinite;
  transition: box-shadow 260ms ease;
}

.preview-image-card:hover {
  box-shadow: 0 30px 70px -25px rgba(255, 112, 67, 0.32);
}

@media (max-width: 640px) {
  .features-section,
  .preview-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .features-heading {
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.35rem;
  }

  .features-heading h2 {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .features-heading p:first-child,
  .preview-copy > p:first-child {
    font-size: 0.68rem;
    line-height: 1.4;
    letter-spacing: 0.13em;
    margin-bottom: 0.65rem;
  }

  .features-heading > p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .feature-note-card {
    min-height: 188px;
    padding: 1rem;
  }

  .feature-icon {
    width: 2.3rem;
    height: 2.3rem;
  }

  .feature-icon svg {
    width: 1.18rem;
    height: 1.18rem;
  }

  .feature-note-card h3 {
    margin: 1rem 0 0.45rem;
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .feature-note-card p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .preview-layout {
    gap: 0.85rem;
    align-items: center;
  }

  .preview-copy h2 {
    font-size: 1.45rem;
    line-height: 1.12;
    margin-bottom: 0.75rem;
  }

  .preview-copy > p:not(:first-child) {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .preview-stats {
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .mini-stat {
    border-left-width: 2px;
    padding-left: 0.45rem;
  }

  .mini-stat p:first-child {
    font-size: 1rem;
    line-height: 1;
  }

  .mini-stat p:last-child {
    font-size: 0.65rem;
    line-height: 1.15;
  }

  .preview-image-card {
    animation: none;
  }
}

.cta-panel {
  position: relative;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 18%;
  background: radial-gradient(circle, rgba(255, 167, 38, 0.18), transparent 62%);
  filter: blur(24px);
  animation: ambientGlow 5s ease-in-out infinite;
  pointer-events: none;
}

.delay-1 {
  animation-delay: 1s;
}

.delay-2 {
  animation-delay: 2s;
}

.delay-3 {
  animation-delay: 3.5s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

