:root {
  --color-primary: #0da6f2;
  --color-primary-dark: #0b8bc9;
  --color-background-light: #ffffff;
  --color-background-off: #f7f9fb;
  --color-charcoal: #111827;
  --color-charcoal-light: #4b5563;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 160ms;
  --duration-medium: 300ms;
  --duration-slow: 800ms;
  --shadow-lift: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);
}

html {
  scroll-behavior: auto;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--color-background-light);
  color: var(--color-charcoal);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.glass-card {
  background: rgb(255 255 255 / 70%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 50%);
}

.cta-button {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.cta-button:hover {
  background-color: var(--color-primary-dark) !important;
}

.top-nav {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 82%) 0%,
    rgb(255 255 255 / 68%) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top-nav.is-scrolled {
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 94%) 0%,
    rgb(255 255 255 / 85%) 100%
  );
  border-color: rgb(255 255 255 / 85%);
  box-shadow: 0 16px 40px -30px rgb(15 23 42 / 38%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0da6f2, #60a5fa);
  z-index: 100;
  transition: width var(--duration-fast) linear;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgb(15 23 42 / 30%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-smooth);
}

.mobile-menu-panel {
  position: fixed;
  top: 5.4rem;
  right: 1rem;
  left: 1rem;
  z-index: 46;
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-smooth),
    transform var(--duration-medium) var(--ease-smooth);
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-smooth);
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(2 6 23 / 36%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.waitlist-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 2rem));
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 96%);
  border: 1px solid rgb(255 255 255 / 86%);
  box-shadow: 0 35px 60px -30px rgb(15 23 42 / 45%);
  transform: translateY(14px) scale(0.98);
  transition: transform var(--duration-medium) var(--ease-smooth);
}

body.modal-open .waitlist-modal {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open .waitlist-panel {
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  .mobile-menu-overlay,
  .mobile-menu-panel {
    display: none;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
    transform var(--duration-slow) var(--ease-smooth);
}

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

.feature-card {
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.feature-card:hover .feature-icon {
  transform: rotate(6deg);
}

.feature-icon {
  transition: transform 0.4s var(--ease-bounce);
}

.toggle-knob {
  transition: transform 0.5s var(--ease-bounce);
}

.pricing-label {
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  transition: color var(--duration-fast) ease;
}

.pricing-label.is-selected {
  color: var(--color-charcoal);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

@media (min-width: 768px) {
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.45rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0da6f2, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-medium) var(--ease-smooth);
  }

  .nav-link:hover {
    transform: translateY(-1px);
  }

  .nav-link:hover::after,
  .nav-link.is-active::after {
    transform: scaleX(1);
  }
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 767px) {
  .mobile-menu-panel .nav-link {
    display: flex;
    width: 100%;
  }
}

.faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s var(--ease-smooth),
    opacity 0.25s var(--ease-smooth);
}

.faq-item .faq-content > div {
  overflow: hidden;
}

.faq-item[open] .faq-content {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

#waitlistSubmit:disabled {
  background-color: #7cccf5 !important;
  color: #fff !important;
  border-color: transparent !important;
  opacity: 1;
  cursor: not-allowed;
}

#waitlistSubmit {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

#waitlistSubmit:hover {
  background-color: var(--color-primary-dark) !important;
}

.growth-plan {
  background-color: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

@media (max-width: 1023px) {
  main > section:first-of-type .grid {
    gap: 2rem !important;
  }

  main > section:first-of-type .grid > div:last-child {
    height: 430px !important;
  }

  main > section:first-of-type .grid > div:last-child .animate-float-delayed,
  main > section:first-of-type .grid > div:last-child .animate-float-delayed-2 {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #siteHeader .h-20 {
    height: 4.25rem !important;
  }

  #mobileMenu {
    top: 4.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  main > section:first-of-type {
    padding-top: 6.5rem !important;
    padding-bottom: 3rem !important;
  }

  main > section:first-of-type h1 {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.02em;
  }

  main > section:first-of-type p {
    font-size: 1.05rem !important;
  }

  main > section:first-of-type .grid > div:last-child {
    height: 360px !important;
  }

  main > section:first-of-type .grid > div:last-child > .relative {
    width: min(100%, 320px) !important;
    padding: 1rem !important;
  }

  main > section:first-of-type .grid > div:last-child .h-32 {
    height: 7.25rem !important;
  }

  #creators .gap-12 {
    gap: 1.25rem !important;
  }

  #creators .text-xl {
    font-size: 0.95rem !important;
  }

  #product,
  #how-it-works,
  #features,
  #pricing {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  #features .grid,
  #pricing .grid {
    gap: 1rem !important;
  }

  #pricing .text-4xl {
    font-size: 2rem !important;
  }

  .pricing-label {
    font-size: 0.8rem;
    padding: 0.2rem 0.45rem;
  }

  #waitlistPanel {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
    overflow: auto;
    border-radius: 1rem;
  }

  #waitlistPanel > div {
    padding: 1rem !important;
  }

  #waitlistPanel .text-2xl {
    font-size: 1.75rem !important;
  }

  footer .grid {
    gap: 1.5rem !important;
  }
}

@media (max-width: 479px) {
  body {
    font-size: 15px;
  }

  main > section:first-of-type .flex.flex-col.sm\\:flex-row.gap-4 > button {
    width: 100%;
  }

  .waitlist-panel input {
    font-size: 16px;
  }
}

@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;
  }

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