:root {
    --primary: #00d4ff;
    --bg-dark: #050507;
    --card-bg: #0f0f13;
    --text: #e0e0e0;
    --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: auto; }

/* Header */
header {
    height: 80px; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(5, 5, 7, 0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass);
}

nav { height: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { font-weight: 800; font-size: clamp(1.1rem, 5vw, 1.3rem); color: #fff; display: flex; align-items: center; }
.logo span { color: var(--primary); }
.logo .icon-code { color: var(--primary); margin-right: 5px; font-weight: bold; }

.nav-links { display: flex; list-style: none; gap: clamp(10px, 3vw, 30px); }
.nav-links a { text-decoration: none; color: #fff; font-size: clamp(0.8rem, 3vw, 0.9rem); transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.mobile-menu { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary); }

/* Hero Section */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: radial-gradient(circle at top right, #112244, var(--bg-dark)); 
    text-align: center;
    padding: 100px 0 50px;
}

.hero h1 { 
    font-size: clamp(2rem, 9vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    font-weight: 800;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 1px var(--primary); }
.hero p { max-width: 600px; margin: 0 auto 30px; opacity: 0.8; font-size: clamp(0.9rem, 4vw, 1.1rem); }

.hero-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* Buttons */
.btn-primary, .btn-secondary { padding: 14px 30px; border-radius: 5px; font-weight: bold; text-decoration: none; transition: 0.3s; cursor: pointer; text-align: center; border: none; }
.btn-primary { background: var(--primary); color: #000; }
.btn-secondary { border: 1px solid var(--glass); color: #fff; }

/* Sobre */
.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.subtitle { color: var(--primary); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; }
.stat-card { background: var(--card-bg); padding: 25px; border-radius: 10px; border-left: 4px solid var(--primary); margin-bottom: 15px; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); }

/* MÉTODO CORRIGIDO - CENTRALIZAÇÃO TOTAL EM PC E MOBILE */
.workflow { padding: 80px 0; background: #08080a; }

.workflow-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza horizontalmente o Grid e o Título */
    text-align: center;   /* Centraliza o texto interno */
}

.section-title { margin-bottom: 40px; font-size: clamp(1.8rem, 6vw, 2.3rem); }

.steps-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grid que se ajusta sozinho */
    gap: 25px; 
    width: 100%; /* Ocupa todo o container */
    max-width: 1000px; /* Impede que os cards fiquem gigantes em PC super-largo */
}

.step { 
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 10px; 
    border: 1px solid var(--glass); 
    transition: 0.3s ease; 
    height: 100%; /* Garante altura uniforme */
}
.step:hover { transform: translateY(-5px); border-color: var(--primary); }
.step-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); opacity: 0.4; }

/* Mantém o Tópico 5 centralizado organicamente no PC */
.step-last { 
    max-width: 450px; 
    margin: 0 auto; 
}

/* Contato */
.contact { padding: 80px 0; }
.contact-box { background: var(--card-bg); padding: 30px; border-radius: 15px; border: 1px solid var(--glass); max-width: 700px; margin: auto; }
#contact-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
input, textarea { background: #050507; border: 1px solid var(--glass); padding: 12px; color: #fff; border-radius: 5px; width: 100%; font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--primary); outline: none; }

/* FOOTER CORRIGIDO - ESTRUTURA PREMIUM FLEX E CENTRALIZAÇÃO TOTAL */
footer { 
    padding: 60px 0 40px; 
    border-top: 1px solid var(--glass); 
    background-color: #030305;
}

.footer-content { 
    display: flex; 
    flex-direction: column; /* Ícone em cima, texto em baixo sempre */
    align-items: center;    /* Centraliza os itens horizontalmente */
    text-align: center;      /* Centraliza o texto */
    gap: 20px;
}

.socials a { 
    color: #fff; 
    font-size: 1.2rem; 
    transition: 0.3s; 
    opacity: 0.7;
}
.socials a:hover { 
    color: var(--primary); 
    opacity: 1;
}

.copyright { 
    font-size: clamp(0.7rem, 3vw, 0.8rem); 
    color: #666; 
    letter-spacing: 1px; 
    margin: 0; 
}

/* --- REGRAS MOBILE (CONCERTO DE GARGALOS) --- */
@media (max-width: 768px) {
    .mobile-menu { display: block; }
    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 7, 0.98);
        padding: 30px;
        border-bottom: 2px solid var(--primary);
    }
    .nav-links.active { display: flex; }
    .hero-btns { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn-primary, .btn-secondary { width: 100%; }
    
    /* Remove centralização forçada no mobile para usar o Grid natural */
    .step-last { max-width: 100%; margin: 0; }
}

/* Animations */
.reveal-fadein, .reveal-left, .reveal-right { opacity: 0; transition: all 0.8s ease-out; }
.reveal-fadein { transform: translateY(20px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.active { opacity: 1 !important; transform: translate(0) !important; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1.0s; }