/* ========================================
   The Green Burger — Custom Styles
   ======================================== */

/* Angled clip path for sections */
.clip-path-angled {
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

/* Green outline text effect */
.text-stroke {
  -webkit-text-stroke: 1px #3ecf4f;
  color: transparent;
}

/* Ticker / marquee */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker 20s linear infinite;
}

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

/* Heavy condensed typography */
.heavy-condensed {
  font-stretch: extra-condensed;
  text-transform: uppercase;
}

/* ========================================
   Hero Scroll Animation
   ======================================== */

#hero-scroll-section {
  position: relative;
}

#hero-sticky {
  position: sticky;
  top: 0;
  height: 80vh;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  #hero-sticky {
    height: 100vh;
  }
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero content overlays */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-overlay > * {
  pointer-events: auto;
}

/* Gradient over canvas */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(to top, #080a08 0%, rgba(8,10,8,0.4) 40%, transparent 100%);
}

/* Scroll-driven fade-in elements */
[data-scroll-show] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll-show].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero loading bar */
.hero-loading-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  transition: opacity 0.4s ease;
}

.hero-loading-wrap.loaded {
  opacity: 0;
  pointer-events: none;
}

.hero-loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  margin-top: 12px;
}

.hero-loading-fill {
  height: 100%;
  background: #3ecf4f;
  width: 0%;
  transition: width 0.15s ease;
}

/* Scroll prompt — glowing pill + animated line */
.scroll-prompt-pill {
  border: 2px solid #3ecf4f;
  border-radius: 9999px;
  padding: 8px 24px;
  color: #fff;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(62, 207, 79, 0.4), 0 0 20px rgba(62, 207, 79, 0.15);
    border-color: #3ecf4f;
  }
  50% {
    box-shadow: 0 0 16px rgba(62, 207, 79, 0.7), 0 0 40px rgba(62, 207, 79, 0.3);
    border-color: #6fea7d;
  }
}

.scroll-prompt-line {
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.scroll-prompt-line-inner {
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, #3ecf4f);
  border-radius: 2px;
  animation: scroll-line 1.6s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(150%);
    opacity: 0;
  }
}

/* ========================================
   Form States
   ======================================== */

#signup-form.submitting {
  opacity: 0.6;
  pointer-events: none;
}

.field-error {
  color: #ff6b1a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.field-error-input {
  border-color: #ff6b1a !important;
}

/* Success state */
#signup-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

#signup-success.show {
  display: block;
}

#signup-form.submitted,
#signup-form.hidden {
  display: none;
}

.coupon-display {
  font-size: 2rem;
  font-weight: 900;
  color: #3ecf4f;
  letter-spacing: 0.1em;
  border: 4px dashed #3ecf4f;
  padding: 1rem 2rem;
  display: inline-block;
  margin-top: 1rem;
}
