/* ═══════════════════════════════════════════════════════
   VELOCY AI — Design System
═══════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

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

/* ── VARIÁVEIS ──────────────────────────────────────── */
:root {
  --clr-bg: #000000;
  --clr-bg-alt: #050505;
  --clr-bg2: #050505;
  --clr-card: #080808;
  --clr-surface: #080808;
  --clr-border: rgba(255, 255, 255, 0.05);
  --clr-primary: #385572;
  --clr-primary-l: #4A7299;
  --clr-accent: #5B8DB8;
  --clr-glow: rgba(56, 85, 114, 0.35);
  --clr-text: #E8EAED;
  --clr-muted: #8B949E;
  --clr-white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --nav-h: 90px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── UTILITÁRIOS ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #7EB8E8 50%, var(--clr-primary-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7EB8E8; /* More vibrant blue matching the gradient */
  margin-bottom: 1.25rem;
  display: block;
}

/* ── BOTÕES ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--clr-glow);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--clr-primary-l);
  color: var(--clr-accent);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

#navbar.scrolled {
  background: rgba(1, 4, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 5px;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(91, 141, 184, 0.35) 0%, transparent 70%);
  filter: blur(15px);
  z-index: -1;
  transform: scaleX(2.5) scaleY(1.5);
  opacity: 0.5;
}

.logo-full-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Footer specific logo sizing */
.footer-logo-wrapper {
  margin-bottom: 0.5rem;
  justify-content: flex-start;
}

.footer-logo-img {
  width: 160px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.footer-logo-wrapper .logo-glow {
  transform: scale(3);
  opacity: 0.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--clr-text);
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--clr-primary-l);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--nav-h) + 4rem) 4rem 6rem;
  max-width: 1300px;
  margin: 0 auto;
  overflow: visible;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 85, 114, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 85, 114, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(56, 85, 114, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-muted);
  background: rgba(56, 85, 114, 0.08);
  margin-bottom: 2rem;
  opacity: 0;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

.hstat {
  text-align: center;
}

.hstat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-white);
}

.hstat span {
  font-size: 0.78rem;
  color: var(--clr-muted);
}

.hstat-divider {
  width: 1px;
  height: 32px;
  background: var(--clr-border);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 600px;
  overflow: visible;
}

.hero-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 1 / 1;
  overflow: visible;
  mask-image: radial-gradient(circle at center, black 15%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 15%, transparent 85%);
}

.hero-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.1);
}

.hero-canvas-overlay {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at center, transparent 35%, var(--clr-bg) 85%);
  pointer-events: none;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(56, 85, 114, 0.3);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(74, 114, 153, 0.2);
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(91, 141, 184, 0.15);
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   LOGOS
═══════════════════════════════════════════════════════ */
.logos-section {
  padding: 3rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.logos-track {
  overflow: hidden;
}

.logos-inner {
  display: flex;
  width: max-content;
  animation: logos-scroll 50s linear infinite;
}

.logo-item {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(139, 148, 158, 0.5);
  white-space: nowrap;
  transition: color 0.3s;
  padding-right: 3rem; /* Replaces gap for perfect -50% loop math */
}

.logo-item:hover {
  color: var(--clr-muted);
}

@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════════════
   PROBLEM
═══════════════════════════════════════════════════════ */
.problem-section {
  padding: 8rem 2rem;
  border-bottom: 1px solid var(--clr-border);
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 85, 114, 0.12), transparent 45%),
    var(--clr-bg);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.problem-header h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.problem-header h2 span {
  display: block;
}

