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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: #141414;
  color: #FFFFFF;
}

/* ==================== */
/* TOP NAVIGATION BAR */
/* ==================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 24px;
  background: transparent;
}

/* Super Mode toggle */
.mode-toggle,
.super-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.35);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.mode-toggle:hover,
.super-toggle:hover {
  border-color: rgba(76, 175, 80, 0.35);
  background: rgba(76, 175, 80, 0.08);
  transform: translateY(-1px);
}

.mode-toggle:focus-visible,
.super-toggle:focus-visible {
  outline: 2px solid rgba(27, 94, 32, 0.85);
  outline-offset: 4px;
}

.mode-toggle-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.mode-toggle[aria-pressed="true"],
.super-toggle[aria-pressed="true"] {
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.12);
  color: #b7f0bb;
}

.mode-toggle[aria-pressed="true"] .mode-toggle-badge {
  background: rgba(27, 94, 32, 0.85);
  border-color: rgba(27, 94, 32, 0.85);
  color: #FFFFFF;
}

.mode-toggle-text {
  opacity: 0.9;
}

.nav-logo {
  width: 40px;
  height: 40px;
}

/* Coffee Button */
.coffee-btn-fixed {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.coffee-btn-fixed:hover {
  background: transparent;
  border: none;
  color: #1B5E20;
  transform: none;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(27, 94, 32, 0.45));
}

.coffee-btn-fixed:focus-visible {
  outline: 2px solid rgba(27, 94, 32, 0.85);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ==================== */
/* SCROLL SNAP CONTAINER */
/* ==================== */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-container::-webkit-scrollbar {
  width: 0;
  display: none;
}

.snap-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* hide scrollbars for nested carousels */
.cards-container::-webkit-scrollbar {
  width: 0;
  display: none;
}
.cards-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Section Base */
.section {
  min-height: 100vh;
  max-height: 100vh;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #141414;
}

/* ==================== */
/* HERO SECTION - NETFLIX STYLE */
/* ==================== */
.hero-section {
  position: relative;
  justify-content: flex-end;
  padding-bottom: 0;
}

/* Video Background */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 aspect ratio */
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.video-background.playing video {
  opacity: 1;
}

/* Video Overlay - darkens video */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.4);
  z-index: 1;
}

/* Netflix-style gradients */
.gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, #141414 0%, transparent 100%);
  z-index: 2;
}

.gradient-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.8) 0%, transparent 100%);
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 48px;
  margin-bottom: 120px;
  max-width: 650px;
  animation: fadeIn 0.8s ease;
}

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

/* Hero Text */
.hero-text {
  margin-bottom: 24px;
}

.tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #1B5E20;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 500px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hover-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(12, 12, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: hintPulse 2.6s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}

.hover-hint.hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  animation: hintFadeOut 0.6s ease forwards;
}

.hover-hint.dismissed {
  display: none;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.82; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes hintFadeOut {
  0% { opacity: 0.82; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* Upload Button - Netflix style */
.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #FFFFFF;
  color: #141414;
  border: none;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.upload-btn:active {
  transform: scale(0.98);
}

.upload-btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
}

.upload-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.upload-btn-secondary:focus-visible {
  outline: 2px solid rgba(27, 94, 32, 0.85);
  outline-offset: 4px;
}

.upload-btn.drag-over {
  background: #1B5E20;
  color: #FFFFFF;
}

.upload-icon {
  width: 20px;
  height: 20px;
}

/* Status Text */
.status-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
  min-height: 20px;
}

.status-text.loading {
  color: #FFC107;
}

.status-text.success {
  color: #4CAF50;
}

.status-text.error {
  color: #E53935;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  color: #FFFFFF;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Vertical-only bounce (keeps centered elements centered) */
@keyframes bounceY {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Trust Footer */
.trust-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.trust-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.lock-icon {
  width: 14px;
  height: 14px;
}

/* ==================== */
/* SECTION 2: TUTORIAL */
/* ==================== */
.tutorial-section {
  background: #141414;
  justify-content: center;
  position: relative;
}

.tutorial-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 2;
}

.tutorial-section .video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tutorial-video-bg .video-overlay {
  background: rgba(12, 12, 12, 0.2);
}

/* Section Title */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 8px;
}

/* How It Works */
.how-it-works {
  text-align: center;
  width: 100%;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.step-number {
  display: none;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: #1B5E20;
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
}

/* (steps removed from view 2) */

.step-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 160px;
  text-align: center;
}

/* Video Container (legacy) */
.video-container {
  width: 100%;
  max-width: 640px;
}

.tutorial-video {
  width: 100%;
  border-radius: 8px;
  background: #1E1E1E;
  aspect-ratio: 16/9;
}

.video-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 12px;
}

