@tailwind base;
@tailwind components;
@tailwind utilities;

@import "./design-system.css";

/* 
  SUPLILIST v3.0 - MAIN LAYOUT (APP SHELL) 
*/

body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* App Shell controls internal scroll */
}

/* App Shell Container */
#app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-darkest);
}

/* Sidebar Area */
#sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-dark);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: width var(--transition-normal);
  z-index: 20;
}

#sidebar.collapsed {
  width: var(--sidebar-mini-width);
}

.sidebar-header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
}

#sidebar.collapsed .sidebar-logo {
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: rgba(167, 139, 250, 0.05);
  color: var(--brand-primary);
  border: 1px solid rgba(167, 139, 250, 0.3);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.05);
}

#sidebar.collapsed .nav-item {
  justify-content: center;
  padding: var(--space-sm);
}

#sidebar.collapsed .nav-label {
  display: none;
}

/* Main Content Area */
#main-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* Top Bar Area */
#top-bar {
  height: var(--topbar-height);
  background-color: var(--bg-darkest);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  flex-shrink: 0;
  z-index: 10;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--text-small);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Page Content Viewport */
#page-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  scroll-behavior: smooth;
}

/* EstilizaÃ§Ã£o da Scrollbar no Main Content */
#page-content::-webkit-scrollbar {
  width: 8px;
}
#page-content::-webkit-scrollbar-track {
  background: var(--bg-darkest); 
}
#page-content::-webkit-scrollbar-thumb {
  background: var(--bg-darker); 
  border-radius: 4px;
}
#page-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-color); 
}

/* Responsividade Extrema (Tablet) */
@media (max-width: 1024px) {
  #sidebar {
    width: var(--sidebar-mini-width);
  }
  .sidebar-logo, .nav-label {
    display: none;
  }
  .nav-item {
    justify-content: center;
    padding: var(--space-sm);
  }
}

/* Engenharia Mobile - Navegação Inferior (Mobile Extremamente Responsivo) */
@media (max-width: 768px) {
  #app-shell {
    flex-direction: column;
  }
  
  /* Transforma a Sidebar em Bottom Navigation Bar */
  #sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border-color);
    z-index: 999;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    transition: none;
  }
  
  .sidebar-header {
    display: none;
  }
  
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    width: 100%;
    overflow: visible;
  }
  
  .nav-item {
    flex-direction: column;
    padding: 8px 4px;
    gap: 4px;
    border-left: none !important;
    border-radius: 0;
    flex: 1;
    justify-content: center;
    border-bottom: 3px solid transparent;
  }
  
  .nav-item.active {
    border-bottom: 3px solid var(--brand-primary);
    background-color: transparent;
  }
  
  /* Restaura a label no mobile, mas bem pequenininha */
  .nav-label {
    display: block !important;
    font-size: 10px;
    font-weight: 600;
  }
  
  #main-wrapper {
    width: 100vw;
    height: 100vh;
  }
  
  #top-bar {
    padding: 0 var(--space-md);
  }
  
  /* O container da página perde margens e ganha padding inferior (Safe Area da Bottom Bar) */
  #page-content {
    padding: var(--space-md);
    padding-bottom: 100px !important;
  }
}

/* Grid System Global Utilities */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

/* =========================================================================
   PARTE 1: RESET E ESTILIZAÇÃO FORÇADA (Refatoração Nuclear)
   ========================================================================= */

/* Morte ao estilo nativo para formulários e botões */
input, select, button {
  appearance: none;
  outline: none;
  border: 1px solid var(--border-light);
  background-color: var(--bg-dark);
  color: var(--t1);
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

/* Força Bruta no CSS Grid */
.list-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.list-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-dark);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .list-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.supplement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Responsividade Básica da Grid */
@media (max-width: 1200px) {
  .page-stats, .supplement-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .page-stats, .supplement-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .page-stats, .supplement-grid { grid-template-columns: 1fr; }
}

