/* ================================================
   CRYART MULTINET — Cinematographic Dark Tech v2.0
   Preset B: Deep Space Tech | Skill: gemini.md
   ================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --y: #FFC300;
  --y-glow: rgba(255, 195, 0, 0.3);
  --y-soft: rgba(255, 195, 0, 0.08);
  --black: #000000;
  --dark: #080808;
  --card: #0f0f0f;
  --card2: #141414;
  --border: rgba(255, 255, 255, 0.07);
  --border-y: rgba(255, 195, 0, 0.25);
  --white: #ffffff;
  --gray: #888888;
  --gray2: #555555;
  --sans: 'Space Grotesk', sans-serif;
  --serif: 'Playfair Display', serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--y);
}

/* ── NOISE OVERLAY (Skill: Textura e Profundidade) ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── UTILS ── */
.section-mono {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  color: var(--y);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  color: var(--y);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--y);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 24px var(--y-glow);
  will-change: transform;
}

.btn-primary:hover {
  background: #ffd740;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 195, 0, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--y);
  color: var(--y);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
  font-size: 1rem;
}

/* ================================================
   A. NAVBAR — Ilha Flutuante (Skill Spec)
   ================================================ */
.nav-island {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  background: rgba(8, 8, 8, 0.3);
  backdrop-filter: blur(2px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.6rem 0.6rem 0.6rem 1.6rem;
  transition: all 0.5s var(--ease);
  will-change: transform;
  width: min(92vw, 860px);
}

.nav-island.scrolled {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(32px) saturate(220%) brightness(1.08) hue-rotate(2deg);
  -webkit-backdrop-filter: blur(32px) saturate(220%) brightness(1.08) hue-rotate(2deg);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 2px 0 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 40px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Brilho interno (reflexo superior) */
.nav-island::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}

.nav-island.scrolled::before {
  opacity: 1;
}

/* Garante que o conteúdo do nav fique acima do pseudo-elemento */
.nav-island .nav-inner {
  position: relative;
  z-index: 1;
}


/* Texto escuro quando navbar está scrolled (fundo branco) */
.nav-island.scrolled .logo {
  color: #111;
}

.nav-island.scrolled .logo-dot {
  color: #FFC300;
}

.nav-island.scrolled .nav-links a {
  color: #444;
}

.nav-island.scrolled .nav-links a:hover {
  color: #000;
}

/* ── Logo SVG no Navbar ── */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
  /* Logo original tem cores escuras — inverte para branco no fundo escuro */
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}

/* Quando navbar fica branca: logo volta às cores originais */
.nav-island.scrolled .nav-logo {
  filter: none;
}

/* ── Logo no Rodapé ── */
.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  /* Logo colorida no rodapé escuro — mantém amarelo original */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ── Animação Mouse Scroll (linhas brancas SVG) ── */
.hero-mouse-hint {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.hero-mouse-svg {
  width: 26px;
  height: 42px;
  overflow: visible;
}

/* Corpo do mouse — linha do outline */
.mouse-body {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.5;
  rx: 12;
}

/* Rodinha interna que desce */
.mouse-wheel {
  fill: rgba(255, 255, 255, 0.9);
  animation: mouseWheelScroll 1.8s cubic-bezier(0.23, 1, 0.32, 1) infinite;
  will-change: transform, opacity;
}

@keyframes mouseWheelScroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateY(10px);
    opacity: 0.2;
  }

  61% {
    transform: translateY(0);
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Seta / chevrons abaixo do mouse */
.mouse-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mouse-arrow {
  display: block;
  width: 12px;
  height: 7px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  animation: arrowFade 1.8s ease infinite;
  will-change: opacity, transform;
}

.mouse-arrow:nth-child(1) {
  animation-delay: 0s;
  opacity: 0.3;
}

.mouse-arrow:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0.6;
}

.mouse-arrow:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0.9;
}

@keyframes arrowFade {

  0%,
  100% {
    opacity: 0.15;
    transform: rotate(45deg) translateY(0);
  }

  50% {
    opacity: 0.9;
    transform: rotate(45deg) translateY(3px);
  }
}

