@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/ArchivoBlack-400.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Josefin Sans';
  src: url('../fonts/JosefinSans-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta: azul-celeste + branco + leves toques de preto */
  --brand-900: #094c86;
  --brand-700: #0f75c8;
  --brand-500: #2ea3f2;
  --brand-300: #7dd0ff;
  --brand-100: #e8f5ff;
  --accent-500: #5ec2ff;
  --ink-950: #06090e;
  --ink-900: #0b111b;
  --ink-700: #162235;
  --paper: #ffffff;
  --paper-soft: #f3f9ff;
  --wa-green: #25d366;

  /* Derivados */
  --veil-sky: rgba(46, 163, 242, 0.22);
  --veil-light: rgba(125, 208, 255, 0.16);
  --veil-deep: rgba(9, 76, 134, 0.34);
  --edge: rgba(255, 255, 255, 0.16);
  --edge-strong: rgba(125, 208, 255, 0.42);
  --glow: rgba(46, 163, 242, 0.45);
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-soft: rgba(255, 255, 255, 0.56);

  /* Tipografia */
  --ff-display: 'Archivo Black', sans-serif;
  --ff-body: 'Josefin Sans', sans-serif;
  --ff-mono: ui-monospace, 'Cascadia Mono', monospace;

  /* Escala */
  --container: 1120px;
  --container-narrow: 760px;
  --header-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background-color: var(--ink-950);
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  background-color: var(--ink-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

body.intro-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* ============ CAMPO GLOBAL CONTÍNUO ============ */
.page-field {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(75% 50% at 15% 6%, var(--veil-sky), transparent 70%),
    radial-gradient(65% 45% at 85% 28%, var(--veil-light), transparent 72%),
    radial-gradient(70% 50% at 50% 62%, var(--veil-deep), transparent 75%),
    radial-gradient(80% 45% at 50% 100%, var(--veil-sky), transparent 78%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 48%, var(--ink-950) 100%);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.site-shell {
  position: relative;
  z-index: 1;
}

/* ============ ABERTURA (INTRO) ============ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(46, 163, 242, 0.24), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  color: var(--ink-950);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.intro-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.intro-overlay.is-gone {
  display: none;
}

.intro-skip {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(9, 76, 134, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-950);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.intro-skip:hover {
  transform: translateY(-1px);
  border-color: var(--brand-700);
}

.intro-stage {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.intro-map-wrap {
  position: relative;
  width: min(74vw, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.intro-br-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.intro-br-outline {
  fill: rgba(46, 163, 242, 0.08);
  stroke: var(--brand-700);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
  animation: drawMap 1.35s var(--ease) forwards;
}

.intro-route {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 1.6;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  opacity: 0.85;
  animation: drawRoute 0.95s var(--ease) 0.55s forwards;
}

.intro-pin {
  fill: var(--ink-950);
  opacity: 0;
  transform-origin: center;
  animation: pinIn 0.4s var(--ease) forwards;
}

.intro-pin--hq {
  fill: var(--brand-700);
}

.intro-pin--1 { animation-delay: 0.65s; }
.intro-pin--2 { animation-delay: 0.8s; }
.intro-pin--3 { animation-delay: 0.95s; }
.intro-pin--4 { animation-delay: 1.1s; }
.intro-pin--hq { animation-delay: 0.45s; }

.intro-logo-badge {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--paper);
  box-shadow: 0 18px 40px -12px rgba(9, 76, 134, 0.45);
  opacity: 0;
  transform: scale(0.65);
  animation: introLogoIn 0.65s var(--ease) 0.8s forwards;
}

.intro-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-kicker {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-900);
}

.intro-title {
  font-family: var(--ff-display);
  font-size: clamp(1.55rem, 5.5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}

.intro-title span {
  color: var(--brand-700);
}

.intro-meter {
  width: min(82%, 280px);
  display: grid;
  gap: 8px;
}

.intro-meter-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.intro-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(9, 76, 134, 0.14);
  overflow: hidden;
}

.intro-bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500), var(--accent-500));
  transform-origin: left center;
  transform: scaleX(0);
  animation: barFill 2.2s var(--ease) 0.2s forwards;
}

@keyframes drawMap {
  to { stroke-dashoffset: 0; }
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

@keyframes pinIn {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes introLogoIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes barFill {
  to { transform: scaleX(1); }
}

/* ============ NAVBAR ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 9, 14, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.nav-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--edge-strong);
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--paper);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-cta-mobile,
.nav-cta-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-500);
  color: var(--ink-950);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}

.nav-cta-desktop {
  display: none;
}

.nav-cta-mobile:hover,
.nav-cta-desktop:hover {
  transform: translateY(-1px);
  background: var(--brand-300);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-cta-mobile {
    display: none;
  }
  .nav-cta-desktop {
    display: inline-flex;
  }
}

/* ============ SEÇÕES E VÉUS DE TRANSIÇÃO ============ */
.section-block {
  position: relative;
  isolation: isolate;
  padding-block: clamp(44px, 7vw, 84px);
}

.section-veil {
  position: absolute;
  inset: -40px 0 auto 0;
  height: clamp(120px, 20vh, 260px);
  background: linear-gradient(180deg, var(--veil-sky) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.section-veil--alt {
  background: linear-gradient(180deg, var(--veil-light) 0%, transparent 100%);
}

.container-narrow {
  width: min(100% - 32px, var(--container-narrow));
  margin: 0 auto;
  text-align: center;
}

.container-wide {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 auto 14px;
  max-width: 18ch;
}

.section-title em {
  font-style: normal;
  color: var(--brand-500);
}

.section-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
}

/* ============ HERO DE PRESENÇA ============ */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(40px, 7vw, 72px);
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(90%, 560px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 163, 242, 0.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-stack {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--edge-strong);
  box-shadow: 0 20px 50px -16px var(--glow);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 7.2vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 14ch;
}

.hero-h1 .accent {
  color: var(--brand-500);
}

.hero-sub {
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
}

.hero-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-sweep {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.btn-sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}

.btn-sweep:hover::after {
  transform: translateX(120%);
}

.btn-sweep:hover {
  transform: translateY(-2px);
}

.btn-primary {
  width: 100%;
  max-width: 340px;
  background: var(--brand-500);
  color: var(--ink-950);
  box-shadow: 0 18px 40px -14px var(--glow);
}

.btn-secondary {
  width: 100%;
  max-width: 280px;
  background: var(--paper);
  color: var(--ink-950);
  border: 1px solid var(--paper);
}

@media (min-width: 640px) {
  .btn-primary,
  .btn-secondary {
    width: auto;
  }
}

.hero-micro {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

/* ============ ESTEIRA DE PEÇAS (BENDING MARQUEE) ============ */
.marquee-section {
  padding-block: clamp(32px, 5vw, 60px);
  overflow: hidden;
}

.marquee-viewport {
  position: relative;
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  padding-block: 18px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.marquee-viewport:active {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.piece-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(248px, 72vw, 360px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--ink-900);
  box-shadow: inset 0 1px 0 var(--edge), 0 24px 50px -24px rgba(0, 0, 0, 0.85);
  transform-style: preserve-3d;
  will-change: transform;
}

.piece-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  pointer-events: none;
}

.piece-cta-bar {
  padding: 12px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(11, 17, 27, 0.72), var(--ink-950));
}

.piece-cta {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand-500);
  color: var(--ink-950);
  font-size: 13px;
  font-weight: 700;
}

/* ============ AÇÕES PRINCIPAIS ============ */
.actions-grid {
  width: min(100% - 32px, 680px);
  margin: 28px auto 0;
  display: grid;
  gap: 14px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: left;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  background: rgba(46, 163, 242, 0.08);
}

.action-card--featured {
  background: var(--paper);
  color: var(--ink-950);
  border-color: var(--paper);
}

.action-card--featured:hover {
  background: var(--brand-100);
  border-color: var(--brand-300);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(46, 163, 242, 0.14);
  color: var(--brand-300);
}

.action-card--featured .action-icon {
  background: var(--brand-500);
  color: var(--ink-950);
}

.action-body {
  flex: 1;
  min-width: 0;
}

.action-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.action-desc {
  font-size: 13px;
  opacity: 0.78;
  margin-top: 2px;
}

.action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.action-card--featured .action-arrow {
  border-color: rgba(6, 9, 14, 0.18);
}

.action-card:hover .action-arrow {
  transform: translateX(3px) rotate(-45deg);
  background: var(--brand-500);
  color: var(--ink-950);
  border-color: var(--brand-500);
}

/* ============ SCROLL MASK + SCROLL STACK ============ */
.manifesto-mask {
  overflow: hidden;
  padding-block: 8px;
}

.manifesto-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.35rem, 3.8vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto;
  color: var(--paper);
}

.manifesto-quote span {
  color: var(--brand-300);
}

.stack-list {
  width: min(100% - 32px, 680px);
  margin: 32px auto 0;
  display: grid;
  gap: 16px;
}

.stack-card {
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(46, 163, 242, 0.11), rgba(6, 9, 14, 0.92));
  box-shadow: inset 0 1px 0 var(--edge-strong);
  text-align: center;
}

.stack-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.stack-title {
  font-family: var(--ff-display);
  font-size: 20px;
  margin-top: 8px;
  color: var(--paper);
}

.stack-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 8px auto 0;
}

/* ============ FAQ ACORDEÃO ============ */
.faq-list {
  width: min(100% - 32px, 680px);
  margin: 28px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.faq-trigger {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
}

.faq-plus {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-trigger[aria-expanded='true'] .faq-plus {
  transform: rotate(45deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-panel.is-open {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ============ RODAPÉ ============ */
.site-footer {
  padding: 36px 16px 96px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

.footer-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand-300);
}

/* ============ WHATSAPP FLUTUANTE ============ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa-green);
  color: var(--paper);
  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .intro-overlay {
    display: none !important;
  }

  #bg-canvas {
    display: none !important;
  }
}
