/* ========================================
   YourMoody Landing Page Styles
   ======================================== */

/* CSS Variables */
:root {
  /* Brand Colors */
  --coral: #F4694A;
  --coral-light: #F8937A;
  --coral-dark: #D94E30;
  
  /* Dark Theme */
  --bg-dark: #1a0a0a;
  --bg-gradient: linear-gradient(135deg, #2d0f0f 0%, #1a0a0a 40%, #0f0a1a 100%);
  
  /* Text */
  --text-light: #E8EAED;
  --text-muted: #A8B2BC;
  --text-dark: #3D4A52;
  
  /* UI */
  --border: rgba(244, 105, 74, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.08);
  
  /* Spacing */
  --section-padding: 100px;
  --container-max: 1200px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass Card */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: var(--border);
}

/* Typography */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 60px;
}

.text-coral {
  color: var(--coral);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(244, 105, 74, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(244, 105, 74, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn-store {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  text-align: left;
}

.btn-store:hover {
  background: var(--glass-hover);
  border-color: var(--coral);
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.store-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.store-name {
  font-size: 1.125rem;
  font-weight: 700;
}

/* ========================================
   Particles Background
   ======================================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-30px) scale(1.5);
    opacity: 0.5;
  }
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(26, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-your {
  color: var(--text-muted);
  opacity: 0.6;
}

.logo-moody {
  color: var(--text-light);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-weight: 600;
  transition: var(--transition-normal);
}

.lang-switch:hover {
  background: var(--glass-hover);
  border-color: var(--coral);
}

.lang-current {
  min-width: 24px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

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

.hero-text {
  max-width: 560px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

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

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #2a1515 0%, #1a0a0a 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.app-preview {
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.preview-greeting {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.preview-logo {
  font-size: 1rem;
  font-weight: 800;
}

.preview-card {
  padding: 20px;
  text-align: center;
}

.preview-mood-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.preview-emoji {
  font-size: 48px;
  margin-bottom: 8px;
}

.preview-mood-label {
  font-size: 1.125rem;
  font-weight: 700;
}

.preview-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.streak-icon {
  font-size: 32px;
}

.streak-info {
  display: flex;
  flex-direction: column;
}

.streak-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.streak-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coral);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
}

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

/* ========================================
   Features Section
   ======================================== */
.features {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

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

.feature-card {
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

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

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--coral);
}

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

.feature-card:hover .feature-icon svg {
  stroke: white;
}

.icon-ai svg {
  fill: var(--coral);
  stroke: none;
}

.feature-card:hover .icon-ai svg {
  fill: white;
}

.icon-streak svg {
  fill: var(--coral);
  stroke: var(--coral);
}

.feature-card:hover .icon-streak svg {
  fill: white;
  stroke: white;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   Screenshots Section
   ======================================== */
.screenshots {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.screenshots-carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
}

.screenshot-item {
  flex: 0 0 calc(25% - 18px);
  min-width: 240px;
}

.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: linear-gradient(145deg, rgba(244, 105, 74, 0.1), rgba(244, 105, 74, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: var(--transition-normal);
}

.screenshot-placeholder:hover {
  transform: translateY(-8px);
  border-color: var(--coral);
  box-shadow: 0 20px 40px rgba(244, 105, 74, 0.2);
}

.placeholder-icon {
  font-size: 48px;
}

.screenshot-placeholder span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: var(--transition-normal);
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--coral);
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-normal);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-popular {
  border-color: var(--coral);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--coral);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-savings {
  margin-top: 8px;
  display: inline-block;
  background: rgba(52, 199, 89, 0.1);
  color: #34C759;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.feature-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 20px;
  height: 20px;
  stroke: var(--coral);
  flex-shrink: 0;
}

.x-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.5;
}

.feature-item.disabled {
  opacity: 0.5;
}

.pricing-card .btn {
  width: 100%;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
  transition: var(--transition-normal);
}

.faq-question:hover {
  color: var(--coral);
}

.faq-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(244, 105, 74, 0.1), rgba(244, 105, 74, 0.05));
  border-color: var(--coral);
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

.footer-disclaimer {
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos-delay="50"] { transition-delay: 50ms; }
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="150"] { transition-delay: 150ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .pricing-popular {
    transform: none;
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .header-content {
    padding: 0 16px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-store {
    width: 100%;
    justify-content: center;
  }
  
  .phone-mockup {
    width: 240px;
    height: 500px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
  
  .feature-icon {
    margin: 0;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
  }
  
  .feature-card .feature-badge {
    top: auto;
    right: auto;
    position: static;
    display: inline-block;
    margin-bottom: 8px;
  }
  
  .screenshot-item {
    flex: 0 0 80%;
    min-width: 200px;
  }
  
  .carousel-btn {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  
  .cta-content {
    padding: 40px 24px;
  }
  
  .faq-question {
    font-size: 1rem;
    padding: 20px;
  }
  
  .faq-answer p {
    padding: 0 20px 20px;
    font-size: 0.9375rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
