/* ============================================================
   Laxy Niaga — Psychology-Driven Homepage
   Flow: Hook → Pain → Solution → Proof → Why Us → Process → Offer → FAQ → CTA
   Theme: Cool slate + premium blue + clean white
   Mobile-first | Vanilla CSS
   ============================================================ */

:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-alt: #f1f5f9;
  --blue: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-border: rgba(29, 78, 216, 0.12);
  --white: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --whatsapp: #25D366;
  --success: #059669;
  --success-light: #ecfdf5;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.78rem);
  --text-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.88rem);
  --text-base: clamp(0.92rem, 0.88rem + 0.22vw, 1rem);
  --text-md: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
  --text-lg: clamp(1.12rem, 1.04rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.1rem + 1vw, 1.65rem);
  --text-2xl: clamp(1.55rem, 1.25rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.85rem, 1.4rem + 2.2vw, 2.6rem);
  --text-hero: clamp(2rem, 1.5rem + 2.8vw, 3.4rem);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: var(--text-2xl); font-weight: 700; color: var(--text); margin-bottom: var(--space-4); line-height: 1.25; letter-spacing: -0.4px; }
.section-subtitle { font-size: var(--text-base); color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-10); max-width: 540px; }
.centered { text-align: center; }
.centered .section-subtitle { margin-left: auto; margin-right: auto; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 14px 28px; font-size: var(--text-sm); font-weight: 600; font-family: var(--font); line-height: 1; border: none; border-radius: var(--radius-full); cursor: pointer; min-height: 48px; text-decoration: none; transition: all 0.2s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 16px rgba(29, 78, 216, 0.25); }
.btn-primary:hover { background: #1e40af; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29, 78, 216, 0.3); }
.btn-outline { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25); }
.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: var(--text-md); min-height: 54px; }

/* ----- Header ----- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: 0.3s var(--ease); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 1100px; margin: 0 auto; padding: 0 var(--space-6); }
.logo { font-size: var(--text-lg); font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.logo span { color: var(--blue); }
.nav-desktop { display: none; align-items: center; gap: var(--space-8); }
.nav-desktop a { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); transition: 0.2s; }
.nav-desktop a:hover { color: var(--text); }
.menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: var(--white); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); transform: translateX(100%); transition: transform 0.3s var(--ease); z-index: 99; }
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a { font-size: var(--text-lg); font-weight: 600; color: var(--text); padding: var(--space-4) 0; border-bottom: 1px solid var(--border-light); }
.nav-mobile .btn { margin-top: var(--space-4); text-align: center; }

/* ----- Hero (Hook) ----- */
.hero { padding: 130px 0 var(--space-16); background: var(--white); position: relative; }
.hero-content { max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; background: var(--blue-light); border: 1px solid var(--blue-border); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; color: var(--blue); margin-bottom: var(--space-5); }
.hero h1 { font-size: var(--text-hero); font-weight: 700; line-height: 1.12; color: var(--text); margin-bottom: var(--space-5); letter-spacing: -1.2px; }
.hero h1 span { color: var(--blue); }
.hero p { font-size: var(--text-md); color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-8); max-width: 520px; }
.hero-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--text-muted); padding: 6px 14px; background: var(--bg); border-radius: var(--radius-full); }

