@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM (VARIÁVEIS) --- */
:root {
    /* Cores do Tema Escuro/Misto Premium */
    --bg-main: #0b0f19;
    --bg-card: #151b2c;
    --bg-card-hover: #1e263d;
    --bg-nav: rgba(11, 15, 25, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Cores de Acento */
    --accent-indigo: #6366f1;
    --accent-indigo-hover: #4f46e5;
    --accent-cyan: #06b6d4;
    --accent-cyan-hover: #0891b2;
    --accent-success: #10b981;
    --accent-success-hover: #059669;
    
    /* Cores de Texto */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0b0f19;
    
    /* Fontes e Tamanhos */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Bordas e Sombras */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.35);
    
    /* Transições */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & ESTRUTURA GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

/* --- WRAPPERS & CONTAINER --- */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* Mobile-First Containers */
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

main {
    flex-grow: 1;
    padding-top: 80px; /* Espaço para o menu fixo */
}

/* --- NAVEGAÇÃO PREMIUM --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand span {
    color: var(--accent-indigo);
}

.navbar-toggler {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    z-index: 1001;
}

.navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Animação do Hamburger */
.navbar-toggler.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    padding: 100px 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
    transition: var(--transition-smooth);
}

.navbar-menu.active {
    right: 0;
    box-shadow: var(--shadow-lg);
}

.navbar-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: block;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navegação em Desktops */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }
    
    .navbar-menu {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background-color: transparent;
        border: none;
        padding: 0;
        gap: 0.5rem;
        align-items: center;
    }
    
    .navbar-link {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}

/* --- SEÇÃO HERO PREMIUM --- */
.hero {
    position: relative;
    padding: 4rem 0 6rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0) 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-indigo);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-promo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-indigo);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

@media (max-width: 991px) {
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-box {
    background: rgba(21, 27, 44, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

/* --- BOTÕES MODERNOS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.55);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--accent-success);
    color: var(--text-primary);
}

.btn-whatsapp:hover {
    background-color: var(--accent-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* --- CARDS & GRIDS --- */
.section-title-block {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: inline-flex;
}

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

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.card:hover .card-action {
    color: var(--accent-indigo);
}

/* --- TIMELINE (SOBRE.PHP) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 4px solid var(--accent-indigo);
    box-shadow: 0 0 10px var(--accent-indigo);
    z-index: 1;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: scale(1.2);
}

.timeline-date {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.timeline-media {
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.timeline-media img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.timeline-content:hover .timeline-media img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        padding-left: 0;
        width: 50%;
        margin-bottom: 4rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 40px;
    }
    
    .timeline-item:nth-child(odd) {
        margin-right: 50%;
        padding-right: 40px;
        text-align: right;
    }
    
    .timeline-dot {
        left: auto;
        right: -10px;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: -10px;
        right: auto;
    }
}

/* --- TELA DE DETALHE DE TUTORIAL (TUTORIAL-DETALHE.PHP) --- */
.tutorial-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
}

@media (min-width: 992px) {
    .tutorial-layout {
        grid-template-columns: 1.8fr 1.2fr;
    }
}

.tutorial-body {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.tutorial-step {
    margin-bottom: 3rem;
}

.tutorial-step:last-child {
    margin-bottom: 0;
}

.tutorial-step h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tutorial-step p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tutorial-download-action {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    text-align: center;
}

.tutorial-download-action p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sidebar-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- FORMULÁRIOS DE CONTATO --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    background-color: rgba(255, 255, 255, 0.06);
}

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

.contact-info-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-indigo);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

/* --- FOOTER MODERNO --- */
.footer {
    background-color: #080b13;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2.5rem 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-link:hover {
    color: var(--accent-indigo);
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-success);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    z-index: 998;
    transition: var(--transition-smooth);
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--accent-success-hover);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

/* --- ANIMAÇÕES --- */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
