/* ============================================
   Larry Motion Site — style.css
   ============================================ */

:root {
  --teal: #06B9C1;
  --teal-dark: #048a90;
  --cream: #FFF8E7;
  --oatmeal: #E8D5B7;
  --night: #0a0e1a;
  --text-light: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.75);
  --text-faint: rgba(255, 255, 255, 0.5);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* GSAP handles scroll */
}

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Video Canvas + Fallback + Overlay
   ============================================ */

#video-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  object-fit: cover;
}

#static-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: none;
}

#static-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.2) 0%,
    rgba(10, 14, 26, 0.35) 40%,
    rgba(10, 14, 26, 0.55) 70%,
    rgba(10, 14, 26, 0.75) 100%
  );
  pointer-events: none;
}

/* Show static fallback on mobile / reduced motion */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  #video-canvas { display: none; }
  #static-fallback { display: block; }
  #overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 14, 26, 0.4) 0%,
      rgba(10, 14, 26, 0.6) 50%,
      rgba(10, 14, 26, 0.85) 100%
    );
  }
}

/* ============================================
   Content Layout
   ============================================ */

#content {
  position: relative;
  z-index: 2;
}

.beat {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
}

.beat-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

/* ============================================
   Beat 1: Hero
   ============================================ */

#beat-1 .beat-inner {
  max-width: 800px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.accent {
  color: var(--teal);
}

.hero-differentiators {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.hero-differentiators strong {
  color: var(--text-light);
  font-weight: 600;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-primary {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.cta-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 185, 193, 0.4);
}

.cta-secondary-text {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.cta-link {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--teal);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-faint), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ============================================
   Beat 2: How It Works
   ============================================ */

.beat-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--text-faint);
}

.beat-support {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-style: italic;
}

.evidence-render {
  margin: 2rem auto;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.evidence-render img {
  width: 100%;
  display: block;
}

.app-evidence {
  margin: 2rem auto;
  max-width: 320px;
}

.app-evidence-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.app-screenshot {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Beat 3: Why It's Different
   ============================================ */

.differentiators {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.diff-block {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.diff-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.diff-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.beat-footer-note {
  font-size: 1rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ============================================
   Beat 4: Join Us
   ============================================ */

.final-beat {
  max-width: 500px;
}

.final-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.final-subhead {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-field input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input::placeholder {
  color: var(--text-faint);
}

.form-field input:focus {
  border-color: var(--teal);
}

.signup-form .cf-turnstile {
  margin: 0 auto;
}

.cta-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-alt {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.form-message {
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.form-message.success {
  background: rgba(6, 185, 193, 0.15);
  border: 1px solid var(--teal);
  color: var(--teal);
}

.form-message.error {
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: rgba(255, 150, 150, 1);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-founder {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-link {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--teal-dark);
}

.footer-copy {
  color: var(--text-faint);
}

/* ============================================
   GSAP Animation Classes (set by JS)
   ============================================ */

.beat-inner {
  opacity: 0;
}

.beat-inner.is-visible {
  opacity: 1;
}

/* ============================================
   Mobile
   ============================================ */

@media (max-width: 768px) {
  .beat {
    padding: 3rem 1.25rem;
  }
  
  .steps {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .step {
    max-width: 100%;
    width: 100%;
  }
  
  .step-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }
  
  .differentiators {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .evidence-render {
    max-width: 100%;
  }
  
  .app-evidence {
    max-width: 260px;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .final-beat {
    max-width: 100%;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .beat-inner {
    opacity: 1 !important;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  * {
    animation: none !important;
    transition: none !important;
  }
}