/* ============ TOKENS ============ */
:root {
  --navy: #0D1B4C;
  --royal: #1B3A93;
  --royal-light: #2E4FB8;
  --orange: #F4791F;
  --orange-dark: #D9640F;
  --bg: #F7F8FB;
  --surface: #FFFFFF;
  --ink: #1C1E26;
  --ink-soft: #545A72;
  --line: #E4E7F0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(13, 27, 76, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 27, 76, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
  display: block;
}
.eyebrow--light { color: var(--orange); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.3rem;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(244, 121, 31, 0.35); }
.btn--solid:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--royal); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--royal); }
.btn--outline { background: transparent; color: var(--royal); border: 1.5px solid var(--royal); }
.btn--outline:hover { background: var(--royal); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }
.btn--lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(244,121,31,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,121,31,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(244,121,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,121,31,0); }
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.5rem; color: var(--navy); }
.nav__logo-mark { color: var(--orange); display: flex; }
.nav__logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.nav__logo-text em { color: var(--royal); font-style: normal; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--royal); }
.nav__actions { display: flex; gap: 0.7rem; align-items: center; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, #101F5C 0%, var(--navy) 100%);
  overflow: hidden;
  padding: 4rem 1.5rem 5rem;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 30% 30%, black 0%, transparent 70%);
}
.hero__inner {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero__title { font-size: clamp(2.3rem, 4.5vw, 3.5rem); color: #fff; font-weight: 700; }
.hero__title-accent { color: var(--orange); }
.hero__sub { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 460px; margin: 1.3rem 0 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero__cta .btn--outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero__cta .btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

.hero__trust { display: flex; gap: 2.2rem; }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item strong { font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.hero__trust-item span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

.hero__visual { display: flex; justify-content: center; }
.circuit-svg { width: 100%; max-width: 380px; height: auto; }
.trace {
  stroke: rgba(255,255,255,0.18);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 2.6s var(--ease) forwards;
}
.trace:nth-child(2) { animation-delay: 0.15s; }
.trace:nth-child(3) { animation-delay: 0.3s; }
.trace:nth-child(4) { animation-delay: 0.45s; }
.trace:nth-child(5) { animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; stroke: rgba(244,121,31,0.55); } }

.node {
  fill: var(--royal-light);
  opacity: 0;
  animation: nodeIn 0.5s ease forwards;
}
.node:nth-of-type(1) { animation-delay: 0.2s; }
.node:nth-of-type(2) { animation-delay: 0.5s; }
.node:nth-of-type(3) { animation-delay: 0.8s; }
.node:nth-of-type(4) { animation-delay: 1.0s; }
.node:nth-of-type(5) { animation-delay: 1.3s; }
.node:nth-of-type(6) { animation-delay: 1.5s; }
.node:nth-of-type(7) { animation-delay: 1.8s; }
.node:nth-of-type(8) { animation-delay: 2.0s; }
.node:nth-of-type(9) { animation-delay: 2.2s; }
@keyframes nodeIn { to { opacity: 1; } }

.node--lamp { fill: transparent; }
.bulb { opacity: 0; animation: bulbIn 0.6s ease forwards 2.4s; }
@keyframes bulbIn { to { opacity: 1; } }
.bulb__glow { fill: var(--orange); opacity: 0.25; animation: glow 2s ease-in-out infinite 3s; }
@keyframes glow { 0%, 100% { opacity: 0.2; r: 18px; } 50% { opacity: 0.45; r: 24px; } }
.bulb__body { fill: var(--orange); }

/* ============ SERVICES ============ */
.services { padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__icon { font-size: 1.8rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ============ WHY ============ */
.why { background: var(--navy); color: #fff; padding: 5.5rem 1.5rem; }
.why__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 3rem; }
.why__copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.why__lead { color: rgba(255,255,255,0.65); max-width: 380px; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
.why__num { font-family: var(--font-display); font-size: 0.85rem; color: var(--orange); font-weight: 700; }
.why__item h4 { color: #fff; font-size: 1.05rem; margin: 0.5rem 0 0.4rem; }
.why__item p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ============ PROCESS ============ */
.process { padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.process__line {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative;
}
.process__line::before {
  content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.process__step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; }
.process__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--royal); color: #fff; font-family: var(--font-display); font-weight: 700;
  margin-bottom: 1rem; box-shadow: 0 6px 16px rgba(27,58,147,0.3);
}
.process__step h4 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1.05rem; }
.process__step p { color: var(--ink-soft); font-size: 0.88rem; }

/* ============ WORK / SLIDER ============ */
.work { padding: 5.5rem 1.5rem; background: var(--surface); }
.slider { max-width: 1000px; margin: 0 auto; position: relative; display: flex; align-items: center; gap: 1rem; }
.slider__track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 0.5rem;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
  flex: 0 0 clamp(240px, 40vw, 320px); scroll-snap-align: start;
}
.slider__img {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius);
  background-size: cover; background-position: center; margin-bottom: 0.7rem;
}
.slider__img--1 { background: linear-gradient(135deg, #1B3A93, #2E4FB8); }
.slider__img--2 { background: linear-gradient(135deg, #F4791F, #D9640F); }
.slider__img--3 { background: linear-gradient(135deg, #0D1B4C, #1B3A93); }
.slider__img--4 { background: linear-gradient(135deg, #2E4FB8, #F4791F); }
.slider__slide figcaption { font-size: 0.88rem; color: var(--ink-soft); }
.slider__slide figcaption strong { color: var(--navy); display: block; font-size: 0.95rem; }
.slider__arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.4rem; color: var(--royal);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.slider__arrow:hover { background: var(--royal); color: #fff; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; font-size: 0.95rem;
}
.testimonial p { color: var(--ink); margin-bottom: 1rem; }
.testimonial cite { font-style: normal; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }

/* ============ FAQ ============ */
.faq { padding: 5.5rem 1.5rem; max-width: 780px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 0.2rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--navy);
}
.faq__icon { font-size: 1.3rem; color: var(--orange); transition: transform 0.3s var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq__a p { padding: 0 0.2rem 1.3rem; color: var(--ink-soft); font-size: 0.93rem; max-width: 600px; }

/* ============ CTA ============ */
.cta { background: linear-gradient(120deg, var(--royal), var(--navy)); padding: 5rem 1.5rem; }
.cta__inner { max-width: 700px; margin: 0 auto; text-align: center; }
.cta__inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.cta__inner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.cta__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--navy); padding: 3.5rem 1.5rem 1.5rem; color: rgba(255,255,255,0.7); }
.footer__inner {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { margin-top: 0.7rem; font-size: 0.88rem; max-width: 260px; }
.footer__col h5 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; margin-bottom: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer__col a { display: block; font-size: 0.9rem; margin-bottom: 0.6rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer__col a:hover { color: var(--orange); }
.footer__bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; font-size: 0.82rem; }

/* ============ FLOATING BUTTONS ============ */
.floating-actions {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 200;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: transform 0.25s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab--whatsapp { background: #25D366; color: #fff; }
.fab--call { background: var(--orange); color: #fff; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; max-width: 280px; margin: 0 auto; }
  .why__inner { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .process__line { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .process__line::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 1.2rem 1.5rem; gap: 1rem; border-bottom: 1px solid var(--line);
  }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