/* ----- Problem / Pain ----- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); max-width: 600px; }
.problem-item { padding: var(--space-4); background: var(--white); border-radius: var(--radius); font-size: var(--text-sm); color: var(--text-secondary); border: 1px solid var(--border-light); display: flex; align-items: center; gap: var(--space-2); }
.problem-item .pain-icon { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }

/* ----- Solution / Servis (Mechanism) ----- */
.solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.solution-card { padding: var(--space-6); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: all 0.25s var(--ease); position: relative; }
.solution-card:hover { border-color: var(--blue-border); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.solution-card .icon-wrap { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); margin-bottom: var(--space-4); background: var(--blue-light); }
.solution-card .icon-wrap .icon { width: 22px; height: 22px; color: var(--blue); }
.solution-card:nth-child(2) .icon-wrap { background: var(--success-light); } .solution-card:nth-child(2) .icon-wrap .icon { color: var(--success); }
.solution-card:nth-child(3) .icon-wrap { background: var(--amber-light); } .solution-card:nth-child(3) .icon-wrap .icon { color: var(--amber); }
.solution-card:nth-child(4) .icon-wrap { background: rgba(139, 92, 246, 0.08); } .solution-card:nth-child(4) .icon-wrap .icon { color: #7c3aed; }
.solution-card:nth-child(5) .icon-wrap { background: rgba(236, 72, 153, 0.08); } .solution-card:nth-child(5) .icon-wrap .icon { color: #db2777; }
.solution-card:nth-child(6) .icon-wrap { background: rgba(14, 165, 233, 0.08); } .solution-card:nth-child(6) .icon-wrap .icon { color: #0284c7; }
.solution-card:nth-child(7) .icon-wrap { background: rgba(249, 115, 22, 0.08); } .solution-card:nth-child(7) .icon-wrap .icon { color: #ea580c; }
.solution-card:nth-child(8) .icon-wrap { background: var(--blue-light); } .solution-card:nth-child(8) .icon-wrap .icon { color: var(--blue); }
.solution-card:nth-child(9) .icon-wrap { background: var(--success-light); } .solution-card:nth-child(9) .icon-wrap .icon { color: var(--success); }
.solution-card:nth-child(10) .icon-wrap { background: var(--amber-light); } .solution-card:nth-child(10) .icon-wrap .icon { color: var(--amber); }
.solution-card h3 { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin-bottom: var(--space-1); }
.solution-card p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }

/* ----- Use Cases / Social Proof ----- */
.use-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.use-case-card { padding: var(--space-5); background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); transition: 0.2s; display: flex; align-items: center; gap: var(--space-3); }
.use-case-card:hover { border-color: var(--blue-border); }
.use-case-card .uc-icon { font-size: 1.25rem; flex-shrink: 0; }

/* ----- Why Us / Differentiation ----- */
.why-grid { display: grid; gap: var(--space-4); }
.why-item { padding: var(--space-5); background: var(--white); border-radius: var(--radius); border: 1px solid var(--border-light); display: flex; gap: var(--space-4); }
.why-item .why-icon { width: 40px; height: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center; background: var(--blue-light); border-radius: var(--radius); color: var(--blue); font-size: 1.1rem; }
.why-item .why-body h3 { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin-bottom: var(--space-1); }
.why-item .why-body p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; }

/* ----- Process / Transparency ----- */
.process-steps { display: grid; gap: 0; max-width: 540px; }
.process-step { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-5) 0; border-bottom: 1px solid var(--border-light); }
.process-step:last-child { border-bottom: none; }
.process-step .step-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 700; }
/* ----- Enemy Grid / Fragmentation Tool List ----- */
.enemy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); max-width: 600px; margin: 0 auto; }
.enemy-item { padding: var(--space-3) var(--space-4); background: var(--white); border-radius: var(--radius); font-size: var(--text-sm); color: var(--text-secondary); border: 1px solid var(--border-light); display: flex; align-items: center; gap: var(--space-2); }
@media (min-width: 640px) { .enemy-grid { grid-template-columns: repeat(3, 1fr); } }

