/* ===== Apple-inspired design tokens ===== */
:root {
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-light: #2997ff;
  --apple-text: #1d1d1f;
  --apple-text-secondary: #6e6e73;
  --apple-text-tertiary: #86868b;
  --apple-bg: #ffffff;
  --apple-bg-secondary: #f5f5f7;
  --apple-bg-tertiary: #fbfbfd;
  --apple-border: rgba(0, 0, 0, 0.08);
  --apple-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --apple-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.1);
  --apple-radius: 18px;
  --apple-radius-lg: 24px;
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --apple-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--apple-font);
  background: #080c14;
  color: var(--apple-text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

/* ===== Dark sections + circuit background ===== */
.site-dark {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(0, 100, 220, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 85% 55%, rgba(0, 80, 180, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(0, 60, 160, 0.08) 0%, transparent 48%),
    radial-gradient(ellipse 70% 50% at 50% 105%, rgba(0, 90, 200, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0c1220 0%, #070a12 45%, #090d16 100%);
  overflow: hidden;
}

.site-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.site-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 0;
}

.site-dark > :not(.circuit-bg) {
  position: relative;
  z-index: 1;
}

.circuit-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: layout paint style;
}

.circuit-svg {
  width: 100%;
  height: 100%;
  min-height: 100%;
  opacity: 0.65;
}

.circuit-tracks {
  opacity: 0.85;
}

.circuit-pulse {
  stroke: rgba(100, 200, 255, 0.45);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 136, 255, 0.35));
  stroke-dasharray: 60 1380;
  animation: circuit-flow 7s linear infinite;
}

.circuit-pulse--2 {
  stroke-dasharray: 40 1400;
  animation-duration: 9s;
  animation-delay: -2s;
  stroke: rgba(0, 136, 255, 0.45);
}

.circuit-pulse--3 {
  stroke-dasharray: 50 1390;
  animation-duration: 11s;
  animation-delay: -4s;
}

.circuit-pulse--4 {
  stroke-dasharray: 35 900;
  animation-duration: 8s;
  animation-delay: -1s;
  stroke: rgba(51, 187, 255, 0.5);
}

.circuit-pulse--5 {
  stroke-dasharray: 55 1375;
  animation-duration: 10s;
  animation-delay: -5s;
}

.circuit-pulse--6 {
  stroke-dasharray: 30 920;
  animation-duration: 7.5s;
  animation-delay: -3s;
}

@keyframes circuit-flow {
  from { stroke-dashoffset: 1440; }
  to { stroke-dashoffset: 0; }
}

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

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== Navbar (frosted glass) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.4s var(--apple-ease), border-color 0.4s var(--apple-ease);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-azul {
  color: var(--apple-blue-light);
}

.nav-logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.4s var(--apple-ease);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0.88;
  letter-spacing: -0.01em;
  transition: opacity 0.3s var(--apple-ease), color 0.4s var(--apple-ease);
}

