/* ==========================================================================
   AvoryTech — Site institucional
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --ice: #dce8f8;
  --blue: #005DFF;
  --cyan: #00B8FF;
  --navy: #061B3A;
  --text: #0B1220;
  --text-muted: #5D6B82;
  --border: rgba(11, 18, 32, 0.08);
  --shadow: 0 24px 80px rgba(6, 27, 58, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-lg: 32px;
  --header-h: 72px;
  --container: 1200px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--ice);
}

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
}

.btn-primary:hover {
  background: #004ee0;
  box-shadow: none;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(0, 93, 255, 0.35);
  color: var(--blue);
  background: rgba(0, 93, 255, 0.04);
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 1px solid rgba(0, 93, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(0, 93, 255, 0.06);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: color-mix(in srgb, var(--ice) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 93, 255, 0.1);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ice) 98%, #c8d8f0);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 93, 255, 0.14);
  box-shadow: 0 8px 32px rgba(6, 27, 58, 0.04);
}

/* Sobre fundo azul claro (section-alt, footer): navbar branco para contraste */
.site-header.on-surface-ice,
.site-header.on-surface-ice.is-scrolled {
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06);
}

.site-header.on-surface-ice.is-scrolled {
  box-shadow: 0 8px 32px rgba(6, 27, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-desktop .nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--blue);
}

.nav-desktop a.is-active {
  color: var(--blue);
}

