/* =========================================================
   Spanix — Design tokens & custom styles
   Palette: bg #050B14 / surface #0F1B2E / blue #2F6BFF / cyan #17D9FF
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (data)
   ========================================================= */

* { scroll-behavior: smooth; }

html { scroll-padding-top: 96px; }

body { background: #050B14; }

::selection { background: #17D9FF; color: #050B14; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #17D9FF; color: #050B14; padding: 12px 18px;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible {
  outline: 2px solid #17D9FF; outline-offset: 3px; border-radius: 4px;
}

/* =============== Header =============== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(1, 4, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 44, 66, 0.7);
}

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100px; height: 100px; flex-shrink: 0;
}

.logo-img {
  display: block; width: 100px; height: 100px; object-fit: contain;
  opacity: 0.72;
}

.nav-link { position: relative; transition: color .2s ease; }
.nav-link:hover { color: #F1F5F9; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: linear-gradient(90deg,#2F6BFF,#17D9FF); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.burger-line { width: 22px; height: 2px; background: #F1F5F9; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
#menuBtn.open .burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#menuBtn.open .burger-line:nth-child(2) { opacity: 0; }
#menuBtn.open .burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
  background: #0A1424; border-bottom: 1px solid #1E2C42;
}
.mobile-menu.open { max-height: 520px; opacity: 1; }
.mobile-link { padding: 12px 4px; font-size: 15px; color: #8CA0B8; border-bottom: 1px solid rgba(30,44,66,.5); }
.mobile-link:hover { color: #F1F5F9; }

/* =============== Buttons =============== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  color: #050B14; background: linear-gradient(135deg, #17D9FF, #2F6BFF);
  box-shadow: 0 0 0 1px rgba(23,217,255,.15), 0 8px 24px -8px rgba(47,107,255,.55);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(23,217,255,.3), 0 14px 32px -8px rgba(47,107,255,.7); filter: brightness(1.05); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  color: #F1F5F9; background: rgba(255,255,255,.03);
  border: 1px solid #26374F;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn-secondary:hover { border-color: #3D5A82; background: rgba(255,255,255,.06); transform: translateY(-2px); }

/* =============== Typography helpers =============== */
.h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.85rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .12em;
  color: #17D9FF; font-weight: 500;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #17D9FF; box-shadow: 0 0 10px 2px rgba(23,217,255,.7); }

.text-gradient {
  background: linear-gradient(100deg, #17D9FF, #2F6BFF 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.link-underline { color: #17D9FF; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(23,217,255,.4); }
.link-underline:hover { text-decoration-color: #17D9FF; }

/* =============== Sections =============== */
.section-py { padding-top: 6.5rem; padding-bottom: 6.5rem; }
.section-alt { background: linear-gradient(180deg, #070E1A 0%, #050B14 100%); }
@media (max-width: 640px) { .section-py { padding-top: 4.5rem; padding-bottom: 4.5rem; } }

/* =============== Hero =============== */
.hero { position: relative; overflow: hidden; padding-top: 20px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 15%, rgba(47,107,255,.25), transparent 60%),
    radial-gradient(500px 380px at 85% 30%, rgba(23,217,255,.16), transparent 60%);
}

/* Glass / dashboard mock */
.glass-panel {
  background: rgba(15, 27, 46, 0.55);
  border: 1px solid rgba(30, 44, 66, .9);
  border-radius: 20px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}

.dashboard-mock { position: relative; }
.dm-window {
  background: rgba(15, 27, 46, 0.65);
  border: 1px solid #1E2C42; border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(23,217,255,.06);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.dm-titlebar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #16233A; background: rgba(10,20,36,.6); }
.dm-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dm-body { padding: 20px; }
.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-card { background: rgba(255,255,255,.02); border: 1px solid #16233A; border-radius: 12px; padding: 14px; }
.dm-label { font-size: 11px; color: #8CA0B8; font-family: 'JetBrains Mono', monospace; }
.dm-metric { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 600; margin-top: 2px; }
.dm-bar { height: 4px; background: #16233A; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.dm-bar span { display: block; height: 100%; background: linear-gradient(90deg,#2F6BFF,#17D9FF); border-radius: 4px; }
.dm-chart { margin-top: 14px; height: 90px; border: 1px solid #16233A; border-radius: 12px; padding: 10px 8px 0; background: rgba(255,255,255,.015); }
.dm-code {
  margin-top: 14px; background: #060D18; border: 1px solid #16233A; border-radius: 12px;
  padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.65; color: #8CA0B8;
}
.tk-key { color: #C792EA; } .tk-var { color: #F1F5F9; } .tk-fn { color: #17D9FF; }
.tk-prop { color: #8CA0B8; } .tk-str { color: #A6E22E; } .tk-bool { color: #FF9D57; }

.dm-float-badge {
  position: absolute; bottom: -16px; left: 24px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(15,27,46,.9); border: 1px solid #1E2C42; border-radius: 100px;
  padding: 8px 16px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: #8CA0B8;
  backdrop-filter: blur(10px); animation: floatY 7s ease-in-out infinite reverse;
}

/* =============== Pills / checks =============== */
.pill-check {
  display: flex; align-items: center; gap: 9px; font-size: 14px; color: #C8D5E4;
}
.pill-check::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,217,255,.25), transparent 70%);
  border: 1px solid #17D9FF;
  background-image: linear-gradient(135deg, #2F6BFF, #17D9FF);
  -webkit-mask: none;
}

/* =============== Service cards =============== */
.service-card {
  background: #0B1526; border: 1px solid #1A2740; border-radius: 18px; padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: #2F4266; background: #0D1A2E; }
.ic-wrap {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(47,107,255,.15), rgba(23,217,255,.1));
  border: 1px solid rgba(23,217,255,.25); color: #17D9FF;
}
.ic-wrap svg { width: 22px; height: 22px; }

/* =============== Why grid =============== */
.why-grid { background: #16233A; border: 1px solid #16233A; border-radius: 20px; overflow: hidden; }
.why-card { background: #0A1424; padding: 30px 26px; }
.why-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #4A6FA5; }

/* =============== Timeline =============== */
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, #2F6BFF, #17D9FF 60%, transparent); }
.tl-item { position: relative; padding-bottom: 40px; display: flex; gap: 24px; align-items: flex-start; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute; left: -44px; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: #0A1424; border: 1px solid #2F6BFF; color: #17D9FF; font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #050B14;
}

/* =============== Tech chips =============== */
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #C8D5E4;
  padding: 10px 18px; border-radius: 100px; border: 1px solid #1E2C42; background: #0B1526;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.tech-chip:hover { border-color: #17D9FF; color: #17D9FF; transform: translateY(-2px); }

/* =============== IA section =============== */
.ia-glow { position: absolute; inset: 0; background: radial-gradient(700px 500px at 75% 40%, rgba(47,107,255,.14), transparent 60%); pointer-events: none; }
.ia-item {
  font-size: 13.5px; color: #C8D5E4; border: 1px solid #1E2C42; background: rgba(255,255,255,.02);
  border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.ia-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #17D9FF; flex-shrink: 0; }

.chat-bubble { max-width: 85%; padding: 11px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat-user { background: #16233A; color: #E4ECF5; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-ai { background: rgba(23,217,255,.08); border: 1px solid rgba(23,217,255,.2); color: #C8D5E4; border-bottom-left-radius: 4px; }
.chat-ai.typing { display: flex; gap: 4px; align-items: center; width: fit-content; }
.chat-ai.typing span { width: 6px; height: 6px; border-radius: 50%; background: #17D9FF; animation: blink 1.2s infinite ease-in-out; }
.chat-ai.typing span:nth-child(2) { animation-delay: .2s; } .chat-ai.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* =============== Benefits =============== */
.benefit-card { border: 1px solid #1A2740; border-radius: 16px; padding: 26px; background: #0B1526; }
.benefit-metric { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; background: linear-gradient(100deg,#17D9FF,#2F6BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =============== Testimonials =============== */
.tag-illustrative { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #6B84A3; border: 1px dashed #2A3B57; border-radius: 100px; padding: 6px 14px; }
.testimonial-card { background: #0B1526; border: 1px solid #1A2740; border-radius: 18px; padding: 28px; }
.stars { color: #17D9FF; letter-spacing: 2px; font-size: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#2F6BFF,#17D9FF); color: #050B14; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; }

/* =============== FAQ =============== */
.faq-list { border-top: 1px solid #1A2740; }
.faq-item { border-bottom: 1px solid #1A2740; }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 16px; color: #F1F5F9;
  background: transparent; cursor: pointer;
}
.faq-icon { font-size: 20px; color: #17D9FF; transition: transform .3s ease; flex-shrink: 0; margin-left: 16px; font-weight: 300; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 4px; }
.faq-item.open .faq-a { max-height: 220px; padding-bottom: 22px; }
.faq-a p { color: #8CA0B8; font-size: 14.5px; line-height: 1.7; max-width: 60ch; }

/* =============== CTA final =============== */
.cta-final { position: relative; padding: 7rem 0; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(650px 420px at 50% 30%, rgba(47,107,255,.22), transparent 65%);
}

/* =============== Footer =============== */
.footer-title { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .1em; color: #6B84A3; }
.footer-link { transition: color .2s ease; }
.footer-link:hover { color: #17D9FF; }
.social-ic {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #1E2C42; color: #8CA0B8; transition: border-color .2s ease, color .2s ease;
}
.social-ic:hover { border-color: #17D9FF; color: #17D9FF; }

/* =============== WhatsApp FAB =============== */
.fab-whats {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg,#17D9FF,#2F6BFF); color: #050B14;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(47,107,255,.6);
  transition: transform .2s ease;
}
.fab-whats:hover { transform: scale(1.08); }

/* =============== Scroll reveal =============== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .12s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
