/* ================= MEOWSKIN CORE STYLE ================= */

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; color: #1f2937; background-color: #ffffff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Hệ màu sắc */
.text-teal { color: #0d9488; } .text-teal-light { color: #2dd4bf; }
.text-purple { color: #9333ea; } .text-indigo { color: #4f46e5; }
.text-blue { color: #2563eb; } .text-rose { color: #e11d48; }
.text-slate { color: #475569; } .text-amber { color: #d97706; }
.text-red { color: #e11d48; } .text-yellow { color: #ca8a04; }
.text-gray-300 { color: #d1d5db; }

.bg-teal-light { background-color: #f0fdfa; }
.bg-indigo-light { background-color: #eef2ff; }
.bg-blue-light { background-color: #eff6ff; }
.bg-slate-light { background-color: #f8fafc; }
.bg-amber-light { background-color: #fffbeb; }

/* Nút trôi nổi (Floating Buttons) */
.fab-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab-btn-app { background: linear-gradient(to right, #14b8a6, #3b82f6); color: white; padding: 12px 20px; border-radius: 99px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); font-weight: 700; display: flex; align-items: center; gap: 8px; transition: 0.3s; cursor: pointer; border: none; font-family: inherit;}
.fab-btn-up { background: #1f2937; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; transition: 0.3s; opacity: 0.7; }
.fab-btn-app:hover { transform: scale(1.05); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
.fab-btn-up:hover { background: #0d9488; opacity: 1; }

/* Hero Section */
.hero-section { background: linear-gradient(to bottom right, #f0fdfa, #ffffff, #eff6ff); padding: 80px 0 120px; text-align: center; border-bottom: 1px solid rgba(204,251,241,0.5); }
.hero-logo { width: 128px; height: 128px; border-radius: 32px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); margin: 0 auto 24px; border: 4px solid white; transition: transform 0.3s; }
.hero-logo:hover { transform: rotate(6deg); }
.hero-title { font-size: 4.5rem; font-weight: 800; background: linear-gradient(to right, #0d9488, #3b82f6); -webkit-background-clip: text; color: transparent; margin-bottom: 16px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.25rem; color: #4b5563; max-width: 42rem; margin: 0 auto 64px; line-height: 1.6; }

/* Điện thoại showcase xòe quạt */
.screen-showcase { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 80px; padding: 40px 0; }
.glow-bg-main { position: absolute; inset: 0; background: #2dd4bf; filter: blur(100px); opacity: 0.3; border-radius: 50%; max-width: 56rem; margin: auto; }
.screen-img { position: relative; width: 240px; border-radius: 40px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 8px solid white; transition: 0.5s; cursor: pointer; object-fit: cover; margin: 0 -40px; }
.screen-1 { transform: rotate(-12deg); z-index: 10; }
.screen-2 { transform: rotate(-4deg); z-index: 20; margin-top: 40px; }
.screen-3 { transform: rotate(4deg); z-index: 30; margin-top: 40px; }
.screen-4 { transform: rotate(12deg); z-index: 40; }
.screen-img:hover { transform: rotate(0) translateY(-24px) scale(1.1); z-index: 50; }

/* Nút tải Store */
.download-group { display: flex; justify-content: center; gap: 16px; position: relative; z-index: 50; flex-wrap: wrap; }
.store-btn { display: flex; align-items: center; justify-content: center; width: 256px; padding: 16px 24px; border-radius: 16px; color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: 0.3s; cursor: pointer; border: none; font-family: inherit;}
.store-apple { background: #111827; }
.store-apple:hover { background: #000; transform: translateY(-4px); }
.store-google { background: linear-gradient(to right, #14b8a6, #059669); width: 100%; max-width: 400px; padding: 20px;}
.store-google:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.3); }
.store-icon { width: 32px; height: 32px; margin-right: 16px; flex-shrink: 0; display: block; }
.store-small { font-size: 0.68rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 1px; text-align: left; margin-bottom: 2px;}
.store-large { font-size: 1.125rem; font-weight: 600; text-align: left;}

/* Các Section chung */
.section { padding: 96px 0; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.section-desc { color: #6b7280; font-size: 1.125rem; }
.badge { display: inline-block; padding: 8px 16px; border-radius: 99px; font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }

/* Lớp Da Đa Tầng */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.layer-box { position: relative; height: 450px; max-width: 384px; margin: 0 auto; width: 100%; }
.layer { position: absolute; inset: 0; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; backdrop-filter: blur(4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: all 0.6s ease; }
.layer svg { margin-bottom: 12px; width: 48px; height: 48px; flex-shrink: 0; }
.layer-1 { background: rgba(255, 237, 213, 0.9); border: 2px solid #fed7aa; color: #9a3412; z-index: 30; }
.layer-2 { background: rgba(255, 228, 230, 0.9); border: 2px solid #fecdd3; color: #9f1239; z-index: 20; margin-top: 24px; }
.layer-3 { background: rgba(254, 252, 232, 0.9); border: 2px solid #fef08a; color: #a16207; z-index: 10; margin-top: 48px; }
.layer-box:hover .layer-1 { transform: translateY(-60px); }
.layer-box:hover .layer-3 { transform: translateY(60px); }

.info-box { padding: 24px; border-radius: 16px; margin-bottom: 24px; transition: 0.3s; }
.info-box:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.info-orange { background: #fff7ed; border-left: 4px solid #fb923c; }
.info-rose { background: #fff1f2; border-left: 4px solid #fb7185; }
.info-yellow { background: #fefce8; border-left: 4px solid #facc15; }
.info-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: #111827;}
.info-desc { color: #374151; }

/* Giọt tinh chất rơi */
.serum-section { background: #111827; position: relative; overflow: hidden; padding: 96px 0; }
.serum-pattern { position: absolute; inset: 0; opacity: 0.1; background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); }
.serum-text { position: relative; z-index: 10; }
.badge-teal { background: rgba(13, 148, 136, 0.5); color: #5eead4; border: 1px solid #0f766e; }
.check-list { list-style: none; color: #ccfbf1; margin-top: 24px;}
.check-list li { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; }
.check-list svg { color: #14b8a6; flex-shrink: 0; margin-top: 4px; width: 16px; height: 16px; }
.serum-visual { position: relative; height: 400px; border-left: 1px dashed #374151; border-right: 1px dashed #374151; display: flex; justify-content: center; z-index: 10;}
.serum-line-top { position: absolute; top: 0; width: 100%; height: 4px; background: #14b8a6; box-shadow: 0 0 30px #14b8a6; }
@keyframes drop { 0% { transform: translateY(-100px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(400px); opacity: 0; } }
.serum-drop { position: absolute; color: #2dd4bf; animation: drop 3s infinite; width: 48px; height: 48px; }
.serum-lines { margin-top: 80px; width: 100%; padding: 0 40px; display: flex; flex-direction: column; gap: 80px; }
.s-line { height: 1px; background: rgba(255,255,255,0.2); width: 100%; position: relative; }
.s-line span { position: absolute; top: -24px; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; letter-spacing: 2px; color: #5eead4; white-space: nowrap; }

/* Nhận diện mụn & Testimonials Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.acne-card, .testi-card { background: white; padding: 32px; border-radius: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); text-align: center; transition: 0.5s; }
.acne-card:hover, .testi-card:hover { transform: translateY(-8px); }
.acne-img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transition: 0.5s; border: 2px solid; background: #f3f4f6;}
.acne-card:hover .acne-img { transform: scale(1.1); }
.border-gray { border-color: #f3f4f6; } .border-red { border-color: #fee2e2; } .border-yellow { border-color: #fef9c3; }
.acne-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.acne-desc { color: #6b7280; }

.testi-card { border: 1px solid #ccfbf1; text-align: left;}
.testi-offset { transform: translateY(-24px); }
.testi-offset:hover { transform: translateY(-32px); }
.stars { color: #fbbf24; margin-bottom: 16px; display: flex; gap: 4px; }
.stars svg { width: 16px; height: 16px; flex-shrink: 0; }
.testi-quote { color: #374151; font-style: italic; margin-bottom: 24px; }
.testi-user { display: flex; align-items: center; gap: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.bg-teal-soft { background: #ccfbf1; color: #0f766e; } 
.bg-purple-soft { background: #e9d5ff; color: #7e22ce; } 
.bg-rose-soft { background: #fecdd3; color: #be123c; }

/* Các trang tính năng đặc trưng (Z-pattern) */
.feature-block { padding: 80px 0; overflow: hidden; }
.feature-row { display: flex; align-items: center; gap: 80px; }
.feature-reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-title { font-size: 3rem; font-weight: 700; line-height: 1.2; margin-bottom: 24px; color: #111827;}
.feature-desc { font-size: 1.125rem; color: #4b5563; line-height: 1.6; }
.feature-visual { flex: 1; position: relative; display: flex; justify-content: center; width: 100%; }
.feature-glow { position: absolute; inset: 0; filter: blur(80px); opacity: 0.2; border-radius: 50%; }
.feature-card { width: 320px; height: 320px; border-radius: 48px; background: rgba(255,255,255,0.6); backdrop-filter: blur(24px); border: 1px solid white; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; transition: 0.5s; position: relative; z-index: 10; overflow: hidden; }
.feature-card-inner { position: absolute; inset: 0; opacity: 0.5; transition: 0.5s; border-radius: 48px; }

.feature-icon {
    font-size: 8rem !important;
    line-height: 1;
    display: inline-block;
}

.feature-card:hover { transform: translateY(-16px); box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);}
.feature-card:hover .feature-card-inner { opacity: 1; }
.feature-card:hover .feature-icon { transform: scale(1.1); }

/* Class màu sắc riêng */
.badge-purple { background: #f3e8ff; color: #7e22ce; } .f-purple .feature-glow { background: #c084fc; } .f-purple .feature-card-inner { background: linear-gradient(to bottom right, rgba(192,132,252,0.1), transparent, rgba(147,51,234,0.1)); } .f-purple .feature-icon { color: #a855f7; }
.badge-indigo { background: #e0e7ff; color: #4338ca; } .f-indigo .feature-glow { background: #818cf8; } .f-indigo .feature-card-inner { background: linear-gradient(to bottom right, rgba(129,140,248,0.1), transparent, rgba(79,70,229,0.1)); } .f-indigo .feature-icon { color: #6366f1; }
.badge-teal { background: #ccfbf1; color: #0f766e; } .f-teal .feature-glow { background: #5eead4; } .f-teal .feature-card-inner { background: linear-gradient(to bottom right, rgba(94,234,212,0.1), transparent, rgba(13,148,136,0.1)); } .f-teal .feature-icon { color: #14b8a6; }
.badge-blue { background: #dbeafe; color: #1d4ed8; } .f-blue .feature-glow { background: #93c5fd; } .f-blue .feature-card-inner { background: linear-gradient(to bottom right, rgba(147,197,253,0.1), transparent, rgba(37,99,235,0.1)); } .f-blue .feature-icon { color: #3b82f6; }
.badge-rose { background: #ffe4e6; color: #be123c; } .f-rose .feature-glow { background: #fda4af; } .f-rose .feature-card-inner { background: linear-gradient(to bottom right, rgba(253,164,175,0.1), transparent, rgba(225,29,72,0.1)); } .f-rose .feature-icon { color: #f43f5e; }
.badge-slate { background: #e2e8f0; color: #334155; } .f-slate .feature-glow { background: #cbd5e1; } .f-slate .feature-card-inner { background: linear-gradient(to bottom right, rgba(203,213,225,0.1), transparent, rgba(71,85,105,0.1)); } .f-slate .feature-icon { color: #64748b; }
.badge-amber { background: #fde68a; color: #92400e; } .f-amber .feature-glow { background: #fcd34d; } .f-amber .feature-card-inner { background: linear-gradient(to bottom right, rgba(252,211,77,0.1), transparent, rgba(217,119,6,0.1)); } .f-amber .feature-icon { color: #f59e0b; }
.bg-amber-decoration { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(to left, rgba(254,243,199,0.5), transparent); z-index: -1; }
.border-amber { border: 2px solid white; }

/* ================= CSS POPUP CHỜ (WAITLIST) ================= */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
  background: rgba(17, 24, 39, 0.7); backdrop-filter: blur(8px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: white; width: 90%; max-width: 400px; padding: 32px; border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); position: relative;
  transform: translateY(20px) scale(0.95); transition: 0.3s ease; text-align: center;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem;
  color: #9ca3af; cursor: pointer; transition: 0.2s;
}
.modal-close:hover { color: #111827; }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-title { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 8px; }
.modal-desc { font-size: 0.875rem; color: #6b7280; margin-bottom: 24px; }
.email-input {
  width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
  font-family: inherit; font-size: 1rem; outline: none; transition: 0.2s; margin-bottom: 16px;
}
.email-input:focus { border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1); }
.submit-btn {
  width: 100%; background: linear-gradient(to right, #14b8a6, #3b82f6); color: white; border: none;
  padding: 12px; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.2s;
}
.submit-btn:hover { box-shadow: 0 10px 15px -3px rgba(20, 184, 166, 0.3); transform: translateY(-2px); }

/* ================= TRANG 404 ================= */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8fafc; text-align: center; padding: 24px; }
.cat-404 { font-size: 8rem; line-height: 1; margin-bottom: 24px; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1)); }
.title-404 { font-size: 4rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.desc-404 { font-size: 1.25rem; color: #6b7280; margin-bottom: 32px; }
.btn-back-home { display: inline-flex; align-items: center; gap: 8px; background: #111827; color: white; padding: 12px 24px; border-radius: 99px; font-weight: 700; transition: 0.3s; }
.btn-back-home:hover { background: #0d9488; transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.3); }

/* ================= CÂU HỎI FAQ ================= */
.faq-bg { border-bottom: 1px solid #f3f4f6; }
.faq-container { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 16px; cursor: pointer; }
.faq-summary { display: flex; justify-content: space-between; align-items: center; padding: 24px; font-weight: 700; font-size: 1.125rem; color: #1f2937; list-style: none;}
.faq-summary::-webkit-details-marker { display: none; }
.faq-content { padding: 0 24px 24px; color: #4b5563; }
.faq-icon { transition: transform 0.3s; flex-shrink: 0; width: 20px; height: 20px;}
details[open] .faq-icon { transform: rotate(180deg); }
details[open] .faq-content { animation: sweep .3s ease-in-out; }
@keyframes sweep { 0% { opacity: 0; margin-top: -10px; } 100% { opacity: 1; margin-top: 0px; } }

/* Footer */
.footer { background: #111827; color: white; padding: 48px 0; text-align: center; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; color: #9ca3af; font-size: 1.125rem;}
.footer-brand { font-weight: 700; color: white;}
.dot { width: 8px; height: 8px; background: #14b8a6; border-radius: 50%; display: inline-block; }
.footer-note { font-size: 0.875rem; color: #6b7280; }
.footer-note a:hover { color: #5eead4; }

/* Biểu đồ độ chính xác */
.chart-section { padding: 96px 0; background: #ffffff; }
.chart-container { max-width: 800px; margin: 40px auto; display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 32px; background: #f8fafc; border: 1px solid #e2e8f0; }
.bar-row { display: flex; align-items: center; gap: 20px; }
.bar-label { flex: 0 0 180px; font-weight: 700; color: #374151; text-align: right; }
.bar-track { flex-grow: 1; height: 32px; background: #e2e8f0; border-radius: 16px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; color: white; font-weight: 700; border-radius: 16px; transition: width 1.5s ease-out; }
.source-note { margin-top: 24px; font-style: italic; color: #6b7280; font-size: 0.9rem; text-align: center; }
.source-link { color: #0d9488; text-decoration: underline; font-weight: 600; }

/* ================= ĐIỀU CHỈNH GIAO DIỆN TRÊN ĐIỆN THOẠI ================= */
@media (max-width: 768px) {
  .hero-section { padding: 60px 0 80px; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.1rem; margin-bottom: 40px; padding: 0 10px; }
  .screen-showcase { margin-bottom: 40px; padding: 20px 0; }
  .screen-img { width: 100px; margin: 0 -15px; border-width: 4px; border-radius: 20px;}
  .screen-2, .screen-3 { margin-top: 20px; }
  .download-group { flex-direction: column; align-items: center; gap: 16px; padding: 0 20px; }
  .store-btn { width: 100%; max-width: 300px; padding: 12px 20px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
  .layer-box { height: 350px; max-width: 280px; }
  .layer-3 { margin-top: 36px; }
  .serum-section { padding: 60px 0; text-align: center; }
  .serum-visual { height: 300px; border: none; }
  .serum-drop { top: 0; }
  .serum-lines { gap: 60px; padding: 0 10px; margin-top: 60px; }
  .s-line span { font-size: 0.65rem; letter-spacing: 1px; width: 100%; text-align: center; left: 0; }
  .feature-block { padding: 60px 0; }
  .feature-row { flex-direction: column !important; text-align: center; gap: 40px; padding: 0; }
  .feature-title { font-size: 2.5rem; }
  .feature-card { width: 260px; height: 260px; border-radius: 36px; }
  .feature-card-inner { border-radius: 36px; }
  .feature-icon { width: 90px; height: 90px; }
  .testi-offset { transform: none; }
  .testi-offset:hover { transform: translateY(-8px); }
}