/* ============================================================
   BACKLIX — SHARED CSS  |  White + Navy + Indigo Theme
   Natural, human, premium agency feel
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg-soft:  #f8f9fc;
  --bg-card:  #ffffff;
  --navy:     #0F172A;
  --navy-mid: #1E293B;
  --navy-light:#334155;
  --indigo:   #4F46E5;
  --indigo-d: #3730A3;
  --indigo-l: #6366F1;
  --text:     #0F172A;
  --text-mid: #334155;
  --text-soft:#64748B;
  --text-muted:#94A3B8;
  --border:   #E2E8F0;
  --border-mid:#CBD5E1;
  --green:    #059669;
  --red:      #DC2626;
  --amber:    #D97706;
  --shadow-sm:0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow:   0 4px 16px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.04);
  --shadow-lg:0 12px 40px rgba(15,23,42,.1), 0 4px 16px rgba(15,23,42,.06);
  --shadow-xl:0 24px 60px rgba(15,23,42,.12), 0 8px 24px rgba(15,23,42,.08);
  --radius-sm:.5rem;
  --radius:   .875rem;
  --radius-lg:1.25rem;
  --radius-xl:1.75rem;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* SUBTLE BG TEXTURE */
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: white; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; }
p { color: var(--text-soft); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

/* LAYOUT */
.container    { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.section      { padding: 5rem 1.5rem; position: relative; }
.section-sm   { padding: 3rem 1.5rem; position: relative; }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==================== NAVBAR ==================== */
nav.main-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  height: 72px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: box-shadow .3s, border-color .3s;
}
nav.main-nav.scrolled {
  box-shadow: var(--shadow);
  border-color: var(--border-mid);
}
.nav-inner {
  width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.375rem; font-weight: 700;
  color: var(--navy); letter-spacing: -.04em;
}
.nav-logo span { color: var(--indigo); }
.nav-links { display: none; gap: 0; list-style: none; }
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--text-soft);
  padding: .5rem .875rem; border-radius: .5rem;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--bg-soft); }
.nav-links a.active { color: var(--indigo); font-weight: 600; }
.nav-cta {
  display: none; align-items: center; gap: .5rem;
  padding: .625rem 1.25rem;
  background: var(--indigo); color: white;
  font-weight: 700; font-size: .875rem;
  border-radius: 9999px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
@media(min-width:768px) { .nav-cta { display: flex; } }
.nav-cta:hover { background: var(--indigo-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(79,70,229,.35); color: white; }
.mobile-btn { background: none; border: none; cursor: pointer; color: var(--navy); padding: .25rem; display: flex; align-items: center; }
@media(min-width:768px) { .mobile-btn { display: none; } }
.mobile-menu {
  display: none; position: absolute; top: 72px; left: 0; width: 100%;
  background: white; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; flex-direction: column; gap: .25rem;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-soft); font-weight: 500; font-size: .9375rem;
  padding: .875rem 1rem; border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: var(--bg-soft); color: var(--navy); }
.mobile-menu .m-cta {
  background: var(--indigo); color: white !important;
  border-radius: var(--radius-sm); text-align: center;
  padding: .875rem; font-weight: 700; margin-top: .5rem;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; background: var(--indigo); color: white;
  font-weight: 700; border-radius: 9999px; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(79,70,229,.3);
  font-size: 1rem; font-family: inherit;
}
.btn-primary:hover { background: var(--indigo-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.4); color: white; }

.btn-navy {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; background: var(--navy); color: white;
  font-weight: 700; border-radius: 9999px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  font-size: 1rem; font-family: inherit;
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); color: white; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; background: transparent; color: var(--navy);
  font-weight: 600; border-radius: 9999px;
  border: 1.5px solid var(--border-mid); cursor: pointer;
  transition: all .2s; font-size: 1rem; font-family: inherit;
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); background: rgba(79,70,229,.04); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; background: transparent; color: var(--text-soft);
  font-weight: 600; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all .2s; font-size: .9375rem;
}
.btn-ghost:hover { color: var(--navy); background: var(--bg-soft); }

