/* this john only goes on the landing, as to not fuck with the rest of the css (thats someone elses job!) */

/* most generic ahhh font */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Pacifico&display=swap");

/* Enable smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dbc3a8;
  background: url("/assets/bg_blue-3cee994c.svg");
  background-size: cover;
  background-position: right bottom;
  z-index: -1;
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* get jiggy with it */
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(1deg) scale(1.02);
  }
  75% {
    transform: rotate(-1deg) scale(1.02);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Alternating wave animations for "How it works" section */
@keyframes wave-up {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes wave-down {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(15px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes sh {
  0% {
    transform: translateX(0px) scale(1);
    box-shadow: none;
  }
  50% {
    transform: translateX(12px) scale(1.02);
    box-shadow: 0 8px 24px rgba(224, 101, 64, 0.3);
  }
  100% {
    transform: translateX(8px) scale(1);
    box-shadow: 0 4px 12px rgba(224, 101, 64, 0.2);
  }
}

@keyframes sc {
  0% {
    transform: translateX(8px);
    background-color: #fff3cd;
    border-left-color: #e06540;
  }
  100% {
    transform: translateX(0px);
    background-color: #d4edda;
    border-left-color: #28a745;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes numberPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes socialFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-15px) scale(1.05);
    opacity: 0.2;
  }
  66% {
    transform: translateY(-5px) scale(0.95);
    opacity: 0.35;
  }
}

.animate-wiggle {
  animation: wiggle 6s ease-in-out infinite;
}

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

.animate-wave {
  animation: wave 4s ease-in-out infinite;
}

.animate-wave-offset {
  animation: wave 4s ease-in-out 1.3s infinite;
}

.animate-wave-up {
  animation: wave-up 4s ease-in-out infinite;
}

.animate-wave-down {
  animation: wave-down 4s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* getting fancy! */

.head-big {
  font-family: "Dynapuff", cursive;
}

.head-med {
  font-family: "Dynapuff", sans-serif;
  font-weight: 500;
}

/* hella fancy, i mean like ripped off of codepen fancy */
.btn-fancy {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  border-radius: 25px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;

  &[type="submit"] {
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    &:active {
      transform: translateY(1px) scale(0.98);
    }
  }

  &[type="email"] {
    transition: all 0.3s ease;
    text-align: center;

    &:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    &:focus {
      outline: none;
      transform: translateY(-3px) scale(1.03);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.3);
    }

    &:active {
      transform: translateY(1px) scale(0.99);
    }

    &::placeholder {
      color: rgba(58, 47, 37, 0.6);
      font-weight: 500;
    }
  }
}

.btn-fancy::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-fancy:hover::before {
  left: 100%;
}

.btn-fancy[type="email"]:focus::before {
  left: 100%;
  transition: left 0.3s;
}

.marble-button {
  position: relative;
  background: #d4c4b0;
  border: 3px solid #a8956b;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 700;
  color: #3a2f25;
  transition: all 0.15s ease;
  box-shadow: 0 6px 0 #8b7a54, 0 8px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.marble-button::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  right: 4px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.marble-button::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  transform: rotate(-15deg);
  pointer-events: none;
}

.marble-button:hover {
  transform: translateY(-2px);
  background: #e8ddd0;
  box-shadow: 0 8px 0 #8b7a54, 0 10px 20px rgba(0, 0, 0, 0.25);
}

.marble-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #8b7a54, 0 4px 8px rgba(0, 0, 0, 0.3);
}

.marble-textarea {
  position: relative;
  background: #f8f3ec;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #3a2f25;
  resize: vertical;
  min-height: 30px;
  width: 100%;
  box-shadow: inset 0 3px 0 #c8b8a4, inset 3px 0 0 #d4c4b0,
    inset 0 6px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.marble-textarea::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 6px;
  height: 6px;
  background: rgba(168, 149, 107, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.marble-textarea::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 20px;
  height: 1px;
  background: rgba(168, 149, 107, 0.4);
  pointer-events: none;
}

.marble-textarea:focus {
  outline: none;
  background: #fffbf5;
  box-shadow: inset 0 4px 0 #a8956b, inset 4px 0 0 #c8b8a4,
    inset 0 8px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(255, 255, 255, 1),
    0 0 0 3px rgba(168, 149, 107, 0.4);
}

.marble-textarea::placeholder {
  color: rgba(58, 47, 37, 0.4);
  font-style: italic;
  font-weight: 300;
}

.marble-textarea.with-icon {
  padding-left: 48px !important; /* email icon override */
}

.card-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dynamic-cloud {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

@keyframes cloudFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.carousel-track {
  animation: infsc 60s linear infinite;
  width: fit-content;
  display: flex;
  animation: scroll-left 60s linear infinite;
}

.carousel-track-rev {
  animation: rev 60s linear infinite;
  width: fit-content;
  display: flex;
  animation: scroll-right 60s linear infinite;
}

@keyframes infsc {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes rev {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.carousel-track:hover,
.carousel-track-rev:hover {
  animation-play-state: paused;
}

/* on my fuckin mobile innit */
@media (max-width: 768px) {
  .head-big {
    font-size: 3rem !important;
  }

  .head-med {
    font-size: 1.5rem !important;
  }

  .cloud,
  .dynamic-cloud {
    display: none;
  }

  .organic-card {
    padding: 1rem;
  }

  .organic-card::before,
  .organic-card::after {
    display: none;
  }

  .prize-card {
    transform: none !important;
  }
}

.wavy-section {
  position: relative;
  overflow: hidden;
}

.wavy-section::before,
.wavy-section::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  background-repeat: repeat-x;
  background-size: 100px 60px;
  z-index: 1;
}

.wavy-section::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M0,60 Q25,0 50,30 T100,20 L100,60 Z' fill='rgba(209,193,160,0.3)'/%3E%3Cpath d='M0,60 Q25,10 50,40 T100,30 L100,60 Z' fill='rgba(209,193,160,0.6)'/%3E%3Cpath d='M0,60 Q25,20 50,50 T100,40 L100,60 Z' fill='rgba(209,193,160,0.9)'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.wavy-section::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M0,0 Q25,60 50,30 T100,40 L100,0 Z' fill='rgba(209,193,160,0.9)'/%3E%3Cpath d='M0,0 Q25,50 50,20 T100,30 L100,0 Z' fill='rgba(209,193,160,0.6)'/%3E%3Cpath d='M0,0 Q25,40 50,10 T100,20 L100,0 Z' fill='rgba(209,193,160,0.3)'/%3E%3C/svg%3E");
}

.section-z {
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0% 8%,
    15% 4%,
    30% 6%,
    45% 2%,
    60% 5%,
    75% 1%,
    90% 4%,
    100% 0%,
    100% 92%,
    85% 96%,
    70% 94%,
    55% 98%,
    40% 95%,
    25% 99%,
    10% 96%,
    0% 100%
  );
}

.section-z::before,
.section-z::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1;
  background: linear-gradient(135deg, #e6d7b8 0%, #d1c1a0 50%, #a8956b 100%);
  opacity: 0.3;
}

.section-z::before {
  top: -30px;
  clip-path: polygon(
    0% 100%,
    10% 80%,
    20% 90%,
    30% 70%,
    40% 85%,
    50% 75%,
    60% 90%,
    70% 80%,
    80% 95%,
    90% 75%,
    100% 85%,
    100% 100%
  );
}

.section-z::after {
  bottom: -30px;
  clip-path: polygon(
    0% 0%,
    10% 20%,
    20% 10%,
    30% 30%,
    40% 15%,
    50% 25%,
    60% 10%,
    70% 20%,
    80% 5%,
    90% 25%,
    100% 15%,
    100% 0%
  );
}

.section-z .max-w-8xl {
  position: relative;
  z-index: 2;
}

.example-sec {
  scroll-behavior: smooth;
}

.example-sec .step-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.example-sec .step-item.highlighted {
  animation: sh 0.6s ease-out;
}

.example-sec .step-item.completed {
  animation: sc 0.4s ease-out;
}

.example-sec .step-item:hover {
  transform: translateX(4px);
  background-color: rgba(224, 101, 64, 0.05) !important;
  border-left-color: rgba(224, 101, 64, 0.3) !important;
}

.example-sec [data-scroll-showcase-target="emoji"] {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.example-sec [data-scroll-showcase-target="image"] {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.example-sec .card-box {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.example-sec [data-scroll-showcase-target="activeIndicator"] {
  transition: opacity 0.5s ease-in-out;
}

@media (max-width: 768px) {
  .head-big {
    font-size: 3rem !important;
  }

  .head-med {
    font-size: 1.5rem !important;
  }

  .cloud,
  .dynamic-cloud {
    display: none;
  }

  .organic-card {
    padding: 1rem;
  }

  .organic-card::before,
  .organic-card::after {
    display: none;
  }

  .prize-card {
    transform: none !important;
  }

  .wavy-section::before,
  .wavy-section::after {
    height: 40px;
    background-size: 80px 40px;
  }

  .section-z {
    clip-path: polygon(
      0% 5%,
      25% 2%,
      50% 4%,
      75% 1%,
      100% 3%,
      100% 95%,
      75% 98%,
      50% 96%,
      25% 99%,
      0% 97%
    );
  }

  .section-z::before,
  .section-z::after {
    height: 40px;
  }

  .example-sec .step-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .example-sec [data-scroll-showcase-target="emoji"] {
    font-size: 3rem;
  }

  .example-sec .card-box {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .scroll-trigger {
    height: 4rem;
    margin: 1rem 0;
  }
}

#signup-modal {
  padding: 2rem;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  background: white;
  max-width: 500px;
  width: 90vw;
}

#signup-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

#signup-wizard {
  display: flex !important;
}

#signup-wizard.hidden {
  display: none !important;
}

.organic-card {
  position: relative;
  background: linear-gradient(145deg, #e6d7b8 0%, #d1c1a0 50%, #f1e4c3 100%);
  border-radius: clamp(6px, 1.5vw, 10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 4px rgba(255, 255, 255, 0.3);
}

.organic-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  background: linear-gradient(145deg, #cab394 0%, #a8956b 50%, #d1c1a0 100%);
  border-radius: clamp(10px, 2vw, 14px);
  z-index: -1;
  box-shadow: 0 0 0 2px #b8a482, 0 0 0 4px #a8956b,
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.organic-card::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.1) 0%, transparent 50%),
    linear-gradient(145deg, #d1c1a0 0%, #cab394 50%, #a8956b 100%);
  border-radius: clamp(8px, 1.5vw, 12px);
  z-index: -1;
  clip-path: polygon(
    2% 8%,
    8% 2%,
    15% 1%,
    25% 3%,
    35% 1%,
    45% 2%,
    55% 1%,
    65% 3%,
    75% 1%,
    85% 2%,
    92% 8%,
    98% 15%,
    99% 25%,
    97% 35%,
    99% 45%,
    98% 55%,
    99% 65%,
    97% 75%,
    99% 85%,
    98% 92%,
    92% 98%,
    85% 99%,
    75% 97%,
    65% 99%,
    55% 98%,
    45% 99%,
    35% 97%,
    25% 99%,
    15% 98%,
    8% 92%,
    2% 85%,
    1% 75%,
    3% 65%,
    1% 55%,
    2% 45%,
    1% 35%,
    3% 25%,
    1% 15%
  );
}

.spn {
  animation: countUp 0.8s ease-out forwards,
    numberPulse 2s ease-in-out infinite 1s;
}

.spb {
  animation: socialFloat 6s ease-in-out infinite;
}

.spc {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spc:hover {
  transform: translateY(-8px) scale(1.02);
}

@media (max-width: 640px) {
  .section-z {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .carousel-slide {
    transform: none !important;
  }

  .marble-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
