/* Landing Page Styles */

/* Navigation */
.navbar {
  background-color: var(--background);
  padding: 16px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}

.nav-brand h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

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

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

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

.store-btn {
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 40px;
  padding: 20px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  position: relative;
  transform: rotate(-5deg);
  animation: float 6s ease-in-out infinite;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--background);
  border-radius: 30px;
  padding: 40px 24px 24px;
  overflow: hidden;
}

.quote-preview {
  background-color: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px var(--shadow);
}

.quote-header {
  margin-bottom: 16px;
}

.quote-preview .quote-mark {
  width: 40px;
  height: 40px;
  color: var(--secondary);
}

.quote-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 16px;
}

.quote-source {
  font-size: 12px;
  color: var(--text-secondary);
  background-color: var(--button-bg);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
}

@keyframes float {
  0%, 100% {
    transform: rotate(-5deg) translateY(0px);
  }
  50% {
    transform: rotate(-5deg) translateY(-10px);
  }
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: var(--background);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow);
  border-color: var(--primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: var(--background);
  text-align: center;
  padding: 40px 0;
}

.footer p {
  font-size: 14px;
  opacity: 0.8;
}

/* iOS Popup */
.ios-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay);
  display: none;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.ios-popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background-color: var(--card-bg);
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  border: 1px solid var(--hairline);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.popup-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.popup-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.popup-body {
  padding: 20px 24px 32px;
  text-align: center;
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.popup-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.popup-body p:first-of-type {
  color: var(--text-primary);
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .phone-mockup {
    width: 240px;
    height: 480px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .store-btn {
    font-size: 14px;
    padding: 14px 24px;
  }
  
  .features {
    padding: 60px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .popup-content {
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }
  
  .phone-mockup {
    width: 200px;
    height: 400px;
  }
  
  .phone-screen {
    padding: 30px 16px 16px;
  }
  
  .quote-preview {
    padding: 16px;
  }
}
