:root {
  /* Backgrounds */
  --bg-primary: #0A1628;
  --bg-secondary: #0F1D32;
  --bg-light: #F4F8FC;
  --bg-card: rgba(15, 29, 50, 0.6);
  --bg-nav: rgba(10, 22, 40, 0.85);

  /* Accent Colors */
  --accent-primary: #00B4D8;
  --accent-secondary: #D4A03C;
  --accent-gold-light: #F0C75E;
  --accent-orange: #FF6B00;
  --accent-orange-light: #FFA040;
  
  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #0D3B66, #00B4D8);
  --cta-gradient: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
  --hero-overlay: linear-gradient(to bottom, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.95) 100%);
  --cyan-anim-gradient: linear-gradient(45deg, #0D3B66, #0077B6, #00B4D8, #0077B6, #0D3B66);

  /* Text Colors */
  --text-light: #F0F4FA;
  --text-muted: #B8CCE0;
  --text-dark: #0A1628;
  --text-dark-muted: #4A6280;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Radii & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Typography Utilities */
.headline-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.headline-md {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.headline-sm {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.subheadline {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

/* Gradient Text Animation (DashCortex style) */
.text-gradient-anim {
  background: var(--cyan-anim-gradient);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

section {
  padding: 6rem 0;
}

/* Logo scaling */
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-glass);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

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

.lang-selector {
  position: relative;
}

@keyframes pulseWhiteGlow {
  0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: var(--border-glass);
  color: var(--text-light);
  padding: 0.52rem 1rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.3s;
  animation: pulseWhiteGlow 2s infinite;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  width: max-content;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lang-dropdown.active {
  display: flex;
}

.lang-option {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-option:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
}

.lang-option.active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--cta-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--text-light);
  background: rgba(255,255,255,0.05);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem; /* for header */
  background: #020611; /* Very dark blue/black background */
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 9, 20, 0.75); /* Escurece o vídeo para dar ênfase ao texto */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.badge-icon {
  font-size: 1rem;
}

.hero .headline-lg {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.text-highlight {
  color: var(--accent-orange); /* Orange matching the reference */
}

.hero .subheadline {
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.hero-action-area {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-group {
  display: flex;
  align-items: stretch;
}

.hero .btn-primary {
  background: var(--cta-gradient); /* Mesma coloração do botão final */
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 2rem;
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: pulseOrangeGlow 2.5s infinite;
}

.hero .btn-primary:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, var(--accent-orange-light), #FFB770);
  box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.2);
  animation: none; /* Pause animation on hover */
}

@keyframes pulseOrangeGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 107, 0, 0);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    transform: scale(1);
  }
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-orange-light); /* Mesma cor base do botão CTA */
  color: #ffffff;
  padding: 0 1rem;
  border-radius: 0 4px 4px 0;
  margin-left: 2px; /* Small gap to simulate split button */
  transition: background 0.2s;
}

.btn-arrow:hover {
  background: #FFB770;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.avatars {
  display: flex;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #020611;
  margin-left: -18px;
  background: #ffffff;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(1) {
  animation: floatAvatar1 3s ease-in-out infinite alternate;
}

.avatar:nth-child(2) {
  animation: floatAvatar2 3.6s ease-in-out infinite alternate;
}

.avatar:nth-child(3) {
  animation: floatAvatar3 4.2s ease-in-out infinite alternate;
}

@keyframes floatAvatar1 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes floatAvatar2 {
  0% { transform: translateY(-2px) rotate(-3deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes floatAvatar3 {
  0% { transform: translateY(2px) rotate(2deg); }
  100% { transform: translateY(-4px) rotate(-2deg); }
}

.proof-text-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.proof-text-small strong {
  color: #ffffff;
}

/* Hero Marquee (rodapé da hero) */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 3;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
  white-space: nowrap;
}

.hero-marquee-track {
  display: inline-flex;
  gap: 0;
  animation: heroMarquee 28s linear infinite;
  will-change: transform;
}

.hero-marquee-track span {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  padding: 0 1.5rem;
  white-space: nowrap;
}

.hero-marquee-track span.dot {
  color: var(--accent-primary);
  padding: 0;
  font-size: 0.5rem;
  align-self: center;
}

@keyframes heroMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.diferenciais, #faq, .depoimentos {
  background: #ffffff;
}

.diferenciais {
  padding-bottom: 3rem;
}

.depoimentos {
  padding-top: 3rem;
}

.diferenciais .tag, #faq .tag, .depoimentos .tag {
  color: var(--accent-orange);
}

