/*==========================================================
  Variáveis de Tema
  ==========================================================*/
:root {
    /* Tema Claro */
    --bg-color: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --text-color: #1a1a2e;
    --primary-color: #007bff;
    --primary-gradient: linear-gradient(to right, #007bff, #3498db);
    --secondary-color: #6c757d;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.9);
}

body.dark-mode {
    /* Tema Escuro: Sobrescreve as variáveis do tema claro */
    --bg-color: #1a1a2e;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    --text-color: #e6e6e6;
    --primary-color: #3498db;
    --primary-gradient: linear-gradient(to right, #3498db, #5dade2);
    --secondary-color: #acb1b6;
    --card-bg: rgba(45, 45, 53, 0.5);
    --border-color: rgba(108, 117, 125, 0.2);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(26, 26, 46, 0.9);
}


/*==========================================================
  Estilos Globais e de Layout
  ==========================================================*/
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-gradient);
    color: var(--text-color);
    transition: background-color 0.5s, color 0.5s;
}

.min-h-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/*==========================================================
  Header
  ==========================================================*/
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(5px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    height: 40px;
    width: auto;
    transition: opacity 0.3s;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-login {
    background-color: transparent;
    color: var(--text-color);
}

.btn-login:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-register {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.btn-register:hover {
    background: linear-gradient(to right, #0056b3, #2e8baf);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}


/*==========================================================
  Seções
  ==========================================================*/
main {
    flex-grow: 1;
    padding-top: 50px;
}

.hero-section {
    text-align: center;
    padding: 80px 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 32px;
}

.btn-primary {
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.features-section, .plans-section, .cta-section {
    padding: 80px 16px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.features-grid, .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    justify-content: center;
}

.feature-card, .plan-card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.feature-card:hover, .plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    display: inline-block;
    padding: 16px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 16px;
}

.icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.feature-card h3, .plan-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p, .plan-card p {
    color: var(--secondary-color);
}

.price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.price span {
    font-size: 0.5em;
    font-weight: normal;
}

.cta-section {
    text-align: center;
}

.cta-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 64px 32px;
    box-shadow: var(--shadow);
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 32px;
}

footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

footer p {
    font-size: 14px;
    color: var(--secondary-color);
}


/*==========================================================
  Responsividade
  ==========================================================*/
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .features-grid, .plans-grid {
        grid-template-columns: 1fr;
    }
}