/* ==================== CARDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, border-color .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--border-mid); transform: translateY(-3px); }
.card-indigo {
  border-color: rgba(79,70,229,.2);
  background: rgba(79,70,229,.03);
}
.card-indigo:hover { border-color: rgba(79,70,229,.4); box-shadow: 0 12px 40px rgba(79,70,229,.12); }

/* ==================== BADGES / TAGS ==================== */
.badge {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .3rem .875rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge-indigo { background: rgba(79,70,229,.1); color: var(--indigo); border: 1px solid rgba(79,70,229,.2); }
.badge-navy   { background: var(--navy); color: white; }
.badge-green  { background: rgba(5,150,105,.1); color: var(--green); border: 1px solid rgba(5,150,105,.2); }
.badge-red    { background: rgba(220,38,38,.08); color: var(--red); border: 1px solid rgba(220,38,38,.15); }
.badge-amber  { background: rgba(217,119,6,.08); color: var(--amber); border: 1px solid rgba(217,119,6,.15); }
.badge-dot::before { content:''; width:.4rem; height:.4rem; border-radius:50%; background:currentColor; display:inline-block; }

/* ==================== FORM ==================== */
.form-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .875rem 1rem;
  color: var(--navy);
  font-size: .9375rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.1); background: white; }
.form-input::placeholder { color: var(--text-muted); }
select.form-input option { background: white; color: var(--navy); }
.form-label { display: block; font-size: .8125rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; letter-spacing: .02em; }

/* ==================== DIVIDERS ==================== */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ==================== MARQUEE ==================== */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.mfade-l { position: absolute; left: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to right, var(--bg-soft), transparent); z-index: 2; }
.mfade-r { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: linear-gradient(to left, var(--bg-soft), transparent); z-index: 2; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ==================== FAQ ==================== */
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; transition: border-color .2s; }
.faq-item:hover { border-color: var(--border-mid); }
.faq-item[open] { border-color: rgba(79,70,229,.3); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; background: white; transition: background .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-icon { transition: transform .3s; flex-shrink: 0; color: var(--text-soft); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-body { padding: 0 1.5rem 1.5rem; color: var(--text-soft); font-size: .9375rem; line-height: 1.8; border-top: 1px solid var(--border); padding-top: 1.25rem; background: var(--bg-soft); }

/* ==================== STAT CARDS ==================== */
.stat-card { text-align: center; padding: 1.75rem; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); transition: all .3s; }
.stat-card:hover { border-color: rgba(79,70,229,.3); box-shadow: var(--shadow); }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700; color: var(--navy); margin-bottom: .375rem; }
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* ==================== PAGE HERO ==================== */
.page-hero { padding: 9rem 1.5rem 4rem; text-align: center; position: relative; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.04em; }

/* ==================== SECTION HEADERS ==================== */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.section-header p { color: var(--text-soft); max-width: 38rem; margin: 0 auto; font-size: 1.0625rem; line-height: 1.8; }

/* ==================== COMPARISON ==================== */
.compare-card { padding: 2.5rem; border-radius: var(--radius-xl); border: 1.5px solid var(--border); }
.compare-bad  { background: #fef2f2; border-color: #fecaca; }
.compare-good { background: white; border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-lg); }
.compare-list { list-style: none; }
.compare-list li { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(15,23,42,.06); font-size: .9375rem; color: var(--text-soft); }
.compare-list li:last-child { border: none; }

/* ==================== WHATSAPP FLOAT ==================== */
/* chatbot widget styles injected via JS */

/* ==================== MOBILE BOTTOM BAR ==================== */
.mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; padding: 1rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--border); z-index: 997; box-shadow: 0 -4px 16px rgba(15,23,42,.08); }
@media(min-width:768px) { .mobile-bar { display: none; } }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 5rem 1.5rem 2rem; }
.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 3.5rem; }
@media(min-width:768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.375rem; font-weight: 700; color: white; letter-spacing: -.04em; margin-bottom: 1rem; display: block; }
.footer-logo span { color: var(--indigo-l); }
.footer-desc { font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.5); margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: all .2s; }
.footer-social a:hover { background: var(--indigo); border-color: var(--indigo); color: white; }
.footer-col h4 { font-size: .8125rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .75rem; }
.footer-col ul li a { font-size: .9rem; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem; display: flex; flex-direction: column; gap: .5rem; color: rgba(255,255,255,.35); font-size: .8125rem; }
@media(min-width:768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-cta-box { margin-top: 1.75rem; padding: 1.125rem; border-radius: var(--radius); background: rgba(79,70,229,.15); border: 1px solid rgba(79,70,229,.25); }
.footer-cta-box p { font-size: .8125rem; color: rgba(255,255,255,.5); margin-bottom: .5rem; }
.footer-cta-box a { color: var(--indigo-l); font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: .375rem; transition: color .2s; }
.footer-cta-box a:hover { color: white; }

/* ==================== DATA TABLE ==================== */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding: .875rem 1.25rem; font-weight: 700; background: var(--bg-soft); border-bottom: 1px solid var(--border); text-align: left; }
.data-table td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.data-table tr:hover td { background: rgba(79,70,229,.03); }
.data-table tr:last-child td { border: none; }

