:root {
    --color-brand: #EC610E;
    --color-brand-dark: #C14800;
    --color-brand-light: #FFE1CE;
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F9F6F3;
    --color-bg-tertiary: #F2EDE8;
    --color-text-primary: #1A1410;
    --color-text-secondary: #5C4A3A;
    --color-text-tertiary: #9E8575;
    --color-border: #E8DDD5;
    --color-success: #2D7A4F;
    --color-info: #1A5F8A;
    --primary: var(--color-brand);
    --secondary: var(--color-bg-secondary);
    --accent: var(--color-info);
    --text: var(--color-text-primary);
    --white: #ffffff;
    --bg: var(--color-bg-primary);
    --bouncy: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0; padding: 0;
    font-size: 15px;
    line-height: 1.65; color: var(--color-text-primary);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Kantumruy Pro', Georgia, serif;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--color-text-primary);
}

p { color: var(--color-text-secondary); }

/* Trust Architecture */
.trust-bar { background: var(--color-bg-secondary); padding: 0.8rem 2rem; border-bottom: 1px solid var(--color-border); font-size: 0.85rem; color: var(--color-text-secondary); }
.trust-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: flex-start; }
.author-badge { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.verify-badge { color: #059669; font-weight: 700; display: flex; align-items: center; gap: 5px; }

/* Sticky Header Stylings */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 64px;
    background: var(--color-bg-primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 2rem;
}

.logo-wrapper {
    height: 48px;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    overflow: visible;
}

.logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.02);
    transition: transform 0.3s var(--bouncy);
    margin-top: 5px;
}

.logo:hover { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--color-text-primary); font-weight: 600; font-size: 0.86rem; line-height: 1; white-space: nowrap; transition: color 0.3s var(--bouncy), transform 0.3s var(--bouncy); }
.nav-links a:hover { color: var(--color-brand); transform: translateY(-2px); }
.nav-links .nav-topic { background: var(--color-bg-secondary); border: 1px solid var(--color-border); border-radius: 9999px; padding: 8px 12px; }
.nav-links .nav-topic:hover { background: var(--color-brand-light); border-color: var(--color-brand-light); }
.nav-links .nav-cta { background: var(--color-brand); color: #fff !important; border-radius: 9999px; padding: 9px 18px; font-weight: 700; box-shadow: 0 4px 14px rgba(236,97,14,0.30); transition: background 0.2s, transform 0.2s; }
.nav-links .nav-cta:hover { background: var(--color-brand-dark) !important; transform: translateY(-2px); }

/* Hero Animation */
.full-hero {
    position: relative;
    width: 100%; height: 50vh;
    min-height: 350px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('/acne/forehead-acne/forehead.jpg') center 20%/cover no-repeat; z-index: 0; }
.glider-overlay { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%); border-right: 2px solid rgba(255, 255, 255, 0.5); z-index: 5; animation: fullGlide 8s infinite; }
.hero-content { position: relative; z-index: 10; max-width: 800px; margin-top: 15vh; text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 5px rgba(255, 255, 255, 0.8); text-align: center; }
.hero-content h1 { font-size: 2.8rem; font-weight: 600; color: var(--color-text-primary); margin-bottom: 0.5rem; }
.hero-content p { font-size: 1.2rem; font-weight: 600; color: var(--color-text-primary); }

