/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f4f9f8;
  --bg-2: #e8f4f2;
  --glass: rgba(255,255,255,0.6);
  --glass-2: rgba(255,255,255,0.34);
  --glass-border: rgba(255,255,255,0.7);
  --ink: #0f2e2a;
  --ink-soft: #3d5c57;
  --ink-mute: #6b8580;
  --accent: #14b8a6;
  --accent-2: #38bdf8;
  --line: rgba(15,46,42,0.12);
  --dark-bg: #0c211e;
  --dark-ink: #eef7f5;

  --display: "Manrope", "Inter", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--display); }
em { font-style: normal; color: var(--accent); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Demo ribbon
   ============================================================= */
.demo-ribbon {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--ink); color: rgba(255,255,255,.75);
  font-size: .78rem; padding: .5rem 1rem; text-align: center; flex-wrap: wrap;
}
.demo-ribbon a { color: #fff; font-weight: 600; }
.demo-ribbon a:hover { text-decoration: underline; }

/* =============================================================
   4. Nav
   ============================================================= */
.nav-wrap { position: sticky; top: 0; z-index: 100; padding: 1rem 1.2rem 0; }
.nav-glass {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .8rem .7rem 1.2rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 30px rgba(15,46,42,0.08);
}
@supports not (backdrop-filter: blur(1px)) { .nav-glass { background: rgba(255,255,255,0.92); } }
.nav-logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(20,184,166,0.18); }
.nav-links { display: none; gap: 1.6rem; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a { transition: color .2s var(--ease-out); }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(15,46,42,0.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,46,42,0.3); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* =============================================================
   6. Glass card
   ============================================================= */
.glass-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
@supports (backdrop-filter: blur(1px)) {
  .glass-card { background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero { position: relative; padding: 3.5rem 1.2rem 4rem; overflow: clip; }
.hero-mesh {
  position: absolute; inset: -10% -10% 0; z-index: -1;
  background:
    radial-gradient(circle 420px at var(--mx, 25%) var(--my, 20%), rgba(20,184,166,0.35), transparent 60%),
    radial-gradient(circle 520px at calc(100% - var(--mx, 25%)) calc(100% - var(--my, 20%)), rgba(56,189,248,0.28), transparent 60%),
    var(--bg-2);
  filter: blur(50px) saturate(140%);
  transition: background .4s ease;
}
.hero-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }

.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); margin-bottom: .9rem; text-transform: none; }
.hero-title { font-size: clamp(2.4rem, 6.2vw, 3.8rem); font-weight: 800; max-width: 14ch; }
.hero-sub { margin-top: 1.2rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 320px; }
.hero-photo-frame { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(15,46,42,0.16); }
.hero-photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20,184,166,0.14), rgba(15,46,42,0.02) 55%, rgba(56,189,248,0.1)); }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .hero-visual { min-height: 460px; } }

/* =============================================================
   8. Strip stats
   ============================================================= */
.strip { max-width: 1000px; margin: 0 auto; padding: 2rem 1.2rem 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.strip-item { position: relative; }
.stat, .stat-suffix { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); }
.strip-item p { margin-top: .3rem; color: var(--ink-mute); font-size: .88rem; }

/* =============================================================
   9. Sections
   ============================================================= */
.section { max-width: 1100px; margin: 0 auto; padding: 4rem 1.2rem; }
.section-tight { padding-top: 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }

.section-dark { max-width: none; background: var(--dark-bg); color: var(--dark-ink); padding: 4.5rem 1.2rem; margin-top: 2rem; }
.section-dark .eyebrow { color: var(--accent-2); }
.section-dark .glass-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); backdrop-filter: none; }

/* =============================================================
   10. Services
   ============================================================= */
.services-figure { margin-bottom: 2rem; border-radius: 22px; overflow: hidden; }
.services-figure img { width: 100%; aspect-ratio: 21/8; object-fit: cover; display: block; }
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-card { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,46,42,0.12); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(20,184,166,0.14); color: var(--accent); margin-bottom: 1rem; }
.service-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.service-card p { color: var(--ink-mute); font-size: .92rem; }

/* =============================================================
   11. Agenda showcase
   ============================================================= */
.agenda-showcase { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .agenda-showcase { grid-template-columns: 1fr 1fr; } }
.agenda-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: .6rem 0 1rem; }
.agenda-text { color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 44ch; }
.agenda-photo { border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(15,46,42,0.16); aspect-ratio: 4/3; }
.agenda-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testi-figure { margin-bottom: 2rem; border-radius: 22px; overflow: hidden; max-width: 900px; margin-inline: auto; }
.testi-figure img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: center 25%; display: block; }
.testi-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testi-card p { font-size: 1rem; margin-bottom: 1.2rem; }
.testi-card footer { display: flex; flex-direction: column; font-size: .85rem; }
.testi-card footer span { color: var(--dark-ink); opacity: .6; }

/* =============================================================
   13. Contact
   ============================================================= */
.contact-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.hours-list li { display: flex; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.hours-list li:first-child { border-top: 0; }
.map-illustration { border-radius: 14px; overflow: hidden; margin: 1rem 0; }
.contact-address { color: var(--ink-soft); font-size: .92rem; }

/* =============================================================
   14. CTA final
   ============================================================= */
.cta-final { position: relative; text-align: center; padding: 5rem 1.2rem; overflow: clip; }
.cta-photo { position: absolute; inset: 0; z-index: -2; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .5; }
.cta-mesh { position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle at 50% 40%, rgba(20,184,166,0.35), transparent 60%), rgba(244,249,248,0.82); filter: blur(60px); }
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.cta-final p { color: var(--ink-soft); margin-bottom: 1.8rem; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer { text-align: center; padding: 2.5rem 1.2rem 3rem; color: var(--ink-mute); font-size: .85rem; }
.footer-demo { margin-top: .3rem; }
.footer-demo a { text-decoration: underline; }

/* =============================================================
   16. Floating WhatsApp button
   ============================================================= */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #06070a; box-shadow: 0 10px 28px rgba(15,46,42,0.3); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(15,46,42,0.38); }
.whatsapp-float-ring { position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .55; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float-ring { animation: none; display: none; } }
@media (max-width: 540px) { .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* =============================================================
   17. Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}