/* Oculta hint quando prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-mouse-hint {
    display: none;
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-dot {
  color: var(--y);
}

.footer-logo {
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 0;
  margin-left: auto;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--y);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--sans);
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #ffd740;
  transform: scale(1.03);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: var(--ease) 0.3s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8999;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--y);
}

.mobile-cta {
  font-size: 1rem !important;
  background: var(--y);
  color: var(--black) !important;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  margin-top: 1rem;
}

/* ================================================
   B. HERO — O Plano de Abertura (Skill Spec)
   ================================================ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 8, 8, 1) 0%,
      rgba(8, 8, 8, 0.85) 35%,
      rgba(8, 8, 8, 0.4) 70%,
      rgba(8, 8, 8, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 8vw, 6rem) clamp(4rem, 8vh, 6rem);
  max-width: 800px;
}

.hero-mono {
  font-family: var(--mono);
  font-size: clamp(0.55rem, 1.2vw, 0.68rem);
  color: var(--y);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  opacity: 0;
}

.hero-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--y);
  text-shadow: 0 0 60px var(--y-glow);
  display: block;
  font-size: 1.1em;
}

.hero-sub {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--gray);
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
}

.hero-metrics {
  display: flex;
  gap: 3rem;
  opacity: 0;
}

.metric-n {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--y);
  line-height: 1;
}

.metric-l {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gray2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.hero-scroll-line {
  position: absolute;
  bottom: 0;
  right: clamp(2rem, 8vw, 6rem);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--y));
  animation: scrollDown 2.5s var(--ease) infinite;
  z-index: 2;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ── PROBLEM STRIP ── */
.problem-strip {
  overflow: hidden;
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.strip-inner {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.strip-inner span {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.strip-dot {
  color: var(--y) !important;
  font-size: 0.5rem !important;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ================================================
   C. FEATURES — Artefatos Interativos (Skill Spec)
   ================================================ */
.features {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  background: var(--dark);
}

.features-header {
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.feat-card:hover {
  border-color: var(--border-y);
  transform: translateY(-4px);
}

.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: radial-gradient(ellipse at top left, var(--y-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feat-card:hover::before {
  opacity: 1;
}

.feat-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--y);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.feat-footer-mono {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--gray2);
  margin-top: 1.2rem;
}

/* Shuffler */
.shuffler-stack {
  position: relative;
  height: 130px;
}

.shuffle-card {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  will-change: transform, opacity;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sc1 {
  top: 0;
  z-index: 3;
}

.sc2 {
  top: 8px;
  z-index: 2;
  opacity: 0.6;
  transform: scale(0.97);
}

.sc3 {
  top: 16px;
  z-index: 1;
  opacity: 0.3;
  transform: scale(0.94);
}

.sc-icon {
  font-size: 1.4rem;
}

.sc-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}

.sc-sub {
  font-size: 0.72rem;
  color: var(--gray);
  display: block;
  margin-top: 0.2rem;
}

/* Typewriter Terminal */
.typewriter-terminal {
  background: var(--black);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-dot.red {
  background: #ff5f56;
}

.t-dot.yellow {
  background: var(--y);
}

.t-dot.green {
  background: #29c940;
}

.t-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--gray2);
  letter-spacing: 0.1em;
  margin-left: auto;
}

.terminal-body {
  padding: 1.2rem;
  min-height: 100px;
}

.terminal-line {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.typed {
  color: var(--y);
}

.cursor-blink {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--y);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Scheduler */
.sg-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.sg-header span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--gray2);
  text-align: center;
  letter-spacing: 0.1em;
}

.sg-body {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 1rem;
}

.sg-cell {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.3rem;
  font-size: 0.6rem;
  color: var(--gray);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-cell.active {
  background: var(--y-soft);
  border-color: var(--border-y);
  color: var(--y);
  font-weight: 600;
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--y-glow);
}

.sched-btn {
  width: 100%;
  background: var(--y-soft);
  border: 1px solid var(--border-y);
  color: var(--y);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.3s var(--ease);
  min-height: 44px;
}

.sched-btn:hover {
  background: var(--y);
  color: var(--black);
}

/* ================================================
   D. PHILOSOPHY — O Manifesto (Skill Spec)
   ================================================ */
.philosophy {
  position: relative;
  padding: clamp(4rem, 8vh, 7rem) clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
}

.phil-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.phil-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  will-change: transform;
}

.phil-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, rgba(8, 8, 8, 0.9) 100%);
}

/* Layout 2 colunas: carrossel esquerdo + texto direito */
.phil-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.phil-carousel-col {
  position: relative;
}

.phil-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.manifesto-block {
  margin: 2rem 0 3rem;
}

