/* ============================================================
   CleanSlate — Master Stylesheet
   ============================================================ */

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

/* ---- Variables ---- */
:root {
  --primary: #f472b6;
  --primary-dark: #db2777;
  --primary-light: #fce7f3;
  --primary-glow: rgba(244,114,182,0.25);
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #fdfaf8;
  --bg-alt: #faf6f3;
  --bg-dark: #0f172a;
  --border: #ede8e4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.07);
  --shadow-glow: 0 0 40px rgba(244,114,182,.2);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --spring: cubic-bezier(0.34,1.56,0.64,1);
  --transition: 0.3s var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Preloader ---- */
#preloader {
  position: fixed; inset: 0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-box { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader-logo { font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.preloader-logo span { color: var(--primary); }
.preloader-bar { width: 160px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.preloader-bar::after {
  content: ''; display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), #f9a8d4);
  border-radius: 3px; animation: preloadBar 1.5s var(--ease) forwards;
}
@keyframes preloadBar { from { width: 0; } to { width: 100%; } }

/* ---- Scroll Progress ---- */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), #f9a8d4, var(--primary));
  background-size: 200%; z-index: 9998; transition: width .1s linear;
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200%; } 100% { background-position: -200%; } }

/* ---- Custom Cursor ---- */
.cursor {
  width: 10px; height: 10px; background: var(--primary);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9997; transform: translate(-50%,-50%);
  transition: width .25s var(--spring), height .25s var(--spring), opacity .25s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid var(--primary);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9996; transform: translate(-50%,-50%); opacity: .4;
  transition: width .3s var(--spring), height .3s var(--spring), opacity .3s;
}
.cursor.grow { width: 18px; height: 18px; }
.cursor-ring.grow { width: 56px; height: 56px; opacity: .2; }
@media (max-width: 768px) { .cursor, .cursor-ring { display: none; } }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.5px;
  color: var(--text); display: flex; align-items: center; gap: 2px;
}
.nav-logo em { color: var(--primary); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--text-muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: 0 8px 20px var(--primary-glow); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.nav-overlay {
  display: none; position: fixed; inset: 0; top: 60px;
  background: rgba(255,255,255,.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; z-index: 999;
}
.nav-overlay.open { display: flex; }
.nav-overlay a { font-size: 1.8rem; font-weight: 700; color: var(--text); padding: 12px 40px; border-radius: var(--radius); transition: color .2s, background .2s; }
.nav-overlay a:hover, .nav-overlay a.active { color: var(--primary); background: var(--primary-light); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }

/* ---- Typography ---- */
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -2px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.18; letter-spacing: -1px; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
p { line-height: 1.75; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: .78rem; font-weight: 700; padding: 6px 14px;
  border-radius: 100px; letter-spacing: .3px; margin-bottom: 20px;
  border: 1px solid rgba(244,114,182,.2);
}
.section-badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 580px; margin: 0 auto 64px; }
.section-header h2 { margin: 10px 0 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .3s var(--spring);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px var(--primary-glow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35); pointer-events: none;
  animation: ripple .65s linear forwards;
  transform: translate(-50%,-50%) scale(0);
}
@keyframes ripple { to { transform: translate(-50%,-50%) scale(4); opacity: 0; } }

/* ---- Cards ---- */
.card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-glass {
  background: rgba(255,255,255,.7); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 8px 32px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.8);
}
.card-glass:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(244,114,182,.12); border-color: rgba(244,114,182,.2); }

/* ---- Icon Box ---- */
.icon-box {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; background: var(--primary-light); margin-bottom: 20px;
  transition: all .35s var(--spring);
}
.card:hover .icon-box { background: var(--primary); transform: scale(1.1) rotate(-8deg); }

/* ---- 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; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ---- Wave Dividers ---- */
.wave { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave svg { display: block; width: 100%; }

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fce7f3 60%, var(--bg-alt) 100%);
  padding: 160px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,114,182,.08) 0%, transparent 70%);
  top: -300px; right: -200px; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,168,212,.06) 0%, transparent 70%);
  bottom: -100px; left: -100px; pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; position: relative; z-index: 1; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }

/* ---- Stats ---- */
.stat-box { text-align: center; padding: 24px 0; }
.stat-num {
  font-size: 3rem; font-weight: 800; letter-spacing: -2px;
  color: var(--primary); line-height: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px;
}
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: 6px; font-weight: 500; }

