:root {
  --ink: #0F172A;
  --ink-soft: #334155;
  --slate: #64748B;
  --indigo: #4F46E5;
  --indigo-d: #4338CA;
  --indigo-50: #EEF2FF;
  --indigo-100: #E0E7FF;
  --emerald: #10B981;
  --emerald-50: #ECFDF5;
  --amber: #F59E0B;
  --amber-50: #FFFBEB;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-2: #EEF0F2;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.disp {
  font-family: 'Lexend', sans-serif;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================= NAV ================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6%;
  background: rgba(250, 250, 249, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Lexend', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--indigo);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile slide-down menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 61px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface);
  padding: 0 6%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.mobile-menu.open {
  max-height: 480px;
  padding: 8px 6% 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li a {
  display: block;
  padding: 13px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border-2);
}

.mobile-menu li:last-child a {
  border-bottom: none;
}

.mobile-menu li a:hover {
  color: var(--indigo);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.mobile-menu-cta .btn {
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-50);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
}

.btn-primary:hover {
  background: var(--indigo-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
  filter: brightness(1.08);
}

.btn-whatsapp {
  background: var(--emerald);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0d9c6f;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
  border-radius: 10px;
}

footer {
  padding: 48px 6% 28px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto 40px;
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--slate);
  max-width: 230px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--indigo);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0;
}

.heart-icon {
  width: 1em;
  height: 1em;
  fill: #4F46E5;

  display: inline-block;
  vertical-align: -0.12em;
  margin: 0 .2em;
}

.tag-dot {
  width: 7px;
  height: 7px;
  background: var(--indigo);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ================= FLOATING WHATSAPP ================= */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  text-decoration: none;
  transition: transform 0.15s;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 24px;
  height: 24px;
}

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= SHARED RESPONSIVE (nav) ================= */
.mobile-bottom-cta {
  display: none;
}

@media(max-width:768px) {
  .wa-float {
    display: none;
  }
  .nav-links {
    display: none;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-bottom-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(15,23,42,0.05);
    z-index: 100;
    border-top: 1px solid #E2E8F0;
  }
  .mobile-bottom-cta .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    padding: 14px 20px;
  }
  body {
    padding-bottom: 76px; /* Prevent content from being hidden by sticky banner */
  }
}

/* ================= BACKGROUND BLOB ACCENTS ================= */
.bg-blob-accent { position: relative; z-index: 1; }
.bg-blob-accent::before, .bg-blob-accent::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(100px); z-index: -1; pointer-events: none; opacity: 0; animation: fadeInBlob 1.5s ease forwards;
  max-width: 600px; max-height: 600px; /* Prevent massive blobs on large laptop screens */
}
@keyframes fadeInBlob { to { opacity: 0.12; } }

/* Light Theme Blobs */
.bg-blob-teal-mint::before { background: #2DD4BF; width: 40vw; height: 40vw; top: -10%; left: -10%; animation-delay: 0.2s; }
.bg-blob-teal-mint::after { background: #60A5FA; width: 35vw; height: 35vw; bottom: -10%; right: -5%; animation-delay: 0.4s; }

.bg-blob-purple-pink::before { background: #A78BFA; width: 45vw; height: 45vw; top: 10%; right: -15%; animation-delay: 0.3s; }
.bg-blob-purple-pink::after { background: #F472B6; width: 40vw; height: 40vw; bottom: -5%; left: -10%; animation-delay: 0.5s; }

.bg-blob-cyan-blue::before { background: #22D3EE; width: 50vw; height: 50vw; top: -15%; left: 10%; animation-delay: 0.1s; }
.bg-blob-cyan-blue::after { background: #3B82F6; width: 45vw; height: 45vw; bottom: 5%; right: -10%; animation-delay: 0.6s; }

/* Dark Theme Blobs (For Hero/Resources) */
.bg-blob-dark-accents::before { 
  background: #4F46E5; 
  width: 40vw; height: 40vw; max-width: 450px; max-height: 450px; 
  top: -15%; left: -5%; 
  filter: blur(120px); opacity:0; 
  animation: fadeInDarkBlob 2s ease forwards 0.2s; 
}
/* Removed the bottom-right pink blob for a more subtle look */
.bg-blob-dark-accents::after { display: none; }
@keyframes fadeInDarkBlob { to { opacity: 0.15; } }

/* ================= DARK THEME (GLOBAL) ================= */
body.dark-theme {
  background: var(--ink);
  color: #fff;
}
body.dark-theme nav {
  background: rgba(15, 23, 42, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
body.dark-theme .logo { color: #fff; }
body.dark-theme .logo-mark { background: none; } /* keep logo SVG intact, but can invert colors if needed */
body.dark-theme .nav-links a { color: var(--slate); }
body.dark-theme .nav-links a:hover { color: #fff; }
body.dark-theme .nav-toggle svg path { stroke: #fff; }
body.dark-theme .btn-outline {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
body.dark-theme .btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
body.dark-theme .mobile-menu {
  background: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
body.dark-theme .mobile-menu li a {
  color: var(--slate);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
body.dark-theme .mobile-menu li a:hover { color: #fff; }
.social-icons a { 
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); 
}
.social-icons a:hover { 
  transform: scale(1.15); 
}

/* ================= LEGAL PAGES ================= */
.legal-hero {
  text-align: center;
  padding: 80px 20px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.legal-hero h1 {
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.legal-hero p {
  color: var(--slate);
  font-size: 1.1rem;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.legal-content h2 {
  color: var(--ink);
  margin: 32px 0 16px;
  font-size: 1.5rem;
}
.legal-content p, .legal-content ul {
  margin-bottom: 16px;
}
.legal-content ul {
  padding-left: 20px;
}
.legal-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.legal-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.legal-links a:hover {
  color: var(--indigo);
}