/* Tutorial scroll indicator should sit at the bottom */
.tutorial-section .scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  transform: none;
  margin-top: 0;
  animation: bounceY 2s infinite;
  width: 100%;
  text-align: center;
  justify-content: center;
  align-self: center;
  margin-left: 0;
  margin-right: 0;
}

/* ==================== */
/* SECTION 3: EXAMPLES */
/* ==================== */
.examples-section {
  background: #141414;
  justify-content: center;
}

.examples-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 60px 24px;
  width: 100%;
}

/* Cards Container */
.cards-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 900px;
}

/* Card Wrapper */
.card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card-wrapper:hover {
  transform: scale(1.05);
}

.card-wrapper.card-clicked {
  animation: cardPulse 0.3s ease;
}

@keyframes cardPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  width: 220px;
  background: #1E1E1E;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Card Image */
.card-image {
  width: 100%;
  height: 300px;
  background: #2C2C2C;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-wrapper:hover .card-image img {
  transform: scale(1.05);
}

/* Card Body */
.card-body {
  padding: 12px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Card Action */
.card-action {
  display: flex;
  justify-content: center;
}

/* Icon Buttons */
.icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Favorite Button Active State */
.favorite-btn.active {
  background: #1B5E20;
  border-color: #1B5E20;
  animation: starPop 0.3s ease;
}

.favorite-btn.active svg {
  fill: #FFD700;
  stroke: #FFD700;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Back to Top */
.back-to-top {
  margin-top: 16px;
}

.text-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.text-btn:hover {
  color: #FFFFFF;
}

/* ==================== */
/* RESPONSIVE - SMALL SCREENS */
/* ==================== */
@media (max-width: 768px) {
  .top-nav {
    padding: 12px 16px;
  }

  .nav-logo {
    width: 32px;
    height: 32px;
  }

  .hero-content {
    padding: 0 24px;
    margin-bottom: 100px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-description {
    font-size: 16px;
  }

  .upload-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .scroll-indicator {
    bottom: 70px;
  }

  /* Hide steps on small screens */
  .how-it-works {
    display: none;
  }

  .tutorial-content {
    padding: 40px 24px;
    gap: 24px;
    justify-content: center;
    height: 100%;
  }

  .video-container {
    max-width: 100%;
  }

  .video-caption {
    display: none;
  }

  /* Carousel for cards on small screens */
  .cards-container {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 280px;
    height: clamp(520px, 62vh, 620px);
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    gap: 0;
  }

  .card-wrapper {
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-card {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .card-image {
    height: 340px;
  }

  /* Carousel arrows */
  .carousel-arrow {
    display: flex;
  }

  .examples-content {
    position: relative;
  }

  .carousel-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hover-hint {
    display: none;
  }

  .section-title {
    font-size: 24px;
  }

  .scroll-indicator {
    bottom: 60px;
  }

  .card-image {
    height: 300px;
  }
}

/* ==================== */
/* RESPONSIVE - MEDIUM SCREENS */
/* (normal window / half-screen) */
/* ==================== */
@media (min-width: 769px) and (max-width: 1199px) {
  .tutorial-content {
    padding: 48px 24px;
    gap: 26px;
  }

  /* keep the video comfortably wide but not huge */
  .video-container {
    width: min(100%, 720px);
    max-width: 720px;
  }

  /* bring indicator slightly closer to the video */
  .tutorial-section .scroll-indicator {
    margin-top: 10px;
  }
}

/* ==================== */
/* RESPONSIVE - LARGE SCREENS */
/* ==================== */
@media (min-width: 1200px) {
  .hero-content {
    padding: 0 80px;
    margin-bottom: 80px;
    max-width: 750px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-description {
    font-size: 20px;
  }

  /* Move scroll indicator closer to trust footer */
  .hero-section .scroll-indicator {
    bottom: 60px;
  }

  /* Tutorial section improvements */
  .tutorial-section {
    justify-content: center;
  }

  .tutorial-content {
    padding: 40px 48px;
    gap: 22px;
    max-width: 1100px;
  }

  .how-it-works {
    margin-bottom: 8px;
  }

  .video-container {
    width: min(100%, 760px);
    max-width: 760px;
  }

  .tutorial-video {
    width: 100%;
  }

  .tutorial-section .scroll-indicator {
    margin-top: 16px;
  }
}

/* Extra large screens */
@media (min-width: 1600px) {
  .hero-content {
    padding: 0 120px;
    max-width: 850px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-section .scroll-indicator {
    bottom: 50px;
  }

  .tutorial-content {
    max-width: 1200px;
  }

  .video-container {
    width: min(100%, 820px);
    max-width: 820px;
  }

  .tutorial-section .scroll-indicator {
    margin-top: 16px;
  }
}

/* ==================== */
/* CAROUSEL NAVIGATION */
/* ==================== */
.carousel-nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-arrow {
  display: none;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: #1B5E20;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .carousel-nav {
    display: flex;
  }

  .carousel-arrow {
    display: flex;
  }
}
