:root {
    --blue: #2F6BFF;
    --light-blue: #5CAEFF;
    --navy: #0B1220;
    --gray: #64748B;
    --light-gray: #E8EDF5;
    --white: #FFFFFF;
    --bg: #F7FAFC;
    --text: #0B1220;
    --card: #FFFFFF;
    --shadow: 0 10px 35px rgba(15, 23, 42, 0.12);
}

.dark-mode {
    --bg: #0B1220;
    --text: #FFFFFF;
    --card: #111827;
    --gray: #AEB7C6;
    --light-gray: #1F2937;
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.site-header {
    width: 100%;
    padding: 18px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 18px;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar a {
    color: var(--gray);
    font-weight: bold;
    font-size: 14px;
}

.navbar a:hover {
    color: var(--blue);
}

.login-link {
    background: var(--blue);
    color: white !important;
    padding: 10px 18px;
    border-radius: 20px;
}

.theme-btn,
.menu-btn {
    border: none;
    background: var(--light-gray);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
}

.menu-btn {
    display: none;
}

.hero {
    min-height: calc(100vh - 80px);
    padding: 70px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text,
.hero-card {
    flex: 1;
}

.tag {
    color: var(--blue);
    font-weight: bold;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    color: var(--gray);
    font-size: 17px;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 14px 22px;
    border-radius: 24px;
    font-weight: bold;
    border: none;
}

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

.secondary-btn {
    background: var(--light-gray);
    color: var(--text);
}

.welcome-message {
    margin-top: 18px;
    font-weight: bold;
    color: var(--blue) !important;
}

.phone-mockup {
    max-width: 360px;
    margin: 0 auto;
    background: var(--navy);
    border-radius: 38px;
    padding: 18px;
    box-shadow: 0 25px 60px rgba(47, 107, 255, 0.25);
}

.phone-top {
    width: 80px;
    height: 8px;
    background: #1F2937;
    border-radius: 20px;
    margin: 0 auto 18px;
}

.phone-screen {
    min-height: 480px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0B1220, #12356B, #2F6BFF);
    padding: 24px;
    color: white;
    text-align: center;
}

.slide-box {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-box img {
    width: 100%;
    max-height: 220px;
}

.phone-screen h2 {
    margin: 18px 0 10px;
}

.phone-screen p {
    color: #D9E6FF;
    font-size: 14px;
}

.slide-controls {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.slide-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--blue);
    font-size: 26px;
    font-weight: bold;
}

.features {
    padding: 60px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 34px;
}

.section-header h2 {
    font-size: 34px;
}

.cards {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 230px;
    background: var(--card);
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--blue);
}

.card p {
    color: var(--gray);
    line-height: 1.5;
}

.site-footer {
    padding: 24px 8%;
    text-align: center;
    background: var(--card);
    color: var(--gray);
}

@media (max-width: 850px) {
    .navbar {
        display: none;
        position: absolute;
        top: 78px;
        right: 8%;
        background: var(--card);
        box-shadow: var(--shadow);
        border-radius: 20px;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        justify-content: center;
    }
}
/* ===================================
   CAMERA INTELIGENTE
=================================== */

.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px;
}

.camera-preview {
    width: 360px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    border: 3px solid #00ffaa;
    background: #111827;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 255, 170, 0.2);
    border: 1px solid #00ffaa;
    padding: 10px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.camera-info {
    position: absolute;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 16px;
    border-radius: 10px;
    color: white;
}

.camera-acoes {
    display: flex;
    gap: 15px;
}
#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camera-acoes button {
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    background: #00ffaa;
    color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.camera-acoes button:hover {
    transform: scale(1.05);
}

.status-camera {
    font-size: 18px;
    color:  #38bdf8;
}

.modos-camera {
    display: flex;
    gap: 12px;
}

.modo {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.modo:hover {
    transform: scale(1.03);
}

.ativo {
    background: #00ffaa;
    color: black;
    font-weight: bold;
}

.flash {
    animation: flashAnim 0.3s;
}

@keyframes flashAnim {

    0% {
        filter: brightness(2);
    }

    100% {
        filter: brightness(1);
    }
}

.retrato-mode {
    border-color: #00ffaa;
}

.noturno-mode {
    border-color: #6366f1;
    filter: brightness(0.5);
}

.iahd-mode {
    border-color: #facc15;
    filter: contrast(1.2) saturate(1.3);
}
.topo {
    text-align: center;
    padding-top: 25px;
}

.topo .logo {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.topo .logo span {
    color: #38bdf8;
}

.logo span {
    color: var(--blue);
}
/* SCANNER */
.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px;
}

.scanner-area {
    width: 360px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: black;
    border: 3px solid #38bdf8;
}

#scannerVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.scanner-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.scanner-box {
    width: 250px;
    height: 340px;

    border: 3px solid #38bdf8;
    border-radius: 12px;

    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.scanner-line {
    position: absolute;

    width: 250px;
    height: 4px;

    background: #38bdf8;

    top: 80px;

    border-radius: 20px;

    box-shadow: 0 0 12px #38bdf8;
}

.scanner-active .scanner-line {

    animation:
        scannerMove 2s ease-in-out infinite alternate;

}

@keyframes scannerMove {

    0% {
        top: 80px;
    }

    100% {
        top: 400px;
    }
}

.scanner-info {
    color:  #38bdf8;
    font-size: 18px;
}

#scan-btn {

    padding: 14px 28px;

    border: none;
    border-radius: 12px;

    background: #38bdf8;

    color: white;

    font-size: 16px;

    cursor: pointer;

    transition: 0.3s;
}

#scan-btn:hover {
    transform: scale(1.05);
}

.galeria-container {
    padding: 20px;
}

.filtros {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    transform: scale(1.04);
}

.filter-btn.ativo {
    background: #38bdf8;
}

.cards-galeria {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(160px, 1fr));

    gap: 20px;
}

.card {
    background: #1e293b;

    border-radius: 18px;

    overflow: hidden;

    color: white;

    transition: 0.3s;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.card-info p {
    color: #cbd5e1;
    font-size: 14px;
}

@media (max-width: 480px) {

    .cards-galeria {

        grid-template-columns: 1fr;

    }

}
/* ===================================
   CORREÇÃO DE IMAGENS
=================================== */

/* Logo no header */
#logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

/* Imagem do slideshow */
#slideImage {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 16px;
    opacity: 0.9;
}