/* ==========================================================================
   LCS CODE — folha de estilo principal
   1. Fontes          5. Componentes
   2. Tokens          6. Seções
   3. Reset / base    7. Responsivo
   4. Layout          8. Movimento reduzido
   ========================================================================== */

/* ============================== 1. FONTES ============================== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================== 2. TOKENS ============================== */
:root {
  /* cor */
  --color-background: #05080D;
  --color-background-alt: #080D15;
  --color-surface: #0D1420;
  --color-surface-2: #111A29;
  --color-primary: #087CFF;
  --color-primary-light: #2495FF;
  --color-primary-dark: #0561D6;
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-primary-soft: rgba(8, 124, 255, 0.12);

  /* gradientes */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  /* Gradiente dos botões: levemente mais escuro para o texto branco
     atingir contraste AA (>= 4.5:1) sem sair da identidade azul. */
  --gradient-button: linear-gradient(135deg, #0A6FE8, #0561D6);
  --gradient-text: linear-gradient(100deg, #2495FF 10%, #6FB6FF 90%);

  /* sombra e brilho */
  --glow-primary: 0 0 60px rgba(8, 124, 255, 0.22);
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-device: 0 40px 80px -32px rgba(0, 0, 0, 0.95);

  /* medidas */
  --container-width: 1200px;
  --container-padding: 24px;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 999px;
  --header-height: 84px;
  --header-height-scrolled: 68px;

  /* ritmo vertical */
  --section-gap: clamp(72px, 9vw, 130px);

  /* movimento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition: 260ms var(--ease);
}

/* ============================ 3. RESET / BASE ============================ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-scrolled) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

::selection { background: var(--color-primary); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--border-radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ============================== 4. LAYOUT ============================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section { padding-block: var(--section-gap); position: relative; }
.section--alt { background: var(--color-background-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }

.section__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  margin-top: 18px;
}

.section__text {
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  max-width: 56ch;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================ 5. COMPONENTES ============================ */

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge::before {
  content: '';
  flex: none;
  margin-top: 0.45em; /* alinha o ponto à primeira linha quando o texto quebra */
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 10px var(--color-primary-light);
}
.badge--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #EAF3FF;
}
.badge--light::before { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), border-color var(--transition);
  will-change: transform;
}
.btn--sm { padding: 11px 20px; font-size: 0.875rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }

.btn__icon { width: 19px; height: 19px; flex: none; }

.btn--primary {
  background-image: var(--gradient-button);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(8, 124, 255, 0.85);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(8, 124, 255, 1);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(36, 149, 255, 0.5);
}
.btn--ghost:active { transform: translateY(0); }

/* --- Link com seta --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding-bottom: 3px;
  color: var(--color-primary-light);
  font-weight: 700;
  border-bottom: 1px solid rgba(36, 149, 255, 0.3);
  transition: gap var(--transition), color var(--transition), border-color var(--transition);
}
.link-arrow:hover { gap: 14px; color: #6FB6FF; border-color: #6FB6FF; }

/* --- Card base --- */
.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(8, 124, 255, 0.14), transparent 62%);
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(36, 149, 255, 0.42);
  box-shadow: var(--shadow-card), 0 0 42px -12px rgba(8, 124, 255, 0.4);
}
.card:hover::after { opacity: 1; }

/* --- Mockups de dispositivo --- */
.device { position: relative; }

.device--laptop .device__screen {
  border: 9px solid #18212F;
  border-radius: 14px;
  background: var(--color-surface);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.device--laptop .device__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device__base {
  width: 104%;
  margin-left: -2%;
  height: 13px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #202B3C, #0E141E);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9);
}
.device__base::after {
  content: '';
  display: block;
  width: 14%;
  height: 4px;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.12);
}

