/* Cores do tema Escuro */
:root {
    --bg-black: #0f0f0f;
    --dark-bg: #1a1a1a;
    --header-bg: rgba(15, 15, 15, 0.85);
    --soft-blue: #5b8fb9;
    --primary-color: #7fb5ff;
    --text-light: #e0e0e0;
    --neon-glow: #7fb5ff;
    --wave-grad: linear-gradient(135deg, #7fb5ff 0%, #5b8fb9 100%);
    --text-dim: #888;
    --border-color: #222;
    --btn-outline: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Cores do tema Claro */

[data-theme="light"] {
    --bg-black: #f5f7fa;
    --dark-bg: #ffffff;
    --header-bg: rgba(245, 247, 250, 0.85);
    --soft-blue: #3a7ca5;
    --primary-color: #3a7ca5;
    --text-light: #1a1a1a;
    --neon-glow: #5b8fb9;
    --wave-grad: linear-gradient(135deg, #7fb5ff 0%, #5b8fb9 100%);
    --text-dim: #666;
    --border-color: #ddd;
    --btn-outline: #1a1a1a;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-black);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Header */

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    justify-content: center;
}

.logo img {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.header-left a,
nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: 0.3s;
}

.header-left a:hover,
nav a:hover {
    opacity: 1;
    color: var(--soft-blue);
}

.theme-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--glass-border);
    transform: rotate(15deg);
    color: var(--soft-blue);
}

.login-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--primary-color);
    color: var(--bg-black) !important;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-select {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0 12px;
    height: 38px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.lang-select:hover {
    background: var(--glass-border);
    border-color: var(--soft-blue);
}

.lang-select option {
    background: var(--bg-black);
    color: var(--text-light);
}

/* Secção - Hero*/

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 0 10%;
    margin-top: 60px;
    gap: 80px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-content,
.hero-mockup {
    position: relative;
    z-index: 5;
}

.hero-content {
    flex: 0 1 500px;
    max-width: 600px;
    transform: translateX(30px);
}

.hero-mockup {
    flex: 0 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform: translateX(30px) translateY(-20px);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--text-light), var(--soft-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 1.5vw, 18px);
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.app-badges {
    display: flex;
    gap: 20px;
    align-items: center;
}

.badge-playstore {
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.badge-playstore:hover {
    background: #111;
    transform: translateY(-3px);
    border-color: var(--soft-blue);
}

.badge-playstore i {
    font-size: 24px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.badge-text small {
    font-size: 10px;
    text-transform: uppercase;
}

.badge-text strong {
    font-size: 16px;
}

.btn-web {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--soft-blue);
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn-web:hover {
    background: var(--soft-blue);
    color: white;
    box-shadow: 0 0 20px rgba(91, 143, 185, 0.4);
}

.hero-mockup {
    flex: 0 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 36px;
    border: 12px solid #222;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(127, 181, 255, 0.2);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    overflow: hidden;
    position: relative;
}

.phone-screen::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 55%);
    transform: rotate(-20deg);
    pointer-events: none;
}

.phone-frame:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
    font-size: 14px;
}

.phone-notch {
    width: 120px;
    height: 20px;
    background: #222;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.app-badges {
    display: flex;
    gap: 15px;
}

/* Ondas */

.wave-container {
    width: 100vw;
    height: 400px;
    bottom: 0;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.wave-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-path,
.wave-path-bottom {
    fill: var(--dark-bg);
    transition: fill 0.3s ease;
}

.section-waved {
    background: var(--dark-bg);
    padding: 120px 10% 40px 10%;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.wave-container-bottom {
    width: 100vw;
    height: 200px;
    bottom: -50px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.wave-container-bottom svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleY(-1.2) translateY(10px);
    transform-origin: bottom center;
}

/* Secções Gerais */

.section {
    padding: 100px 10%;
    text-align: center;
}

.section h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

section:nth-child(4) {
    padding-top: 220px;
    margin-top: -20px;
}

.section-features {
    background: var(--bg-black);
    padding-top: 180px;
    position: relative;
    z-index: 1;
}

.section:nth-of-type(3) {
    padding-top: 200px;
}

/* Secção - Status */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 5;
}

.stat {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--soft-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 32px;
    background: linear-gradient(135deg, var(--soft-blue), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.stat h3 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-light);
}

.stat p {
    font-size: 14px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Secção - O que você pode fazer */

.features-header {
    margin-bottom: 60px;
}

.features-header .subtitle {
    color: var(--soft-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--soft-blue);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--soft-blue), var(--primary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-black);
    margin-bottom: 25px;
    box-shadow: 0 8px 15px rgba(127, 181, 255, 0.3);
}

.feature-text h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Secção - Call to Action */

.cta-wrapper {
    background: linear-gradient(135deg, #7fb5ff 0%, #5b8fb9 100%);
    width: 100%;
    position: relative;
}

.wave-cta-divider {
    width: 100%;
    height: 100px;
    line-height: 0;
    background-color: var(--bg-black);
}

.wave-cta-divider svg {
    width: 100%;
    height: 100%;
    fill: #7fb5ff;
}

.wave-cta-divider.bottom svg {
    fill: #5b8fb9;
}

.cta-full-gradient {
    background: transparent;
    padding: 60px 10%;
    text-align: center;
    position: relative;
}

.cta-content h2 {
    color: #0f0f0f;
    font-weight: 800;
}

.cta-content p {
    color: rgba(15, 15, 15, 0.8);
}

.cta-badge {
    background: rgba(15, 15, 15, 0.1);
    color: #0f0f0f;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

.btn-cta-dark {
    display: inline-block;
    padding: 18px 45px;
    background: #0f0f0f;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.btn-cta-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.cta-actions {
    margin-top: 20px;
}

/* Footer */

footer {
    padding: 40px;
    text-align: center;
    background: var(--bg-black);
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
    font-size: 14px;
    z-index: 9999;
}

/* --- Responsividade --- */

/* Tablets e Telas Médias */
@media (max-width: 1024px) {
    header {
        padding: 15px 5%;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding-top: 100px;
        gap: 50px;
    }

    .hero-content {
        transform: none;
        flex: 1;
    }

    .hero-actions {
        align-items: center;
    }

    .hero-mockup {
        transform: none;
        flex: 1;
    }

    .hero-mockup:hover {
        transform: translateY(-10px);
    }
}

/* Smartphones (Mobile) */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr auto;
        padding: 10px 5%;
    }

    .header-left {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .app-badges {
        flex-direction: column;
        width: 100%;
    }

    .badge-playstore,
    .btn-web {
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .stats,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section {
        padding: 60px 5%;
    }

    .wave-container,
    .wave-container-bottom {
        width: 100%;
        height: 150px;
    }

    .section-waved {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .logo img {
        height: 30px;
    }

    nav {
        gap: 8px;
    }

    .login-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
}