/* ==========================================================================
   Consolide — Tecnologia que conecta
   Base: tokens, reset, tipografia, header, botões, footer e utilidades
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --ink-0: #05070b;
  --ink-1: #080c13;
  --ink-2: #0c121c;
  --ink-3: #111927;

  --paper: #eef1f6;
  --paper-ink: #0a1220;
  --paper-muted: #566274;

  --text: #f2f5f9;
  --text-soft: #c5cedb;
  --muted: #8b97a8;
  --faint: #6e7b8c;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --accent: #5b93ff;
  --accent-bright: #9dc0ff;
  --accent-deep: #2c5cc5;
  --accent-soft: rgba(91, 147, 255, 0.12);
  --accent-line: rgba(91, 147, 255, 0.32);

  --tone-blue: #5b93ff;
  --tone-teal: #2dd4bf;
  --tone-violet: #a78bfa;
  --tone-green: #34d399;
  --tone-amber: #fbbf24;
  --tone-red: #fb8a8a;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --container: 1180px;
  --header: 76px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   Reset e base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(91, 147, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

section {
  scroll-margin-top: calc(var(--header) + 24px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-0);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Layout e tipografia
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 900px;
}

.section {
  position: relative;
  padding-block: 112px;
}

.section--tight {
  padding-block: 84px;
}

.section--line {
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--plain::before {
  display: none;
}

.display,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.13rem);
  line-height: 1.62;
  color: var(--muted);
}

.text-gradient {
  background: linear-gradient(104deg, #ffffff 4%, #c6d9ff 46%, #6f9fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-accent {
  color: var(--accent-bright);
}

.section-head {
  max-width: 690px;
  margin-bottom: 54px;
}

.section-head h2 {
  margin-top: 18px;
}

.section-head p {
  margin-top: 18px;
  max-width: 590px;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}

.section-head--split > div {
  max-width: 690px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--accent-bright);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.93rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: #ffffff;
  color: #070b12;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 32px -12px rgba(0, 0, 0, 0.7);
}

.btn--primary:hover {
  background: #eaf1ff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 36px -12px rgba(91, 147, 255, 0.45);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.btn--accent {
  background: linear-gradient(135deg, #6a9dff 0%, #3568d8 100%);
  color: #fff;
  box-shadow: 0 12px 32px -12px rgba(53, 104, 216, 0.65);
}

.btn--accent:hover {
  box-shadow: 0 16px 38px -12px rgba(79, 140, 255, 0.65);
}

.btn--sm {
  padding: 0.64rem 1.05rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 1.06rem 1.7rem;
  font-size: 0.96rem;
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.8) 0%, rgba(5, 7, 11, 0) 100%);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 9, 14, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__divider {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand__tagline {
  font-size: 0.45rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.345em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav > a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav > a:hover,
.nav > a[aria-current="page"] {
  color: var(--text);
}

.nav > a:hover::after,
.nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__mobile-only {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.header__portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.header__portal svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.header__portal:hover {
  color: var(--accent-bright);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle span {
  top: 50%;
  margin-top: -0.75px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
  transform: none;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

[data-nav-open="true"] .nav-toggle span {
  background: transparent;
}

[data-nav-open="true"] .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

[data-nav-open="true"] .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: #04070b;
  padding-top: 76px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 0.85fr 1.15fr;
  gap: 44px;
}

.footer__brand .brand {
  margin-bottom: 20px;
}

.footer__brand p {
  max-width: 310px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__social {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer__social a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-block: 0.31rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--accent-bright);
}

.footer__col li {
  display: block;
}

.footer__contact {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__contact strong {
  display: block;
  font-weight: 500;
  color: var(--text);
}

.footer__contact span {
  display: block;
  margin-bottom: 14px;
}

.portal-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(91, 147, 255, 0.12), rgba(91, 147, 255, 0.02));
}

.portal-card p {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.portal-card .link-arrow {
  font-size: 0.8rem;
  color: var(--accent-bright);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--faint);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__bottom a:hover {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   -------------------------------------------------------------------------- */

.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #06270f;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.wa-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.wa-fab svg {
  width: 27px;
  height: 27px;
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.55);
  animation: fab-pulse 2.8s ease-out infinite;
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Animações de entrada
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex: none;
}

/* --------------------------------------------------------------------------
   Responsivo — base
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .header__portal {
    display: none;
  }

  .nav {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    z-index: 99;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 14px 24px 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 9, 14, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }

  [data-nav-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav > a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text);
  }

  .nav > a::after {
    display: none;
  }

  .nav > a[aria-current="page"] {
    color: var(--accent-bright);
  }

  .nav__mobile-only {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    border: 0 !important;
  }

  .nav__mobile-only .btn {
    width: 100%;
  }

  .header__actions {
    margin-left: auto;
    gap: 10px;
  }

  .header__actions .btn {
    display: none;
  }

  .section {
    padding-block: 82px;
  }

  .section-head {
    margin-bottom: 42px;
  }

  .section-head--split {
    display: block;
  }

  .section-head--split .link-arrow {
    margin-top: 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__brand p {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .container {
    padding-inline: 20px;
  }

  .brand__tagline {
    display: none;
  }

  .brand__divider {
    height: 26px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  .brand__name {
    font-size: 1.22rem;
  }

  .section {
    padding-block: 68px;
  }

  .section-head h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .section-head p {
    font-size: 0.97rem;
  }

  .btn {
    font-size: 0.86rem;
  }

  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    flex: 1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 42px;
  }

  .wa-fab {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .wa-fab svg {
    width: 24px;
    height: 24px;
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
