/* =========================================================
   JAXCONNECT — DESIGN TOKENS
   Cor:   Ink #0A0E1A · Graphite #121826 · Paper #F7F9FC
          Blue #2B5FE2 · Cyan #33D9E8 · Slate #4B5568
   Tipo:  Space Grotesk (títulos) · Inter (texto)
   ========================================================= */

:root{
  --ink: #0A0E1A;
  --graphite: #121826;
  --graphite-2: #1B2436;
  --paper: #F7F9FC;
  --paper-2: #EEF2F9;
  --white: #FFFFFF;
  --blue: #2B5FE2;
  --blue-deep: #1B3FA6;
  --cyan: #33D9E8;
  --slate: #4B5568;
  --slate-light: #7C8AA0;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(10,14,26,0.10);
  --whatsapp: #22C55E;
  --whatsapp-deep: #17A54A;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1180px;
  --shadow-soft: 0 20px 50px -20px rgba(10,14,26,0.35);
}

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

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size: 1.15rem; }

p{ margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

a{ color: inherit; text-decoration: none; }

ul{ margin: 0; padding: 0; list-style: none; }

button{ font-family: inherit; cursor: pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow{ max-width: 760px; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: var(--white);
  padding: 12px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

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

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn svg{ width: 18px; height: 18px; fill: currentColor; }
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(43,95,226,0.55);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-dark);
}
.btn-ghost-light{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline{
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid rgba(51,217,232,0.5);
}
.btn-whatsapp{
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-deep));
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(23,165,74,0.55);
}
.btn-sm{ padding: 10px 18px; font-size: 0.85rem; }
.btn-block{ width: 100%; }

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled{
  background: rgba(10,14,26,0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,0.5);
  padding: 12px 0;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}
.logo-mark{ width: 28px; height: 28px; color: var(--cyan); }
.logo strong{ font-weight: 700; color: var(--cyan); }

.main-nav ul{ display: flex; gap: 30px; }
.main-nav a{
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--cyan);
  transition: right 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 16px; }

