/* ==============================================================================
   SiGER Landing Page Stylesheet
   Design System: Tema Escuro Premium (Ecológico & Tecnológico)
   ============================================================================== */

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

/* --- DESIGN TOKENS --- */
:root {
    /* Cores de Fundo */
    --bg-primary: #060913; /* Fundo escuro azulado/verdeado extraído do banner */
    --bg-secondary: #0b0f1d;
    --bg-tertiary: #0f1527;
    --bg-card: rgba(15, 21, 39, 0.7);
    --bg-glass: rgba(6, 9, 19, 0.6);
    
    /* Cores de Texto */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Cores de Destaque */
    --color-emerald: #53b753; /* Verde folha oficial do banner do SiGER */
    --color-emerald-dark: #378c37;
    --color-cyan: #3e8e41; /* Mantendo tons de verde e transição */
    --color-cyan-dark: #2a5d2a;
    --color-blue: #81c784;
    
    /* Gradientes */
    --gradient-text: linear-gradient(135deg, #53b753 0%, #81c784 100%);
    --gradient-primary: linear-gradient(135deg, #53b753 0%, #2e7d32 100%);
    --gradient-dark: linear-gradient(180deg, #060913 0%, #0b0f1d 100%);
    --gradient-glow: linear-gradient(135deg, rgba(83, 183, 83, 0.15) 0%, rgba(129, 199, 132, 0.15) 100%);
    
    /* Efeitos de Borda e Sombra */
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-focus: rgba(83, 183, 83, 0.4);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(83, 183, 83, 0.2);
    
    /* Espaçamentos e Layout */
    --max-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

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

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

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- REUSABLE UTILITIES & COMPONENTS --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--color-emerald);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
    margin-bottom: 1.5rem;
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-cyan);
}

/* Botões */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4), var(--shadow-glow);
}

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

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

/* Cards */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.card-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.05);
}

/* Seções */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

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

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-img {
    height: 2.25rem;
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--color-emerald);
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* Mobile Menu Trigger */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    position: relative;
    z-index: 1100;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 0;
    transition: var(--transition-smooth);
}

.menu-trigger span:first-child { top: 0.35rem; }
.menu-trigger span:nth-child(2) { top: 0.9rem; }
.menu-trigger span:last-child { top: 1.45rem; }

.menu-trigger.active span:first-child {
    transform: rotate(45deg);
    top: 0.9rem;
}
.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}
.menu-trigger.active span:last-child {
    transform: rotate(-45deg);
    top: 0.9rem;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    position: relative;
}

/* Glow Backgrounds */
.hero::before {
    content: '';
    position: absolute;
    width: 40rem;
    height: 40rem;
    top: -10rem;
    right: -10rem;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 30rem;
    height: 30rem;
    bottom: -5rem;
    left: -10rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Mockup Imagem */
.hero-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup-wrapper {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium), 0 0 60px rgba(0, 0, 0, 0.8);
    background: var(--bg-secondary);
    max-width: 380px;
    width: 100%;
    transform: rotate(2deg);
    transition: var(--transition-smooth);
    animation: float 6s ease-in-out infinite;
}

.hero-mockup-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

@keyframes float {
    0% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(2deg); }
}

/* --- MÓDULOS / FUNCIONALIDADES --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.module-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-emerald);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.module-card:hover .module-icon {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.module-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-grow: 1;
}

/* --- COMO FUNCIONA (STEPS) --- */
.steps-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-glass);
    transform: translateX(-50%);
}

.step-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    width: 100%;
}

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

.step-dot {
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--color-emerald);
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    transition: var(--transition-smooth);
}

.step-item:hover .step-dot {
    background: var(--color-emerald);
    box-shadow: 0 0 20px var(--color-emerald);
}

.step-content {
    width: 45%;
    position: relative;
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.3;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

/* Alinhamento alternado da timeline */
.step-item:nth-child(odd) {
    justify-content: flex-start;
}

.step-item:nth-child(even) {
    justify-content: flex-end;
}

.step-item:nth-child(odd) .step-content {
    text-align: right;
    padding-right: 2rem;
}

.step-item:nth-child(even) .step-content {
    text-align: left;
    padding-left: 2rem;
}

/* --- MOCKUP DO DASHBOARD (PREMIUM SECT) --- */
.dashboard-showcase .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.dashboard-showcase-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium), 0 10px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.dashboard-showcase-image::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.feature-list-icon {
    color: var(--color-cyan);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* --- PERGUNTAS FREQUENTES (FAQ) --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(6, 182, 212, 0.2);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Linha horizontal */
.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

/* Linha vertical */
.faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.open .faq-icon::after {
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-answer-content {
    padding: 0 2rem 1.75rem 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    border-top: 1px solid transparent;
}

.faq-item.open {
    background: var(--bg-tertiary);
    border-color: rgba(16, 185, 129, 0.15);
}

.faq-item.open .faq-answer-content {
    border-top-color: var(--border-glass);
}

/* --- CONVERTER LEAD (FORMULÁRIO) --- */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 35rem;
    height: 35rem;
    bottom: -15rem;
    right: -10rem;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(6, 182, 212, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.contact-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form Styling */
.form-card {
    width: 100%;
}

.form-group-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.form-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-emerald);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

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

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
}

/* Form Message Response States */
.form-feedback {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-feedback.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-emerald);
}

.form-feedback.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-nav h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--color-emerald);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-mockup {
        order: 2;
    }
    
    .dashboard-showcase .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .dashboard-showcase-image {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    /* Navbar Mobile */
    .menu-trigger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 5rem;
        left: 0;
        width: 100%;
        height: calc(100vh - 5rem);
        background-color: var(--bg-secondary);
        border-top: 1px solid var(--border-glass);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transform: translateY(-120%);
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-cta {
        display: none; /* Esconde o botão da navbar no mobile */
    }
    
    /* Timeline no Mobile */
    .steps-timeline {
        left: 1rem;
    }
    
    .step-dot {
        left: 1rem;
    }
    
    .step-content {
        width: 100%;
        padding-left: 3rem !important;
        text-align: left !important;
    }
    
    .step-item {
        margin-bottom: 3rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