/* ==================== ICON BOX ==================== */
.icon-box { width: 3rem; height: 3rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box-lg { width: 3.5rem; height: 3.5rem; }
.ib-indigo { background: rgba(79,70,229,.1); color: var(--indigo); }
.ib-navy   { background: var(--navy); color: white; }
.ib-green  { background: rgba(5,150,105,.1); color: var(--green); }
.ib-red    { background: rgba(220,38,38,.08); color: var(--red); }
.ib-amber  { background: rgba(217,119,6,.08); color: var(--amber); }
.ib-blue   { background: rgba(59,130,246,.1); color: #3B82F6; }
.ib-cyan   { background: rgba(6,182,212,.1); color: #06B6D4; }
.ib-purple { background: rgba(124,58,237,.1); color: #7C3AED; }
.ib-orange { background: rgba(249,115,22,.1); color: #F97316; }

/* ==================== SERVICE CARDS ==================== */
.service-card { padding: 2.5rem; border-radius: var(--radius-xl); background: white; border: 1.5px solid var(--border); transition: all .35s; position: relative; overflow: hidden; }
.service-card:hover { border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.service-card::after { content:''; position:absolute; bottom:0; left:0; width:0; height:3px; background:linear-gradient(90deg, var(--indigo), var(--indigo-l)); transition:width .4s; border-radius:0 0 var(--radius-xl) var(--radius-xl); }
.service-card:hover::after { width:100%; }
.service-card-featured { border-color: rgba(79,70,229,.3); background: linear-gradient(135deg, rgba(79,70,229,.04), white); }
.service-card-featured:hover { border-color: rgba(79,70,229,.5); box-shadow: 0 20px 60px rgba(79,70,229,.15); }

/* ==================== REVIEW CARDS ==================== */
.review-card { padding: 2rem; background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); transition: all .35s; }
.review-card:hover { border-color: rgba(79,70,229,.25); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stars { color: #F59E0B; font-size: 1rem; letter-spacing: .05em; margin-bottom: 1rem; }
.reviewer { display: flex; align-items: center; gap: .875rem; padding-top: 1.25rem; border-top: 1px solid var(--border); margin-top: 1.25rem; }
.reviewer-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; color: white; }
.reviewer-name { font-weight: 700; font-size: .9375rem; color: var(--navy); }
.reviewer-role { font-size: .8125rem; color: var(--text-muted); }

/* ==================== PROCESS STEPS ==================== */
.process-step-num { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: white; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--indigo); margin: 0 auto 1.5rem; transition: all .3s; box-shadow: var(--shadow-sm); }
.process-step:hover .process-step-num { background: var(--indigo); color: white; border-color: var(--indigo); box-shadow: 0 4px 16px rgba(79,70,229,.3); }

/* ==================== FLOAT ANIMATION ==================== */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.animate-float { animation: float 6s ease-in-out infinite; }

/* ==================== MISC ==================== */
.text-indigo { color: var(--indigo); }
.text-navy   { color: var(--navy); }
.text-soft   { color: var(--text-soft); }
.text-muted  { color: var(--text-muted); }
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-bold    { font-weight: 700; }
.border-top   { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* HIGHLIGHT ACCENT */
.highlight { position: relative; display: inline; }
.highlight::after { content:''; position:absolute; bottom:-.125rem; left:0; right:0; height:.375rem; background:rgba(79,70,229,.18); border-radius:2px; z-index:-1; }
