/* Fanegizer - Festival Dawn Design */
/* A light, airy theme with vibrant energy bursts */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  /* Light palette foundation */
  --bg-cream: #fefcf9;
  --bg-warm: #faf7f2;
  --bg-soft: #f5f0e8;
  --bg-accent: #1a1a2e;
  --bg-card: #ffffff;
  --bg-nav: rgba(254, 252, 249, 0.85);
  --border-light: rgba(26, 26, 46, 0.06);
  --shadow-color: rgba(26, 26, 46, 0.04);
  --shadow-hover: rgba(26, 26, 46, 0.1);

  /* Vibrant festival colors */
  --accent-coral: #ff6b6b;
  --accent-electric: #4ecdc4;
  --accent-golden: #ffe66d;
  --accent-violet: #a855f7;
  --accent-sky: #38bdf8;
  --accent-rose: #f472b6;

  /* Text hierarchy */
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --text-on-dark: #fefcf9;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Smooth transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-cream: #0f0f1a;
    --bg-warm: #141420;
    --bg-soft: #1a1a2e;
    --bg-accent: #1a1a2e;
    --bg-card: #1e1e30;
    --bg-nav: rgba(15, 15, 26, 0.9);
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.4);

    --text-primary: #f5f5f7;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --text-on-dark: #f5f5f7;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

/* ============================================
   HEADER - Floating Pill Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  box-shadow: 0 4px 24px var(--shadow-color);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.logo span {
  font-family: 'Russo One', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-warm);
  padding: 4px;
  border-radius: 50px;
}

.lang-switcher a {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
}

.lang-switcher a:hover {
  color: var(--text-primary);
}

.lang-switcher a.active {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-electric));
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* ============================================
   HERO - Light & Energetic
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 50%, var(--bg-soft) 100%);
}

/* Animated gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(255, 107, 107, 0.15) 0%, transparent 70%);
  animation: floatOrb1 20s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(78, 205, 196, 0.12) 0%, transparent 70%);
  animation: floatOrb2 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-5%, 10%) scale(1.1); }
  66% { transform: translate(5%, -5%) scale(0.95); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, -10%) scale(1.15); }
}

/* Crowd visualization grid - lighter version */
.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 24), 1fr);
  grid-template-rows: repeat(var(--rows, 14), 1fr);
  gap: 8px;
  padding: 6rem 2rem 2rem;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, black 20%, transparent 70%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-warm) 75%);
  z-index: 1;
}

.pixel {
  width: 100%;
  aspect-ratio: 1;
  max-width: 28px;
  max-height: 28px;
  border-radius: 8px;
  justify-self: center;
  align-self: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.5s var(--ease-bounce);
  background: var(--bg-card);
}

.pixel.active {
  opacity: 1;
  transform: scale(1);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-content h1 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  animation: titleReveal 1s var(--ease-out) forwards;
}

/* Gradient text accent on second line */
.hero-content h1 br + br,
.hero-content h1 {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-primary) 40%,
    var(--accent-coral) 60%,
    var(--accent-violet) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

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

.hero-content p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  animation: fadeUp 0.8s 0.2s var(--ease-out) forwards;
  opacity: 0;
}

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

/* CTA Buttons - Playful pills */
.cta-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s var(--ease-out) forwards;
  opacity: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-rose) 100%);
  color: white;
  box-shadow:
    0 4px 16px rgba(255, 107, 107, 0.35),
    0 0 0 0 rgba(255, 107, 107, 0);
}

.cta-button.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(255, 107, 107, 0.4),
    0 0 0 4px rgba(255, 107, 107, 0.1);
}

.cta-button.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow-color);
}

.cta-button.secondary:hover {
  border-color: var(--accent-electric);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.2);
  transform: translateY(-3px);
}

.cta-button svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   SECTIONS - Shared Styles
   ============================================ */
.section-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

/* ============================================
   HOW IT WORKS - Playful Cards
   ============================================ */
.how-it-works {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-cream);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 24px var(--shadow-color);
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow-hover);
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Russo One', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: white;
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-sky));
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
  transition: transform 0.3s var(--ease-bounce);
}

.step:hover .step-number {
  transform: scale(1.1) rotate(-3deg);
}

.step:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-rose));
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.step:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--accent-golden), var(--accent-coral));
  box-shadow: 0 8px 24px rgba(255, 230, 109, 0.45);
}

.step h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   USE CASES - Floating Cards
   ============================================ */
.use-cases {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-warm);
  position: relative;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.case-card {
  position: relative;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-electric), var(--accent-violet));
  opacity: 0;
  transition: opacity 0.4s;
}

.case-card:hover::before {
  opacity: 1;
}

.case-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-hover);
}

.case-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  transition: transform 0.3s var(--ease-bounce);
}

.case-card:hover .case-icon {
  transform: scale(1.15);
}

.case-card h3 {
  font-family: 'Russo One', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

/* ============================================
   FOR ORGANIZERS - Gradient accent section
   ============================================ */
.for-organizers {
  position: relative;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: linear-gradient(135deg, var(--bg-accent) 0%, #2d2d44 100%);
  overflow: hidden;
}

/* Subtle pattern overlay */
.for-organizers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(78, 205, 196, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.for-organizers .section-title {
  position: relative;
  color: white;
}

.for-organizers > p {
  position: relative;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.organizer-features {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 900px;
  margin: 0 auto;
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  transition: all 0.3s var(--ease-out);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-electric);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.25);
}

.feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-electric);
}

/* ============================================
   FOOTER - Clean & Minimal
   ============================================ */
.footer {
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-cream);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-coral);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
  padding-top: 8rem;
  min-height: 100vh;
  background: var(--bg-cream);
}

.privacy-container {
  max-width: 750px;
  margin: 0 auto;
  padding: var(--space-md);
}

.privacy-container h1 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.privacy-container h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.privacy-container p {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.privacy-container ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
}

.privacy-container li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.contact-info {
  background: var(--bg-card);
  padding: var(--space-md);
  border-radius: 20px;
  margin-top: var(--space-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px var(--shadow-color);
}

/* ============================================
   JOIN PAGE - Deep Link Landing
   ============================================ */
.join-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  text-align: center;
  position: relative;
}

.join-page::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(78, 205, 196, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.join-page .logo {
  position: relative;
  flex-direction: column;
  gap: var(--space-sm);
}

.join-page .logo img {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.25);
}

.join-page h1 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.join-page p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.location-id {
  background: var(--bg-card);
  padding: var(--space-sm) var(--space-md);
  border-radius: 16px;
  font-family: 'Outfit', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-md) 0;
  border: 2px solid var(--accent-electric);
  color: var(--accent-electric);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.2);
}

.join-page .cta-buttons {
  margin-top: var(--space-md);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 5rem;
  }

  .nav {
    padding: 0.625rem 1rem;
  }

  .logo span {
    font-size: 1rem;
  }

  .hero-visual {
    gap: 6px;
  }

  .pixel {
    max-width: 22px;
    max-height: 22px;
    border-radius: 6px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .organizer-features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    gap: 4px;
  }

  .pixel {
    max-width: 18px;
    max-height: 18px;
    border-radius: 4px;
  }

  .step {
    padding: var(--space-md);
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    border-radius: 14px;
  }

  .case-card {
    padding: var(--space-md);
    border-radius: 24px;
  }

  .case-icon {
    font-size: 2.75rem;
  }
}

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