/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f7f8fa;
  --bg-2:      #eef1f5;
  --paper:     #ffffff;
  --ink:       #0f1b2d;
  --ink-soft:  #2b3a52;
  --ink-mute:  #6b7686;
  --navy:      #1b3a6b;
  --navy-deep: #12284b;
  --navy-soft: #e6ecf5;
  --accent:    #1b3a6b;
  --wa:        #25d366;
  --wa-dark:   #1da851;
  --line:      rgba(15, 27, 45, 0.10);

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

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw:   1200px;
  --radius: 20px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-lg: 0 30px 60px -20px rgba(15, 27, 45, 0.25);
  --shadow-sm: 0 8px 24px -10px rgba(15, 27, 45, 0.18);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
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 { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--navy); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.kicker--light { color: rgba(255,255,255,.7); }

.section-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  line-height: 1;
  transition: transform .4s var(--ease-out), background .3s, color .3s, box-shadow .4s var(--ease-out), border-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .7rem 1.1rem; font-size: .88rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(27,58,107,.6); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 16px 30px -10px rgba(27,58,107,.7); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost--light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost--light:hover { border-color: #fff; color: #fff; }
.btn-wa { background: var(--wa); color: #06331a; box-shadow: 0 12px 28px -10px rgba(37,211,102,.6); }
.btn-wa:hover { background: #2ee075; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--navy);
  margin-top: 1.4rem;
  position: relative;
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow::before {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.link-arrow:hover::before { transform: scaleX(1); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--navy); }
.brand-text small { font-size: .68rem; color: var(--ink-mute); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,248,250,.75);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(247,248,250,.92); box-shadow: 0 10px 30px -20px rgba(15,27,45,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-links > a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: center; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav.is-open .nav-links {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
  position: absolute; left: 0; right: 0; top: 76px;
  padding: 1.4rem var(--gutter) 1.8rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(15,27,45,.3);
}
.nav.is-open .nav-links > a:not(.btn) { font-size: 1.05rem; }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: visible; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 55% at 70% 20%, rgba(27,58,107,.10), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  max-width: 16ch;
  color: var(--ink);
}
.hero-title em { font-style: normal; color: var(--navy); position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .18em;
  background: var(--navy-soft); z-index: -1; border-radius: 4px;
}
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2.2rem; font-size: .82rem; color: var(--ink-mute); font-weight: 500; }
.hero-trust li { position: relative; padding-left: .9rem; }
.hero-trust li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }

.hero-visual { position: relative; }
.hero-figure {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  background: var(--navy-soft);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.02); transition: transform 1.4s var(--ease-out); }
.hero-visual:hover .hero-figure img { transform: scale(1.06); }
.hero-card {
  position: absolute;
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.1rem;
  background: var(--paper); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  font-size: .82rem; line-height: 1.3; color: var(--ink-soft);
  left: -.6rem; bottom: 1.6rem;
  animation: floatY 7s ease-in-out infinite;
}
.hero-card--b { left: auto; right: -.6rem; top: 1.4rem; bottom: auto; animation-delay: -3.5s; }
.hero-card-num { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); flex: none; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Manifesto ---- */
.manifesto { padding: clamp(2.5rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.manifesto-grid { display: grid; gap: 1rem; }
.manifesto-num { font-family: var(--display); font-weight: 700; color: var(--ink-mute); font-size: .9rem; letter-spacing: .1em; }
.manifesto-text { font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.4; font-weight: 500; color: var(--ink-soft); max-width: 34ch; }
.manifesto-text strong { color: var(--navy); font-weight: 700; }

/* ---- Services ---- */
.services { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.service {
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service-media {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--navy-soft);
  box-shadow: var(--shadow-sm);
}
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(27,58,107,.18), transparent 55%);
  mix-blend-mode: multiply; pointer-events: none;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.9); }
.service:hover .service-media img { transform: scale(1.05); filter: saturate(1.05); }
.service-num { font-family: var(--display); font-size: .85rem; font-weight: 800; color: var(--navy); letter-spacing: .12em; display: inline-block; padding: .3rem .6rem; border: 1.5px solid var(--navy); border-radius: 6px; margin-bottom: 1rem; }
.service-body h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .5rem; }
.service-lead { color: var(--navy); font-weight: 600; margin-bottom: 1.2rem; }
.service-list li { position: relative; padding-left: 1.4rem; margin-bottom: .6rem; color: var(--ink-soft); font-size: .97rem; }
.service-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--navy); opacity: .7; transform: rotate(45deg); }
.service-deliverable { margin-top: 1.2rem; padding: .9rem 1.1rem; background: var(--paper); border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; font-size: .92rem; color: var(--ink-soft); }
.service-deliverable strong { color: var(--navy); }

/* ---- Capabilities ---- */
.capabilities { padding: clamp(4rem, 9vw, 7.5rem) 0; background: var(--paper); border-top: 1px solid var(--line); }
.cap-grid { display: grid; gap: 1rem; }
.cap {
  padding: 1.8rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.cap::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--navy);
  transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease-out);
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(27,58,107,.25); }
.cap:hover::before { transform: scaleY(1); }
.cap h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--navy); }
.cap p { font-size: .93rem; color: var(--ink-soft); }

/* ---- Method ---- */
.method { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.method-grid { display: grid; gap: 3rem; align-items: center; }
.method-copy h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 20ch; margin-bottom: 2.2rem; }
.steps { display: grid; gap: 1.2rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--display); font-weight: 800;
}
.step h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.step p { font-size: .93rem; color: var(--ink-soft); }
.method-figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--navy-soft); }
.method-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---- CTA / Contact ---- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background: var(--navy-deep); color: #fff;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 85% 15%, rgba(37,211,102,.16), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.cta-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.cta-copy h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); color: #fff; max-width: 16ch; }
.cta-sub { margin-top: 1.2rem; color: rgba(255,255,255,.78); max-width: 46ch; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cta-info { display: grid; gap: .3rem; margin-top: 2.2rem; font-size: .92rem; color: rgba(255,255,255,.7); }
.cta-info a:hover { color: #fff; }
.cta-qr { justify-self: center; text-align: center; }
.qr-frame {
  display: block; width: min(260px, 70vw);
  padding: 14px; background: #fff; border-radius: 22px;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.6);
  transition: transform .5s var(--ease-out);
}
.qr-frame:hover { transform: translateY(-4px) rotate(-1deg); }
.qr-frame img { border-radius: 10px; }
.qr-caption { margin-top: 1rem; font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.4; }

/* ---- Footer ---- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-tag { font-size: .85rem; color: var(--ink-mute); }
.footer-copy { font-size: .8rem; color: var(--ink-mute); }

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.7);
  transition: transform .4s var(--ease-out), background .3s;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: waPulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* =============================================================
   7. Reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }
/* stagger siblings */
.cap-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cap-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cap-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
.hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .24s; }
.hero-copy .reveal:nth-child(5) { transition-delay: .32s; }
.hero-visual.reveal { transition-delay: .2s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .manifesto-grid { grid-template-columns: 120px 1fr; align-items: start; }
  .service { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .service--flip .service-media { order: 2; }
  .cta-grid { grid-template-columns: 1.3fr .8fr; }
  .hero-card { left: -1.6rem; }
  .hero-card--b { right: -1.4rem; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .method-grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .service { grid-template-columns: .9fr 1.1fr; gap: 4rem; padding: clamp(2rem, 4vw, 3.5rem) 0; }
}
@media (min-width: 1280px) {
  .cap-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   9. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  .wa-float::after { animation: none; }
}