.device--phone .device__screen {
  position: relative;
  border: 7px solid #18212F;
  border-radius: 30px;
  background: var(--color-surface);
  overflow: hidden;
  aspect-ratio: 720 / 1558;
  box-shadow: var(--shadow-device), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.device--phone .device__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device--phone .device__screen::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 5px;
  border-radius: var(--border-radius-pill);
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* ============================== 6. SEÇÕES ============================== */

/* --------------------------- HEADER --------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height var(--transition), background-color var(--transition),
              border-color var(--transition), backdrop-filter var(--transition);
}
.header.is-scrolled {
  height: var(--header-height-scrolled);
  background: rgba(5, 8, 13, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --------------------------- LOGO --------------------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__lcs {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.logo__code {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* --------------------------- NAVEGAÇÃO --------------------------- */
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; align-items: center; gap: 30px; }

.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-block: 6px;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover,
.nav__link.is-active { color: var(--color-text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; padding: 8px; border-radius: 10px; }
.burger__box {
  position: relative;
  display: block;
  width: 24px; height: 16px;
}
.burger__line,
.burger__line::before,
.burger__line::after {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity 160ms var(--ease), top var(--transition);
}
.burger__line { top: 7px; }
.burger__line::before { content: ''; top: -7px; }
.burger__line::after { content: ''; top: 7px; }

.burger[aria-expanded='true'] .burger__line { background: transparent; }
.burger[aria-expanded='true'] .burger__line::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__line::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 8, 13, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-backdrop.is-visible { opacity: 1; }

/* --------------------------- HERO --------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -22%; left: 50%;
  transform: translateX(-50%);
  width: min(1500px, 155%);
  aspect-ratio: 2 / 1;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(8, 124, 255, 0.24), transparent 70%),
    radial-gradient(closest-side at 72% 46%, rgba(36, 149, 255, 0.16), transparent 68%);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.42;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 34%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 34%, #000 30%, transparent 78%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero__title {
  font-size: clamp(2.3rem, 1.25rem + 4.3vw, 4.15rem);
  margin-top: 26px;
}
.hero__text {
  margin-top: 26px;
  max-width: 52ch;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__visual { position: relative; }
.hero__devices { position: relative; padding-bottom: 8%; }

.hero__laptop {
  animation: float-soft 9s var(--ease) infinite;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}
.hero__phone {
  position: absolute;
  right: -2%; bottom: 0;
  width: 25%;
  z-index: 2;
  animation: float-soft 9s var(--ease) infinite;
  animation-delay: -4.5s;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

@keyframes float-soft {
  0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
  50%      { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 12px), 0); }
}

/* --------------------------- INDICADORES --------------------------- */
.indicators {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 84px);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  background: var(--color-border);
  overflow: hidden;
}
.indicator {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 28px;
  background: var(--color-background-alt);
}
.indicator__title { font-weight: 800; font-size: 1.06rem; letter-spacing: -0.02em; }
.indicator__text { color: var(--color-text-muted); font-size: 0.92rem; }

/* --------------------------- SERVIÇOS --------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 22px;
  border: 1px solid var(--color-border);
  border-radius: 13px;
  background: var(--color-primary-soft);
  color: var(--color-primary-light);
}
.service__icon svg {
  width: 23px; height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service__title { font-size: 1.16rem; margin-bottom: 11px; }
.service__text { color: var(--color-text-muted); font-size: 0.94rem; }

/* --------------------------- PROJETOS --------------------------- */
.projects { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 130px); }

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}
.project--reverse .project__info { order: 2; }
.project--reverse .project__visual { order: 1; }

.project__info { position: relative; }

.project__number {
  display: block;
  font-size: clamp(3.4rem, 2rem + 5vw, 5.6rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  margin-bottom: 20px;
  user-select: none;
}
.project__category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.project__tag {
  padding: 4px 11px;
  border: 1px solid rgba(36, 149, 255, 0.42);
  border-radius: var(--border-radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary-light);
  letter-spacing: 0.1em;
}
.project__title {
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem);
  margin-top: 14px;
}
.project__text {
  margin-top: 16px;
  color: var(--color-text-muted);
  max-width: 48ch;
}