/* ----- VS Comparison Table ----- */
.vs-table { max-width: 640px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.vs-header { display: flex; align-items: center; padding: var(--space-4); background: var(--bg-alt); font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.5px; }
.vs-header .bad { color: #ef4444; flex: 1; text-align: center; }
.vs-header .good { color: var(--success); flex: 1; text-align: center; }
.vs-row { display: flex; align-items: center; padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border-light); font-size: var(--text-sm); }
.vs-row span:first-child { flex: 1; color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.3); }
.vs-row span:last-child { flex: 1; color: var(--text); font-weight: 500; }
.vs-arrow { flex-shrink: 0; padding: 0 var(--space-3); color: var(--blue); font-weight: 700; }
@media (max-width: 479px) {
  .vs-header .bad, .vs-header .good { font-size: 10px; }
  .vs-row { font-size: var(--text-xs); padding: var(--space-2) var(--space-3); }
  .vs-arrow { padding: 0 var(--space-2); }
}

/* ----- Testimonial ----- */
.testimonial { padding: var(--space-6); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.testimonial blockquote { font-size: var(--text-md); color: var(--text); font-weight: 500; font-style: italic; line-height: 1.7; }

/* ----- Process Steps (pipeline colors) ----- */
.process-step:nth-child(1) .step-num { background: var(--blue); }
.process-step:nth-child(2) .step-num { background: #7c3aed; }
.process-step:nth-child(3) .step-num { background: #db2777; }
.process-step:nth-child(4) .step-num { background: var(--amber); }
.process-step:nth-child(5) .step-num { background: var(--success); }
.process-step:nth-child(6) .step-num { background: #0ea5e9; }
.process-step .step-content h3 { font-size: var(--text-base); font-weight: 600; color: var(--text); margin-bottom: var(--space-1); }
.process-step .step-content p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

/* ----- Pricing / Offer ----- */
.pricing-grid { display: grid; gap: var(--space-4); }
.pricing-card { padding: var(--space-8); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: 0.2s var(--ease); position: relative; }
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-md); }
.pricing-badge { display: inline-block; padding: 3px 12px; background: var(--blue); border-radius: var(--radius-full); font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: var(--space-4); }
.pricing-card h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text); margin-bottom: var(--space-1); }
.pricing-price { font-size: var(--text-xl); font-weight: 700; color: var(--blue); margin-bottom: var(--space-1); }
.pricing-desc { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-5); }
.pricing-features { margin-bottom: var(--space-6); }
.pricing-features li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); padding: var(--space-1) 0; line-height: 1.5; }
.pricing-features li .check { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

/* ----- FAQ ----- */
.faq-list { max-width: 600px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: var(--space-5) 0; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: var(--text-sm); font-weight: 500; color: var(--text); text-align: left; gap: var(--space-4); transition: 0.2s; }
.faq-question:hover { color: var(--blue); }
.faq-question .faq-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-question .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: var(--space-5); }
.faq-answer p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ----- Final CTA / Close ----- */
.cta-final { text-align: center; padding: var(--space-16) 0; background: var(--white); }
.cta-final h2 { font-size: var(--text-xl); font-weight: 700; color: var(--text); margin-bottom: var(--space-3); line-height: 1.3; }
.cta-final p { font-size: var(--text-base); color: var(--text-muted); max-width: 460px; margin: 0 auto var(--space-8); }

/* ----- Footer ----- */
.footer { padding: var(--space-10) 0; border-top: 1px solid var(--border); text-align: center; }
.footer-inner { display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.footer .logo { font-size: var(--text-base); }
.footer p { font-size: var(--text-xs); color: var(--text-muted); }
.footer-links { display: flex; gap: var(--space-6); }
.footer-links a { font-size: var(--text-xs); color: var(--text-muted); transition: 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ----- Sticky CTA ----- */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: var(--space-3) var(--space-6); padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: none; }
.sticky-cta.show { display: block; }
.sticky-cta .btn { width: 100%; }

/* ----- Scroll Reveal ----- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ----- Responsive ----- */
@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } .pricing-card.featured { order: -1; } }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .hero { padding: 170px 0 var(--space-20); }
  .hero-actions { flex-direction: row; }
  .solution-grid { grid-template-columns: repeat(3, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none !important; }
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-card.featured { order: 0; }
  .solution-grid { grid-template-columns: repeat(5, 1fr); }
}
