/* ============================================
   TaskFlow - Sistema de Gerenciamento de Tarefas
   CSS Principal - Otimizado com Temas Claro/Escuro
   ============================================ */

/* ============================================
   CSS Variables / Design Tokens - Light Theme
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #5e3fb8;
  --primary-light: #7c5dd9;
  --primary-hover: #4a2f8f;
  --primary-light-bg: rgba(94, 63, 184, 0.12);

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;

  /* Background Colors - Light Theme */
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f3f4f6;

  /* Text Colors - Light Theme */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;

  /* Header Height */
  --header-height: 70px;
}

/* ============================================
   Dark Theme Variables
   ============================================ */
[data-theme="dark"] {
  /* Primary Colors - Dark */
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-hover: #7c3aed;
  --primary-light-bg: rgba(139, 92, 246, 0.15);

  /* Background Colors - Dark Theme */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --bg-input: #1e293b;

  /* Text Colors - Dark Theme */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Border Colors - Dark Theme */
  --border-color: #334155;
  --border-light: #475569;

  /* Shadows - Dark Theme */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.7);
}

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

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}

p {
  color: var(--text-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: none;
}

.btn i {
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:visited {
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:focus {
  outline: none;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
  background-color: var(--primary-light-bg);
  color: var(--primary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--primary);
  color: white;
}

.btn-block {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light-bg);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* ============================================
   Landing Page Styles
   ============================================ */
.landing-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--bg-dark) 0%,
    var(--bg-darker) 50%,
    var(--bg-dark) 100%
  );
}

/* ============================================
   Header
   ============================================ */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-card);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

[data-theme="dark"] .landing-header {
  background-color: rgba(15, 23, 42, 0.95);
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.landing-logo:hover {
  color: var(--primary-hover);
}

.landing-logo i {
  font-size: 1.5rem;
}

.landing-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1;
  margin-left: 3rem;
}