.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
}
.hamburger span{
  display: block; height: 2px; width: 22px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero{
  position: relative;
  background: radial-gradient(120% 100% at 85% -10%, #142046 0%, var(--ink) 55%);
  padding: 168px 0 110px;
  overflow: hidden;
  color: var(--white);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1{ color: var(--white); }
.hero-subtitle{
  font-size: 1.15rem;
  color: var(--cyan);
  font-weight: 500;
  max-width: 46ch;
}
.hero-desc{ color: rgba(255,255,255,0.72); max-width: 52ch; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }

.hero-visual{ position: relative; }
.network-art{ width: 100%; height: auto; }
.net-nodes circle{ fill: var(--cyan); filter: drop-shadow(0 0 8px rgba(51,217,232,0.7)); }
.net-lines path{
  stroke-dasharray: 6 500;
  animation: dash-flow 5s linear infinite;
}
.net-lines path:nth-child(2){ animation-delay: 0.6s; }
.net-lines path:nth-child(3){ animation-delay: 1.2s; }
.net-lines path:nth-child(4){ animation-delay: 1.8s; }
.net-lines path:nth-child(5){ animation-delay: 2.4s; }
@keyframes dash-flow{
  from{ stroke-dashoffset: 500; }
  to{ stroke-dashoffset: 0; }
}
.console-frame{ fill: rgba(255,255,255,0.05); stroke: rgba(51,217,232,0.4); stroke-width: 1; }
.console-line{ fill: rgba(255,255,255,0.16); }
.console-btn{ fill: var(--cyan); opacity: 0.85; }

/* ---------------------------------------------------------
   SECTIONS (generic)
   --------------------------------------------------------- */
.section{ padding: 96px 0; }
.section-dark{
  background: var(--ink);
  color: var(--white);
}
.section-dark p{ color: rgba(255,255,255,0.68); }
.section-dark h2,.section-dark h3{ color: var(--white); }

.section-head{ max-width: 640px; margin: 0 0 48px; }
.section-head h2{ margin-bottom: 0.35em; }

/* ---------------------------------------------------------
   CARDS — diferenciais
   --------------------------------------------------------- */
.cards-grid{ display: grid; gap: 24px; }
.cards-4{ grid-template-columns: repeat(4, 1fr); }
.cards-3{ grid-template-columns: repeat(3, 1fr); }

.card{
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card h3{ margin-bottom: 0.4em; }
.card p{ margin: 0; font-size: 0.95rem; }

/* ---------------------------------------------------------
   SERVICES
   --------------------------------------------------------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card{
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover{
  border-color: rgba(51,217,232,0.45);
  transform: translateY(-4px);
}
.service-card h3{ color: var(--white); }
.service-card p{ color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.service-card ul{
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 8px;
}
.service-card li{
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(51,217,232,0.08);
  border: 1px solid rgba(51,217,232,0.2);
  border-radius: 999px;
  padding: 5px 12px;
}
.service-card .btn{ align-self: flex-start; margin-top: auto; }

/* ---------------------------------------------------------
   CHATBOT FEATURE
   --------------------------------------------------------- */
.chatbot-feature{ background: var(--paper-2); }
.chatbot-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.flow-steps{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
}
.flow-steps span{
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.flow-steps span:not(:last-child)::after{
  content: "→";
  margin-left: 10px;
  color: var(--slate-light);
  font-weight: 400;
}
.highlight{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.chat-mock{
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-bubble{
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.92rem;
  max-width: 90%;
  line-height: 1.5;
}
.chat-in{
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-out{
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

/* ---------------------------------------------------------
   SITES FEATURE
   --------------------------------------------------------- */
.sites-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.device-mock{ position: relative; padding: 20px 0 40px; }
.device.laptop{
  background: var(--ink);
  border-radius: 14px 14px 4px 4px;
  padding: 14px 14px 26px;
  box-shadow: var(--shadow-soft);
}
.device.laptop .screen{
  background: var(--graphite-2);
  border-radius: 8px;
  padding: 18px;
  min-height: 180px;
}
.device.phone{
  position: absolute;
  right: -8%;
  bottom: -16%;
  width: 34%;
  background: var(--ink);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
}
.device.phone .screen{
  background: var(--graphite-2);
  border-radius: 14px;
  padding: 14px 10px;
  min-height: 130px;
}
.mock-bar{ width: 34%; height: 8px; border-radius: 4px; background: var(--cyan); margin-bottom: 14px; opacity: 0.8; }
.mock-line{ height: 8px; border-radius: 4px; background: rgba(255,255,255,0.18); margin-bottom: 10px; }
.mock-line.w70{ width: 70%; } .mock-line.w60{ width: 60%; }
.mock-line.w40{ width: 40%; } .mock-line.w30{ width: 30%; }
.mock-card{ margin-top: 14px; height: 46px; border-radius: 8px; background: rgba(51,217,232,0.15); border: 1px solid rgba(51,217,232,0.3); }

.benefits-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin: 24px 0 32px;
}
.benefits-list li{
  font-size: 0.95rem;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}
.benefits-list li::before{
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
}

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-qualities{ display: flex; flex-direction: column; gap: 24px; }
.quality{
  border-left: 2px solid var(--cyan);
  padding-left: 20px;
}
.quality p{ margin: 0; font-size: 0.92rem; }

/* ---------------------------------------------------------
   STEPS — como funciona
   --------------------------------------------------------- */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li{ display: flex; flex-direction: column; gap: 8px; }
.step-n{
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3{ margin-bottom: 4px; }
.steps p{ font-size: 0.92rem; margin: 0; }

/* ---------------------------------------------------------
   PORTFOLIO / TESTIMONIALS
   --------------------------------------------------------- */
.portfolio-card{
  background: var(--graphite);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 26px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.portfolio-card .tag{
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(51,217,232,0.3);
  border-radius: 999px;
  padding: 4px 12px;
}
.portfolio-card p{ color: rgba(255,255,255,0.55); font-size: 0.88rem; margin: 0; }

.testimonial-card{
  background: var(--paper-2);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
  padding: 28px;
  color: var(--slate-light);
  font-style: italic;
  min-height: 120px;
  display: flex;
  align-items: center;
}

/* ---------------------------------------------------------
   FAQ ACCORDION
   --------------------------------------------------------- */
.accordion-item{
  border-bottom: 1px solid var(--line);
}
.accordion-trigger{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 22px 36px 22px 0;
  position: relative;
}
.accordion-trigger::after{
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
}
.accordion-trigger[aria-expanded="true"]::after{ transform: translateY(-50%) rotate(45deg); }

.accordion-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel p{ padding-bottom: 22px; margin: 0; color: rgba(255,255,255,0.68); }

/* ---------------------------------------------------------
   CTA FINAL
   --------------------------------------------------------- */
.cta-final{
  background: linear-gradient(135deg, var(--blue-deep), var(--ink) 70%);
  color: var(--white);
  text-align: center;
}
.cta-final h2{ color: var(--white); max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-final p{ color: rgba(255,255,255,0.75); max-width: 620px; margin: 0 auto 32px; }
.cta-actions{ display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   CONTACT
   --------------------------------------------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.info-block{ margin-bottom: 26px; }
.info-block h3{ margin-bottom: 8px; }
.info-block p{ margin: 0; }

.contact-form{
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{ font-size: 0.85rem; font-weight: 600; color: var(--slate); }
.form-row input,
.form-row select,
.form-row textarea{
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-dark);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color: var(--blue);
  outline: none;
}
.form-feedback{ margin: 0; font-size: 0.9rem; min-height: 1.2em; color: var(--whatsapp-deep); }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p{ color: rgba(255,255,255,0.55); max-width: 32ch; }
.social-links{ display: flex; gap: 16px; margin-top: 16px; }
.social-links a{ font-size: 0.85rem; color: var(--cyan); }
.footer-col h3{ color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; }
.footer-col li,
.footer-col a{ font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-col a:hover{ color: var(--cyan); }
.footer-bottom{ padding: 22px 24px; font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.45); }

/* ---------------------------------------------------------
   WHATSAPP FLOATING BUTTON
   --------------------------------------------------------- */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(23,165,74,0.6);
  z-index: 400;
  border: none;
  transition: transform 0.2s ease;
}
.whatsapp-float svg{ width: 28px; height: 28px; fill: currentColor; }
.whatsapp-float:hover{ transform: scale(1.08); }

/* ---------------------------------------------------------
   ENTRANCE ANIMATION (single orchestrated hero sequence)
   --------------------------------------------------------- */
.hero-copy > *,
.hero-visual{
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 0.7s ease forwards;
}
.hero-copy > *:nth-child(1){ animation-delay: 0.05s; }
.hero-copy > *:nth-child(2){ animation-delay: 0.15s; }
.hero-copy > *:nth-child(3){ animation-delay: 0.25s; }
.hero-copy > *:nth-child(4){ animation-delay: 0.35s; }
.hero-visual{ animation-delay: 0.3s; }
@keyframes hero-in{
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1024px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .cards-4{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .hero-grid,
  .chatbot-grid,
  .sites-grid,
  .about-grid,
  .contact-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 420px; margin: 0 auto; }
  .device-mock{ max-width: 420px; margin: 0 auto; }
}

@media (max-width: 860px){
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(10px);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 22px; }
  .main-nav a{ font-size: 1.05rem; }
  .hamburger{ display: flex; }
  .header-actions .btn-whatsapp.btn-sm{ display: none; }
}

@media (max-width: 640px){
  .section{ padding: 72px 0; }
  .hero{ padding: 140px 0 80px; }
  .cards-4,
  .cards-3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .benefits-list{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .whatsapp-float{ right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
