/* ===== Complexion Beauty — Global Styles ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --burgundy-deep: #3D0E20;
  --burgundy: #7A1B3A;
  --burgundy-light: #9E2E52;
  --gold: #C9A84C;
  --gold-light: #D4BA6A;
  --gold-glow: #E8D49A;
  --cream: #F5EFE6;
  --cream-muted: #E8DDD0;
  --text-primary: #2A1A1F;
  --text-secondary: #6B5560;
  --text-muted: #9A8890;
  --surface: #FDFBF8;
  --surface-warm: #FAF5EE;
  --border: #E8DDD0;
  --border-light: #F0E8DF;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.25;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--burgundy-light);
}

/* ===== Navigation ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 251, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--burgundy);
  color: var(--cream) !important;
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--burgundy-light);
  color: var(--cream) !important;
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 251, 248, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active { display: flex; }
}

/* ===== Hero (Landing Page) ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--burgundy-deep) 0%, var(--burgundy) 40%, #5A1530 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: var(--cream);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s ease both;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(245,239,230,0.7);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--burgundy-deep);
  border: none;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,239,230,0.25);
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: rgba(245,239,230,0.5);
  background: rgba(245,239,230,0.06);
  color: var(--cream);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeIn 1.2s ease 0.4s both;
}

.hero-phone {
  position: relative;
  width: 280px;
  height: 570px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-phone-inner {
  position: absolute;
  inset: 8px;
  border-radius: 33px;
  background: linear-gradient(175deg, var(--burgundy-deep) 0%, #4A1228 50%, var(--burgundy-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-phone-face {
  width: 140%;
  opacity: 0.9;
  margin-top: -20px;
  filter: brightness(1.1);
}

.hero-phone-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--cream);
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}

.hero-phone-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,239,230,0.5);
  margin-top: 0.5rem;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .hero-phone { width: 220px; height: 450px; }
}

/* ===== Features Section ===== */

.features {
  padding: 6rem 2rem;
  background: var(--surface);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  max-width: 500px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

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

.feature-card {
  padding: 2rem;
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(61,14,32,0.06);
  border-color: var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-icon.burgundy {
  background: linear-gradient(135deg, rgba(122,27,58,0.1), rgba(122,27,58,0.05));
  color: var(--burgundy);
}

.feature-icon.gold {
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== Lexi Section ===== */

.lexi-section {
  padding: 6rem 2rem;
  background: linear-gradient(160deg, var(--burgundy-deep) 0%, var(--burgundy) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.lexi-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.lexi-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lexi-section .section-label {
  color: var(--gold-light);
}

.lexi-section .section-title {
  color: var(--cream);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lexi-section .section-subtitle {
  color: rgba(245,239,230,0.65);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.lexi-chat-demo {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: left;
}

.chat-msg {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.chat-avatar.lexi {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--burgundy-deep);
}

.chat-avatar.user-av {
  background: rgba(245,239,230,0.15);
  color: var(--cream);
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 80%;
}

.chat-msg.lexi-msg .chat-bubble {
  background: rgba(255,255,255,0.07);
  color: rgba(245,239,230,0.85);
  border-bottom-left-radius: 6px;
}

.chat-msg.user .chat-bubble {
  background: rgba(201,168,76,0.15);
  color: var(--cream);
  border-bottom-right-radius: 6px;
}

/* ===== CTA / Download Section ===== */

.cta-section {
  padding: 6rem 2rem;
  background: var(--surface-warm);
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section .section-title {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.cta-section .section-subtitle {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--burgundy-deep);
  color: var(--cream);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.store-badge:hover {
  background: var(--burgundy);
  color: var(--cream);
  transform: translateY(-2px);
}

.store-badge-label {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  display: block;
  line-height: 1;
}

.store-badge-name {
  display: block;
  line-height: 1;
}

/* ===== Footer ===== */

.footer {
  padding: 3rem 2rem 2rem;
  background: var(--burgundy-deep);
  color: rgba(245,239,230,0.5);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand-mark {
  width: 28px;
  height: 28px;
  background: rgba(201,168,76,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.825rem;
  color: rgba(245,239,230,0.5);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,239,230,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-container { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== Legal / Policy Pages ===== */

.legal-page {
  padding-top: 6rem;
}

.legal-hero {
  padding: 3rem 2rem;
  background: linear-gradient(160deg, var(--burgundy-deep) 0%, var(--burgundy) 100%);
  color: var(--cream);
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-hero .updated {
  font-size: 0.85rem;
  color: rgba(245,239,230,0.5);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  color: var(--burgundy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.65;
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Support Page ===== */

.support-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.support-card {
  padding: 2rem;
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.support-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.support-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.support-card a {
  color: var(--burgundy);
  font-weight: 600;
}

/* ===== Animations ===== */

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

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