.manifesto-neutral {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.manifesto-common {
  display: block;
  color: var(--gray2);
  font-style: italic;
}

.manifesto-bold {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.manifesto-accent {
  font-family: var(--serif);
  font-style: italic;
  color: var(--y);
  text-shadow: 0 0 40px var(--y-glow);
  display: block;
  font-size: 1.15em;
}

/* ── TEND CAROUSEL (Tendências) ── */
.tend-carousel {
  position: relative;
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.tend-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.tend-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--black);
  overflow: hidden;
}

.tend-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease);
}

.tend-slide img:hover {
  transform: scale(1.02);
}

.tend-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-y);
  color: var(--y);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  z-index: 10;
  backdrop-filter: blur(6px);
  line-height: 1;
}

.tend-arrow:hover {
  background: var(--y);
  color: var(--black);
  border-color: var(--y);
  transform: translateY(-50%) scale(1.1);
}

.tend-prev {
  left: 1rem;
}

.tend-next {
  right: 1rem;
}

.tend-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}

.tend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.tend-dot.active {
  background: var(--y);
  border-color: var(--y);
  box-shadow: 0 0 8px var(--y-glow);
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .phil-inner {
    grid-template-columns: 1fr;
  }

  .phil-carousel-col {
    order: 2;
  }

  .phil-content {
    order: 1;
  }

  .tend-slide {
    aspect-ratio: 4 / 3;
  }

  .tend-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ================================================
   E. PROTOCOL — Sticky Cards (Skill Spec)
   ================================================ */

.protocol-section {
  background: var(--black);
  padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 8vw, 6rem);
}

.protocol-label {
  margin-bottom: 3rem;
}

.protocol-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.protocol-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.protocol-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.protocol-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.protocol-card:hover::after {
  transform: scaleX(1);
}

.protocol-card:hover {
  border-color: var(--border-y);
  transform: translateY(-3px);
}

.pc-content {
  flex: 1;
}

.pc-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--y);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.8rem;
}

.pc-content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.pc-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.pc-visual {
  flex-shrink: 0;
  width: 140px;
}

.pc-svg {
  width: 100%;
}

/* SVG Animations */
.svg-geo #geo1 {
  animation: geoSpin 8s linear infinite;
  transform-origin: 100px 100px;
}

.svg-geo #geo2 {
  animation: geoSpin 12s linear infinite reverse;
  transform-origin: 100px 100px;
}

@keyframes geoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* EKG */
@keyframes ekgDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ── PORTFOLIO ── */
.portfolio {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  background: var(--dark);
}

.port-header {
  margin-bottom: 3rem;
}

.port-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.pf-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  min-height: 44px;
}

.pf-btn.active,
.pf-btn:hover {
  border-color: var(--y);
  color: var(--y);
  box-shadow: 0 0 15px var(--y-glow);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}

.port-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.4s;
}

.port-item.large {
  grid-column: span 2;
}

.port-item:hover {
  border-color: var(--border-y);
}

.port-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.port-item:hover .port-img {
  transform: scale(1.06);
}

.port-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.port-item:hover .port-overlay {
  opacity: 1;
}

.port-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--y);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.port-overlay h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.port-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--y);
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* ── MEMBERSHIP (Skill Spec) ── */
.membership {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  background: var(--black);
}

.membership .section-h2 {
  margin-bottom: 3rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: end;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s var(--ease);
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-y);
}

.plan-featured {
  border-color: var(--border-y);
  background: var(--card2);
  transform: translateY(-12px);
  box-shadow: 0 0 40px var(--y-glow), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.plan-featured:hover {
  transform: translateY(-18px);
}

.plan-badge {
  display: inline-block;
  background: var(--y);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.plan-tier {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.plan-price {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.plan-price span {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.plan-price small {
  font-size: 0.75rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--gray);
}

.btn-ghost-plan {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-y);
  color: var(--y);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-ghost-plan:hover {
  background: var(--y);
  color: var(--black);
}

/* ── CONTACT ── */
.contact {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  background: var(--dark);
}

.contact-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 3rem;
}

.contact-inner {
  max-width: 700px;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border-y);
  border-radius: var(--r);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.f-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.f-group label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gray2);
  text-transform: uppercase;
}

.f-group input,
.f-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.7rem 0;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  width: 100%;
}

.f-group input:focus,
.f-group textarea:focus {
  border-bottom-color: var(--y);
}

