:root {
  /* Color Palette */
  --bg-dark: #121212;
  --bg-header: #1E1E1E;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  
  --primary-accent: #2A2A2A; /* For header borders / chips */
  --btn-primary-bg: #FFFFFF;
  --btn-primary-text: #000000;
  --btn-secondary-bg: #272727;
  --btn-secondary-text: #FFFFFF;
  --hero-gradient: linear-gradient(90deg, #AA7625 0%, #FAD371 75%);

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%; /* Mobile First: buttons are block level */
}

@media (min-width: 768px) {
  .btn {
    width: auto;
  }
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background-color: #E0E0E0;
}

.btn-secondary {
  background-color: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: #333333;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.c6-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--primary-accent);
}

.c6-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo-link svg {
  height: 24px;
  fill: var(--text-primary);
}

/* Desktop Navigation Items hidden on mobile */
.desktop-nav {
  display: none; 
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.hamburger-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--text-primary);
}

/* Mobile-only action button in header */
.header-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 20px;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
}

@media (min-width: 900px) {
  .c6-header-nav {
    height: 80px;
  }
  .hamburger-btn {
    display: none;
  }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
  }
  .nav-item {
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s;
  }
  .nav-item:hover {
    opacity: 0.7;
  }
  .header-btn {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 8px;
  }
}

/* =========================================================================
   FEATURES SECTION
   ========================================================================= */
.c6-features {
  padding: var(--spacing-xxl) 0;
  background-color: var(--bg-dark);
}

.features-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.features-title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.features-image-main {
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--spacing-xxl);
  display: block;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-xl);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-text {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
}

.feature-card .btn {
  margin-top: auto;
}

.features-footer-action {
  margin-top: var(--spacing-xxl);
  text-align: center;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-title {
    font-size: 3.5rem;
  }
}

.c6-hero {
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  z-index: 2; /* above image */
}

.hero-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255,255,255, 0.05);
  border: 1px solid rgba(255,255,255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title span {
  /* Mimic the extraordinary text style if needed, they had a dark text with white bg or standard */
  font-weight: 600;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 900px) {
  .hero-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-content {
    flex: 1;
    max-width: 50%;
  }

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

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-image-wrapper {
    flex: 1;
    margin-top: 0;
    max-height: 600px;
  }
}

/* =========================================================================
   CARDS CAROUSEL (Escolha seu cartão)
   ========================================================================= */
.c6-cards-section {
    padding: 80px 0;
    background-color: var(--bg-black);
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.card-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.card-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-img-box {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    background: #222;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-item:hover .card-img-box img {
    transform: scale(1.05);
}

.card-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-action {
    color: var(--c6-yellow);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

@media (min-width: 768px) {
    .carousel-title {
        font-size: 4rem;
    }
    .card-item {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (min-width: 1024px) {
    .card-item {
        flex: 0 0 calc(25% - 15px);
    }
}

/* =========================================================================
   SOCIAL PROOF SECTION
   ========================================================================= */
.social-proof-section {
    padding: var(--spacing-xxl) 0;
    background-color: #000;
}

.social-proof-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xxl);
    text-align: center;
    line-height: 1.2;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.testimonial-card:hover {
    transform: none;
    background-color: #222;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-check {
    background-color: #2D88FF;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-menu {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

.testimonial-body {
    padding: 2px 0;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    font-style: normal;
}

.testimonial-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.likes-stats, .comment-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reaction-icons {
    font-size: 1.1rem;
    letter-spacing: -4px;
    margin-right: 4px;
}

.stats-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 4px;
}

.fb-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.fb-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-icon {
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .social-proof-title {
        font-size: 3rem;
    }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.c6-footer {
    padding: 64px 0 32px;
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 64px;
}

.footer-logo svg {
    height: 24px;
    fill: #fff;
}

.footer-legal-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 900px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-legal-text {
        max-width: 800px;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
/* =========================================================================
   MOBILE FIRST OPTIMIZATIONS & FIXES
   ========================================================================= */

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 600px) {
  :root {
    --spacing-xxl: 40px;
  }

  .hero-title {
    font-size: 2rem !important;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: center;
  }

  .features-title {
    font-size: 1.75rem !important;
  }

  .feature-text {
    font-size: 1.25rem !important;
  }

  .social-proof-title {
    font-size: 1.75rem !important;
  }

  .carousel-title {
    font-size: 1.75rem !important;
  }

  /* Fix for sections with fixed max-width or large padding */
  .c6-cards-section > .container > div {
    max-width: 100% !important;
    padding: 20px !important;
  }

  .hero-image-wrapper {
    aspect-ratio: auto !important;
    height: 300px !important;
    margin-top: 20px !important;
  }

  .hero-image-wrapper img {
    object-position: top;
  }
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Testimonial grid fix */
@media (max-width: 768px) {
  .social-proof-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Footer Copyright centering */
  .c6-footer .MuiGrid-container {
    text-align: center !important;
    justify-content: center !important;
  }
  .c6-footer p {
    text-align: center !important;
  }
}
