/* Reveal App Landing Page - Modern Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* Custom CSS Variables for Design System */
:root {
  --primary: #6C5CE7;
  --primary-dark: #363167;
  --primary-darker: #1E1E2F;
  --secondary: #F6F0CF;
  --secondary-light: #FFFFFF;
  --secondary-muted: #B8B49C;
  --secondary-text-muted: #7B7868;
  --error: #E75C6F;
  --warning: #E7964F;
  --success: #00CE75;
  --text-primary: #F6F0CF;
  --text-secondary: #1E1E2F;
  --background-start: #1E1E2F;
  --background-end: #363167;
  
  /* Modern additions */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
  --gradient-secondary: linear-gradient(135deg, #F6F0CF 0%, #FFFFFF 100%);
}

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

body {
  background: 
    linear-gradient(135deg, rgba(30, 30, 47, 0.4) 0%, rgba(54, 49, 103, 0.4) 50%, rgba(45, 27, 105, 0.4) 100%),
    url('assets/girl_in_sofa.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #1E1E2F;
  min-height: 100vh;
  font-family: 'Albert Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  overflow-x: hidden;
}

/* Animated background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(162, 155, 254, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(246, 240, 207, 0.1) 0%, transparent 50%);
  animation: backgroundFloat 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Modern Container Styles */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-top: 2rem;
}

/* App Icon */
.app-icon-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.app-title {
  font-size: clamp(3.125rem, 8vw, 5.125rem);
  font-weight: 500;
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.3)); }
  100% { filter: drop-shadow(0 0 40px rgba(108, 92, 231, 0.6)); }
}

.app-tagline {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  color: rgba(246, 240, 207, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.app-description {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(246, 240, 207, 0.8);
  margin-bottom: 3rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Modern Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1000px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(108, 92, 231, 0.15);
  box-shadow: var(--shadow-strong);
}

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

.feature-icon {
  font-size: 2.625rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature-description {
  font-size: 1.0625rem;
  color: rgba(246, 240, 207, 0.8);
  line-height: 1.6;
  font-weight: 400;
}

/* Early Access Signup Section */
.signup-section {
  margin: 4rem 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.signup-content {
  padding: 2rem 0;
}

.signup-title {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.signup-description {
  font-size: 1.25rem;
  color: rgba(246, 240, 207, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.incentive-box {
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.incentive-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.incentive-text {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.signup-form {
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.email-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.email-input::placeholder {
  color: rgba(246, 240, 207, 0.6);
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.signup-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.signup-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #5A4FCF 0%, #8B7CF6 100%);
}

.signup-button:active {
  transform: translateY(0);
}

.button-icon {
  transition: transform 0.3s ease;
}

.signup-button:hover .button-icon {
  transform: translateX(2px);
}

.signup-disclaimer {
  color: rgba(246, 240, 207, 0.6);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Design for Signup */
@media (max-width: 640px) {
  .form-group {
    flex-direction: column;
  }
  
  .signup-button {
    width: 100%;
  }
  
  .incentive-box {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* Modern Use Cases Section */
.use-cases-section {
  margin: 4rem 0;
  text-align: center;
  max-width: 800px;
}

.section-heading {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.use-cases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.use-case-tag {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.use-case-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: left 0.3s ease;
}

.use-case-tag:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(108, 92, 231, 0.2);
  box-shadow: var(--shadow-soft);
}

.use-case-tag:hover::before {
  left: 0;
}

/* Modern Footer */
.footer-section {
  margin-top: 6rem;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(246, 240, 207, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

.footer-text {
  color: rgba(246, 240, 207, 0.6);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-link {
  color: rgba(246, 240, 207, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

/* Modern Responsive Design */
@media (max-width: 768px) {
  .app-container {
    padding: 4rem 1rem 1.5rem;
  }
  
  .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .download-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .use-cases-grid {
    gap: 0.75rem;
  }
  
  .use-case-tag {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 3rem 0.75rem 1rem;
  }
  
  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
  
  .hero-section {
    margin-bottom: 3rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .download-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .use-case-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Smooth scrolling and modern interactions */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.download-button:focus,
.use-case-tag:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading animation for better UX */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section,
.features-grid,
.download-section,
.use-cases-section {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card {
  animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* Terms Modal */
.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  overflow-y: auto;
}

.terms-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.terms-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-strong);
}

.terms-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.terms-close:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.terms-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.terms-section {
  margin-bottom: 2rem;
}

.terms-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.terms-section p {
  color: rgba(246, 240, 207, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.terms-last-updated {
  color: rgba(246, 240, 207, 0.6);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 2rem;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.lang-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(108, 92, 231, 0.2);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft);
}

/* Modern Download Buttons */
.download-section {
  margin: 4rem 0;
  text-align: center;
}

.download-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2rem;
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.download-subtitle {
  font-size: 0.75rem;
  color: rgba(246, 240, 207, 0.7);
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-secondary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 80px;
}

.download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.download-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #FFFFFF 0%, #F6F0CF 100%);
}

.download-button:hover::before {
  left: 100%;
}

.download-button svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.download-button:hover svg {
  transform: scale(1.1);
}

/* Disabled Download Buttons */
.download-button.disabled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(246, 240, 207, 0.15) 100%);
  color: rgba(246, 240, 207, 0.5);
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-button.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(246, 240, 207, 0.15) 100%);
}

.download-button.disabled::before {
  display: none;
}

.download-button.disabled svg {
  opacity: 0.6;
}

/* Screenshots Section */
.screenshots-section {
  padding: 4rem 0;
  text-align: center;
}

.screenshots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.phone-mockup {
  position: relative;
  width: 220px;
  height: 480px;
  transition: all 0.3s ease;
}

.phone-mockup:nth-child(even) {
  transform: perspective(1000px) rotateY(5deg);
}

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

.screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.phone-mockup:hover .screenshot {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive design for screenshots */
@media (max-width: 768px) {
  .screenshots-container {
    gap: 1rem;
  }
  
  .phone-mockup {
    width: 170px;
    height: 360px;
  }
  
  .phone-mockup:nth-child(n) {
    transform: perspective(1000px) rotateY(0deg);
  }
  
  .phone-mockup:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .screenshots-container {
    flex-direction: column;
    align-items: center;
  }
  
  .phone-mockup {
    width: 190px;
    height: 420px;
  }
}