.btn-header {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--ice);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-list a:not(.btn) {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-mobile-list a:not(.btn):hover {
  background: var(--ice);
  color: var(--blue);
}

.nav-mobile-list .btn {
  margin-top: 12px;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 96px) 0 112px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 340px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

/* Logo hero — aparece rápido, pausa, reinicia */
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-wrap {
  width: min(340px, 100%);
}

.hero-logo-stage {
  position: relative;
  aspect-ratio: 1;
  overflow: visible;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  animation: hero-logo-appear 16s ease-in-out infinite;
}

/* ~1s logo | “Avory” em seguida | ~9s parado | some */
@keyframes hero-logo-appear {
  0% {
    opacity: 0;
    transform: scale(0.94);
    filter: saturate(0.5) brightness(1.05);
  }
  10% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
  70% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
  88%, 100% {
    opacity: 0;
    transform: scale(0.96);
    filter: saturate(0.5) brightness(1.05);
  }
}

.hero-logo-word {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 2;
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  white-space: nowrap;
  animation: hero-logo-word 16s ease-in-out infinite;
}

@keyframes hero-logo-word {
  0%, 12% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  16%, 68% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  86%, 100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes hero-logo-appear-mobile {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-logo-word-mobile {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-label {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 28px;
  margin-bottom: 44px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero .btn-primary.btn-lg {
  padding: 15px 30px;
}

.hero .btn-ghost.btn-lg {
  border-color: rgba(11, 18, 32, 0.12);
  color: var(--text);
}

.hero .btn-ghost.btn-lg:hover {
  background: var(--ice);
  border-color: rgba(11, 18, 32, 0.18);
  color: var(--text);
}

/* Service cards */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    transform 0.45s var(--ease);
}

@media (hover: hover) {
  .service-card:hover,
  .service-card:focus-within {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 20px 48px rgba(0, 93, 255, 0.22);
    transform: translateY(-3px);
  }

  .service-card:hover .card-icon,
  .service-card:focus-within .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
  }

  .service-card:hover h3,
  .service-card:hover p,
  .service-card:focus-within h3,
  .service-card:focus-within p {
    color: var(--white);
  }

  .service-card:hover p,
  .service-card:focus-within p {
    opacity: 0.9;
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 93, 255, 0.08) 0%, rgba(0, 184, 255, 0.08) 100%);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--blue);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.45s var(--ease);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  transition: color 0.45s var(--ease), opacity 0.45s var(--ease);
}

/* Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(6, 27, 58, 0.04);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: 0 16px 48px rgba(6, 27, 58, 0.07);
}

.product-card-finance,
.product-card-travel,
.product-card-speechwords {
  border-width: 2px;
}

.product-card-finance {
  border-color: #8b5cf6;
}

.product-card-finance:hover {
  border-color: #7c3aed;
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.14);
}

.product-card-travel {
  border-color: #f97316;
}

.product-card-travel:hover {
  border-color: #ea580c;
  box-shadow: 0 16px 48px rgba(249, 115, 22, 0.14);
}

.product-card-speechwords {
  border-color: #a855f7;
}

.product-card-speechwords:hover {
  border-color: #9333ea;
  box-shadow: 0 16px 48px rgba(168, 85, 247, 0.14);
}

.product-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 84px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.product-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 6px;
}

.product-category {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.product-footer {
  margin-top: 28px;
  padding-top: 0;
  flex-shrink: 0;
}

.product-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.9375rem;
  border-radius: 14px;
}

/* SpeachWords — legenda com destaque em gradiente */
.product-card-speechwords {
  position: relative;
  overflow: hidden;
}

.product-card-speechwords::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -25%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.product-card-speechwords::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.product-speech-tagline {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin: 0;
}

.product-speech-tagline .sw-line {
  display: block;
}

.product-speech-tagline .sw-dark {
  color: #1a1a2e;
}

.product-speech-tagline .sw-grad {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-speech-tagline .sw-grad-a {
  background-image: linear-gradient(90deg, #7c3aed 0%, #a855f7 45%, #ec4899 100%);
}

.product-speech-tagline .sw-grad-b {
  background-image: linear-gradient(90deg, #ec4899 0%, #c026d3 50%, #7c3aed 100%);
}

/* Engenharia — carrossel no scroll (desktop) */
.engineering-pin.section {
  padding-top: 100px;
  padding-bottom: 0;
}

.engineering-pin-inner {
  position: sticky;
  top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.engineering-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.engineering-header {
  margin-bottom: 0;
}

.engineering-carousel {
  position: relative;
  min-width: 0;
}

.engineering-viewport {
  position: relative;
  box-sizing: content-box;
  height: var(--eng-slide-h, 200px);
  padding: 24px 12px;
  overflow: hidden;
}

.engineering-track {
  will-change: transform;
}

.timeline-item {
  position: relative;
  height: var(--eng-slide-h, 200px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.timeline-card {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(6, 27, 58, 0.04);
  transition:
    border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    transform 0.45s var(--ease),
    opacity 0.45s var(--ease);
  opacity: 0.45;
  transform: scale(0.98);
}

.timeline-item.is-active .timeline-card {
  opacity: 1;
  transform: scale(1);
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(0, 93, 255, 0.12);
}

.timeline-item.is-passed .timeline-card {
  opacity: 0.35;
  transform: scale(0.96);
}

.timeline-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .engineering-pin {
    height: auto !important;
  }

  .engineering-pin.section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .engineering-pin-inner {
    position: static;
    min-height: 0;
    padding: 0;
  }

  .engineering-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }

  .engineering-viewport {
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .engineering-track {
    transform: none !important;
  }

  .timeline-item {
    height: auto;
    padding-bottom: 16px;
  }

  .timeline-item:last-child {
    padding-bottom: 0;
  }

  .timeline-card {
    opacity: 1;
    transform: none;
  }

  .timeline-item.is-passed .timeline-card {
    opacity: 0.65;
  }
}

/* Process */
#processo {
  padding-top: 80px;
  padding-bottom: 96px;
}

#processo .section-header {
  margin-bottom: 40px;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-step {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    background 0.55s var(--ease),
    border-color 0.55s var(--ease),
    box-shadow 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.process-step:not(.is-active):hover {
  transform: translateY(-3px);
  border-color: rgba(0, 93, 255, 0.18);
}

.process-step.is-active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 20px 48px rgba(0, 93, 255, 0.22);
  transform: translateY(-2px);
}

.process-num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  transition: color 0.45s var(--ease);
}

.process-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.45s var(--ease);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.45s var(--ease);
}

.process-step.is-active .process-num,
.process-step.is-active h3,
.process-step.is-active p {
  color: var(--white);
}

.process-step.is-active .process-num {
  opacity: 0.92;
}

.process-step.is-active p {
  opacity: 0.88;
}

/* Stack — faixas em movimento */
.stack-marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
  padding: 8px 0;
}

.stack-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.stack-track-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  width: max-content;
  animation: stack-marquee 50s linear infinite;
}

.stack-track-reverse .stack-track-inner {
  animation-direction: reverse;
}

.stack-track-slow {
  animation-duration: 62s;
}

.stack-track-inner span {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes stack-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CTA */
.cta-section {
  padding-bottom: 120px;
}

.cta-box {
  text-align: center;
  padding: 72px 48px;
  background: linear-gradient(145deg, var(--navy) 0%, #0a2848 50%, #0d3a6b 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 93, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title,
.cta-subtitle,
.cta-actions {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--ice);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--blue);
}

/* Voltar ao topo */
.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 93, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #004ee0;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Páginas internas */
.page-main {
  padding-top: var(--header-h);
}

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.page-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
}

.page-content {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose a {
  color: var(--blue);
  font-weight: 500;
}

.prose a:hover {
  text-decoration: underline;
}

.prose em {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.page-cta-inline {
  max-width: 560px;
  padding: 40px 0;
}

.page-cta-inline h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-cta-inline p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(6, 27, 58, 0.04);
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.contact-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.contact-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.contact-link {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue);
}

.contact-link:hover {
  color: #004ee0;
}

.contact-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.contact-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.5;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }

/* Responsive */
@media (max-width: 1200px) {
  .nav-desktop,
  .btn-header {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-mark {
    display: none !important;
  }

  .hero-content {
    max-width: none;
  }

  .hero {
    padding-bottom: 72px;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 28px 0 32px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
  }

  .footer-legal a {
    display: block;
    padding: 10px 0;
    min-height: 44px;
    line-height: 1.4;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section {
    padding: 72px 0;
  }

  #processo {
    padding-top: 56px;
  }

  .hero {
    padding: calc(var(--header-h) + 56px) 0 80px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1.0625rem;
    margin-top: 20px;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .process-track {
    grid-template-columns: 1fr;
  }

  #processo {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-tagline {
    max-width: none;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px 0 max(28px, env(safe-area-inset-bottom));
  }

  .footer-bottom p {
    font-size: 0.8125rem;
    line-height: 1.55;
  }

  .footer-legal a {
    font-size: 0.9375rem;
  }

}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 500;
  color: var(--blue);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* Mobile: menos trabalho de composição e animação contínua */
@media (max-width: 900px) {
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ice);
  }

  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--ice) 98%, #c8d8f0);
  }

  .site-header.on-surface-ice,
  .site-header.on-surface-ice.is-scrolled {
    background: var(--white);
  }

  .nav-mobile {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }

  .stack-track-inner {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stack-track-inner {
    animation: none;
  }

  .process-step.is-active,
  .process-step.is-active .process-num,
  .process-step.is-active h3,
  .process-step.is-active p {
    transition: none;
  }

  .engineering-pin {
    height: auto !important;
  }

  .engineering-pin-inner {
    position: static;
    min-height: 0;
  }

  .engineering-track {
    transform: none !important;
  }

  .timeline-card {
    transition: none;
  }

  .hero-logo-img,
  .hero-logo-word {
    animation: none !important;
  }

  .hero-logo-img {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-logo-word {
    opacity: 1;
    transform: translateX(-50%);
  }
}
