@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #060C1A;
  --bg-2:         #0D1530;
  --bg-3:         #111827;
  --blue:         #3B82F6;
  --blue-dark:    #2563EB;
  --blue-glow:    rgba(59, 130, 246, 0.15);
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.15);
  --white:        #FFFFFF;
  --txt-2:        #94A3B8;
  --txt-3:        #64748B;
  --green:        #22C55E;
  --red:          #EF4444;
  --yellow:       #FCD34D;
  --radius:       12px;
  --radius-lg:    20px;
  --font-body:    'DM Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 800;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);   letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); }

p { color: var(--txt-2); line-height: 1.7; font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-blue  { color: var(--blue); }
.accent     { color: var(--blue); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.section-head .lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--txt-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  max-width: 600px;
  color: var(--txt-2);
  font-size: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 16px 32px;
  font-size: 16px;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 12, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--txt-2);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-cta:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 14px;
  color: var(--txt-3);
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--txt-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col li[data-muted] {
  font-size: 14px;
  color: var(--txt-3);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--txt-3);
}
.dot { margin: 0 6px; opacity: 0.4; }

/* ============================================================
   PAGE HERO (shared by inner pages)
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero h1 { margin: 16px 0 24px; }
.page-hero .lead { margin: 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    gap: 20px;
  }
  .nav-links.open a { font-size: 16px; color: var(--txt-2); }
  .nav-links.open .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius);
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   GLOBAL BACKGROUND CANVAS (non-home pages)
   ============================================================ */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.has-bg-canvas {
  background: transparent;
}
body.has-bg-canvas .nav,
body.has-bg-canvas main,
body.has-bg-canvas .footer {
  position: relative;
  z-index: 1;
}
/* ── Inner pages: sections with bg-2 → semi-glass ──────── */
body.has-bg-canvas .future-section,
body.has-bg-canvas .context-section,
body.has-bg-canvas .faq-section,
body.has-bg-canvas .footer {
  background: rgba(10, 16, 38, 0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Inner pages: transparent sections show canvas */
body.has-bg-canvas .page-hero,
body.has-bg-canvas .cs-hero,
body.has-bg-canvas .contact-section,
body.has-bg-canvas .contact-cta,
body.has-bg-canvas .early,
body.has-bg-canvas .services,
body.has-bg-canvas .cta-section {
  background: transparent !important;
}
/* Remove static radial blobs on page heroes */
body.has-bg-canvas .page-hero::before { display: none; }

/* ── Home page: alternating solid ↔ canvas sections ─────
   Solid:       stats-strip · how · pricing  (dark bg-2)
   Canvas open: problem · benefits · cta-final (transparent)
─────────────────────────────────────────────────────── */
body.has-bg-canvas .stats-strip,
body.has-bg-canvas .how,
body.has-bg-canvas .ws-outer,
body.has-bg-canvas .pricing {
  background: rgba(10, 16, 38, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.has-bg-canvas .problem,
body.has-bg-canvas .benefits,
body.has-bg-canvas .faq,
body.has-bg-canvas .cta-final {
  background: transparent !important;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.07s; }
.stagger-2 { transition-delay: 0.14s; }
.stagger-3 { transition-delay: 0.21s; }
.stagger-4 { transition-delay: 0.28s; }
.stagger-5 { transition-delay: 0.35s; }

/* ============================================================
   BADGE CHIP
   ============================================================ */
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.badge-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