/* Contenção de Imagens (Crucial) */
.card-image-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background: var(--bg-darkest);
  border-radius: 8px 8px 0 0;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Isolamento de Modais */
.modal-overlay, .toast, .floating-panel {
  position: fixed;
  z-index: 9999;
}

/* ==========================================================================
   HISTORY PAGE STYLES (Design System 3.0)
   ========================================================================== */

.history-page-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  animation: fadeIn var(--transition-normal);
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.page-title {
  font-family: var(--font-family);
  font-size: var(--text-h3);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.metric-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.metric-card-header {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-card-value {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-card-subtext {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}
.metric-card-subtext.success {
  color: var(--brand-green);
}

.metric-progress-bg {
  width: 100%;
  background: var(--bg-darker);
  border-radius: var(--radius-full);
  height: 6px;
  overflow: hidden;
}

.metric-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  transition: width 0.5s ease-out;
}

.filters-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-md);
}

@media (min-width: 1024px) {
  .filters-bar {
    flex-direction: row;
    align-items: center;
  }
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 36px;
  color: var(--text-primary);
  font-size: var(--text-small);
  font-weight: 600;
  transition: all var(--transition-fast);
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.tab-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hist-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hist-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-darker);
}

.hist-tab-btn.active {
  color: #fff;
  background: var(--brand-primary);
  box-shadow: var(--shadow-glow);
}

.history-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.history-cycle-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-fast);
}
@media (min-width: 640px) {
  .history-cycle-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.history-cycle-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.15);
}

.cycle-card-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-grow: 1;
  min-width: 0;
}

.cycle-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex-grow: 1;
}

.cycle-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cycle-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-category {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(167, 139, 250, 0.25);
  text-transform: uppercase;
}

.cycle-period {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cycle-adherence {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cycle-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.btn-small {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   DOSAGE CALCULATOR PAGE STYLES (Design System 3.0)
   ========================================================================== */

.dosage-page-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  animation: fadeIn var(--transition-normal);
}

.dosage-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .dosage-layout {
    grid-template-columns: 350px 1fr;
    align-items: start;
  }
}

.dosage-left,
.dosage-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.dosage-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.dosage-panel.glow-purple {
  border-color: var(--brand-primary);
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.15);
}

.dosage-panel-title {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dosage-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dosage-form-group label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dosage-input,
.dosage-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.dosage-input:focus,
.dosage-select:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.dosage-search-wrapper {
  position: relative;
  width: 100%;
}

.dosage-search {
  padding-left: 32px;
}

.dosage-suggestions-box {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}
.dosage-suggestions-box.hidden {
  display: none;
}

.dosage-suggestion-btn {
  width: 100%;
  text-align: left;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dosage-suggestion-btn:last-child {
  border-bottom: none;
}

.dosage-suggestion-btn:hover {
  background: var(--bg-elevated);
}

.suggestion-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.dosage-suggestion-btn:hover .suggestion-name {
  color: var(--text-primary);
}

.suggestion-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(167, 139, 250, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dosage-suggestion-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.dosage-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  background: var(--bg-card);
  text-align: center;
  gap: var(--space-md);
  min-height: 350px;
}

.pulse-icon {
  font-size: 36px;
  animation: pulse 2s infinite;
}

.dosage-empty-state h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dosage-empty-state p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.mode-toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 10px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mode-toggle-btn.active {
  background: var(--bg-elevated);
  color: #fff;
}

.recommended-dose-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  gap: 4px;
}

.dose-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dose-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.dose-num {
  font-size: 80px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: var(--font-family);
}

.dose-unit {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-left: 4px;
}

.protocol-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--brand-green);
  font-size: 11px;
  font-weight: 700;
  margin: 4px 0 8px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.add-protocol-btn {
  width: 100%;
  padding: 14px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scientific-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
}

