:root {
  --primary-color: #0066ff;
  --secondary-color: #001d4a;
  --accent-color: #00d2ff;
  --text-color: #333333;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --border-color: #e9ecef;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.btn:hover::before {
  transform: scale(2.5);
  opacity: 1;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(0, 102, 255, 0.05);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.1);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1em;
  font-weight: 700;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  background-color: var(--dark-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.btn-app i {
  margin-right: 8px;
  font-size: 1.2em;
}

.btn-app:hover {
  background-color: var(--secondary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.2em;
  color: var(--secondary-color);
}

/* Header */
header {
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo h1 {
  font-size: 1.8em;
  color: var(--primary-color);
}

nav {
  position: relative;
}

nav ul {
  display: flex;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 5px;
  position: relative;
}

nav ul li a {
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 60%;
}

nav ul li a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 102, 255, 0.05);
}

nav ul li a.active {
  color: var(--primary-color);
  background-color: rgba(0, 102, 255, 0.08);
}

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

.buttons .btn {
  margin-left: 10px;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.buttons .btn-outline:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.buttons .btn-primary {
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.8em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--gray-color);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Pricing Section */
.pricing {
  padding: 80px 0;
  background-color: var(--light-color);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
}

.pricing-card.highlighted {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-card.highlighted:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 20px;
  text-align: center;
}

.pricing-header h3 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.price {
  font-size: 2.5em;
  font-weight: 700;
}

.pricing-features {
  padding: 20px;
  text-align: center;
}

.pricing-features p {
  margin: 10px 0;
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-card .btn {
  display: block;
  margin: 20px auto;
  width: 80%;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: white;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--light-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-author h4 {
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--gray-color);
  font-size: 0.9em;
}

/* App Download Section */
.app-download {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
}

.app-download .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.app-content h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.app-content p {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-about p {
  margin: 20px 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 1.2em;
}

.footer-links ul li {
  margin-bottom: 10px;
}

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

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container,
  .app-download .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image,
  .app-image {
    order: -1;
  }

  .hero-buttons,
  .app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(-10px);
  }

  nav.mobile-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  nav.mobile-hidden {
    visibility: hidden;
    opacity: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 15px 0;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.2em;
    padding: 12px 25px;
  }

  .mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(0, 102, 255, 0.03);
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.1);
  }

  .mobile-menu-toggle:hover {
    background-color: rgba(0, 102, 255, 0.08);
    transform: scale(1.05);
  }

  .mobile-menu-toggle.active {
    background-color: rgba(0, 102, 255, 0.15);
    box-shadow: 0 3px 15px rgba(0, 102, 255, 0.2);
  }

  .mobile-menu-toggle i {
    font-size: 1.4em;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active i {
    transform: rotate(180deg);
  }

  .buttons {
    margin-top: 0;
    width: 100%;
    justify-content: center;
    padding-top: 15px;
    order: 3;
  }

  .buttons .btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
  }

  .hero-content h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 576px) {
  .pricing-cards,
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .pricing-card.highlighted {
    transform: none;
  }

  .pricing-card.highlighted:hover {
    transform: translateY(-10px);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.pricing-card,
.testimonial-card {
  animation: fadeIn 0.6s ease-out;
}

/* Scroll Animation Classes */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-fade-in > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.stagger-fade-in > *.visible:nth-child(1) {
  transition-delay: 0ms;
}
.stagger-fade-in > *.visible:nth-child(2) {
  transition-delay: 100ms;
}
.stagger-fade-in > *.visible:nth-child(3) {
  transition-delay: 200ms;
}
.stagger-fade-in > *.visible:nth-child(4) {
  transition-delay: 300ms;
}
.stagger-fade-in > *.visible:nth-child(5) {
  transition-delay: 400ms;
}
.stagger-fade-in > *.visible:nth-child(6) {
  transition-delay: 500ms;
}
.stagger-fade-in > *.visible:nth-child(7) {
  transition-delay: 600ms;
}
.stagger-fade-in > *.visible:nth-child(8) {
  transition-delay: 700ms;
}

.stagger-fade-in > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Inner Pages Styles */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 80px 0;
  text-align: center;
}

.page-hero-content h1 {
  font-size: 2.8em;
  margin-bottom: 20px;
}

.page-hero-content p {
  font-size: 1.3em;
  max-width: 700px;
  margin: 0 auto;
}

/* Maquininhas Page */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.model-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.model-card:hover {
  transform: translateY(-10px);
}

.model-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.model-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.model-image {
  padding: 30px;
  background-color: var(--light-color);
  text-align: center;
}

.model-image img {
  max-height: 200px;
}

.model-info {
  padding: 30px;
}

.model-info h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.model-price {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.model-features {
  margin-bottom: 25px;
}

.model-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.model-features li i {
  color: var(--success-color);
  margin-right: 10px;
}

.model-features .fa-times {
  color: var(--gray-color);
}

.model-card .btn {
  width: 100%;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.benefit-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.benefit-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.comparison-table {
  overflow-x: auto;
  margin-bottom: 40px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--secondary-color);
  color: white;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-table tr:hover {
  background-color: var(--light-color);
}

.comparison-cta {
  text-align: center;
  margin-bottom: 40px;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--light-color);
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
}

.faq-toggle {
  background: none;
  border: none;
  font-size: 1.2em;
  color: var(--primary-color);
  cursor: pointer;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

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

.cta {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-dark with 50% opacity */
  z-index: 999; /* Below popup/modal but above other content */
  display: none; /* Hidden by default */
  pointer-events: auto; /* Blocks interaction with background */
}

.overlay.visible {
  display: block;
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--light-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 20px;
  max-width: 400px;
  z-index: 1000; /* Above overlay */
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.cookie-consent.visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-content p {
  margin-bottom: 20px;
  font-size: 0.9em;
  color: var(--text-color);
}

.cookie-consent-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent-buttons .btn {
  padding: 8px 16px;
  font-size: 0.85em;
}

/* Privacy Policy Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001; /* Above overlay and popup */
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.visible {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 10px;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.visible .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5em;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-color);
}

#privacy-content {
  font-size: 0.95em;
  line-height: 1.7;
}

#privacy-content h2 {
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

#privacy-content h3 {
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

#privacy-content p {
  margin-bottom: 15px;
}

#privacy-content ul,
#privacy-content ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

#privacy-content li {
  margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cookie-consent {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }

  #privacy-content {
    font-size: 0.9em;
  }
}
