/* ========================================
   PARTYU APP - SITE INSTITUCIONAL
   Cores baseadas no Design System do App
   ======================================== */

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

:root {
  /* Cores Primárias do Partyu App */
  --primary: #6C63FF;
  --primary-light: #9D97FF;
  --primary-dark: #4A42CC;
  
  /* Cores Secundárias */
  --secondary: #FF6B9D;
  --secondary-light: #FF9BBF;
  --secondary-dark: #CC4A7A;
  
  /* Cores de Background */
  --dark: #2D2D44;
  --dark-2: #3D3D5C;
  --dark-3: #4D4D66;
  --gray: #6B6B80;
  --gray-light: #94a3b8;
  --light: #F5F5F7;
  --light-2: #e2e8f0;
  --white: #ffffff;
  
  /* Gradientes */
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 4px 20px rgba(108, 99, 255, 0.3);
  
  /* Bordas */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  /* Transições */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* =======================================
   TYPOGRAPHY
   ======================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

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

.logo-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

#navbar a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-3);
  position: relative;
}

#navbar a:hover,
#navbar a.active {
  color: var(--primary);
}

#navbar .nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 10px 24px;
  box-shadow: var(--shadow-primary);
}

#navbar .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(108, 99, 255, 0.4);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO
   ======================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(180deg, #f8f7ff 0%, var(--white) 100%);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  right: -100px;
  opacity: 0.12;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 99, 255, 0.2);
}

.hero-text h1 {
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hero-tagline strong {
  color: var(--primary);
  font-style: normal;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.store-btn:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-btn-text span:first-child {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-btn-text span:last-child {
  font-size: 1rem;
  font-weight: 600;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--dark);
  border-radius: 0 0 16px 16px;
}

.phone-logo {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
}

.phone-text {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 16px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--gray-light);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.5;
  transition: var(--transition);
}

.mouse:hover {
  opacity: 1;
  border-color: var(--primary);
}

.wheel {
  width: 3px;
  height: 10px;
  background: var(--gray-light);
  border-radius: 3px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SOBRE / FEATURES
   ======================================== */
#sobre {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
  border-color: rgba(108, 99, 255, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   COMO FUNCIONA
   ======================================== */
#como-funciona {
  background: var(--light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.step-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-primary);
}

.step-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.step-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========================================
   PARA QUEM
   ======================================== */
#para-quem {
  background: var(--white);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.audience-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.audience-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.audience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--gradient);
}

.audience-card.organizer::before {
  background: var(--primary);
}

.audience-card.participant::before {
  background: var(--secondary);
}

.audience-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.audience-card.organizer .audience-icon {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
}

.audience-card.participant .audience-icon {
  background: rgba(255, 107, 157, 0.15);
  color: var(--secondary);
}

.audience-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.audience-card > p {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.audience-features {
  list-style: none;
}

.audience-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 0.95rem;
}

.audience-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 2px;
}

.audience-card.participant .audience-features li svg {
  color: var(--secondary);
}

/* ========================================
   CTA SECTION
   ======================================== */
#cta {
  background: var(--gradient);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

#cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
#footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
}

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

.footer-bottom a {
  color: var(--primary-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ========================================
   PRIVACY PAGE SPECIFIC
   ======================================== */
.page-header {
  background: var(--gradient);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

.content-section {
  padding: 80px 0;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.content-wrapper h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-wrapper p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-wrapper ul {
  color: var(--gray);
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-wrapper li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-wrapper strong {
  color: var(--dark);
}

.last-updated {
  background: var(--light);
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--gray);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.feature-card:nth-child(1) { transition-delay: 0.05s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.15s; }
.feature-card:nth-child(4) { transition-delay: 0.2s; }
.feature-card:nth-child(5) { transition-delay: 0.25s; }
.feature-card:nth-child(6) { transition-delay: 0.3s; }

.step-card:nth-child(1) { transition-delay: 0.05s; }
.step-card:nth-child(2) { transition-delay: 0.15s; }
.step-card:nth-child(3) { transition-delay: 0.25s; }
.step-card:nth-child(4) { transition-delay: 0.35s; }

.audience-card:nth-child(1) { transition-delay: 0.1s; }
.audience-card:nth-child(2) { transition-delay: 0.2s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-buttons,
  .store-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .phone-mockup {
    transform: none;
    width: 240px;
    height: 500px;
  }

  .phone-mockup:hover {
    transform: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

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

  #navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px 32px;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s ease;
    z-index: 1000;
  }

  #navbar.active {
    right: 0;
  }

  #navbar ul {
    flex-direction: column;
    gap: 4px;
  }

  #navbar a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  #navbar .nav-cta {
    text-align: center;
    margin-top: 16px;
  }

  section {
    padding: 72px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .phone-mockup {
    width: 200px;
    height: 420px;
    border-radius: 32px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .phone-screen::before {
    width: 80px;
    height: 20px;
  }

  .phone-logo {
    width: 80px;
  }

  .phone-text {
    font-size: 1.2rem;
  }

  .audience-card {
    padding: 32px 24px;
  }
}