@media (min-width: 640px) {
  .scientific-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sub-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sub-panel-title {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sub-panel-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.clamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-value.success {
  font-size: 10px;
  color: var(--brand-green);
  font-weight: 800;
  text-transform: uppercase;
}

.interactions-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  margin-top: 4px;
}

.interactions-title {
  font-size: 10px;
  color: #ef4444; /* red-500 */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.interactions-list {
  padding-left: 16px;
  font-size: 11px;
  color: rgba(252, 165, 165, 0.8); /* red-300/80 */
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

/* ==========================================================================
   FAVORITES PAGE STYLES (Design System 3.0)
   ========================================================================== */

.fav-page-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  width: 100%;
  animation: fadeIn var(--transition-normal);
}

.fav-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .fav-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fav-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fav-breadcrumb-link {
  cursor: pointer;
  transition: color var(--transition-fast);
}
.fav-breadcrumb-link:hover {
  color: var(--brand-primary);
}
.fav-breadcrumb-current {
  color: var(--brand-primary);
}

.fav-title {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-family);
}

.btn-optimize {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}

.fav-filters-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-md);
}
@media (min-width: 640px) {
  .fav-filters-row {
    flex-direction: row;
    align-items: center;
  }
}

.fav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fav-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fav-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}
.fav-tab-btn.active {
  color: #fff;
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
}

.fav-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.fav-sort-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fav-sort-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  width: 100%;
}
@media (min-width: 768px) {
  .fav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .fav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fav-grid-empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fav-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: 80px 20px;
  text-align: center;
  min-height: calc(100vh - 220px);
}

.fav-grid-empty-filter {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
}

.empty-filter-icon {
  font-size: 32px;
}
.empty-filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
}
.empty-filter-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 250px;
  margin: 0;
}

.fav-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}
.fav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.15);
}

.fav-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.fav-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fav-card:hover .fav-card-image img {
  transform: scale(1.06);
}

.fav-heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fav-heart-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
}

.fav-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-sm);
}

.fav-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-goal-badge {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fav-card-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  font-family: var(--font-family);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fav-card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.fav-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.fav-action-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.fav-action-row button {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  border-radius: var(--radius-md);
}

.fav-marketplace-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.fav-marketplace-badge.shopee {
  background: #ff5722;
  color: #fff;
}
.fav-marketplace-badge.ml {
  background: #ffe600;
  color: #2d3277;
}
.fav-marketplace-badge.amazon {
  background: #131921;
  color: #ff9900;
}

.fav-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.fav-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 450px;
  width: 100%;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.fav-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fav-modal-close:hover {
  color: var(--text-primary);
  transform: rotate(90deg);
}

.fav-modal-icon {
  font-size: 24px;
}

.fav-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.fav-modal-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.fav-modal-suggestions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.fav-suggestion-card {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}
.fav-suggestion-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

.fav-suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fav-suggestion-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
}

.fav-suggestion-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.15);
  color: var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.fav-suggestion-reason {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  margin-top: 4px;
}

.fav-modal-action-btn {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: var(--radius-lg);
}
/**
 * @fileoverview Estilos Exclusivos da Landing Page do SupliList v3.0.
 * Segue o design system Void Ultra-Dark, com foco em tipografia Outfit/Inter,
 * efeitos glassmorphism, noise backgrounds sutil, animações de scroll,
 * e grids de alta responsividade.
 * 
 * @author SupliList Team
 * @version 3.0.0
 */

/* ══════════════════════════════════════════════════════════════
   VARIABLES & SETUP
   ══════════════════════════════════════════════════════════════ */
:root {
  --bg-landing: #08080f; /* Ligeiramente azulado conforme home.png */
  --bg: #08080f;
  --font-headline: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --border-subtle: rgba(255, 255, 255, 0.05);
}