.f-group input::placeholder,
.f-group textarea::placeholder {
  color: var(--gray2);
}

.lgpd-text {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gray2);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.form-success {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card);
  border: 1px solid var(--border-y);
  border-radius: var(--r);
}

.success-circle {
  width: 64px;
  height: 64px;
  border: 1px solid var(--y);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--y);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px var(--y-glow);
}

.form-success h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray);
}

/* ── FOOTER (Skill Spec — rounded top, status indicator) ── */
.site-footer {
  background: var(--black);
  border-top-left-radius: clamp(2rem, 4vw, 4rem);
  border-top-right-radius: clamp(2rem, 4vw, 4rem);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0.6rem 0;
}

.footer-cnpj {
  font-family: var(--mono);
  font-size: 0.7rem !important;
  color: var(--gray2) !important;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: all 0.3s var(--ease);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  border-color: var(--y);
  color: var(--y);
  box-shadow: 0 0 12px var(--y-glow);
}

.footer-links h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gray2);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--white);
}

.soon-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  background: var(--y-soft);
  color: var(--y);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  letter-spacing: 0.08em;
}

.footer-status h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gray2);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #29c940;
  border-radius: 50%;
  box-shadow: 0 0 8px #29c940;
  animation: statusPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

.wpp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.wpp-link:hover {
  color: #1db954;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem clamp(1.5rem, 8vw, 6rem);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gray2);
}

.footer-bottom div {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer-bottom a {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gray2);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--y);
}

.footer-bottom span {
  color: var(--gray2);
  font-size: 0.6rem;
}

/* ── WhatsApp Float ── */
.wpp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 8998;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s var(--ease);
  will-change: transform;
}

.wpp-float svg {
  width: 28px;
  height: 28px;
}

.wpp-float:hover {
  background: #1db954;
  transform: scale(1.12);
}

/* ================================================
   RESPONSIVE — Mobile First
   ================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .port-grid {
    grid-template-columns: 1fr 1fr;
  }

  .port-item.large {
    grid-column: span 1;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-featured {
    transform: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-island {
    padding: 0.6rem 0.8rem 0.6rem 1.4rem;
  }

  .protocol-stack {
    grid-template-columns: 1fr;
  }

  .port-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-metrics {
    gap: 1.5rem;
  }

  .pc-visual {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   HERO SCROLL VIDEO — Componente de Scroll Scrubbing
   ================================================ */

/* Sticky wrapper — criado dinamicamente pelo JS */
#hero-scroll-wrapper {
  position: relative;
  background: #000;
  /* height é definida pelo JS via SCRUB_HEIGHT_FACTOR */
}

/* Container sticky 100vh */
#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Canvas — cobre tudo, z-index base */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  will-change: contents;
}

/* Fallback img (no-canvas / a11y) */
#hero-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: none;
}

/* Conteúdo sobreposto (texto + CTAs) */
#hero-sv-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.5rem, 8vw, 6rem) clamp(4rem, 8vh, 5.5rem);
  max-width: 860px;
  /* Fade-in após o primeiro frame carregar */
  animation: hsvFadeIn 1s var(--ease) 0.5s both;
}

@keyframes hsvFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Label mono */
.hsv-label {
  font-family: var(--mono);
  font-size: clamp(0.55rem, 1.2vw, 0.68rem);
  color: var(--y);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* Headline principal */
.hsv-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--white);
}

/* Parte sérifada/itálica da headline */
.hsv-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--y);
  text-shadow: 0 0 50px rgba(255, 195, 0, 0.4);
  display: block;
}

/* Subheadline */
.hsv-sub {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.2rem;
  line-height: 1.65;
  max-width: 520px;
}

/* Botões */
.hsv-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hsv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--y);
  color: var(--black);
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.9rem 2.2rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 0 28px rgba(255, 195, 0, 0.35);
  min-height: 48px;
  will-change: transform;
}

.hsv-btn-primary:hover {
  background: #ffd740;
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(255, 195, 0, 0.55);
}

.hsv-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.3vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  min-height: 48px;
}

.hsv-btn-ghost:hover {
  border-color: var(--y);
  color: var(--y);
  background: rgba(255, 195, 0, 0.06);
}

/* Scroll hint */
.hsv-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hsv-scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--y), transparent);
  animation: scrollHintAnim 2s var(--ease) infinite;
  will-change: transform, opacity;
}

