/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f9fafb; color: #111827; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }


/* ===== NAV ===== */
nav { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid #f3f4f6; position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1152px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.nav-logo span { font-weight: 800; font-size: 1.15rem; }
.nav-logo .accent { color: #6366f1; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 0.82rem; color: #6b7280; white-space: nowrap; flex-shrink: 0; }
.nav-links a { transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: #6366f1; }


/* ===== MOBILE MENU & HAMBURGER ===== */
.mobile-menu {
  display: none !important;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
  color: #6b7280;
}
.mobile-menu.open {
  display: flex !important;
}
.mobile-menu a {
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: #6366f1;
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #6b7280;
  border-radius: 2px;
  transition: all 0.3s;
}


/* ===== BUTTONS ===== */
.btn-primary { background: #6366f1; color: #fff; padding: 8px 18px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { background: #4f46e5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }


/* ===== HERO ===== */
.hero { max-width: 1152px; margin: 0 auto; padding: 60px 24px 40px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #e0e7ff; color: #4338ca; font-size: 0.8rem; font-weight: 500; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero h1 .accent { color: #6366f1; }
.hero p { font-size: 1.05rem; color: #6b7280; max-width: 580px; margin: 0 auto 28px; line-height: 1.6; }
.hero-form { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 380px; margin: 0 auto; }
.hero-form input { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #d1d5db; font-size: 0.85rem; outline: none; transition: all 0.3s; text-align: center; }
.hero-form input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.hero-form .btn-primary { width: 100%; padding: 12px; font-size: 0.85rem; }
.hero-small { font-size: 0.75rem; color: #9ca3af; margin-top: 10px; }
.success-msg { background: #f0fdf4; color: #15803d; padding: 10px 20px; border-radius: 10px; font-weight: 500; font-size: 0.85rem; display: none; justify-content: center; align-items: center; gap: 8px; max-width: 400px; margin: 0 auto; }
.success-msg.show { display: flex; }


/* ===== SECTIONS ===== */
section { padding: 50px 24px; }
.section-white { background: #fff; }
.section-inner { max-width: 1152px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: #6b7280; font-size: 0.9rem; max-width: 500px; margin: 0 auto; }


/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-3-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }


/* ===== ANIMATIONS ===== */
.animate { opacity: 0; transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s; }
.animate.visible { opacity: 1 !important; }

.anim-slide-left { transform: translateX(-60px); }
.anim-slide-left.visible { transform: translateX(0); }

.anim-slide-right { transform: translateX(60px); }
.anim-slide-right.visible { transform: translateX(0); }

.anim-scale { transform: scale(0.85); }
.anim-scale.visible { transform: scale(1); }

.anim-slide-up { transform: translateY(50px); }
.anim-slide-up.visible { transform: translateY(0); }

.anim-flip { transform: perspective(600px) rotateY(-14deg) translateX(-20px); }
.anim-flip.visible { transform: perspective(600px) rotateY(0deg) translateX(0); }

.anim-fade-up { transform: translateY(35px); }
.anim-fade-up.visible { transform: translateY(0); }

.section-header.animate { transform: translateY(30px); }
.section-header.animate.visible { transform: translateY(0); }


/* ===== REVIEW CARDS ===== */
.review-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.review-card:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 40px rgba(99,102,241,0.12); }
.stars { display: flex; gap: 2px; margin-bottom: 8px; font-size: 14px; }
.star-filled { color: #fbbf24; }
.star-empty { color: #e5e7eb; }
.review-name { font-size: 0.8rem; color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.review-text { font-size: 0.8rem; color: #374151; margin-bottom: 14px; flex-grow: 1; }
.ai-reply { background: #eef2ff; border-radius: 12px; padding: 14px; border-left: 4px solid #6366f1; }
.ai-reply-label { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: #6366f1; margin-bottom: 6px; }
.ai-reply p { font-size: 0.78rem; color: #374151; line-height: 1.5; }


/* ===== FEATURE CARDS ===== */
.feature-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #f3f4f6; text-align: center; }
.feature-card:hover { transform: scale(1.03) !important; box-shadow: 0 8px 30px rgba(99,102,241,0.1); }
.feature-icon { width: 44px; height: 44px; background: #e0e7ff; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.2rem; }
.feature-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.78rem; color: #6b7280; line-height: 1.5; }


/* ===== STEPS ===== */
.step-card { text-align: center; }
.step-num { width: 48px; height: 48px; background: #6366f1; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; font-weight: 800; margin: 0 auto 12px; box-shadow: 0 4px 12px rgba(99,102,241,0.3); transition: transform 0.4s; }
.step-card:hover .step-num { transform: scale(1.1) rotate(5deg); }
.step-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.step-card p { font-size: 0.78rem; color: #6b7280; }


/* ===== PRICING ===== */
.pricing-card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.pricing-card:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 40px rgba(99,102,241,0.12); }
.pricing-card.popular { background: #6366f1; color: #fff; box-shadow: 0 8px 30px rgba(99,102,241,0.3); border: 2px solid #a5b4fc; }
.pricing-badge { display: inline-block; background: #fbbf24; color: #111827; font-size: 0.65rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 4px; }
.pricing-card h3 { font-size: 1.05rem; font-weight: 700; margin-top: 8px; }
.pricing-price { margin: 12px 0 16px; }
.pricing-price span.amount { font-size: 2rem; font-weight: 800; }
.pricing-price span.period { font-size: 0.78rem; color: #6b7280; }
.popular .pricing-price span.period { color: #c7d2fe; }
.pricing-features { list-style: none; flex-grow: 1; margin-bottom: 18px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; margin-bottom: 8px; color: #6b7280; }
.popular .pricing-features li { color: #e0e7ff; }
.pricing-features li::before { content: '✓'; font-weight: 700; color: #6366f1; }
.popular .pricing-features li::before { color: #fbbf24; }
.btn-pricing { width: 100%; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 0.78rem; border: none; cursor: pointer; transition: all 0.3s; }
.btn-pricing.normal { background: #6366f1; color: #fff; }
.btn-pricing.normal:hover { background: #4f46e5; transform: translateY(-1px); }
.btn-pricing.pop { background: #fff; color: #6366f1; }
.btn-pricing.pop:hover { background: #eef2ff; transform: translateY(-1px); }


/* ===== FAQ ===== */
.faq-card { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; }
.faq-q { width: 100%; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; background: none; border: none; border-radius: 12px; cursor: pointer; text-align: left; font-weight: 600; font-size: 0.78rem; color: #111827; transition: background 0.2s; }
.faq-q:hover { background: #f9fafb; }
.faq-arrow { transition: transform 0.3s; font-size: 0.9rem; color: #9ca3af; flex-shrink: 0; margin-left: 8px; }
.faq-arrow.open { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-a.open { max-height: 300px; }
.faq-a-inner { padding: 0 16px 14px; }
.faq-a-inner p { font-size: 0.75rem; color: #6b7280; line-height: 1.6; }


/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); padding: 60px 24px; text-align: center; }
.cta h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta p { color: #c7d2fe; font-size: 0.9rem; margin-bottom: 24px; }
.btn-cta { background: #fff; color: #6366f1; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.3s; }
.btn-cta:hover { background: #eef2ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }


/* ===== FOOTER ===== */
footer { background: #111827; color: #9ca3af; padding: 32px 24px; }
.footer-inner { max-width: 1152px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.footer-logo span { font-weight: 700; color: #fff; font-size: 0.9rem; }
.footer-logo .accent { color: #818cf8; }
.footer-links { display: flex; gap: 20px; font-size: 0.78rem; }
.footer-links a { cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.75rem; }


/* ===== LEGAL PAGES ===== */
.legal-page { display: none; min-height: 100vh; background: #f9fafb; }
.legal-page.active { display: block; }
.legal-inner { max-width: 740px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: #6366f1; cursor: pointer; margin-bottom: 28px; padding: 8px 16px; border-radius: 10px; transition: all 0.2s; border: 1px solid #e0e7ff; background: #fff; }
.legal-back:hover { background: #eef2ff; transform: translateX(-2px); }
.legal-inner h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.legal-inner .legal-updated { font-size: 0.78rem; color: #9ca3af; margin-bottom: 28px; }
.legal-inner h2 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; color: #111827; }
.legal-inner h3 { font-size: 0.95rem; font-weight: 600; margin: 16px 0 6px; color: #374151; }
.legal-inner p { font-size: 0.82rem; color: #4b5563; line-height: 1.7; margin-bottom: 10px; }
.legal-inner ul { margin: 8px 0 12px 20px; }
.legal-inner ul li { font-size: 0.82rem; color: #4b5563; line-height: 1.7; margin-bottom: 4px; }
.legal-inner a { color: #6366f1; text-decoration: underline; }


/* ===== CONTACT FORM ===== */
.contact-form { max-width: 480px; margin-top: 20px; }
.contact-form label { display: block; font-size: 0.78rem; font-weight: 600; color: #374151; margin-bottom: 4px; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 0.82rem; outline: none; transition: all 0.3s; margin-bottom: 14px; font-family: inherit; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-success { background: #f0fdf4; color: #15803d; padding: 12px 18px; border-radius: 10px; font-weight: 500; font-size: 0.82rem; display: none; align-items: center; gap: 8px; }
.contact-success.show { display: flex; }


/* ===== MAIN CONTENT WRAPPER ===== */
#mainContent { display: block; }
#mainContent.hidden { display: none; }


/* ===== ANIMATION DELAYS ===== */
.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.30s !important; }
.delay-3 { transition-delay: 0.45s !important; }
.delay-4 { transition-delay: 0.60s !important; }
.delay-5 { transition-delay: 0.75s !important; }


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid-3, .grid-3-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .nav-mobile-actions { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
}


/* ===== DARK MODE TOGGLE BUTTON ===== */
.dark-toggle {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}
.dark-toggle:hover {
  background: #e5e7eb;
  transform: scale(1.1);
}


/* ===== DARK MODE ===== */
body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark nav {
  background: rgba(15, 23, 42, 0.9);
  border-bottom-color: #1e293b;
}

body.dark .nav-links {
  color: #94a3b8;
}

body.dark .mobile-menu {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: #1e293b;
  color: #94a3b8;
}
body.dark .hamburger span {
  background: #94a3b8;
}

body.dark .dark-toggle {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
body.dark .dark-toggle:hover {
  background: #334155;
}

body.dark .hero-badge {
  background: #1e1b4b;
  color: #a5b4fc;
}

body.dark .hero-form input {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
body.dark .hero-form input::placeholder {
  color: #64748b;
}

body.dark .hero-small {
  color: #64748b;
}

body.dark .section-white {
  background: #1e293b;
}

body.dark .section-header p {
  color: #94a3b8;
}

body.dark .review-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark .review-name {
  color: #94a3b8;
}

body.dark .review-text {
  color: #cbd5e1;
}

body.dark .ai-reply {
  background: #1e1b4b;
}

body.dark .ai-reply p {
  color: #c7d2fe;
}

body.dark .feature-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark .feature-icon {
  background: #1e1b4b;
}

body.dark .feature-card p {
  color: #94a3b8;
}

body.dark .step-card p {
  color: #94a3b8;
}

body.dark .pricing-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark .pricing-card.popular {
  background: #4338ca;
  border-color: #6366f1;
}

body.dark .pricing-features li {
  color: #94a3b8;
}

body.dark .btn-pricing.normal {
  background: #6366f1;
  color: #fff;
}

body.dark .faq-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark .faq-q {
  color: #e2e8f0;
}
body.dark .faq-q:hover {
  background: #334155;
}

body.dark .faq-a-inner p {
  color: #94a3b8;
}

body.dark .success-msg {
  background: #064e3b;
  color: #6ee7b7;
}

body.dark footer {
  background: #020617;
}

/* Legal Pages Dark */
body.dark .legal-page {
  background: #0f172a;
}

body.dark .legal-back {
  background: #1e293b;
  border-color: #334155;
  color: #a5b4fc;
}
body.dark .legal-back:hover {
  background: #334155;
}

body.dark .legal-inner h1,
body.dark .legal-inner h2,
body.dark .legal-inner h3 {
  color: #e2e8f0;
}

body.dark .legal-inner p,
body.dark .legal-inner ul li {
  color: #94a3b8;
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .contact-success {
  background: #064e3b;
  color: #6ee7b7;
}