/* Base resets & layouts */
body.landing-body {
  background-color: var(--bg-landing) !important;
  color: var(--t1) !important;
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* Fundo gradiente sutil do Void System */
  background-image: 
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%) !important;

  /* Force variables to remain dark theme even when light theme is active globally */
  --t1: #f4f4f5 !important;
  --t2: #a1a1aa !important;
  --t3: #71717a !important;
  --text-primary: #f4f4f5 !important;
  --text-secondary: #a1a1aa !important;
  --brand-primary: #a855f7 !important;
  --brand-primary-hover: #c084fc !important;
  --bg-dark: #131315 !important;
  --bg-darker: #1c1c24 !important;
  --border-color: rgba(255, 255, 255, 0.08) !important;
}

body.landing-body #app-shell {
  background-color: transparent !important;
}

body.landing-body #page-content {
  padding: 0 !important;
  background-color: transparent !important;
}

/* Pseudo-elemento Noise Texture sutil (Opacity 0.03) */
body.landing-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */
.landing-headline {
  font-family: var(--font-headline);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--t1);
}

.landing-body-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--t2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   HEADER NAVIGATION (TRANSPARENT, BORDER SUTIL)
   ══════════════════════════════════════════════════════════════ */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.landing-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  font-family: var(--font-headline);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.landing-logo span {
  color: #ffffff;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-links a {
  color: var(--t2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.landing-nav-links a:hover {
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   HERO SECTION (TWO-COLUMN RESPONSIVE)
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 130px;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-divider-line {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  text-align: left;
  max-width: 100%;
}

/* EVIDÊNCIAS gradiente branco-roxo */
.hero-title span {
  background: linear-gradient(90deg, #f4f4f5, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--t2);
  margin: 0;
  max-width: 580px;
  font-weight: 400;
  text-align: left;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-actions .btn-primary, .hero-actions .btn-outline {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 28px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.hero-stats-row span.sep {
  color: var(--border-subtle);
  font-weight: 300;
}

/* App Mockup animado no Hero Right */
.app-mockup-wrapper {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: #11111e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.15);
  transition: transform 0.5s ease;
}

.app-mockup-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

/* ══════════════════════════════════════════════════════════════
   TICKER MARQUEE SYSTEM
   ══════════════════════════════════════════════════════════════ */
.ticker-marquee-container {
  width: 100%;
  background: rgba(124, 58, 237, 0.03);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.ticker-marquee {
  display: flex;
  width: 100%;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: 40px;
}

.ticker-track span {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticker-track span.arrow {
  color: var(--brand-light);
}

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

/* ══════════════════════════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header span {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-light);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-headline);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-header p {
  font-size: 14px;
  color: var(--t2);
  max-width: 520px;
  margin: 12px auto 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.feature-card {
  background: #11111a;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}

/* Card central com destaque brand e glow */
.feature-card.featured {
  border: 1px solid var(--brand-light) !important;
  background: rgba(20, 20, 35, 0.5) !important;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.1) !important;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.feature-card.featured:hover {
  border-color: var(--brand-light);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.2);
}

.feature-icon-wrapper {
  font-size: 48px;
  color: var(--brand-light);
  display: flex;
  align-items: center;
}

.feature-card h3 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.feature-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS (STEPS)
   ══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.step-card {
  background: rgba(13, 13, 25, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

/* Número gigante de fundo (120px, opacity 0.07) */
.step-watermark {
  font-family: var(--font-headline);
  font-size: 130px;
  font-weight: 850;
  color: var(--t1);
  opacity: 0.07;
  position: absolute;
  top: -30px;
  right: 10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.step-num-small {
  font-size: 14px;
  font-weight: bold;
  color: var(--brand-light);
  text-transform: uppercase;
}

.step-card h3 {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 755;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.6;
}

.steps-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.steps-section-cta .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 13px;
  padding: 16px 36px;
  border-radius: 12px;
}

/* ══════════════════════════════════════════════════════════════
   APP MOCKUP TERMINAL/CODE WINDOW
   ══════════════════════════════════════════════════════════════ */
.app-code-mockup-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.code-editor-window {
  background: #06060c;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.08);
  font-family: monospace;
  text-align: left;
}

.code-editor-header {
  background: #0c0c16;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px;
}

.code-editor-header .control {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.code-editor-header .control.red { background: #ef4444; }
.code-editor-header .control.yellow { background: #eab308; }
.code-editor-header .control.green { background: #22c55e; }

.code-editor-header .window-title {
  font-size: 11px;
  color: var(--t3);
  margin-left: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.code-content {
  padding: 24px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
}

.code-content .keyword { color: #c084fc; font-weight: bold; }
.code-content .string { color: #34d399; }
.code-content .comment { color: #64748b; font-style: italic; }
.code-content .function { color: #60a5fa; }

/* ══════════════════════════════════════════════════════════════
   OBJECTIVES GRID (4x2 WITH ALL-DESTAQUE BUTTON)
   ══════════════════════════════════════════════════════════════ */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  width: 100%;
}

.objective-card {
  background: rgba(13, 13, 25, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 64px;
  box-sizing: border-box;
}

.objective-card span {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.objective-card .arrow-icon {
  color: var(--brand-light);
  font-weight: bold;
  transition: transform 0.2s;
}

.objective-card:hover {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.objective-card:hover .arrow-icon {
  transform: translateX(4px);
}

/* Card especial "Ver Todos" destacado com bg brand */
.objective-card.all-destaque {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}

.objective-card.all-destaque:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 4px 16px var(--brand-glow-strong);
}

/* ══════════════════════════════════════════════════════════════
   MARKETPLACES SECTION
   ══════════════════════════════════════════════════════════════ */
.marketplaces-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}

.marketplace-card {
  background: rgba(13, 13, 25, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

/* Card central maior (.featured) */
.marketplace-card.featured {
  transform: scale(1.06);
  border: 1px solid var(--brand-light);
  background: rgba(20, 20, 35, 0.6);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.marketplace-card:hover {
  border-color: var(--border-hover);
}

.marketplace-card.featured:hover {
  border-color: var(--brand-light);
  transform: scale(1.08);
  box-shadow: 0 10px 35px rgba(124, 58, 237, 0.25);
}

.marketplace-logo-container {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.marketplace-name {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════════
   CTA FINAL (BLURRED GLOW WITH TESTIMONIALS BADGE)
   ══════════════════════════════════════════════════════════════ */
.cta-badge-testimonials {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
  border-radius: 4px;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.cta-final-wrapper {
  position: relative;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.cta-final-headline {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  max-width: 750px;
  letter-spacing: -0.04em;
}

.cta-final-sub {
  font-size: 14px;
  color: var(--t2);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cta-final-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.landing-footer {
  border-top: 1px solid var(--border);
  background: #040408;
  padding: 64px 24px;
}

.footer-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav-links a {
  color: var(--t3);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-disclosure {
  font-size: 10px;
  color: #52525b;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 24px;
  text-align: justify;
}

.footer-copy {
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS SYSTEM
   ══════════════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--brand-light);
  border: 2px solid var(--brand);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--brand-glow);
  border-color: var(--brand-light);
  transform: translateY(-1px);
}

/* Modificador de tamanho grande (.btn-lg) */
.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   ══════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ══════════════════════════════════════════════════════════════
   RESPONSIVENESS (MOBILE-FIRST BREAKPOINTS)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
    gap: 30px;
  }
  .hero-left {
    align-items: center;
  }
  .hero-title {
    text-align: center;
  }
  .hero-subtitle {
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .marketplaces-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .marketplace-card.featured {
    transform: none !important;
  }
  .marketplace-card.featured:hover {
    transform: translateY(-4px) !important;
  }
}

@media (max-width: 768px) {
  .features-grid, .steps-grid, .objectives-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 11px;
  }
  .cta-final-wrapper {
    padding: 60px 20px;
  }
}
