@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@500;700&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
  --color-bg-deep: #070707;
  --color-bg-card: #111111;
  --color-bg-card-hover: #161616;
  --color-primary: #FF5A00; /* Laranja Oficial Jaguar */
  --color-primary-rgb: 255, 90, 0;
  --color-secondary: #e04f00; /* Laranja Hover */
  --color-secondary-rgb: 224, 79, 0;
  --color-text-main: #f4f4f5;
  --color-text-muted: #a1a1aa;
  --color-border: rgba(255, 90, 0, 0.15);
  --color-border-focus: rgba(255, 90, 0, 0.6);
  --font-headline: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Industrial Texture Background overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(255, 90, 0, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 90, 0, 0.04) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.002) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.002) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
  z-index: -1;
  pointer-events: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

p {
  color: var(--color-text-muted);
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAVBAR (OFFICIAL THEME) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(0.625rem); /* 10px */
  -webkit-backdrop-filter: blur(0.625rem);
  border-bottom: 1px solid rgba(255, 90, 0, 0.2);
  transition: var(--transition-smooth);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.logo-svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-primary);
  fill: currentColor;
}

.navbar nav {
  display: none; /* Hidden on mobile */
  align-items: center;
}

.navbar nav a {
  color: var(--color-text-main);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
}

.navbar nav a:hover {
  color: var(--color-primary);
}

/* --- HERO SECTION (DOBRA 1) --- */
.hero-section {
  min-height: 100vh;
  padding: 8rem 0 5rem 0; /* Add top padding to account for fixed navbar */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Floating badge top of hero */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 90, 0, 0.08);
  border: 1px solid rgba(255, 90, 0, 0.25);
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
}

.hero-title {
  font-size: 3rem;
  max-width: 950px;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 750px;
  margin-bottom: 3.5rem;
  color: var(--color-text-muted);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.2rem 2.5rem;
  border-radius: 4px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-deep);
  box-shadow: 0 4px 20px rgba(255, 90, 0, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--color-secondary);
  box-shadow: 0 6px 25px rgba(255, 90, 0, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Pulse animation class aligned with official brand color */
.btn-pulse {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 90, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 0, 0);
  }
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- DOBRA 2: AUTORIDADE --- */
.authority-section {
  padding: 7rem 0;
  background-color: var(--color-bg-card);
  border-top: 1px solid rgba(255, 90, 0, 0.1);
  border-bottom: 1px solid rgba(255, 90, 0, 0.1);
  position: relative;
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

/* Left side: Image container with effects */
.authority-img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.authority-img-border {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--color-primary);
  opacity: 0.4;
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
  transform: rotate(-1deg);
}

.authority-img-container {
  position: relative;
  z-index: 2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.authority-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.authority-img-container:hover .authority-img {
  transform: scale(1.02);
}

/* Stats overlay on the image using official color branding */
.authority-stats {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  padding: 0.8rem 1.8rem;
  display: flex;
  gap: 1.5rem;
  z-index: 3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  display: block;
}

.stat-lbl {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Right side: Authority content */
.authority-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.authority-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin-top: 0.75rem;
}

.authority-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.authority-content p strong {
  color: var(--color-text-main);
  font-weight: 600;
}

/* --- FOOTER --- */
.site-footer {
  padding: 4.5rem 0;
  background-color: #040405;
  text-align: center;
  border-top: 1px solid rgba(255, 90, 0, 0.05);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-primary);
}

/* --- POP-UP MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 4, 6, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 90, 0, 0.05);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Scrollbar styling for modal */
.modal-container::-webkit-scrollbar {
  width: 6px;
}
.modal-container::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}
.modal-container::-webkit-scrollbar-thumb {
  background: rgba(255, 90, 0, 0.3);
  border-radius: 3px;
}

/* Close Button */
.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.02);
}

.modal-close-btn:hover {
  color: var(--color-primary);
  background-color: rgba(255, 90, 0, 0.1);
  transform: rotate(90deg);
}

/* Form Styles */
.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  background: rgba(7, 7, 7, 0.75);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 0.9rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: #4a4a52;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.15);
  background: rgba(7, 7, 7, 0.95);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em;
  padding-right: 3rem;
  cursor: pointer;
}

.form-subtext {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.35rem;
  line-height: 1.4;
  display: block;
}

.modal-btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Loading State for Submit Button */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid transparent;
  border-top-color: var(--color-bg-deep);
  border-radius: 50%;
  animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- THANK YOU PAGE (PÁGINA DE OBRIGADO) --- */
.thank-you-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem 0; /* Align top padding with fixed navbar */
}

.thank-you-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  max-width: 650px;
  width: 100%;
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

/* Glowing Border Effect for Thank You Card */
.thank-you-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--color-primary);
}

/* Success Checkmark Circle */
.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(255, 90, 0, 0.08);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  position: relative;
  box-shadow: 0 0 30px rgba(255, 90, 0, 0.15);
}

.success-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
}

.success-icon-wrapper svg {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.8s ease forwards 0.3s;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.thank-you-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.thank-you-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.download-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.community-section {
  text-align: left;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 90, 0, 0.25);
  border-radius: 4px;
  padding: 2rem;
}

.community-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.community-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.community-btn {
  width: 100%;
}

/* --- ANIMATION DEBRIS FOR SUCCESS (Pure CSS particles) --- */
.particle {
  position: absolute;
  width: 6px;
  height: 12px;
  background-color: var(--color-primary);
  opacity: 0.8;
  pointer-events: none;
}
.particle:nth-child(even) {
  background-color: var(--color-secondary);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

/* --- CONSULTORIA PITCH SECTION --- */
.consultoria-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

.consultoria-title-pitch {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.consultoria-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.consultoria-text strong {
  color: var(--color-text-main);
}

.consultoria-section .highlight-box {
  background: rgba(255, 90, 0, 0.04);
  border-left: 3px solid var(--color-primary);
  padding: 1.25rem;
  border-radius: 4px;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--color-text-main);
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(220, 39, 67, 0.5);
  opacity: 0.95;
}

/* --- RESPONSIVENESS (MOBILE-FIRST & BREAKPOINTS) --- */
@media (min-width: 768px) {
  .navbar nav {
    display: flex;
  }
}

@media (max-width: 992px) {
  .authority-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .authority-img-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 7rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    display: flex;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.8rem;
    font-size: 1rem;
  }

  .modal-container {
    padding: 2rem 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .authority-section {
    padding: 4rem 0;
  }

  .authority-content {
    text-align: center;
  }

  .authority-title {
    font-size: 2rem;
  }

  .authority-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .thank-you-card {
    padding: 2.5rem 1.5rem;
  }

  .thank-you-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .authority-stats {
    padding: 0.6rem 1.2rem;
    gap: 0.75rem;
    bottom: -15px;
  }
  .stat-val {
    font-size: 1.05rem;
  }
  .stat-lbl {
    font-size: 0.6rem;
  }
}