@keyframes scrollHintAnim {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 1;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

.hsv-scroll-hint small {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Responsivo Mobile ── */
@media (max-width: 768px) {
  #hero-sv-content {
    padding: 0 1.5rem clamp(3rem, 8vh, 4rem);
  }

  .hsv-btns {
    flex-direction: column;
  }

  .hsv-btn-primary,
  .hsv-btn-ghost {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hsv-headline {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
}

/* ── prefers-reduced-motion: desativa animações do hero ── */
@media (prefers-reduced-motion: reduce) {
  #hero-sv-content {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hsv-scroll-hint span {
    animation: none;
    opacity: 0.5;
    transform: scaleY(1);
  }
}

/* ================================================
   GALERIA IA — Grid 4 Colunas (object-fit cover)
   ================================================ */
.ia-gallery {
  background: var(--black);
  padding: clamp(5rem, 10vh, 8rem) 0 0;
}

.ia-gallery-header {
  padding: 0 clamp(1.5rem, 8vw, 6rem);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
  max-width: 700px;
}

.ia-gallery-lead {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--gray);
  margin-top: 1.2rem;
  line-height: 1.7;
}

/* Grid principal — 4 colunas, sem gaps entre imagens */
.ia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* Sem gap — borda zero entre imagens para efeito galeria imersiva */
  gap: 0;
  width: 100%;
}

/* Cada item ocupa proporção quadrada */
.ia-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  background: #0a0a0a;
  cursor: pointer;
}

/* Imagem com cover — preenche o item sem distorção */
.ia-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

/* Hover: zoom suave */
.ia-item:hover img {
  transform: scale(1.06);
}

/* Overlay com legenda — aparece no hover */
.ia-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  padding: 1.5rem 1rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.ia-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Borda amarela sutil no hover */
.ia-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.ia-item:hover::after {
  border-color: rgba(255, 195, 0, 0.3);
}

/* Responsivo */
@media (max-width: 1024px) {
  .ia-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .ia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .ia-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   FERRAMENTAS IA — Arsenal Criativo
   ================================================ */
.ia-tools {
  background: var(--dark);
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
}

.ia-tools-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.ia-tools-text {
  position: sticky;
  top: 120px;
}

.ia-tools-lead {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--gray);
  line-height: 1.75;
  margin-top: 1.2rem;
}

.ia-tools-lead strong {
  color: var(--white);
  font-weight: 600;
}

/* Grid de cards das ferramentas */
.ia-tools-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.iat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.iat-card:hover {
  border-color: var(--border-y);
  transform: translateY(-3px);
}

.iat-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  filter: grayscale(0.2);
}

.iat-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.iat-card p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
}

/* Responsivo ferramentas */
@media (max-width: 1024px) {
  .ia-tools-inner {
    grid-template-columns: 1fr;
  }

  .ia-tools-text {
    position: static;
  }
}

@media (max-width: 600px) {
  .ia-tools-cards {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   FULLSCREEN STACK CARDS — FullscreenStackCards v2
   Skill: gemini.md | Preset B Deep Space Tech
   ================================================================ */

.fsc-wrapper,
#stack-cards-section {
  position: relative;
  width: 100%;
  /* Altura definida pelo JS (CARD_COUNT x 100vh) */
}

/* Container sticky — viewport fixo */
.fsc-sticky,
#fscSticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Base de cada card — fullscreen absoluto */
.fsc-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  will-change: transform;
  /* Box-shadow cria separação visual entre cards */
  box-shadow: 0 -4px 60px rgba(0, 0, 0, 0.8);
}

/* Card 1 — vermelho-acinzentado (caos) */
#fscCard1 {
  background: #07070a;
  border-top: 2px solid rgba(255, 195, 0, 0.12);
}

/* Card 2 — fundo levemente azulado (estrutura) */
#fscCard2 {
  background: #06080e;
  border-top: 2px solid rgba(255, 195, 0, 0.2);
}

/* Card 3 — fundo neutro (ativação) */
#fscCard3 {
  background: #080b08;
  border-top: 2px solid rgba(255, 195, 0, 0.35);
}

/* Card 4 — fundo mais quente (resultado) — destaque */
#fscCard4 {
  background: #0a0800;
  border-top: 2px solid rgba(255, 195, 0, 0.6);
}

/* Barra lateral amarela esquerda — identifica cada card */
.fsc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, #FFC300, transparent);
  opacity: 0.4;
}