.nav-links a:hover {
  opacity: 1;
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s var(--apple-ease), background 0.4s var(--apple-ease);
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(2px, 3px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2px, -3px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 48px) 22px 80px;
  overflow: hidden;
  background: #000;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video--full-hd {
  filter: contrast(1.04) saturate(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0, 113, 227, 0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.007em;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 0.007em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-bottom: 28px;
}

.hero .btn-link {
  color: var(--apple-blue-light);
}

.hero .btn-link:hover {
  color: #fff;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  border-radius: 980px;
  transition: background-color 0.3s var(--apple-ease), color 0.3s var(--apple-ease);
}

.btn-primary {
  padding: 12px 22px;
  background: var(--apple-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
}

.btn-large {
  padding: 14px 28px;
  font-size: 19px;
}

.btn-link {
  color: var(--apple-blue);
  font-size: 17px;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ===== Sections ===== */
.linhas-block {
  background: transparent;
}

.solucoes {
  padding: 100px 0 32px;
  background: transparent;
}

.site-dark .section-title {
  color: #fff;
}

.site-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: 1.08349;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.011em;
  text-align: center;
  margin-bottom: 48px;
}

/* ===== Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  text-align: left;
  color: #fff;
  border-radius: var(--apple-radius-lg);
  transition: transform 0.4s var(--apple-ease-out), box-shadow 0.4s var(--apple-ease);
}

.card-inner {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 136, 255, 0.12);
  border-radius: var(--apple-radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  height: 100%;
  transition: box-shadow 0.4s var(--apple-ease), transform 0.4s var(--apple-ease-out), border-color 0.4s var(--apple-ease);
}

.card:hover .card-inner {
  box-shadow: 0 8px 40px rgba(0, 136, 255, 0.15);
  transform: scale(1.02);
  border-color: rgba(0, 136, 255, 0.3);
}

.card.active .card-inner {
  box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.5), 0 8px 40px rgba(0, 136, 255, 0.2);
  transform: scale(1.02);
  border-color: rgba(0, 136, 255, 0.45);
}

.card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-blue-light);
  margin-bottom: 8px;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
  line-height: 1.16667;
  margin-bottom: 8px;
  color: #fff;
}

.card-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.42859;
  margin-bottom: 20px;
}

.card-more {
  font-size: 14px;
  color: var(--apple-blue-light);
}

.linhas-block.is-expanded .card:not(.active) {
  opacity: 0.5;
}

.linhas-block.is-expanded .card:not(.active) .card-inner {
  transform: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ===== Detail shell ===== */
.linhas-detalhe {
  padding: 0;
  transition: padding 0.4s var(--apple-ease);
}

.linhas-block.is-expanded .linhas-detalhe {
  padding: 0 0 100px;
}

.detalhe-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template: 1fr / 1fr;
  border-radius: var(--apple-radius-lg);
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    background 0.4s var(--apple-ease),
    border-color 0.5s var(--apple-ease),
    box-shadow 0.5s var(--apple-ease);
}

.detalhe-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 136, 255, 0.07) 0%, transparent 45%, rgba(0, 80, 180, 0.04) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--apple-ease);
}

.linhas-block.is-expanded .detalhe-shell {
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-color: rgba(0, 136, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(0, 136, 255, 0.12),
    0 16px 50px rgba(0, 136, 255, 0.1);
}

.linhas-block.is-expanded .detalhe-shell::before {
  opacity: 1;
}

/* ===== Expand panel ===== */
.detalhe-expand {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--apple-ease), visibility 0.4s;
  position: relative;
  z-index: 1;
}

.detalhe-expand:not(.is-visible) {
  height: 0;
  overflow: hidden;
}

.detalhe-expand.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.expand-bridge {
  position: absolute;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.9), transparent);
  box-shadow: 0 0 12px rgba(0, 136, 255, 0.5);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center top;
  transition:
    left 0.5s var(--apple-ease-out),
    width 0.5s var(--apple-ease-out),
    transform 0.4s var(--apple-ease-out);
  z-index: 2;
}

.detalhe-expand.is-visible .expand-bridge {
  transform: scaleX(1);
}

.expand-panel {
  padding: 44px 40px 48px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--apple-ease-out), opacity 0.4s var(--apple-ease);
}

.detalhe-expand.is-visible .expand-panel {
  transform: translateY(0);
  opacity: 1;
}

.expand-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s var(--apple-ease), background 0.2s var(--apple-ease), border-color 0.2s var(--apple-ease);
}

.expand-close:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.expand-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(100, 200, 255, 0.65);
  margin-bottom: 20px;
}

.expand-content {
  display: none;
}

.expand-content.visible {
  display: block;
  animation: apple-fade-in 0.6s var(--apple-ease-out) both;
}

@keyframes apple-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expand-header {
  margin-bottom: 28px;
  padding-right: 80px;
}

.expand-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(100, 200, 255, 0.9);
  background: rgba(0, 136, 255, 0.12);
  border: 1px solid rgba(0, 136, 255, 0.22);
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 12px;
}

.expand-header h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.93);
}

.expand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.expand-block {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--apple-radius);
  transition: border-color 0.3s var(--apple-ease), background 0.3s var(--apple-ease);
}

.expand-block:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(0, 136, 255, 0.2);
}

.expand-block h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(100, 200, 255, 0.75);
  margin-bottom: 10px;
}

.expand-block p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
}

.expand-block--risk {
  background: rgba(255, 70, 70, 0.05);
  border-color: rgba(255, 80, 80, 0.12);
}

.expand-block--risk:hover {
  background: rgba(255, 70, 70, 0.08);
  border-color: rgba(255, 80, 80, 0.22);
}

.expand-block--risk h3 {
  color: rgba(255, 130, 130, 0.85);
}

.expand-block--risk li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.52);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.42859;
}

