/* MyHairMagic Marketing Site CSS - Matches Main App Design */

/* Import Geist Font */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
  background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #f0fdfa 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

nav .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-icon {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.nav-link:hover {
  color: #9333ea;
  background: #f9fafb;
}

.nav-link.active {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: white;
}

.cta-button {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

/* Mobile Navigation */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.mobile-menu-button:hover {
  background: #f9fafb;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 1rem 0;
  background: white;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background: #f9fafb;
  color: #9333ea;
}

.mobile-nav-link.active {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: white;
}

/* Typography */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #4b5563;
}

.gradient-text {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #9333ea;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.card-icon.purple { background: #f3e8ff; }
.card-icon.teal { background: #f0fdfa; }
.card-icon.pink { background: #fdf2f8; }
.card-icon.blue { background: #eff6ff; }

/* Grid Systems */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Content Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Features */
.feature {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #9333ea, #ec4899);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  margin: 4rem 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background: white;
  color: #9333ea;
}

.cta-section .btn:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #1f2937;
  color: #d1d5db;
  text-align: center;
  padding: 3rem 0;
  margin-top: 4rem;
}

footer p {
  color: #9ca3af;
  margin: 0;
}

/* Content Styling */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.content-page h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.content-page h2 {
  margin: 2rem 0 1rem;
  color: #1f2937;
}

.content-page h3 {
  margin: 1.5rem 0 0.75rem;
  color: #374151;
}

.content-page p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.content-page ul, .content-page ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content-page li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

/* App Integration */
.app-embed {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 2px solid #e5e7eb;
  margin: 2rem 0;
  text-align: center;
}

.app-embed iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .cta-section {
    padding: 2rem 1rem;
    margin: 2rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .grid {
    gap: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }