:root {
    --bg-color: #030303;
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --primary: #a3ff00; /* Motorplace Neon Green */
    --secondary: #ffffff; /* White contrast */
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(163, 255, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.nav-logo img {
    height: 50px;
    border-radius: 50%;
}

.nav-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.nav-btn:hover {
    background: var(--primary);
    color: #000;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 255, 0, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: left 0.1s ease-out, top 0.1s ease-out;
}

.container {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: none;
}
.container::-webkit-scrollbar { display: none; }

.slide {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 10% 2rem;
    position: relative;
}

.gradient-text {
    color: var(--primary);
}

.glass-panel {
    background: rgba(10,10,10,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.glass-card {
    background: rgba(20,20,20,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: border-color 0.3s;
}
.glass-card:hover { border-color: var(--primary); }

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(163, 255, 0, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
}

h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; color: #fff; }
h2 { font-size: 2.8rem; margin-bottom: 2rem; color: #fff; }
.center { text-align: center; width: 100%; margin-bottom: 2rem;}
.subtitle { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 3rem; }

.grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}
.grid-layout.reverse .text-content { order: 2; }

.feature-list { list-style: none; margin-top: 1rem; }
.feature-list li {
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.feature-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}
.feature-list li strong { color: var(--secondary); }

.flex-col { flex-direction: column; }

.cards-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
}
.cards-grid.four-cols { grid-template-columns: repeat(4, 1fr); }

.finance-card { text-align: center; }
.finance-card h4 { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.finance-card .value { font-size: 2.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.finance-card .desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;}
.finance-card .profit { font-size: 0.95rem; font-weight: 600; color: var(--primary); background: rgba(163,255,0,0.1); padding: 0.5rem; border-radius: 8px;}
.highlight-border { border-color: var(--primary) !important; box-shadow: 0 0 20px rgba(163,255,0,0.1);}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
}
.struct-box h4 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.2rem; }
.struct-box p { color: var(--text-muted); font-size: 0.95rem; }

.matrices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
}
.matrix-card h3 { color: var(--primary); margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem;}
.matrix-card ul { list-style: none; }
.matrix-card ul li { margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem; }
.matrix-card ul li strong { color: #fff; }

.errors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1000px;
    width: 100%;
}
.error-item {
    background: rgba(30,30,30,0.5);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.error-item strong { color: #fff; }

.cta-button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(163, 255, 0, 0.2);
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(163, 255, 0, 0.4);
}

.fade-in, .slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible, .slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}
.scroll-indicator .arrow-down { font-size: 1.5rem; color: var(--primary); margin-top: 0.2rem;}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-8px) translateX(-50%);}
    60% {transform: translateY(-4px) translateX(-50%);}
}