.diferenciais .headline-md, #faq .headline-md, .depoimentos .headline-md {
  color: var(--text-dark);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comp-th {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.comp-th.others {
  background: #F0F2F5;
  color: #6B7280;
}

.comp-th.us {
  background: var(--cta-gradient);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
  animation: pulseOrangeGlow 2.5s infinite;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comp-cell {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comp-cell.others {
  background: #F8F9FB;
  border: 1px solid #E5E7EB;
  color: #6B7280;
}

.comp-cell.us {
  background: rgba(0, 100, 200, 0.04);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--text-dark);
}

.cell-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  color: var(--text-dark);
}

.comp-cell.others .cell-label {
  color: #6B7280;
}

.cell-value {
  font-weight: 500;
  font-size: 1.125rem;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(0, 180, 216, 0.3);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
}

/* Certificados Tarja */
.certs-marquee {
  width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

.certs-marquee-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

@keyframes pulseCert {
  0%, 100% { opacity: 0.8; transform: scale(1); color: var(--text-light); text-shadow: none; }
  50% { opacity: 1; transform: scale(1.12); color: var(--accent-orange); text-shadow: 0 0 12px rgba(255, 107, 0, 0.5); }
}

.certs-marquee-track span {
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.certs-marquee-track span:not(.dot) {
  animation: pulseCert 2s infinite ease-in-out;
}

.certs-marquee-track span.dot {
  color: var(--accent-orange);
  font-size: 0.6rem;
}

/* Depoimentos */
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.dep-card {
  background: #F8F9FB;
  border: 1px solid #E5E7EB;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.quote-icon {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.dep-text {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.dep-author {
  display: flex;
  flex-direction: column;
}

.dep-author strong {
  color: var(--accent-orange);
}

.dep-author span {
  font-size: 0.875rem;
  color: #6B7280;
}

/* Sobre */
.sobre {
  background: var(--bg-secondary);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

.tl-item {
  position: relative;
  margin-bottom: 2rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 2px solid var(--bg-secondary);
}

.tl-item h4 {
  color: var(--accent-orange);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tl-item p {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #F8F9FB; /* Fundo mais claro para contrastar com branco */
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-icon {
  color: #000000;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: #000000;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: #000000;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* CTA Final */
.cta-final {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  text-align: center;
}

.cta-final .container {
  background: rgba(255,255,255,0.02);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  backdrop-filter: blur(10px);
}

.cta-final .headline-md {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.cta-final .subheadline {
  margin: 0 auto 3rem;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

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

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Custom Reveal Animation */
.tl-item.reveal {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-item.reveal.active {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Sections */
  section {
    padding: 4rem 0;
  }

  /* Hero */
  .hero {
    padding-top: 5rem;
    min-height: 100svh; /* uses svh for correct height on mobile browsers */
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-action-area {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero-social-proof {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Buttons */
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    min-height: 48px; /* minimum touch target */
    width: 100%;
    max-width: 320px;
  }

  /* Comparison grid */
  .comparison-header {
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .comp-cell {
    padding: 1rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Sobre */
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  /* CTA Final */
  .cta-final .container {
    padding: 3rem 1.25rem;
    border-radius: var(--radius-md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Lang Selector */
  .lang-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Logo */
  .logo-img {
    height: 48px;
  }

  /* FAQ answer */
  .faq-item.active .faq-answer {
    max-height: 300px;
  }
}

/* ============================================
   RESPONSIVE — SMALL PHONES (≤ 390px / iPhone SE)
   ============================================ */
@media (max-width: 390px) {
  .headline-lg {
    font-size: 2rem;
  }

  .headline-md {
    font-size: 1.6rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }

  .avatars .avatar {
    width: 38px;
    height: 38px;
  }

  .comp-th {
    font-size: 1rem;
    padding: 1rem;
  }

  section {
    padding: 3rem 0;
  }
}

/* ============================================
   SAFE AREA — iPhone X+ notch / home indicator
   ============================================ */
.header {
  padding-top: max(1rem, env(safe-area-inset-top));
}

.footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
#whatsapp-float {
  position: fixed;
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  right: max(1.5rem, env(safe-area-inset-right));
  z-index: 9999;

  /* Always a circle — consistent across all sizes */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: #25D366;
  color: #ffffff;
  text-decoration: none;

  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45),
              0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;

  /* Entrance animation */
  animation: waFloatEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes waFloatEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55),
              0 4px 12px rgba(0,0,0,0.25);
}

#whatsapp-float:active {
  transform: scale(0.96);
}

/* Icon wrapper */
.wa-float-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Label hidden on all sizes (circle-only design) */
.wa-float-label {
  display: none;
}

/* Pulse ring effect */
.wa-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: waPulseRing 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes waPulseRing {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

/* ---- WhatsApp Float — mobile position tweak ---- */
@media (max-width: 768px) {
  #whatsapp-float {
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
    right: max(1rem, env(safe-area-inset-right));
  }

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

/* ============================================
   COMPARISON GRID — MOBILE OVERRIDES
   Visual badges + color differentiation so
   users instantly know "others" vs "us"
   ============================================ */
@media (max-width: 768px) {

  /* Each row becomes a visual card pair with a subtle divider */
  .comparison-row {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
  }

  /* ---- OTHERS cell — faded, clearly secondary ---- */
  .comp-cell.others {
    position: relative;
    background: #F0F0F2;
    border: 1.5px solid #D1D5DB;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    opacity: 0.72;
    padding-top: 2.75rem; /* room for the badge */
  }

  /* ❌ badge for others */
  .comp-cell.others::before {
    content: '❌  Outras empresas';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #E5E7EB;
    color: #6B7280;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #D1D5DB;
  }

  /* ---- US cell — vivid, clearly primary ---- */
  .comp-cell.us {
    position: relative;
    background: #fff7f0;
    border: 2px solid var(--accent-orange);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding-top: 2.75rem; /* room for the badge */
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.12);
  }

  /* ✅ badge for us */
  .comp-cell.us::before {
    content: '✅  Leadership Freight';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--cta-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.4rem 1rem;
  }

  /* Cell label stays subtle */
  .comp-cell .cell-label {
    font-size: 0.65rem;
  }

  /* Cell value: more prominent on "us" */
  .comp-cell.us .cell-value {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1rem;
  }

  .comp-cell.others .cell-value {
    font-size: 0.95rem;
    color: #6B7280;
  }
}