#fscCard3::before {
  opacity: 0.65;
}

#fscCard4::before {
  opacity: 1;
  width: 4px;
}


/* ── Área visual (SVG decorativo) ── */
.fsc-visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.fsc-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  overflow: visible;
}

/* ── Conteúdo textual ── */
.fsc-content {
  grid-column: 1;
  grid-row: 1;
  padding: 0 clamp(2rem, 6vw, 6rem) 0 clamp(2rem, 8vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

/* Tag mono no topo do card */
.fsc-tag {
  font-family: var(--mono);
  font-size: clamp(0.55rem, 1.1vw, 0.68rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--y);
  margin: 0;
  /* Linha decorativa antes do texto */
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.fsc-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--y);
  opacity: 0.7;
}

/* Título principal com parte itálica amarela */
.fsc-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 0;
}

/* Parte em itálico/serifada com acento amarelo */
.fsc-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--y);
  text-shadow: 0 0 40px rgba(255, 195, 0, 0.25);
  display: block;
}

/* Subtítulo */
.fsc-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
}

/* Bullets — lista minimalista com tracinho amarelo */
.fsc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fsc-bullets li {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.4;
}

.fsc-bullets li::before {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  background: var(--y);
  opacity: 0.6;
  flex-shrink: 0;
}

/* CTA — exclusivo do card 4 */
.fsc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--y);
  color: #000;
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 1rem 2.4rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 32px rgba(255, 195, 0, 0.3);
  min-height: 52px;
  will-change: transform;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.fsc-cta:hover {
  background: #ffd740;
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(255, 195, 0, 0.5);
}

/* ── Indicador de progresso (canto superior direito) ── */
.fsc-progress {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 3vw, 2.5rem);
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  /* Oculto por padrão, ativado pelo JS quando dentro da seção */
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* JS adiciona .fsc-progress--visible quando dentro da seção */
.fsc-progress.visible,
.fsc-progress--visible {
  opacity: 1;
}

.fsc-prog-cur {
  font-size: 1rem;
  font-weight: 700;
  color: var(--y);
}

.fsc-prog-sep {
  opacity: 0.4;
}

/* ── Responsivo Mobile ── */
@media (max-width: 768px) {

  /* Empilha visual por cima, conteúdo por baixo */
  .fsc-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }

  .fsc-visual {
    grid-column: 1;
    grid-row: 1;
    height: 35vh;
    padding: 1.5rem;
  }

  .fsc-content {
    grid-column: 1;
    grid-row: 2;
    padding: 1.5rem 1.5rem 3rem;
    gap: 0.8rem;
  }

  .fsc-cta {
    width: 100%;
  }

  .fsc-progress {
    top: auto;
    right: auto;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.3rem;
  }
}

/* ── prefers-reduced-motion: exibe empilhado estático ── */
@media (prefers-reduced-motion: reduce) {
  .fsc-wrapper {
    height: auto !important;
  }

  .fsc-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  .fsc-card {
    position: relative;
    height: auto;
    min-height: 100vh;
    transform: none !important;
    opacity: 1 !important;
  }

  .fsc-progress {
    display: none;
  }
}

/* ================================================
   GALERIA IA — Portfólio Visual
   ================================================ */
.ia-gallery {
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  background: var(--black);
}

.ia-gallery-header {
  max-width: 700px;
  margin-bottom: 3rem;
}

.ia-gallery-lead {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--gray);
  line-height: 1.7;
  margin-top: 1rem;
}

/* ── BENTO GRID ── */
.ia-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 12px;
}

/* Célula base */
.ia-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--card);
}

.ia-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--ease);
}

.ia-item:hover img {
  transform: scale(1.06);
}

/* Caption overlay */
.ia-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.ia-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Borda amarela no hover */
.ia-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1.5px solid transparent;
  transition: border-color 0.4s var(--ease);
  pointer-events: none;
}

.ia-item:hover::after {
  border-color: var(--border-y);
}

/* Variantes de tamanho bento */
.bento--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.bento--wide {
  grid-column: span 2;
  grid-row: span 1;
}

.bento--tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* Responsivo */
@media (max-width: 1024px) {
  .ia-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
  }
}

@media (max-width: 700px) {
  .ia-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .bento--lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento--tall {
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .ia-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .bento--lg,
  .bento--wide,
  .bento--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}