/* ============================================
   HAIR STUDIO LANDING PAGE — STYLES
   Design: Warm gold luxury + modern glassmorphism
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #FFFDF7;
  --color-bg-warm: #FFF8E7;
  --color-bg-section: #FFF3D6;
  --color-gold: #C8860A;
  --color-gold-light: #E5A91B;
  --color-gold-dark: #8B5E0A;
  --color-navy: #1B2A4A;
  --color-navy-light: #2D4066;
  --color-text: #2D2014;
  --color-text-muted: #6B5E52;
  --color-white: #FFFFFF;
  --color-border: rgba(200, 134, 10, 0.15);
  --color-glass: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(200, 134, 10, 0.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(200, 134, 10, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Typography --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.gold-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-navy);
}

.nav-logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-cta {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 42, 74, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 134, 10, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 134, 10, 0.1);
  border: 1px solid rgba(200, 134, 10, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-bottom: 1.5rem;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 134, 10, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(200, 134, 10, 0); }
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.35);
}

.btn-primary.btn-large {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--color-gold);
  background: rgba(200, 134, 10, 0.05);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200, 134, 10, 0.1);
  animation: float 6s ease-in-out infinite;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

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

/* --- Social Proof --- */
.social-proof {
  background: var(--color-white);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.proof-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 0 1.5rem;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.proof-icon {
  font-size: 1.2rem;
}

/* --- Before/After Section --- */
.before-after {
  padding: 6rem 1.5rem;
  background: var(--color-bg);
}

.ba-showcase {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ba-card {
  position: relative;
  max-width: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ba-card img {
  width: 100%;
  height: auto;
}

.ba-label {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
}

.ba-tag {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
}

.ba-before {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
}

.ba-after {
  background: rgba(200, 134, 10, 0.9);
  color: var(--color-white);
}

.ba-caption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* --- Screenshots Section --- */
.screenshots {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-section) 0%, var(--color-bg) 100%);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.screenshot-card {
  text-align: center;
  transition: transform 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-8px);
}

.screenshot-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.screenshot-label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Features Section --- */
.features {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f8f4ee 50%, var(--color-bg) 100%);
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: linear-gradient(135deg, rgba(200,134,10,0.1) 0%, rgba(200,134,10,0.05) 100%);
  border: 1px solid rgba(200,134,10,0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-light) 0%, var(--color-gold) 50%, var(--color-gold-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(27, 42, 74, 0.08), 0 8px 24px rgba(200, 134, 10, 0.06);
  border-color: rgba(200, 134, 10, 0.15);
}

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

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.feature-icon--ai {
  background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
  color: #1a237e;
}

.feature-icon--scissors {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.feature-icon--hair {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
}

.feature-icon--camera {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #9d174d;
}

.feature-icon--trending {
  background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
  color: #b91c1c;
}

.feature-icon--share {
  background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
  color: #0369a1;
}

.feature-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.feature-content p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- How It Works --- */
.how-it-works {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-warm) 100%);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 240px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: bold;
}

/* --- FAQ Section --- */
.faq {
  padding: 6rem 1.5rem;
  background: var(--color-bg);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-navy);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-gold);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Download CTA --- */
.download-cta {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg-section) 100%);
}

.cta-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-card > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-badge {
  background: rgba(200, 134, 10, 0.2);
  color: var(--color-gold-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cta-card .btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-navy);
  font-weight: 700;
}

.cta-card .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(200, 134, 10, 0.4);
}

.cta-meta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.download-counter {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

#dl-count {
  font-weight: 700;
  color: var(--color-gold-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-navy);
  padding: 3rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
}

.footer-brand img {
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--color-gold-light);
}

/* --- Scroll Reveal Animation --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
  }

  .hero {
    padding: calc(var(--nav-height) + 1rem) 1rem 3rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
    border-radius: 32px;
    padding: 8px;
  }

  .phone-frame::before {
    width: 80px;
    height: 20px;
    top: 12px;
  }

  .phone-frame img {
    border-radius: 24px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .proof-container {
    gap: 1.5rem;
    justify-content: center;
  }

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

  .feature-card {
    padding: 1.75rem 1.5rem;
  }

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

  .steps-grid {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }

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

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .phone-frame {
    animation: none;
  }
  
  .hero-badge {
    animation: none;
  }
  
  .badge-pulse {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
