/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  background: #fff;
  color: #101114;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.cta-title {
  font-family: 'DM Sans', sans-serif;
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Layout */
.container-x {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Full viewport sections */
.snap-section {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

:target {
  scroll-margin-top: 96px;
}

/* Background Effects */
.bg-grain {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
}

.bg-gradient-fade {
  background: none;
}

/* Light Beam Effect */
.hero-light-beam {
  display: none;
}

/* Enhanced Shadows for Depth - layered for realism */
.shadow-cast {
  filter: none;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-slide-left.in-view,
.animate-slide-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ====================================
   Device Frame - Centered Group
   Customize screenshot alignment here:
   - width/height: screenshot size
   - transform: fine-tune positioning
   - border-radius: corner rounding
   ==================================== */

.device-frame {
  position: relative;
  display: inline-block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15));
}

/* Frame PNG - Top Layer */
.device-frame>img:first-child {
  display: block;
  position: relative;
  z-index: 10;
  width: 100%;
  height: auto;
}

/* Screenshot - Behind Frame */
.device-screen {
  position: absolute;
  /* Center the screenshot: (100-92)/2 = 4% */
  top: 4%;
  left: 4%;
  /* Adjust these values to fit your frame */
  width: 92%;
  height: 92%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  /* Smaller radius to avoid corner clipping */
  border-radius: 10%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Buttons */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* Hide download images initially to prevent flicker before JS replaces them */
.btn-download img,
.header-btn img {
  visibility: hidden;
}

.btn-download:active {
  transform: scale(0.95);
}

/* Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

#site-header,
#header-blur {
  padding-top: var(--safe-top);
}

#site-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#header-blur {
  position: absolute;
  inset: 0;
  bottom: -3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 10;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0;
  text-decoration: none;
}

.header-logo img {
  width: 2.25rem;
  height: 2.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-logo span {
  font-weight: 600;
  color: #17171c;
  font-size: 1.125rem;
}

/* Hide text on mobile, show only icon */
@media (max-width: 767px) {
  .header-logo span {
    display: none;
  }

  .header-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container-x.header-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.header-btn {
  background: #17171c;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 140ms ease, box-shadow 200ms ease, background 200ms ease, filter 180ms ease;
  will-change: transform, box-shadow;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.header-btn:hover {
  background: #1f1f27;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.header-btn:active {
  background: #0f0f16;
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  filter: brightness(0.97);
}

.header-btn:focus-visible {
  outline: 2px solid #0035c5;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 53, 197, 0.2), 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  overflow: visible;
}

.hero-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  top: calc(var(--safe-top) * -1);
  bottom: calc(var(--safe-bottom) * -1);
  --hero-glow-color-1: rgba(0, 166, 161, 0.18);
  --hero-glow-color-2: rgba(117, 54, 217, 0.12);
  --hero-glow-color-3: rgba(0, 53, 197, 0.14);
  --hero-glow-color-4: rgba(230, 125, 59, 0.16);
  --glow-1-x: 85%;
  --glow-1-y: 15%;
  --glow-2-x: 15%;
  --glow-2-y: 85%;
  --glow-3-x: 50%;
  --glow-3-y: 100%;
  --glow-4-x: 0%;
  --glow-4-y: 50%;
  background:
    radial-gradient(ellipse 70% 50% at var(--glow-1-x) var(--glow-1-y), var(--hero-glow-color-1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at var(--glow-2-x) var(--glow-2-y), var(--hero-glow-color-2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at var(--glow-3-x) var(--glow-3-y), var(--hero-glow-color-3) 0%, transparent 45%),
    radial-gradient(ellipse 40% 35% at var(--glow-4-x) var(--glow-4-y), var(--hero-glow-color-4) 0%, transparent 40%);
  transition:
    --hero-glow-color-1 0.6s ease,
    --hero-glow-color-2 0.8s ease;
  opacity: 1;
}

@property --hero-glow-color-1 {
  syntax: '<color>';
  inherits: false;
  initial-value: rgba(0, 166, 161, 0.18);
}

@property --hero-glow-color-2 {
  syntax: '<color>';
  inherits: false;
  initial-value: rgba(117, 54, 217, 0.12);
}

@property --hero-glow-color-3 {
  syntax: '<color>';
  inherits: false;
  initial-value: rgba(0, 53, 197, 0.14);
}

@property --hero-glow-color-4 {
  syntax: '<color>';
  inherits: false;
  initial-value: rgba(230, 125, 59, 0.16);
}

@property --glow-1-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 85%;
}

@property --glow-1-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 15%;
}

@property --glow-2-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 15%;
}

@property --glow-2-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 85%;
}

@property --glow-3-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

@property --glow-3-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

@property --glow-4-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@property --glow-4-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  height: calc(100vh - 6rem);
  padding: 1rem 0;
}



.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  order: 2;
  padding: 0.5rem;
  flex-shrink: 0;
}

.hero-title {
  /* Portrait / Base Mobile Size */
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #17171c;
  max-width: 28rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-align: center;
}

.hero-title .brand-text {
  background: linear-gradient(135deg, #00a6a1 0%, #0035c5 35%, #7536d9 65%, #e67d3b 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.2em;
  transition: background-position 0.4s ease;
  animation: text-gradient-shift 8s ease-in-out infinite;
}

@keyframes text-gradient-shift {

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

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

.hero-download img {
  height: 2.5rem;
}

.hero-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
  padding: 0.5rem;
  min-height: 0;
  flex: 1;
}

/* Device Size Container */
.hero-phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 0;
  height: 65vh;
  aspect-ratio: 9 / 19;
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Safari iOS aspect-ratio fix */
@supports not (aspect-ratio: 9 / 19) {
  .hero-phone-wrapper {
    height: 65vh;
    width: calc(65vh * (9/19));
  }
}

.hero-phone-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: auto;
}

/* Frame PNG */
.hero-phone-frame>img:first-child {
  display: block;
  position: relative;
  z-index: 10;
  height: 100%;
  width: auto;
}

/* Landscape Mobile Fix */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1023px) {
  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    height: 100vh;
    padding: 0;
  }

  .hero-text {
    align-items: flex-end;
    align-items: flex-start;
    text-align: left;
    order: 1;
    padding: 0 1rem;
  }

  .hero-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    max-width: none;
    line-height: 1.1;
  }

  .hero-phone {
    order: 2;
    padding: 0;
    justify-content: flex-start;
    height: 100vh;
  }

  .hero-phone-wrapper {
    height: 85vh;
    width: auto;
    max-height: none;
    aspect-ratio: 9/19;
  }
}