.expand-block--risk li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: rgba(255, 120, 120, 0.7);
  font-weight: 700;
}

/* ===== Contact ===== */
.contato {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.contato-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contato-mist {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: contato-mist-drift 18s ease-in-out infinite;
}

.contato-mist--1 {
  width: 55%;
  height: 70%;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(30, 30, 35, 0.9) 0%, transparent 70%);
  animation-duration: 22s;
}

.contato-mist--2 {
  width: 45%;
  height: 60%;
  bottom: -25%;
  right: -5%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
  animation-duration: 16s;
  animation-delay: -4s;
}

.contato-glow {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.35) 0%, rgba(0, 113, 227, 0.08) 40%, transparent 70%);
  filter: blur(20px);
  animation: contato-glow-pulse 6s ease-in-out infinite;
}

.contato-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(220px, 38vw);
  height: min(220px, 38vw);
  transform: translate(-50%, -50%);
  border-radius: 28%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 24px 80px rgba(0, 0, 0, 0.5);
  animation: contato-glass-breathe 8s ease-in-out infinite;
  overflow: visible;
}

.contato-electric {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.contato-electric-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.contato-electric-ray {
  fill: none;
  stroke: url(#electricRay);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: url(#electricGlow);
  stroke-dasharray: 56 712;
  animation: contato-electric-run 2.6s linear infinite;
}

.contato-electric-spark {
  fill: none;
  stroke: rgba(200, 240, 255, 0.95);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: url(#electricGlow);
  stroke-dasharray: 10 758;
  animation: contato-electric-run 2.6s linear infinite;
  animation-delay: -0.08s;
}

@keyframes contato-electric-run {
  from { stroke-dashoffset: 768; }
  to { stroke-dashoffset: 0; }
}

.contato-glass::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.5) 0%, transparent 40%, transparent 60%, rgba(0, 113, 227, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: contato-edge-glow 8s ease-in-out infinite;
}

.contato-brackets {
  position: absolute;
  inset: 18%;
  width: 64%;
  height: 64%;
  margin: auto;
  color: rgba(255, 255, 255, 0.22);
  animation: contato-brackets-pulse 8s ease-in-out infinite;
}

.bracket--tl {
  transform-origin: 35px 35px;
  animation: contato-bracket-tl 8s ease-in-out infinite;
}

.bracket--br {
  transform-origin: 85px 85px;
  animation: contato-bracket-br 8s ease-in-out infinite;
}

.contato-content {
  position: relative;
  z-index: 1;
}

.contato .section-title {
  color: #fff;
}

.contato .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}

@keyframes contato-mist-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(4%, 3%) scale(1.08); opacity: 0.5; }
}

@keyframes contato-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes contato-glass-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes contato-edge-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes contato-brackets-pulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.32; }
}

@keyframes contato-bracket-tl {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -2px); }
}

@keyframes contato-bracket-br {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .circuit-pulse {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.3;
  }

  .contato-mist,
  .contato-glow,
  .contato-glass,
  .contato-glass::before,
  .contato-brackets,
  .contato-electric-ray,
  .contato-electric-spark,
  .bracket--tl,
  .bracket--br {
    animation: none;
  }
}

/* ===== Scroll entrance animation ===== */
/* Estado inicial: definido via CSS para evitar flash (FOUC/CLS).
   A classe .js-enhance é adicionada no <html> por um script inline no <head>,
   garantindo que os elementos já nascem ocultos antes do primeiro paint. */
.js-enhance .scroll-animate {
  opacity: 0;
  transform: translateY(24px);
}

.scroll-animate.is-visible {
  animation: scroll-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scroll-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-animate.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 20px 0 28px;
  border-top: 1px solid rgba(0, 136, 255, 0.12);
  background: transparent;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-alt {
  font-size: 12px;
  color: var(--apple-blue-light);
}

.footer-alt:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards-grid,
  .expand-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .expand-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .detalhe-shell {
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    backdrop-filter: blur(12px) saturate(130%);
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 999;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(8, 12, 20, 0.96);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 22px 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s var(--apple-ease-out),
      opacity 0.3s var(--apple-ease),
      visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 14px 12px;
    font-size: 17px;
    text-align: center;
    border-radius: 12px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s var(--apple-ease), background-color 0.2s var(--apple-ease);
  }

  .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 4px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -4px);
  }
}