.project__visual { position: relative; }
.project__visual::before {
  content: '';
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 124, 255, 0.2), transparent 72%);
}
.project__phone {
  position: absolute;
  left: -3%; bottom: -19%;
  width: 18%;
  z-index: 2;
}
.project--reverse .project__phone { left: auto; right: -3%; }

/* destaque do projeto que vai além de site institucional */
.project--featured .project__visual .device--laptop .device__screen {
  border-color: #1E3350;
  box-shadow: var(--shadow-device), 0 0 0 1px rgba(36, 149, 255, 0.34),
              0 0 70px -18px rgba(8, 124, 255, 0.6);
}
.project--featured .project__visual::before {
  background: radial-gradient(closest-side, rgba(8, 124, 255, 0.32), transparent 72%);
}
.project--featured .project__number {
  -webkit-text-stroke: 1px rgba(36, 149, 255, 0.4);
}

/* --------------------------- PROCESSO --------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.process__step { position: relative; }

/* Conector desenhado por etapa: acompanha o círculo em qualquer largura. */
.process__step::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 54px;
  width: calc(100% - 26px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-border-strong), rgba(8, 124, 255, 0.45));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}
.process__step:last-child::after { content: none; }
.process.is-visible .process__step::after { transform: scaleX(1); }
.process.is-visible .process__step:nth-child(2)::after { transition-delay: 160ms; }
.process.is-visible .process__step:nth-child(3)::after { transition-delay: 320ms; }
.process__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--color-surface);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--color-primary-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.process__step:hover .process__num {
  border-color: rgba(36, 149, 255, 0.6);
  box-shadow: var(--glow-primary);
}
.process__title { font-size: 1.1rem; margin-bottom: 10px; }
.process__text { color: var(--color-text-muted); font-size: 0.94rem; max-width: 30ch; }

/* --------------------------- SOBRE --------------------------- */
/* Bloco de apresentação do fundador, temporariamente desativado.
   display:none remove também a margem inferior, sem deixar espaço vazio. */
.about.is-hidden { display: none; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  margin-bottom: clamp(56px, 7vw, 92px);
}
.about__media { position: relative; }
.about__photo,
.about__fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
/* composição abstrata temporária, com a identidade da marca */
.about__fallback {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(62% 46% at 28% 20%, rgba(8, 124, 255, 0.28), transparent 74%),
    radial-gradient(58% 42% at 80% 84%, rgba(36, 149, 255, 0.15), transparent 76%),
    var(--color-surface);
}
.about__fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side, #000, transparent 85%);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent 85%);
}
.about__fallback-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about__fallback-mark .logo__lcs { font-size: clamp(2.6rem, 6vw, 3.6rem); }
.about__fallback-mark .logo__code { font-size: 0.74rem; margin-top: 8px; }

.about__text {
  margin-top: 22px;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  max-width: 56ch;
}

/* --------------------------- DIFERENCIAIS --------------------------- */
.differentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.differential__title { font-size: 1.04rem; margin-bottom: 9px; }
.differential__text { color: var(--color-text-muted); font-size: 0.92rem; }

/* --------------------------- TECNOLOGIAS --------------------------- */
.tech__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 26px;
}
.tech { display: flex; flex-wrap: wrap; gap: 11px; }
.tech__item {
  padding: 10px 19px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-pill);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition), border-color var(--transition),
              background-color var(--transition), transform var(--transition);
}
.tech__item:hover {
  color: var(--color-text);
  border-color: rgba(36, 149, 255, 0.45);
  background: var(--color-surface-2);
  transform: translateY(-2px);
}

