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

:root {
  --primary: #7B1FA2;
  --primary-light: #8E24AA;
  --primary-dark: #4A148C;
  --primary-glow: rgba(123, 31, 162, 0.15);
  --accent: #CE93D8;
  --accent-soft: rgba(206, 147, 216, 0.12);
  --bg: #FAFAFA;
  --bg-warm: #F5F0F7;
  --bg-card: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #5C5C7A;
  --text-light: #8E8EA0;
  --border: rgba(123, 31, 162, 0.08);
  --border-strong: rgba(123, 31, 162, 0.18);
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.04);
  --shadow-md: 0 4px 20px rgba(123, 31, 162, 0.08);
  --shadow-lg: 0 12px 40px rgba(123, 31, 162, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== GRAIN OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.nav-logo span {
  font-weight: 300;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }

.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(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
}

/* ===== HERO SECTIONS ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 12px; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

/* ===== SECTIONS ===== */
section {
  padding: 100px 0;
}

.section-bg {
  background: var(--bg-warm);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(123, 31, 162, 0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123, 31, 162, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 14px 0;
}
.btn-ghost:hover { gap: 14px; }

.btn-ghost svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

/* ===== GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder { color: var(--text-light); }

textarea.form-control { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.35); }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--accent); }

.medical-disclaimer {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

.medical-disclaimer strong {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal.show { transform: translateY(0); }

.cookie-modal h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.cookie-modal p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cookie-modal .cookie-btns {
  display: flex;
  gap: 12px;
}

.cookie-modal .btn { padding: 10px 24px; font-size: 0.85rem; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--border-strong); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: var(--transition);
}

.faq-item.open .faq-question svg { transform: rotate(45deg); color: var(--primary); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== PRODUCT SPECIFIC ===== */
.product-image-wrap {
  position: relative;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-image-wrap::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
}

.product-image-wrap img {
  position: relative;
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(123, 31, 162, 0.15));
}

/* ===== INGREDIENT TAGS ===== */
.ingredient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ingredient-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.ingredient-tag:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.ingredient-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
}

/* ===== ROUTINE TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-time {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 6px;
}

.timeline-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-item p { font-size: 0.92rem; color: var(--text-muted); }

/* ===== CONTACT INFO ===== */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-item .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item .value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.contact-item a.value:hover { color: var(--primary); }

/* ===== PHILOSOPHY ===== */
.philosophy-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.philosophy-block:last-child { border-bottom: none; }

.philosophy-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

@media (max-width: 768px) {
  .philosophy-block { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== SUCCESS PAGE ===== */
.success-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
}

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.legal-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.legal-content p { margin-bottom: 16px; color: var(--text-muted); font-size: 0.95rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 8px; color: var(--text-muted); font-size: 0.95rem; list-style: disc; }