/* CTA Section */
.cta-section {
  padding: 5rem 0 6rem;
  background: transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background effect - shows with footer */
.cta-gradient-bg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(200px + var(--safe-bottom));
  background:
    radial-gradient(ellipse 50% 80% at 10% 100%, rgba(0, 166, 161, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 45% 70% at 30% 100%, rgba(0, 53, 197, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 80% at 50% 100%, rgba(117, 54, 217, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 45% 70% at 70% 100%, rgba(230, 125, 59, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transform: translateY(100%) scaleY(0.3);
  filter: blur(20px);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.6s ease;
}

.cta-gradient-bg.visible {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  filter: blur(0);
  animation: cta-gradient-shift 12s ease-in-out infinite;
}

@keyframes cta-gradient-shift {

  0%,
  100% {
    opacity: 0.9;
    transform: translateX(0);
  }

  25% {
    opacity: 1;
    transform: translateX(-2%);
  }

  50% {
    opacity: 0.85;
    transform: translateX(0);
  }

  75% {
    opacity: 1;
    transform: translateX(2%);
  }
}

/* Icon wrapper with floating effect */
.cta-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.cta-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: icon-glow 4s ease-in-out infinite;
}

@keyframes icon-glow {

  0%,
  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* App Icon in CTA */
.cta-app-icon {
  position: relative;
  z-index: 10;
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  border-radius: 1.5rem;
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-icon-wrapper:hover .cta-app-icon {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Match hero title size */
.cta-title {
  position: relative;
  z-index: 5;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0rem;
  color: #17171c;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: #6a6a77;
  max-width: 26rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.cta-buttons {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  background: transparent;
  border-radius: 0.75rem;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: none;
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Match hero button size */
.cta-btn img {
  height: 3rem;
  display: block;
}

/* Footer */
#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  padding-bottom: var(--safe-bottom);
}

#site-footer.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#footer-blur {
  position: absolute;
  inset: 0;
  top: calc(-3rem - var(--safe-top));
  bottom: calc(var(--safe-bottom) * -1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
}

.footer-content {
  padding: 1.25rem 0;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-legal a {
  color: #6a6a77;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #17171c;
}

.footer-divider {
  color: #c4c4cc;
  font-size: 0.75rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(23, 23, 28, 0.04);
  color: #17171c;
  transition: background 0.2s ease, transform 0.18s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  position: relative;
  will-change: transform, box-shadow;
}

.footer-social a:hover {
  background: rgba(23, 23, 28, 0.08);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.footer-social a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 166, 161, 0.25), 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px) scale(1.05);
}

@media (hover: none) {
  .footer-social a:active {
    transform: translateY(1px) scale(0.97);
    background: rgba(23, 23, 28, 0.12);
  }
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

@media (max-width: 480px) {
  .footer-social {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
  }

  .footer-social svg {
    width: 16px;
    height: 16px;
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .cta-title {
    font-size: 2.25rem;
  }

  .cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .hero-text {
    align-items: flex-start;
    order: 1;
    padding: 2rem;
  }

  .hero-title {
    font-size: 3.75rem;
    margin-bottom: 2rem;
    text-align: left;
  }

  .hero-download img {
    height: 3.5rem;
  }

  .hero-phone {
    order: 2;
    padding: 2rem;
  }

  .hero-phone-wrapper {
    /* Reset max constraints to let height-based scaling work */
    max-width: none;
    max-height: none;
    height: 90%;
    /* Increase relative height for larger screens */
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  .animate-on-scroll,
  .animate-scale,
  .animate-slide-left,
  .animate-slide-right {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* CTA Subtitle */
.cta-subtitle {
  color: #666;
  font-size: 1.125rem;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

/* Waitlist Form */
.waitlist-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-capsule {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.waitlist-capsule:focus-within {
  border-color: #6366f1;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 0 0 4px rgba(99, 102, 241, 0.1),
    0 4px 12px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  color: #1a1a1a;
  font-family: inherit;
}

.waitlist-input::placeholder {
  color: #9ca3af;
}

/* Join Waitlist Button */
.btn-waitlist {
  background: linear-gradient(135deg, #00a6a1 0%, #0035c5 35%, #7536d9 65%, #e67d3b 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
  transition: transform 140ms ease, box-shadow 200ms ease, background-position 220ms ease, filter 180ms ease;
  will-change: transform, box-shadow, background-position;
  box-shadow: 0 6px 20px rgba(117, 54, 217, 0.32);
  white-space: nowrap;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overflow: hidden;
}

.btn-waitlist:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(117, 54, 217, 0.4);
  background-position: 100% 50%;
}

.btn-waitlist:active {
  background-position: 60% 50%;
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 14px rgba(117, 54, 217, 0.32);
  filter: brightness(0.97);
}

.btn-waitlist:focus {
  outline: none;
}

.btn-waitlist:focus-visible {
  outline: 2px solid #7536d9;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(117, 54, 217, 0.2), 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Waitlist Error State */
.waitlist-capsule.has-error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

/* Honeypot */
.waitlist-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Waitlist message (success/error feedback) */
.waitlist-msg {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
  text-align: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.waitlist-msg:empty {
  opacity: 0;
}

.waitlist-msg-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), margin-top 0.4s ease;
  margin-top: 0;
}

.waitlist-msg-wrapper:has(.waitlist-msg:not(:empty)) {
  grid-template-rows: 1fr;
  margin-top: 0.75rem;
}

.waitlist-msg {
  font-size: 0.875rem;
  min-height: 0;
  text-align: center;
  overflow: hidden;
  transition: opacity 0.3s ease 0.1s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  opacity: 0;
  transform: translateY(-5px);
}

.waitlist-msg:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.waitlist-msg.error {
  color: #ff6b6b;
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.waitlist-msg.success {
  color: #22c55e;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Mobile adjustments for waitlist - concentric capsule design */
@media (max-width: 480px) {
  .waitlist-capsule {
    flex-direction: column;
    border-radius: 2rem;
    padding: 0.75rem;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 252, 0.95) 100%);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 4px 16px rgba(0, 0, 0, 0.08),
      0 8px 32px rgba(99, 102, 241, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .waitlist-input {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.06),
      inset 0 2px 4px rgba(0, 0, 0, 0.04);
  }

  .btn-waitlist {
    width: 100%;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    box-shadow:
      0 2px 8px rgba(117, 54, 217, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .waitlist-capsule:focus-within {
    box-shadow:
      0 0 0 1px rgba(99, 102, 241, 0.2),
      0 0 0 4px rgba(99, 102, 241, 0.08),
      0 8px 32px rgba(99, 102, 241, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* Coming Soon State */
.btn-coming-soon {
  background: #000 !important;
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 40px;
  text-decoration: none !important;
  cursor: default !important;
  pointer-events: none;
}

.btn-coming-soon-small {
  background: #000 !important;
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  text-decoration: none !important;
  cursor: default !important;
  pointer-events: none;
  border: none !important;
}
