:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #4361ee;
    --accent-hover: #3f37c9;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #4361ee;
    --accent-hover: #3f37c9;
    --border: #334155;
    --card-bg: #1e293b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header Actions Overlay */
.header-actions-overlay {
    position: absolute;
    top: 30px;
    right: 3%;
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}



.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(4px);
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    color: #4361ee;
    letter-spacing: -0.5px;
}

.logo-text .subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 4px;
    color: var(--text-secondary);
    max-width: 150px;
}

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

/* Theme Toggle Button - Pure Text as requested */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.theme-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.theme-switch {
    position: relative;
    width: 44px;
    height: 22px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: 0.3s;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.theme-switch input:checked + .theme-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.theme-switch input:checked + .theme-slider:before {
    transform: translateX(22px);
}

[data-theme="light"] .theme-slider {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

[data-theme="light"] .theme-slider:before {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}




/* Main Layout */
main {
    flex: 1;
}

.top-branding-section {
    padding: 1.5rem 5% 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-branding-centered {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-left: -8px; /* Compensação ajustada para o novo X do ícone */
}

.logo-icon-top {
    width: 140px;
    height: 140px;
    transform: translate(10px, 0px);
}

.logo-text-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text-top h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin: 0;
    transform: translateY(8px); /* Deslocamento direto para baixo */
    color: #4361ee;
    letter-spacing: -1.25px;
}

.logo-text-top .subtitle-top {
    font-size: 1.4rem; /* 0.75rem * 2.5 adjusted */
    font-weight: 600;
    line-height: 1.2;
    margin-top: 10px; /* 4px * 2.5 */
    color: var(--text-secondary);
    letter-spacing: -0.2px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 6rem 5% 4rem 5%;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    animation: fadeInRight 1s ease-out;
}

.feature-square {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-square:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.feature-square h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.feature-square p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--accent);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(67, 97, 238, 0.39);
}

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

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

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

/* Features Section */
.features-section {
    background-color: var(--bg-secondary);
    padding: 6rem 5%;
    border-top: 1px solid var(--border);
}

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

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

.features-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-item {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent);
}

.feature-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

footer {
    padding: 1rem 5%;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
        overflow-y: auto;
        padding-top: 2rem;
    }

    body {
        overflow-y: auto;
        height: auto;
    }

    .features-mini {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2.5rem;
    }
}