/* Hero Acne Clusters - High Density */
.acne-cluster { position: absolute; background: #e63946; border-radius: 50%; filter: blur(1.5px); opacity: 0; transform: scale(0); z-index: 4; box-shadow: 0 0 10px rgba(230, 57, 70, 0.7); animation: realisticPop 8s infinite; }
.cystic { background: #b04141; filter: blur(3px); box-shadow: 0 0 15px rgba(176, 65, 65, 0.5); }

/* Row 1 */
.acne-1 { top: 15%; left: 30%; width: 12px; height: 12px; animation-delay: 0.1s; }
.acne-2 { top: 12%; left: 40%; width: 10px; height: 10px; animation-delay: 0.3s; }
.acne-3 { top: 18%; left: 50%; width: 14px; height: 14px; animation-delay: 0.5s; }
.acne-4 { top: 14%; left: 60%; width: 11px; height: 11px; animation-delay: 0.7s; }
.acne-5 { top: 16%; left: 70%; width: 13px; height: 13px; animation-delay: 0.9s; }

/* Row 2 */
.acne-6 { top: 25%; left: 35%; width: 15px; height: 15px; animation-delay: 1.1s; }
.acne-7 { top: 22%; left: 45%; width: 9px; height: 9px; animation-delay: 1.3s; }
.acne-8 { top: 28%; left: 55%; width: 12px; height: 12px; animation-delay: 1.5s; }
.acne-9 { top: 24%; left: 65%; width: 10px; height: 10px; animation-delay: 1.7s; }

/* Row 3 - Lower Forehead */
.acne-10 { top: 35%; left: 32%; width: 14px; height: 14px; animation-delay: 1.9s; }
.acne-11 { top: 32%; left: 42%; width: 11px; height: 11px; animation-delay: 2.1s; }
.acne-12 { top: 38%; left: 52%; width: 16px; height: 16px; animation-delay: 2.3s; }
.acne-13 { top: 34%; left: 62%; width: 10px; height: 10px; animation-delay: 2.5s; }

/* Extra Clusters for density */
.acne-14 { top: 10%; left: 55%; width: 8px; height: 8px; animation-delay: 0.2s; }
.acne-15 { top: 20%; left: 38%; width: 12px; height: 12px; animation-delay: 0.6s; }
.acne-16 { top: 30%; left: 48%; width: 14px; height: 14px; animation-delay: 1.0s; }
.acne-17 { top: 12%; left: 65%; width: 9px; height: 9px; animation-delay: 1.4s; }
.acne-18 { top: 25%; left: 58%; width: 11px; height: 11px; animation-delay: 1.8s; }
.acne-19 { top: 35%; left: 40%; width: 13px; height: 13px; animation-delay: 2.2s; }
.acne-20 { top: 18%; left: 42%; width: 10px; height: 10px; animation-delay: 2.6s; }

.acne-persistent { animation: realisticPopPersist 8s infinite; width: 10px; height: 10px; top: 34%; left: 40%; animation-delay: 2.8s; }
.acne-persistent-2 { animation: realisticPopPersist 8s infinite; width: 12px; height: 12px; top: 22%; left: 52%; animation-delay: 3.0s; }

@keyframes realisticPop { 0% { transform: scale(0); opacity: 0; } 10% { transform: scale(1); opacity: 1; } 45% { transform: scale(1); opacity: 1; } 52% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }
@keyframes realisticPopPersist { 0% { transform: scale(0); opacity: 0; } 10% { transform: scale(1); opacity: 1; } 45% { transform: scale(1); opacity: 1; } 52% { transform: scale(0.7); opacity: 0.4; background: #8a4343; } 100% { transform: scale(0.7); opacity: 0.4; } }
@keyframes fullGlide { 0% { left: -100%; } 40% { left: -100%; } 60% { left: 100%; } 100% { left: 100%; } }

/* Content Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem; }
h2 { font-size: 2.2rem; font-weight: 600; color: var(--color-text-primary); margin-top: 4rem; padding-left: 0; } 
h3 { font-size: 1.4rem; font-weight: 700; color: var(--color-text-primary); margin-top: 1rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--bouncy); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Medical Table */
.acne-table { width: 100%; border-collapse: separate; border-spacing: 20px 10px; margin: 2rem -20px; }
.acne-table tr { background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s var(--bouncy); }
.acne-table td { padding: 1.5rem; border: none; vertical-align: top; }
.acne-table th { background: var(--color-text-primary); color: white; padding: 1.2rem; text-align: left; border-radius: 15px; }
.acne-table td:first-child { border-radius: 15px; font-weight: 800; color: var(--primary); }
.acne-table td:last-child { border-radius: 15px; }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2rem 0; }
.bento-item { background: white; border-radius: 24px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.4s var(--bouncy); border: 1px solid var(--color-border); }
.bento-item:hover { transform: translateY(-10px); border-color: var(--color-brand-light); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.item-lg { grid-column: span 2; background: var(--color-bg-secondary); }
.item-sm { grid-column: span 1; }

/* Interactive Mapping */
.floating-tooltip { position: absolute; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px); padding: 1.5rem; border-radius: 25px; width: 280px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); z-index: 100; pointer-events: none; transition: all 0.5s var(--bouncy); opacity: 0; transform: translateX(-50%) translateY(20px); }
.tooltip-active { opacity: 1; transform: translateX(-50%) translateY(0); }
.badge { display: inline-block; padding: 5px 15px; background: var(--color-bg-tertiary); color: var(--color-text-primary); border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }

/* Showcase Stage (Buddha Brands) */
.remedy-showcase-container { max-width: 1000px; margin: 4rem auto; }
.remedy-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: -25px; position: relative; z-index: 30; }
.nav-btn { background: white; color: #666; border: none; padding: 15px 35px; border-radius: 40px; cursor: pointer; font-weight: 700; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: all 0.4s var(--bouncy); }
.nav-btn.active { background: var(--color-text-primary); color: white; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.remedy-stage { border-radius: 40px; padding: 5rem 3rem 3rem 3rem; min-height: 450px; transition: background-color 0.6s ease; position: relative; overflow: hidden; }
.stage-content { display: none; opacity: 0; }
.stage-content.active { display: block; opacity: 1; animation: stagePop 0.6s var(--bouncy) forwards; }
@keyframes stagePop { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.stage-image { width: 100%; height: 400px; border-radius: 150px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.12); transition: all 0.5s var(--bouncy); }
.stage-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s var(--bouncy); }
.stage-image:hover { transform: scale(1.02); }
.stage-info h3 { font-size: 2.2rem; margin: 1rem 0; color: var(--color-text-primary); }
.remedy-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.remedy-list li { background: rgba(255,255,255,0.6); margin-bottom: 10px; padding: 12px 20px; border-radius: 15px; backdrop-filter: blur(5px); font-size: 0.95rem; transition: transform 0.3s ease; }
.remedy-list li:hover { transform: translateX(10px); background: white; }

/* Custom Quiz Styling */
.quiz-choice-btn {
    display: block; width: 100%; background: white; border: 2px solid transparent; 
    padding: 1.2rem; border-radius: 20px; margin-bottom: 1rem; cursor: pointer;
    font-weight: 600; text-align: left; transition: all 0.3s var(--bouncy);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.quiz-choice-btn:hover { transform: translateX(10px); border-color: var(--primary); background: var(--secondary); }

/* FAQ Accordion Styling */
.faq-item { background: white; border-radius: 16px; margin-bottom: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--color-border); transition: all 0.3s ease; }
.faq-question { padding: 1.5rem 2rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 1.1rem; }
.faq-question:hover { color: var(--primary); background: #f9fbf9; }
.faq-answer { max-height: 0; padding: 0 2rem; overflow: hidden; transition: all 0.5s cubic-bezier(0, 1, 0, 1); color: var(--color-text-secondary); font-size: 1rem; line-height: 1.65; }
.faq-item.active-faq .faq-answer { max-height: 1000px; padding: 0 2rem 2rem 2rem; transition: all 0.5s cubic-bezier(1, 0, 1, 0); }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-item.active-faq .faq-icon { transform: rotate(45deg); color: var(--accent); }
.hamburger-btn { display: none; flex-direction: column; justify-content: space-around; width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1005; }
.hamburger-btn span { width: 100%; height: 2px; background: var(--text); transition: all 0.3s linear; transform-origin: left; }
.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 900px) {
    .header-container { align-items: center; flex-direction: row; justify-content: space-between; gap: 0; padding: 1rem 1.5rem; }
    .site-header { position: relative; }
    .hamburger-btn { display: flex; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg); padding: 1rem 1.5rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid var(--color-border); }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1rem; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
    .nav-links a:last-child { border-bottom: none; }
    .full-hero { min-height: 350px; height: auto; padding:  6rem 2rem 10rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .bento-grid, .stage-grid { grid-template-columns: 1fr; }
    .bento-item[style*="grid-column"] { grid-column: auto !important; }
}

@media (max-width: 768px) {
    .container { padding: 1.5rem; }
    .hero-content { margin-top: 2rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .acne-table, .acne-table tbody, .acne-table tr, .acne-table th, .acne-table td { display: block; width: 100%; box-sizing: border-box; }
    .acne-table { margin: 1rem 0; border-spacing: 0; }
    .acne-table tr { margin-bottom: 1.5rem; border-radius: 15px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .acne-table td { border: none; padding: 1rem; border-bottom: 1px solid var(--color-border); }
    .acne-table td:last-child { border-bottom: none; }
    .acne-table th { text-align: center; border-radius: 0; }
    .acne-table td:first-child, .acne-table td:last-child { border-radius: 0; }
    .remedy-stage { padding: 3rem 1.5rem; border-radius: 20px; }
    .stage-image { height: 250px; border-radius: 30px; }
    .nav-btn { padding: 10px 20px; font-size: 0.9rem; }
    h2 { font-size: 1.8rem; margin-top: 2.5rem; }
    .trust-container { justify-content: center; gap: 10px; }
    .floating-tooltip { position: relative !important; top: auto !important; bottom: auto !important; left: auto !important; transform: none !important; width: 100%; opacity: 1; margin-top: 10px; border-radius: 20px; box-shadow: none; border: 1px solid var(--color-border); }
}

/* Face AI CTA Styling - Premium Perimeter Rail Animation */
.face-ai-cta-wrapper { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 3rem auto 0; text-align: center; width: 100%; position: relative; z-index: 50; }
.face-ai-btn { 
  position: relative; 
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  padding: 18px 44px; 
  background: #EC610E; 
  color: #ffffff !important; 
  text-decoration: none; 
  font-weight: 800; 
  font-size: 1.15rem; 
  border-radius: 9999px; 
  box-shadow: 0 10px 30px rgba(236,97,14,0.3); 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  z-index: 10;
  overflow: visible;
}
.face-ai-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(236,97,14,0.5); }
.face-ai-btn-text { position: relative; z-index: 12; }
.face-ai-subtext { color: rgba(255,255,255,0.85); font-size: 13px; max-width: 480px; line-height: 1.5; margin: 0 auto; display: block !important; visibility: visible !important; }

.face-ai-energy-rail { 
  position: absolute; 
  inset: -3px; 
  border-radius: 9999px; 
  pointer-events: none;
  z-index: 5;
  padding: 3px;
  overflow: hidden;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.face-ai-energy-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400%; 
  height: 400%;
  background: conic-gradient(from 0deg, transparent 65%, #EC610E 80%, #FFE1CE 95%, #ffffff 100%);
  animation: energy-loop 3.5s ease-in-out forwards;
}

@keyframes energy-loop {
  0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(765deg); opacity: 0.8; }
}

.face-ai-energy-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(8px);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .face-ai-btn { padding: 16px 32px; font-size: 1rem; width: 100%; max-width: 340px; }
  .face-ai-subtext { font-size: 12px; padding: 0 10px; }
}

/* ── STICKY BOTTOM CTA (MOBILE ONLY) ── */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none; /* Hidden on desktop */
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--color-border);
}

.sticky-cta-mobile .nav-cta {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(236,97,14,0.3);
    text-decoration: none;
    border-radius: 9999px;
    background: var(--color-brand);
    color: #fff;
    font-weight: 800;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: flex;
    }
    /* Hide hero CTA on mobile to avoid redundancy */
    .face-ai-cta-wrapper {
        display: none !important;
    }
    body {
        padding-bottom: 70px;
    }
}
