/* ============================================================================
   FONTS & IMPORTS
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800;900&family=Barlow:wght@300;400;500;600;700;800;900&family=Roboto+Mono:wght@400;500&display=swap');

/* ============================================================================
   CSS VARIABLES & CUSTOM PROPERTIES
   ============================================================================ */
:root {
  /* Colors */
  --bg-primary: #0E0E0E;
  --bg-secondary: #1A1A1A;
  --bg-tertiary: #2A2A2A;
  --text-primary: #F4F1E8;
  --text-secondary: #6B6B6B;
  --accent-red: #8B2635;
  --accent-red-hover: #A02D42;

  /* Sticker Colors */
  --sticker-red: #B23A48;
  --sticker-blue: #3B5F7D;
  --sticker-green: #3D5A40;
  --sticker-purple: #6B5B95;
  --sticker-dark: #2A2A2A;

  /* Fonts */
  --font-barlow: 'Barlow', system-ui, sans-serif;
  --font-barlow-condensed: 'Barlow Condensed', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-barlow);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

/* ============================================================================
   GRAIN TEXTURE OVERLAY
   ============================================================================ */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 9999;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' fill='white'/%3E%3C/svg%3E");
  animation: grain-shimmer 4s infinite;
}

@keyframes grain-shimmer {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.08; }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mountain-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mountain-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  display: block;
}

.mountain-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0.3) 0%,
    rgba(14, 14, 14, 0) 40%,
    rgba(14, 14, 14, 0.9) 100%
  );
  z-index: 1;
}

/* Logo */
.logo-container {
  position: relative;
  z-index: 20;
  padding: 2rem 1.5rem;
  padding-top: 2rem;
}

.logo {
  font-family: var(--font-barlow-condensed);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 20;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 400px;
}

.hero-text-container {
  max-width: 42rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-family: var(--font-barlow-condensed);
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subtitle-main {
  font-family: var(--font-barlow);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.subtitle-secondary {
  font-family: var(--font-barlow);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 28rem;
  margin: 0 auto;
}

/* Email Form */
.email-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-barlow);
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0;
  transition: border-color 0.3s ease;
}

.email-input::placeholder {
  color: var(--text-secondary);
}

.email-input:focus {
  outline: none;
  border-color: var(--accent-red);
}

.email-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-button {
  width: 100%;
  padding: 0.75rem 2rem;
  background-color: var(--accent-red);
  color: var(--text-primary);
  font-family: var(--font-barlow-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.email-button:hover:not(:disabled) {
  background-color: var(--accent-red-hover);
}

.email-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.success-message {
  opacity: 0;
  visibility: hidden;
  font-size: 0.875rem;
  color: var(--accent-red);
  text-align: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 0 1rem;
}

.success-message.show {
  opacity: 1;
  visibility: visible;
}

/* Media Queries for Hero */
@media (min-width: 640px) {
  .logo-container {
    padding: 3rem 3rem;
  }

  .email-form {
    flex-direction: row;
  }

  .email-input {
    flex: 1;
  }

  .email-button {
    width: auto;
  }
}

@media (min-width: 768px) {
  .logo-container {
    padding: 3rem 3rem;
  }
}

/* ============================================================================
   COLLECTORS SECTION
   ============================================================================ */
.collectors-section {
  position: relative;
  z-index: 20;
  padding: 6rem 1.5rem;
  background: linear-gradient(
    to bottom,
    var(--bg-primary) 0%,
    #1A1A1A 100%
  );
}

.collectors-container {
  max-width: 96rem;
  margin: 0 auto;
}

.collectors-title {
  font-family: var(--font-barlow-condensed);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.collectors-description {
  font-family: var(--font-barlow);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
  font-style: italic;
}

.sticker-collection {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 550px;
  min-height: 450px;
  margin: 0 auto 3rem;
  overflow: hidden;
}

.sticker-item {
  position: absolute;
  width: 200px;
  height: 120px;
  transform-origin: center;
  transform: scale(var(--scale, 1)) rotate(var(--rotation, 0deg));
}

.collectors-cta {
  text-align: center;
  margin-top: 3rem;
}

.cta-link {
  font-family: var(--font-barlow);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent-red);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-red);
  display: inline-block;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta-link:hover {
  color: var(--accent-red-hover);
  border-bottom-color: var(--accent-red-hover);
}

@media (min-width: 768px) {
  .collectors-section {
    padding: 6rem 3rem;
  }
}

/* ============================================================================
   STICKER CARD STYLES
   ============================================================================ */
.sticker-card {
  width: 200px;
  height: 120px;
  position: relative;
  overflow: hidden;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.sticker-card.mystery {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) blur(2px);
}

.sticker-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sticker-content {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.sticker-name {
  font-family: var(--font-barlow-condensed);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: white;
  word-break: break-word;
}

.sticker-name.long {
  font-size: 1rem;
}

.sticker-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.sticker-stats {
  font-family: var(--font-barlow);
  font-size: 0.625rem;
  color: white;
  line-height: 1.3;
}

.sticker-footer {
  text-align: right;
  font-family: var(--font-barlow-condensed);
  font-size: 0.5rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  position: relative;
  z-index: 20;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--bg-tertiary);
  background-color: var(--bg-primary);
}

.footer-container {
  max-width: 96rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-left,
.footer-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  gap: 0.5rem;
  items-align: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: var(--font-barlow);
  font-size: 0.75rem;
}

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

.instagram-icon {
  font-size: 0.875rem;
}

.footer-alt {
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .footer {
    padding: 2rem 3rem;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade Slide Down */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade Slide Up */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticker Entrance */
@keyframes stickerEntrance {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation Classes */
[data-animate="fade-in"] {
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

[data-animate="fade-slide-down"] {
  animation: fadeSlideDown 1s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

[data-animate="fade-slide-up"] {
  animation: fadeSlideUp 1s ease-out forwards;
  opacity: 0;
}

[data-animate="fade-slide-up"]:nth-of-type(1) {
  animation-delay: 0.4s;
}

[data-animate="fade-slide-up"]:nth-of-type(3) {
  animation-delay: 1.2s;
}

/* Sticker Animation */
.sticker-animating {
  animation: stickerEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .subtitle-main {
    font-size: 1rem;
  }

  .subtitle-secondary {
    font-size: 0.8125rem;
  }

  .collectors-description {
    font-size: 0.9375rem;
  }

  .sticker-collection {
    height: 600px;
    min-height: 500px;
  }
}

@media (min-width: 1024px) {
  .logo-container {
    padding: 3rem 3rem;
  }

  .footer-container {
    justify-content: space-between;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}