.landing-nav a {
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.landing-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

/* Oculto no desktop; visível apenas no menu mobile */
.nav-mobile-actions {
  display: none;
}

/* Botão hamburger — oculto por padrão (desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  padding: calc(var(--header-height) + 4rem) 2rem 4rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(94, 63, 184, 0.05) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.08) 0%,
    rgba(16, 185, 129, 0.08) 100%
  );
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-actions {
  margin-bottom: 3rem;
}

.hero-image {
  margin-top: 3rem;
}

.hero-preview {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* ============================================
   Dashboard Preview
   ============================================ */
.dashboard-preview {
  display: grid;
  grid-template-columns: 250px 1fr;
  background-color: var(--bg-card);
  min-height: 500px;
}

.preview-sidebar {
  background-color: var(--primary);
  color: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.preview-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.preview-menu {
  flex: 1;
}

.preview-menu-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.preview-menu-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.preview-menu-item:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
}

.preview-user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-user-avatar {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.preview-user-info p {
  margin: 0;
  font-size: 0.875rem;
  color: white;
}

.preview-user-name {
  font-weight: 600;
}

.preview-user-role {
  opacity: 0.8;
  font-size: 0.75rem;
}

.preview-content {
  padding: 1.5rem;
  overflow-y: auto;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.preview-user-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preview-user-avatar-header {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light-bg);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.preview-user-header p {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.preview-btn-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preview-btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.preview-page-header {
  margin-bottom: 2rem;
}

.preview-page-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.preview-page-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.preview-stat {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.preview-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.preview-stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.preview-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-blue {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--info);
}

.icon-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.icon-orange {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.icon-red {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.preview-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.preview-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.preview-card {
  background-color: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.preview-card-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.preview-title-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
}

.preview-card-title-wrapper h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--text-primary);
}

.preview-link-text {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.preview-card-body {
  padding: 1.25rem;
}

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

.preview-table thead {
  background-color: var(--bg-darker);
}

.preview-table th {
  padding: 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.preview-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.preview-task-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-task-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

.preview-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.preview-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.preview-project-item {
  padding: 1rem 0;
}

.preview-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.preview-project-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.preview-project-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
}

.preview-project-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.preview-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.preview-progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
  padding: 6rem 2rem;
  background-color: var(--bg-dark);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light-bg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light-bg);
  color: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
  padding: 6rem 2rem;
  background-color: var(--bg-darker);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.about-feature-item i {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-stat-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.about-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-section {
  padding: 6rem 2rem;
  background-color: var(--bg-dark);
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light-bg);
}

.pricing-card-featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

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

.pricing-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card .pricing-header {
  margin-bottom: 0;
}

.pricing-card .pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.currency {
  font-size: 1rem;
  color: var(--text-secondary);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-features li.unavailable {
  color: var(--text-muted);
  opacity: 0.6;
}

.pricing-features li.unavailable i {
  color: var(--danger);
}

.pricing-faq {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.pricing-faq h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  padding: 6rem 2rem;
  background-color: var(--bg-darker);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.contact-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.contact-details a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--primary-hover);
}

.contact-social {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.contact-social h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   CTA Final Section
   ============================================ */
.cta-final-section {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-light-bg) 0%,
    rgba(16, 185, 129, 0.05) 100%
  );
}

[data-theme="dark"] .cta-final-section {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(16, 185, 129, 0.08) 100%
  );
}

.cta-final-section .cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cta-final-section .cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-final-section .cta-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

[data-theme="dark"] footer {
  background-color: #0f172a;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
}

/* ============================================
   Responsive Design — Tablet (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
  /* Header: exibe o hamburger e oculta a nav inline */
  .landing-header {
    padding: 0 1.5rem;
  }

  .menu-toggle {
    display: flex;
    order: -1; /* hamburger fica antes do logo */
  }

  /* Nav vira painel lateral/dropdown mobile */
  .landing-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem 0;
    margin-left: 0;
    transition: left 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    gap: 0;
    /* Botões de ação dentro do menu mobile */
    align-items: flex-start;
  }

  .landing-nav.active {
    left: 0;
  }

  .landing-nav a {
    font-size: 1.125rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    color: var(--text-primary);
  }

  .landing-nav a:last-child {
    border-bottom: none;
  }

  .landing-nav a:hover {
    background-color: var(--bg-card-hover);
    color: var(--primary);
  }

  /* Botões "Entrar" e "Começar Grátis" dentro do menu mobile */
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
  }

  .nav-mobile-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Oculta os botões no header em tablet/mobile */
  .landing-actions .btn {
    display: none;
  }

  /* Mantém o botão de tema visível */
  .landing-actions #themeToggle {
    display: inline-flex;
  }

  /* Hero e seções */
  .hero-title {
    font-size: 2.25rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-preview {
    grid-template-columns: 200px 1fr;
  }

  .preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Responsive Design — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .landing-header {
    padding: 0 1rem;
  }

  .landing-logo {
    font-size: 1rem;
  }

  .landing-logo i {
    font-size: 1.25rem;
  }

  .landing-actions {
    gap: 0.5rem;
  }

  .hero-section {
    padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  }

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

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

  .features-section {
    padding: 4rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .about-section {
    padding: 4rem 1.5rem;
  }

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

  .about-text h2 {
    font-size: 1.75rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .pricing-section {
    padding: 4rem 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-card-featured {
    transform: scale(1);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 1rem;
  }

  .pricing-faq h3 {
    font-size: 1.5rem;
  }

  .contact-section {
    padding: 4rem 1.5rem;
  }

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

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .contact-info-item {
    gap: 1rem;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .contact-details h4 {
    font-size: 0.95rem;
  }

  .contact-details p {
    font-size: 0.8rem;
  }

  .cta-final-section {
    padding: 3rem 1.5rem;
  }

  .cta-final-section .cta-title {
    font-size: 1.5rem;
  }

  .cta-final-section .cta-description {
    font-size: 0.9rem;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-sidebar {
    padding: 1rem;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }

  .preview-menu {
    display: none;
  }

  .preview-user-profile {
    border-top: none;
    padding-top: 0;
  }

  .preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Responsive Design — Small Mobile (≤ 576px)
   ============================================ */
@media (max-width: 576px) {
  :root {
    --header-height: 56px;
  }

  .landing-header {
    padding: 0 0.75rem;
  }

  .landing-logo {
    font-size: 0.9rem;
  }

  .landing-logo i {
    font-size: 1.1rem;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
  }

  .hero-section {
    padding: calc(var(--header-height) + 1.5rem) 1rem 2rem;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

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

  .features-section {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .about-section {
    padding: 3rem 1rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-stat-item {
    padding: 1.5rem;
  }

  .about-stat-number {
    font-size: 2rem;
  }

  .pricing-section {
    padding: 3rem 1rem;
  }

  .pricing-card {
    padding: 1.25rem;
  }

  .pricing-card .pricing-header h3 {
    font-size: 1.25rem;
  }

  .amount {
    font-size: 2.25rem;
  }

  .pricing-features li {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }

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

  .faq-item {
    padding: 1rem;
  }

  .faq-item h4 {
    font-size: 0.95rem;
  }

  .faq-item p {
    font-size: 0.8rem;
  }

  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-form-wrapper {
    padding: 1.25rem;
  }

  .form-control {
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .contact-info-item {
    gap: 0.75rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-details h4 {
    font-size: 0.9rem;
  }

  .contact-details p {
    font-size: 0.75rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .cta-final-section {
    padding: 2.5rem 1rem;
  }

  .cta-final-section .cta-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .cta-final-section .cta-description {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .preview-stat {
    padding: 1rem;
  }

  .preview-stat-value {
    font-size: 1.5rem;
  }

  .preview-page-header h1 {
    font-size: 1.25rem;
  }

  .preview-page-header p {
    font-size: 0.85rem;
  }
}

/* ============================================
   Responsive Design — Extra Small (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .landing-header {
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }

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

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .feature-title {
    font-size: 1rem;
  }

  .feature-description {
    font-size: 0.85rem;
  }

  .about-stat-number {
    font-size: 1.75rem;
  }

  .about-stat-label {
    font-size: 0.85rem;
  }

  .pricing-card .pricing-header h2 {
    font-size: 1.25rem;
  }

  .pricing-card {
    padding: 1rem;
  }

  .amount {
    font-size: 2rem;
  }

  .btn-block {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .contact-form-wrapper {
    padding: 1rem;
  }

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

  .contact-info {
    gap: 1.5rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .contact-details h4 {
    font-size: 0.85rem;
  }

  .contact-details p {
    font-size: 0.7rem;
  }

  .cta-final-section {
    padding: 2rem 0.75rem;
  }

  .cta-final-section .cta-title {
    font-size: 1.1rem;
  }

  .cta-final-section .cta-description {
    font-size: 0.8rem;
  }
}

/* ============================================
   Form Validation Styles
   ============================================ */
.error-message {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 500;
}

.form-control.error {
  border-color: var(--danger);
  background-color: rgba(239, 68, 68, 0.05);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.success-message {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  color: var(--success);
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease-out;
}

.success-message i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.success-message p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--success);
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  animation: slideInDown 0.8s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