/* --------------------------- FAQ --------------------------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  transition: border-color var(--transition), background-color var(--transition);
}
.faq__item:hover { border-color: rgba(36, 149, 255, 0.28); }
.faq__item.is-open {
  border-color: rgba(36, 149, 255, 0.42);
  background: var(--color-surface-2);
}

/* o h3 existe pela semântica; o peso visual vem de .faq__question */
.faq__heading {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 21px 24px;
  text-align: left;
  border-radius: var(--border-radius);
  color: var(--color-text);
}

.faq__question {
  font-size: clamp(0.98rem, 0.95rem + 0.16vw, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

/* "+" que gira 45deg e vira "x" ao abrir */
.faq__icon {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
  color: var(--color-primary-light);
  transition: transform var(--transition);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 15px; height: 2px; }
.faq__icon::after  { width: 2px;  height: 15px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

/* Abertura animada sem cálculo de altura em JavaScript.
   .faq__answer é o item de grid e por isso não recebe padding — ele iria
   somar altura mesmo com a linha colapsada em 0fr. */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

.faq__answer {
  overflow: hidden;
  visibility: hidden; /* tira o conteúdo fechado do foco e dos leitores de tela */
  transition: visibility 340ms var(--ease);
}
.faq__item.is-open .faq__answer { visibility: visible; }

.faq__answer-body { padding: 0 24px 24px; }
.faq__answer-body p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  max-width: 62ch;
}
.faq__cta { margin-top: 18px; }

/* --------------------------- CTA FINAL --------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 9vw, 128px);
  text-align: center;
  background:
    linear-gradient(160deg, #0A1B33 0%, #061021 45%, var(--color-background) 100%);
  border-top: 1px solid var(--color-border);
}
.cta__glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 130%);
  aspect-ratio: 1.6 / 1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 124, 255, 0.38), transparent 70%);
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem);
  margin-top: 22px;
  max-width: 17ch;
}
.cta__text {
  margin-top: 20px;
  max-width: 52ch;
  color: #B9C9DC;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.channel {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition), border-color var(--transition),
              background-color var(--transition), transform var(--transition);
}
.channel:hover {
  color: var(--color-text);
  border-color: rgba(36, 149, 255, 0.55);
  background: rgba(8, 124, 255, 0.14);
  transform: translateY(-2px);
}
.channels__pending {
  margin-top: 36px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.cta__local {
  margin-top: 40px;
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #8FA3BC;
}
.cta__local strong { color: #C6D6E8; font-weight: 700; }

/* --------------------------- BOTÃO FLUTUANTE DO WHATSAPP --------------------------- */
/* z-index abaixo do menu mobile (95) e do header (100), para não sobrepor
   o painel de navegação quando ele estiver aberto. */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.2vw, 26px);
  bottom: clamp(16px, 2.2vw, 26px);
  z-index: 80;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;

  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, 0.5),
              0 3px 12px rgba(0, 0, 0, 0.45);

  /* escondido até o visitante passar do Hero, que já tem o seu próprio CTA */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.85);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease),
              visibility 280ms var(--ease), box-shadow var(--transition);
}
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.wa-float:hover {
  box-shadow: 0 18px 38px -10px rgba(37, 211, 102, 0.7),
              0 3px 12px rgba(0, 0, 0, 0.45);
}
.wa-float:active { transform: scale(0.95); }

.wa-float__icon { width: 30px; height: 30px; }

/* Rótulo em pílula escura: contraste alto, diferente do glifo sobre o verde. */
.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 9px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-card);

  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip {
  opacity: 1;
  transform: none;
}

/* No toque não há hover: o rótulo só ocuparia espaço. */
@media (hover: none), (max-width: 560px) {
  .wa-float__tip { display: none; }
}

