/* ================================
   CORE — SISTEMA OPERACIONAL
   Paleta: #0A0A0A | #FFFFFF | #C4541A
   ================================ */

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

:root {
    --preto: #0A0A0A;
    --branco: #FFFFFF;
    --laranja: #C4541A;
    --cinza-escuro: #1A1A1A;
    --cinza-medio: #2A2A2A;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--preto);
    color: var(--branco);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   LOADING SCREEN - SISTEMA FORJA
   ================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--preto);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    width: 90%;
    max-width: 500px;
}

.loading-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--branco);
    margin-bottom: 60px;
    text-align: left;
}

.loading-status {
    margin-bottom: 40px;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-line.active {
    opacity: 1;
}

.status-icon {
    font-size: 18px;
    color: var(--laranja);
    min-width: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.status-line.active .status-icon {
    opacity: 1;
}

.status-text {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--branco);
    flex: 1;
}

.status-check {
    font-size: 16px;
    color: var(--laranja);
    opacity: 0;
    transition: opacity 0.2s ease;
    min-width: 20px;
    text-align: right;
}

.status-line.completed .status-check {
    opacity: 1;
}

.loading-bar-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.loading-bar {
    flex: 1;
    height: 2px;
    background: var(--cinza-medio);
    position: relative;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--laranja);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-percentage {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--laranja);
    min-width: 50px;
    text-align: right;
}

/* ================================
   MAIN CONTENT
   ================================ */

.main-content {
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.main-content.visible {
    opacity: 1;
}

/* ================================
   TOP BANNER
   ================================ */

.top-banner {
    background: var(--laranja);
    color: var(--preto);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--preto);
}

.banner-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-banner 30s linear infinite;
    will-change: transform;
}

.banner-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 0 40px;
    text-transform: uppercase;
    color: var(--preto);
    flex-shrink: 0;
}

@keyframes scroll-banner {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ================================
   HEADER
   ================================ */

.header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid var(--cinza-medio);
    position: sticky;
    top: 0;
    background: var(--preto);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sublogo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
}

.logo-img {
    height: 170px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-system {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--branco);
    opacity: 0.5;
    text-transform: uppercase;
    text-align: right;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
    position: relative;
    background: 
        linear-gradient(180deg, transparent 0%, var(--preto) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.9;
    color: var(--branco);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--branco);
    opacity: 0.7;
    margin-bottom: 50px;
    max-width: 500px;
}

.technical-line {
    width: 1px;
    height: 200px;
    background: var(--laranja);
    margin-bottom: 10px;
}

.technical-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--laranja);
}

/* ================================
   BUTTONS
   ================================ */

.btn-primary {
    background: transparent;
    color: var(--branco);
    border: 1px solid var(--laranja);
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--laranja);
    color: var(--preto);
}

.btn-secondary {
    background: transparent;
    color: var(--branco);
    border: 1px solid var(--cinza-medio);
    padding: 12px 24px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    width: 100%;
    margin-top: 20px;
}

.btn-secondary:hover {
    border-color: var(--laranja);
    color: var(--laranja);
}

/* ================================
   FILOSOFIA SECTION
   ================================ */

.filosofia {
    padding: 120px 40px;
    background: var(--preto);
    border-top: 1px solid var(--cinza-medio);
}

.filosofia-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 80px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--branco);
    margin-bottom: 50px;
    text-transform: uppercase;
}

.filosofia-text {
    max-width: 600px;
}

.filosofia-text p {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--branco);
    opacity: 0.85;
}

.filosofia-list {
    margin: 30px 0;
    padding-left: 20px;
}

.list-item {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--branco);
    margin-bottom: 12px;
    opacity: 0.7;
}

.filosofia-footer {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--laranja);
    margin-top: 30px;
}

.technical-marker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--laranja);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ================================
   PRODUTOS SECTION
   ================================ */

.produtos {
    padding: 120px 40px;
    background: var(--cinza-escuro);
}

.produtos-header {
    max-width: 1400px;
    margin: 0 auto 80px;
}

.technical-line.horizontal {
    width: 100%;
    height: 1px;
    background: var(--laranja);
    margin-top: 20px;
}

.produto-line {
    max-width: 1400px;
    margin: 0 auto 80px;
}

.line-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cinza-medio);
}

.line-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--branco);
}

.line-code {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--laranja);
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.produto-card {
    background: var(--preto);
    border: 1px solid var(--cinza-medio);
    padding: 40px 30px;
    position: relative;
    transition: border-color 0.3s ease;
}

.produto-card:hover {
    border-color: var(--laranja);
}

.produto-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    font-weight: 900;
    color: var(--laranja);
    opacity: 0.15;
}

.produto-nome {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--branco);
    margin-bottom: 15px;
}

.produto-desc {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.7;
    color: var(--branco);
    opacity: 0.7;
}

/* ================================
   DIFERENCIAL SECTION
   ================================ */

.diferencial {
    padding: 120px 40px;
    background: var(--preto);
    border-top: 1px solid var(--cinza-medio);
}

.diferencial-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 80px;
}

.diferencial-text {
    max-width: 700px;
}

.diferencial-text p {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.8;
    color: var(--branco);
    opacity: 0.85;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--laranja);
    margin: 40px 0;
}

.technical-cross {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.cross-line {
    position: absolute;
    background: var(--laranja);
}

.cross-line.vertical {
    width: 1px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.cross-line.horizontal {
    width: 100%;
    height: 1px;
    top: 50%;
    transform: translateY(-50%);
}

.technical-label.small {
    font-size: 10px;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    padding: 80px 40px 40px;
    border-top: 1px solid var(--cinza-medio);
    background: var(--preto);
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer-logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin: 0 auto;
    display: block;
}

.footer-text {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--branco);
    opacity: 0.6;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--laranja);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--branco);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.footer-link:hover {
    color: var(--laranja);
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--branco);
    letter-spacing: 0.3px;
}

.footer-icon {
    font-size: 16px;
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--cinza-medio);
}

.system-status,
.system-version {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--branco);
    opacity: 0.4;
    text-transform: uppercase;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 968px) {
    .header {
        padding: 25px 30px;
        grid-template-columns: 1fr 1fr;
    }

    .sublogo-img {
        height: 80px;
    }

    .logo-img {
        height: 140px;
    }

    .header-system {
        font-size: 8px;
    }

    .top-banner {
        padding: 10px 0;
    }

    .banner-text {
        font-size: 12px;
        padding: 0 30px;
    }

    .hero {
        padding: 60px 30px;
        min-height: 75vh;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-detail {
        display: none;
    }

    .filosofia {
        padding: 80px 30px;
    }

    .filosofia-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .produtos {
        padding: 80px 30px;
    }

    .produtos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .diferencial {
        padding: 80px 30px;
    }

    .diferencial-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        padding: 60px 30px 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .footer-logo-img {
        height: 130px;
    }
}

@media (max-width: 640px) {
    .header {
        grid-template-columns: 1fr 1fr;
        padding: 20px 15px;
    }

    .sublogo-img {
        height: 70px;
    }

    .logo-img {
        height: 120px;
    }

    .header-system {
        font-size: 7px;
    }

    .banner-text {
        font-size: 11px;
        letter-spacing: 2px;
        padding: 0 25px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 32px;
    }

    .loading-title {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .status-icon {
        font-size: 16px;
    }

    .status-text {
        font-size: 13px;
    }

    .loading-percentage {
        font-size: 14px;
        min-width: 45px;
    }

    .footer-logo-img {
        height: 150px;
    }
}