/* Gráfico Curva ABC */
.abc-curve-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 2rem 0;
}
.abc-bar {
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}
.abc-bar:hover { transform: translateX(10px); }
.abc-bar .abc-label { font-weight: 800; font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between;}
.abc-bar p { margin: 0 !important; font-size: 0.95rem; }
.abc-bar.bar-a { background: linear-gradient(90deg, rgba(163,255,0,0.9) 0%, rgba(163,255,0,0.1) 100%); width: 100%; border-left: 6px solid var(--primary); }
.abc-bar.bar-a .abc-label { color: #000; }
.abc-bar.bar-a p { color: rgba(0,0,0,0.8) !important; font-weight: 600;}
.abc-bar.bar-b { background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.05) 100%); width: 75%; border-left: 6px solid #fff; }
.abc-bar.bar-b .abc-label, .abc-bar.bar-b p { color: #fff !important; }
.abc-bar.bar-c { background: linear-gradient(90deg, rgba(100,100,100,0.5) 0%, rgba(100,100,100,0.1) 100%); width: 50%; border-left: 6px solid #888; }
.abc-bar.bar-c .abc-label, .abc-bar.bar-c p { color: #ddd !important; }

@media (max-width: 900px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .grid-layout, .cards-grid.four-cols, .structure-grid, .matrices-grid, .errors-grid { grid-template-columns: 1fr; }
    .slide { height: auto; min-height: 100vh; padding: 6rem 5% 4rem; scroll-snap-align: none;}
    .container { scroll-snap-type: none; }
    .glass-card { padding: 1.5rem; }
    .glass-panel { padding: 2rem 1.5rem; }
    .finance-card .value { font-size: 2rem; }
    .abc-bar.bar-a, .abc-bar.bar-b, .abc-bar.bar-c { width: 100%; }

    .struct-section {
        flex-direction: column;
        gap: 1.5rem;
    }
    .vertical-title {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: center;
        font-size: 2.2rem;
    }
}

/* Assinatura do Desenvolvedor */
.developer-signature {
    margin: 4rem auto 2rem;
    max-width: 900px;
    text-align: left;
    border-top: 3px solid var(--primary);
    background: rgba(10,10,10,0.8);
}
.sig-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}
.sig-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.utfpr-logo {
    height: 60px;
    width: auto;
    max-width: 140px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(163,255,0,0.1);
    object-fit: contain;
}
.iflow-logo {
    height: 70px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    object-fit: cover;
}
.sig-title h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0 0 0.2rem 0;
    border: none;
    padding: 0;
}
.sig-title span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}
.sig-content p {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 1.5rem;
}
.sig-creds {
    list-style: none;
    padding: 0;
}
.sig-creds li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}
.sig-creds li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}
.sig-creds li strong {
    color: #fff;
}
.sig-extra-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.cluster-img {
    height: 55px;
    width: auto;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    object-fit: contain;
}
.cluster-img.iflow-logo {
    height: 75px;
    background: transparent;
    padding: 0;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
}
@media (max-width: 600px) {
    .sig-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .sig-header-left { flex-direction: column; align-items: flex-start; }
}
.hero-logo {
    height: 120px;
    width: auto;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(163,255,0,0.2);
    max-width: 100%;
}
img[src="pucrs.png"] {
    height: 85px !important;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

img.iflow-logo { max-width: 120px !important; max-height: 120px !important; object-fit: contain !important; }
/* FORCED LOGO FIX */
img.iflow-logo, img[src="iflow.png"], img.hero-logo, .nav-logo img {
    max-width: 100px !important;
    max-height: 100px !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

/* INFOGRAPHICS & VISUAL DATA */

/* Timeline (Vertical) */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding-left: 2rem;
}
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(163, 255, 0, 0.2);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-marker {
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(163,255,0,0.5);
}
.timeline-content {
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.timeline-title {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Bar Chart (Slide 6) */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    margin-top: 1rem;
}
.bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.bar-label-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 600;
}
.bar-track {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(163,255,0,0.3) 0%, var(--primary) 100%);
    box-shadow: 0 0 15px rgba(163,255,0,0.4);
    animation: fillBar 1.5s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
}
@keyframes fillBar { to { transform: scaleX(1); } }

/* Risk Matrix (Slide 7) */
.risk-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}
@media (min-width: 768px) {
    .risk-matrix { grid-template-columns: 1fr 1fr; }
}
.risk-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(30,30,30,0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}
.risk-card:hover { transform: translateY(-5px); }
.risk-card.high-risk { border-top: 4px solid #ff4444; }
.risk-card.med-risk { border-top: 4px solid #ffbb33; }
.risk-card.low-risk { border-top: 4px solid #00C851; }

.risk-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    text-transform: uppercase;
}
.high-risk .risk-badge { background: rgba(255,68,68,0.2); color: #ff4444; }
.med-risk .risk-badge { background: rgba(255,187,51,0.2); color: #ffbb33; }
.low-risk .risk-badge { background: rgba(0,200,81,0.2); color: #00C851; }

/* Buttons */
.modern-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.modern-back-btn:hover {
    background: rgba(163,255,0,0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(163,255,0,0.4);
    z-index: 1000;
    opacity: 0.8;
    transition: all 0.3s;
}
.back-to-top:hover {
    transform: translateY(-5px);
    opacity: 1;
}

/* Estilos Base Vazados e Efeito Neon */
.lucide { width: 48px; height: 48px; stroke-width: 1.5; fill: none; }
.neon-cyan .lucide { stroke: #00f0ff; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8)); }
.neon-purple .lucide { stroke: #b026ff; filter: drop-shadow(0 0 8px rgba(176, 38, 255, 0.8)); }
.neon-green .lucide { stroke: #00ff66; filter: drop-shadow(0 0 8px rgba(0, 255, 102, 0.8)); }
.neon-gold .lucide { stroke: #ffbb33; filter: drop-shadow(0 0 8px rgba(255, 187, 51, 0.8)); }
.neon-red .lucide { stroke: #ff3366; filter: drop-shadow(0 0 8px rgba(255, 51, 102, 0.8)); }