/* --------------------------- FOOTER --------------------------- */
.footer {
  padding-block: clamp(44px, 5vw, 64px) 32px;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.footer__tagline { margin-top: 14px; color: var(--color-text-muted); font-size: 0.94rem; }
.footer__local {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color var(--transition);
}
.footer__phone .btn__icon { width: 17px; height: 17px; color: var(--color-primary-light); }
.footer__phone:hover { color: var(--color-primary-light); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--color-text); }
.footer__copy {
  margin-top: 26px;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

/* --------------------------- REVELAÇÃO NO SCROLL --------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay='1'] { transition-delay: 70ms; }
[data-reveal-delay='2'] { transition-delay: 140ms; }
[data-reveal-delay='3'] { transition-delay: 210ms; }
[data-reveal-delay='4'] { transition-delay: 280ms; }

/* ============================== 7. RESPONSIVO ============================== */

@media (max-width: 1100px) {
  .services,
  .differentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__list { gap: 22px; }
  .nav { gap: 24px; }
}

@media (max-width: 960px) {
  :root { --container-padding: 20px; }

  /* menu mobile */
  .burger {
    display: block;
    position: relative;
    z-index: 110; /* acima do painel, para o botão de fechar ficar acessível */
  }
  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 95;
    width: min(340px, 86vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    padding: 32px 30px;
    background: var(--color-background-alt);
    border-left: 1px solid var(--color-border);
    transform: translateX(101%);
    visibility: hidden;
    transition: transform 320ms var(--ease), visibility 320ms var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link {
    display: block;
    padding: 14px 4px;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__link::after { display: none; }
  .nav__cta { justify-content: center; padding-block: 15px; }

  /* hero em coluna */
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: 2; }
  .hero__devices { max-width: 560px; padding-bottom: 6%; }
  .hero__phone { width: 22%; right: 0; }

  /* projetos empilhados */
  .project { grid-template-columns: minmax(0, 1fr); }
  .project--reverse .project__info,
  .project--reverse .project__visual { order: 0; }
  .project__phone { width: 19%; left: auto; right: 0; bottom: -9%; }
  .project--reverse .project__phone { right: 0; }

  /* processo vertical */
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process__step::after {
    top: 54px;
    left: 27px;
    width: 1px;
    height: calc(100% - 54px);
    background: linear-gradient(180deg, var(--color-border-strong), rgba(8, 124, 255, 0.45));
    transform: scaleY(0);
    transform-origin: top;
  }
  .process.is-visible .process__step::after { transform: scaleY(1); }
  .process__step {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 22px;
    padding-bottom: 34px;
  }
  .process__num { margin-bottom: 0; grid-row: span 2; }
  .process__title { align-self: center; }
  .process__text { max-width: none; grid-column: 2; }

  /* sobre em coluna */
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 420px; }
}

@media (max-width: 700px) {
  .indicators { grid-template-columns: minmax(0, 1fr); }
  .services,
  .differentials { grid-template-columns: minmax(0, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  :root { --container-padding: 16px; }

  .faq__trigger { padding: 18px 18px; gap: 14px; }
  .faq__answer-body { padding: 0 18px 20px; }

  .card { padding: 24px; }
  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }
  .hero__actions,
  .cta__actions { width: 100%; }
  .hero__devices { padding-bottom: 12%; }
  .hero__phone { width: 26%; right: -2%; }
  .project__phone { width: 24%; bottom: -12%; right: -2%; }
  .footer__nav ul { gap: 14px 22px; }
  .channel { padding: 9px 16px; }
}

@media (max-width: 380px) {
  .logo__code { letter-spacing: 0.3em; }
  .device--phone .device__screen { border-width: 5px; border-radius: 22px; }
}

/* ========================= 8. MOVIMENTO REDUZIDO ========================= */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .hero__laptop,
  .hero__phone { animation: none; transform: none; }
  .process__step::after { transform: none; }
  .faq__panel,
  .faq__answer { transition: none; }

  .wa-float { transition: none; }
  .wa-float.is-visible { transform: none; }

  .btn:hover,
  .card:hover,
  .tech__item:hover,
  .channel:hover { transform: none; }
}