/* ---- Testimonials ---- */
.testimonial { padding: 28px 32px; }
.stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-quote { font-style: italic; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #f9a8d4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: .95rem; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: .9rem; }
.author-loc { font-size: .8rem; color: var(--text-muted); }

/* ---- Pricing ---- */
.pricing-card {
  border-radius: var(--radius-lg); padding: 40px 32px;
  border: 2px solid var(--border); position: relative;
  transition: all .4s var(--spring); background: #fff;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
  border-color: var(--primary); transform: scale(1.04);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}
.pricing-card.popular:hover { transform: scale(1.04) translateY(-8px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 6px 18px; border-radius: 100px; white-space: nowrap; letter-spacing: .5px;
}
.price { font-size: 3.2rem; font-weight: 800; letter-spacing: -2px; color: var(--text); line-height: 1; }
.price-period { font-size: 1rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.check-list li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.check-list li.no { color: var(--text-light); }
.check-list li.no::before { content: '–'; color: var(--text-light); }

/* ---- Form ---- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: 8px; color: var(--text); }
input, textarea, select {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: .95rem;
  color: var(--text); background: #fff; transition: border-color .25s, box-shadow .25s; outline: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(244,114,182,.1);
}
textarea { resize: vertical; min-height: 130px; }

/* ---- FAQ ---- */
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; transition: border-color .25s, box-shadow .25s; overflow: hidden;
}
details[open] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(244,114,182,.1); }
summary {
  padding: 20px 24px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
  transition: background .2s; color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--bg-alt); }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; flex-shrink: 0; transition: transform .3s, background .3s; }
details[open] .faq-icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.75; }

/* ---- Before/After Slider ---- */
.ba-wrapper { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; cursor: col-resize; aspect-ratio: 16/9; max-width: 720px; margin: 0 auto; }
.ba-before, .ba-after { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ba-before { background: linear-gradient(135deg, #fef3c7, #fde68a, #fbbf24); }
.ba-after { background: linear-gradient(135deg, var(--primary-light), #fbcfe8, #f9a8d4); clip-path: inset(0 50% 0 0); transition: clip-path 0s; }
.ba-label { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.5px; }
.ba-before .ba-label { color: #92400e; }
.ba-after .ba-label { color: var(--primary-dark); }
.ba-emoji { font-size: 3rem; }
.ba-tag { position: absolute; top: 16px; padding: 5px 14px; border-radius: 100px; font-size: .75rem; font-weight: 700; letter-spacing: .5px; }
.ba-tag.before { left: 16px; background: rgba(0,0,0,.55); color: #fff; }
.ba-tag.after { right: 16px; background: rgba(255,255,255,.9); color: var(--primary-dark); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; background: #fff; border-radius: 50%; box-shadow: 0 4px 20px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; font-size: 1.1rem; }
.ba-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; padding: 6px 16px; border-radius: 100px; font-size: .75rem; font-weight: 500; animation: fadeHint 3s ease forwards 1s; opacity: 0; }
@keyframes fadeHint { 0%{opacity:0;} 20%{opacity:1;} 80%{opacity:1;} 100%{opacity:0;} }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--bg-dark); color: #fff;
  padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500;
  transform: translateY(80px) scale(.95); opacity: 0; z-index: 9990;
  transition: all .45s var(--spring);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }

/* ---- Scroll Reveal ---- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-scale { transform: scale(.95); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s !important; }
.d2 { transition-delay: .2s !important; }
.d3 { transition-delay: .3s !important; }
.d4 { transition-delay: .4s !important; }
.d5 { transition-delay: .5s !important; }

/* ---- Footer ---- */
footer {
  background: var(--bg-dark); color: rgba(255,255,255,.65);
  padding: 72px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; color: #fff; margin-bottom: 14px; }
.footer-logo em { color: var(--primary); font-style: normal; }
.footer-desc { font-size: .9rem; line-height: 1.75; max-width: 26ch; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background .2s, transform .2s;
}
.social-icon:hover { background: var(--primary); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact-row { display: flex; align-items: center; gap: 10px; font-size: .875rem; margin-bottom: 10px; }
.footer-contact-row span:first-child { font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pricing-card.popular { transform: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .ba-wrapper { aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  h1 { letter-spacing: -1px; }
}