.problem-header p {
  color: var(--clr-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.problem-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.problem-highlight {
  background: linear-gradient(135deg, rgba(56, 85, 114, 0.16), rgba(8, 8, 8, 0.9));
  border: 1px solid rgba(56, 85, 114, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.problem-number,
.problem-highlight strong {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--clr-accent), #7EB8E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-highlight p {
  color: var(--clr-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.problem-card {
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 85, 114, 0.5);
  box-shadow: 0 16px 48px rgba(56, 85, 114, 0.15);
}

.problem-card span {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1rem;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════ */
.features-section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-sticky-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.features-left {
  position: sticky;
  top: calc(var(--nav-h) + 4rem);
}

.feature-visual-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.fv-orb-1 {
  width: 240px;
  height: 240px;
  background: rgba(56, 85, 114, 0.25);
  top: 10%;
  left: 10%;
}

.fv-orb-2 {
  width: 160px;
  height: 160px;
  background: rgba(91, 141, 184, 0.15);
  bottom: 15%;
  right: 15%;
}

.feature-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 95%);
}

.feature-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15) translateY(5%);
  filter: blur(0.5px);
}

.feature-video-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 100px 30px var(--clr-bg);
  background:
    linear-gradient(to right, var(--clr-bg) 0%, transparent 15%, transparent 85%, var(--clr-bg) 100%),
    linear-gradient(to bottom, transparent 60%, var(--clr-bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.features-header {
  margin-bottom: 3rem;
}

.features-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.features-intro {
  margin-top: 1rem;
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 520px;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  margin-bottom: 1rem;
  transition: var(--transition);
  opacity: 0.65;
}

.feature-item.active,
.feature-item:hover {
  opacity: 1;
  background: rgba(56, 85, 114, 0.08);
  border-color: var(--clr-border);
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--clr-white);
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════ */
.stats-section {
  padding: 8rem 2rem;
  background: var(--clr-bg2);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-header {
  text-align: center;
  margin-bottom: 4rem;
}

.stats-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.stats-sub {
  font-size: 1rem;
  color: var(--clr-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--clr-primary-l);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 85, 114, 0.2);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--clr-accent), #7EB8E8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   METHODOLOGY
═══════════════════════════════════════════════════════ */
.methodology-section {
  padding: 8rem 2rem;
  background:
    linear-gradient(180deg, var(--clr-bg), rgba(56, 85, 114, 0.05), var(--clr-bg));
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.methodology-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.methodology-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.methodology-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.methodology-header p {
  color: var(--clr-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
}

.method-card {
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 85, 114, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.method-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 85, 114, 0.5);
  box-shadow: 0 16px 48px rgba(56, 85, 114, 0.15);
}

.method-card:hover::before {
  opacity: 1;
}

.method-card span {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: var(--clr-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 24px var(--clr-glow);
}

.method-card h3,
.method-card p {
  position: relative;
  z-index: 1;
}

.method-card h3 {
  font-size: 1rem;
  color: var(--clr-white);
  margin-bottom: 0.75rem;
}

.method-card p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS (wrapper)
═══════════════════════════════════════════════════════ */
.testimonials-section {
  padding: 8rem 2rem;
  background: var(--clr-bg2);
  border-top: 1px solid var(--clr-border);
}

.testimonials-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}

.testimonials-inner h2 .gradient-text {
  display: inline;
}

/* ═══════════════════════════════════════════════════════
   CASES ACCORDION
═══════════════════════════════════════════════════════ */
.cases-accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.case-card {
  display: flex;
  align-items: stretch;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(56, 85, 114, 0.3);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.case-card:hover {
  border-color: rgba(56, 130, 200, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 130, 200, 0.15), 0 8px 40px rgba(56, 100, 180, 0.12);
}

.case-card.active {
  border-color: rgba(56, 150, 220, 0.65);
  box-shadow: 0 0 0 1px rgba(56, 150, 220, 0.2), 0 12px 48px rgba(56, 120, 200, 0.18);
}

/* Logo panel — left side */
.case-logo-panel {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: transparent;
}

.case-logo {
  max-width: 170px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-card:hover .case-logo,
.case-card.active .case-logo {
  opacity: 1;
  transform: scale(1.05);
}

/* Vertical divider */
.case-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  align-self: stretch;
  margin: 1.5rem 0;
}

/* Content — right side */
.case-body {
  flex: 1;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.case-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.3;
  margin: 0;
}

/* "Ver mais" trigger button */
.case-trigger {
  background: none;
  border: none;
  cursor: pointer;
  color: #5b9ec9;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  width: fit-content;
  transition: color 0.25s ease;
}

.case-trigger:hover {
  color: #8ec4e8;
}

.case-chevron {
  font-size: 1rem;
  transition: transform 0.35s ease;
  display: inline-block;
}

.case-card.active .case-chevron {
  transform: rotate(180deg);
}

/* Expandable content */
.case-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

.case-card.active .case-content {
  max-height: 200px;
  opacity: 1;
}

.case-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 0.6rem 0 0.9rem;
}

.case-content p {
  font-size: 0.92rem;
  color: var(--clr-text);
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════
   CTA
═══════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(56, 85, 114, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: 1rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(139, 148, 158, 0.6);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 4rem 2rem 2rem;
  background: var(--clr-bg2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.65;
  max-width: 260px;
}

.footer-links {
  display: contents;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(139, 148, 158, 0.7);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--clr-text);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(139, 148, 158, 0.5);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE TABLET
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
    height: 400px;
  }

  .hero-canvas-wrapper {
    max-width: 400px;
  }

  .features-sticky-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-left {
    position: relative;
    top: auto;
  }

  .feature-visual-container {
    max-width: 340px;
    margin: 0 auto;
  }

  .problem-grid,
  .methodology-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE MOBILE
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  :root {
    --nav-h: 72px;
  }

  .logo-icon-img {
    width: 48px;
  }

  .logo-full-img {
    height: 40px;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: rgba(1, 4, 7, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 4rem) 1.25rem 4rem;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(1, 4, 7, 0.2), rgba(1, 4, 7, 0.85));
    z-index: 1;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
    width: 100%;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
    display: flex;
    margin: 0;
  }

  .hero-canvas-wrapper {
    max-width: 520px;
    width: 140%;
    opacity: 0.9;
    transform: translateY(10%);
  }

  .hero-canvas {
    transform: scale(1.2);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    width: 100%;
  }

  .hero-subtitle {
    width: 100%;
    max-width: 100%;
  }

  .hero-stats {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    overflow: hidden;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .hstat {
    flex: 1 1 120px;
  }

  .hstat-divider {
    display: none;
  }

  .problem-section,
  .features-section,
  .stats-section,
  .methodology-section,
  .testimonials-section,
  .cta-section {
    padding: 5rem 1.25rem;
  }

  .problem-header {
    text-align: center;
  }

  .problem-highlight-grid,
  .problem-grid,
  .methodology-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    flex-direction: column;
  }

  .case-logo-panel {
    width: 100%;
    padding: 2rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .case-divider {
    display: none;
  }

  .case-body {
    padding: 1.25rem 1.5rem 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo-img {
    width: 120px;
  }

  .footer-logo-wrapper .logo-glow {
    transform: scale(2.5);
  }

  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .logo-glow {
    pointer-events: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions,
  .cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Nossa solução mobile adjustment */
  .features-section {
    position: relative;
    overflow: hidden;
  }

  .features-sticky-wrapper {
    position: relative;
    display: block;
  }

  .features-left {
    position: sticky;
    top: 72px;
    height: 72vh;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.38;
    margin-bottom: -62vh;
  }

  .feature-visual-container {
    width: 100%;
    max-width: 520px;
    height: 72vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .feature-video-wrapper {
    width: 120%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    opacity: 0.9;
  }

  .feature-canvas {
    width: 100%;
    height: 100%;
    transform: scale(1.15);
  }

  .features-right {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
  }

  .feature-item,
  .features-header {
    position: relative;
    z-index: 2;
  }

  .features-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 4, 7, 0.2), rgba(1, 4, 7, 0.75));
    z-index: -1;
    pointer-events: none;
  }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg-grid {
    display: none;
  }
}

/* === FIX: Garante visibilidade inicial para elementos animados por GSAP === */
.stat-card,
.tcard,
.feature-item,
.cta-inner>*,
.footer-brand,
.footer-col,
.section-label,
.problem-card,
.problem-highlight,
.method-card {
  opacity: 1;
}