:root {
    --pink-cotton: #FF69B4;
    --pink-hover: #FF1493;
    --pink-light: #FFE1EC;
    --purple-grape: #8A2BE2;
    --purple-dark: #4B0082;
    --yellow-candy: #FFD700;
    --green-mint: #40E0D0;
    --bg-marshmallow: #FFF0F5;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #546E7A;
    --sidebar-width: 280px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@font-face {
    font-family: 'DoubleBass';
    src: url('../assets/fonts/DoubleBass-Bold-trial.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-marshmallow);
    color: var(--text-dark);
    line-height: 1.7;
    display: flex;
}

/* Fundo Animado */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.candy-bg {
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 10px 10px rgba(216, 75, 126, 0.2));
}

.c1 { top: 10%; left: 5%; font-size: 60px; animation-duration: 5s; }
.c2 { top: 40%; right: 5%; font-size: 80px; animation-duration: 7s; animation-delay: 1s; }
.c3 { bottom: 15%; left: 10%; font-size: 70px; animation-duration: 6s; animation-delay: 2s; }
.c4 { top: 15%; right: 25%; font-size: 50px; animation-duration: 8s; animation-delay: 0.5s; }
.c5 { bottom: 30%; right: 15%; font-size: 90px; animation-duration: 5.5s; animation-delay: 1.5s; }

/* Menu Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-mobile {
    font-size: 20px;
    font-weight: 800;
    color: var(--pink-cotton);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--purple-dark);
    cursor: pointer;
    padding: 5px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 225, 236, 0.8);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 30px 20px;
    box-shadow: 2px 0 20px rgba(216, 75, 126, 0.05);
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--pink-cotton);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 0px #FFE1EC;
}

.nav-links { list-style: none; }
.nav-links li { margin-bottom: 5px; }
.nav-links a {
    text-decoration: none;
    color: var(--purple-grape);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-links a i {
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--pink-light);
    color: var(--pink-cotton);
    border-left: 3px solid var(--pink-cotton);
    transform: translateX(5px);
}

.nav-links a.active i { opacity: 1; }

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Área de Conteúdo */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 60px 8%;
    max-width: 1200px;
    width: 100%;
}

/* Glassmorphism e Efeitos Visuais */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(121, 82, 179, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    transition: var(--transition);
}

.glass-panel:hover {
    box-shadow: 0 30px 60px rgba(121, 82, 179, 0.12);
}

.hero-layout {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-text { flex: 1; min-width: 300px; }
.hero-illustration {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Imagens Modernas */
.image-wrapper {
    position: relative;
    max-width: 500px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-img {
    width: 100%;
    border-radius: 0;
    display: block;
    background: transparent;
    box-shadow: none;
}

.float-anim { animation: float-img 6s ease-in-out infinite; }
.float-anim-delayed { animation: float-img 7s ease-in-out infinite 1s; }

@keyframes float-img {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--purple-grape);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.5);
}

.floating-badge.b1 { top: 0px; right: -10px; animation: float-badge 4s infinite alternate; }
.floating-badge.b2 { bottom: -10px; left: 0px; animation: float-badge 5s infinite alternate-reverse; }

@keyframes float-badge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Tipografia */
.candy-text, .logo, .logo-mobile, .footer-logo {
    font-family: 'DoubleBass', sans-serif;
}

.candy-text {
    background: linear-gradient(to right, var(--pink-cotton), var(--yellow-candy), var(--green-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 3s linear infinite;
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

h1 { font-size: clamp(36px, 5vw, 56px); color: var(--pink-cotton); margin-bottom: 15px; font-weight: 900; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: clamp(24px, 4vw, 32px); color: var(--purple-grape); margin-top: 60px; margin-bottom: 30px; display: flex; align-items: center; gap: 15px; border-bottom: 2px solid #FFE1EC; padding-bottom: 15px; font-weight: 800; }
h3 { font-size: 22px; color: var(--pink-cotton); margin-top: 35px; margin-bottom: 15px; font-weight: 700; }
p { font-size: 16px; margin-bottom: 20px; color: var(--text-muted); }
.lead { font-size: 18px; color: var(--purple-grape); font-weight: 600; margin-bottom: 30px; background: var(--pink-light); display: inline-block; padding: 5px 15px; border-radius: 20px; }

/* Tooltip Interativo */
.tooltip-custom {
    position: relative;
    display: inline-block;
    color: var(--pink-cotton);
    font-weight: 700;
    cursor: help;
    border-bottom: 2px dashed var(--pink-cotton);
    transition: var(--transition);
}

.tooltip-custom:hover {
    color: var(--purple-grape);
    border-bottom-color: var(--purple-grape);
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 250px;
    background-color: var(--purple-dark);
    color: var(--white);
    text-align: center;
    border-radius: 12px;
    padding: 12px 15px;
    position: absolute;
    z-index: 1000;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.tooltip-custom .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--purple-dark) transparent transparent transparent;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Listas */
.custom-list { padding-left: 0; list-style: none; counter-reset: custom-counter; }
.custom-list li { margin-bottom: 15px; padding-left: 45px; position: relative; }
.custom-list li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter);
    position: absolute;
    left: 0; top: 0;
    width: 30px; height: 30px;
    background: var(--pink-light);
    color: var(--pink-cotton);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 14px;
}

.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 15px; margin-bottom: 25px; align-items: flex-start; }
.check-list i { font-size: 24px; color: var(--green-mint); margin-top: 5px; }

/* Caixas de Informação */
.info-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #FFE1EC;
    border-left: 5px solid var(--pink-cotton);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(216, 75, 126, 0.05);
    transition: var(--transition);
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(216, 75, 126, 0.1); }

.highlight-box {
    background: linear-gradient(135deg, rgba(216, 75, 126, 0.05) 0%, rgba(121, 82, 179, 0.05) 100%);
    padding: 25px; border-radius: 16px; margin-top: 25px; border: 1px dashed var(--pink-cotton);
}

/* Grids e Diagramas */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--pink-cotton), var(--yellow-candy));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}

.feature-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(216, 75, 126, 0.15); }
.feature-box:hover::after { transform: scaleX(1); }

.icon-wrapper {
    width: 80px; height: 80px; margin: 0 auto 20px;
    background: var(--pink-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 35px; color: var(--pink-cotton); transition: var(--transition);
}

.feature-box:hover .icon-wrapper { background: var(--pink-cotton); color: var(--white); transform: rotateY(180deg); }

/* Diagrama Arquitetura */
.interactive-chart {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white); padding: 40px 30px; border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin: 30px 0; flex-wrap: wrap; gap: 15px;
}

.diagram-box { text-align: center; flex: 1; min-width: 120px; font-weight: 600; font-size: 15px; }
.diagram-box span { font-size: 12px; color: var(--text-muted); font-weight: normal; }
.icon-circle {
    width: 60px; height: 60px; margin: 0 auto 15px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.icon-circle.pink { background: linear-gradient(135deg, var(--pink-light), var(--pink-cotton)); }
.icon-circle.green { background: linear-gradient(135deg, #a8f0e5, var(--green-mint)); }
.icon-circle.purple { background: linear-gradient(135deg, #b08bea, var(--purple-grape)); }
.icon-circle.yellow { background: linear-gradient(135deg, #ffe0a3, var(--yellow-candy)); }

.diagram-arrow { color: #d0c3d9; font-size: 24px; animation: arrow-bounce 2s infinite; }
@keyframes arrow-bounce { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* Tabela Responsiva */
.table-responsive { overflow-x: auto; margin: 30px 0; border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th { background-color: var(--purple-dark); color: var(--white); padding: 18px 20px; text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
td { padding: 18px 20px; border-bottom: 1px solid #FFE1EC; font-size: 15px; color: var(--text-dark); }
tr:nth-child(even) td { background-color: #faf7fc; }
tr:hover td { background-color: #f0e6f5; }

/* Barras de Progresso */
.bar-container { margin-top: 25px; }
.bar-row { display: flex; align-items: center; margin-bottom: 20px; gap: 15px; }
.bar-label { width: 150px; font-weight: 600; font-size: 14px; color: var(--purple-grape); }
.bar-bg { flex: 1; background-color: #FFE1EC; height: 12px; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--pink-cotton), var(--yellow-candy)); box-shadow: 0 0 10px rgba(216, 75, 126, 0.5); }
.bar-pct { width: 50px; text-align: right; font-weight: 800; font-size: 15px; color: var(--pink-cotton); }

/* Timeline Roadmap */
.timeline { position: relative; max-width: 800px; margin: 50px auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; width: 2px; height: 100%; background: linear-gradient(to bottom, var(--pink-cotton), var(--yellow-candy)); }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-icon {
    position: absolute; left: -55px; top: 10px; width: 40px; height: 40px;
    background: var(--pink-cotton); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 5px var(--bg-marshmallow); z-index: 1;
}
.timeline-date { font-weight: 800; color: var(--yellow-candy); font-size: 13px; margin-bottom: 10px; letter-spacing: 1px; display: inline-block; background: #fff1d6; padding: 4px 12px; border-radius: 20px; }
.timeline-content { padding: 30px; margin-bottom: 0; }
.timeline-content h4 { color: var(--purple-grape); margin-bottom: 15px; font-size: 20px; }

/* Botões */
.hero-buttons { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
button { font-family: 'Poppins', sans-serif; }

.btn-connect {
    background: linear-gradient(135deg, var(--pink-cotton), var(--pink-hover));
    color: var(--white); padding: 15px 30px; border-radius: 30px; border: none;
    font-weight: 700; font-size: 16px; cursor: pointer; transition: var(--transition);
    box-shadow: 0 10px 20px rgba(216, 75, 126, 0.3); display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-connect:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(216, 75, 126, 0.4); }

.btn-secondary {
    background: var(--white); color: var(--purple-grape); padding: 15px 30px; border-radius: 30px; border: 2px solid var(--purple-grape);
    font-weight: 700; font-size: 16px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px;
}
.btn-secondary:hover { background: var(--purple-grape); color: var(--white); }

.badge { background: var(--yellow-candy); color: white; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: bold; margin-left: 8px; }
.badge.safe { background: var(--green-mint); }

/* Animação Scroll */
/* .reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); } */
/* .reveal.active { opacity: 1; transform: translateY(0); } */

/* Rodapé */
footer { text-align: center; margin-top: 80px; padding: 50px 20px 30px; border-top: 1px solid #FFE1EC; background: var(--white); border-radius: 40px 40px 0 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1000px; margin: 0 auto 30px; flex-wrap: wrap; gap: 20px; }
.footer-logo { font-size: 24px; font-weight: 900; color: var(--pink-cotton); }
.footer-socials a { color: var(--purple-grape); font-size: 20px; margin: 0 10px; transition: var(--transition); }
.footer-socials a:hover { color: var(--pink-cotton); transform: translateY(-3px); display: inline-block; }
.disclaimer { font-size: 12px; margin-top: 15px; color: #a195a6; max-width: 800px; margin: 15px auto 0; }

/* Grid de Contrato (Segurança) */
.contract-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.contract-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #FFE1EC;
    transition: var(--transition);
}
.contract-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(216, 75, 126, 0.08); }
.contract-item .icon-status { font-size: 24px; flex-shrink: 0; }
.contract-item.yes .icon-status { color: var(--green-mint); }
.contract-item.no .icon-status { color: var(--pink-cotton); }
.contract-item.warn .icon-status { color: var(--yellow-candy); }
.contract-item.info .icon-status { color: var(--purple-grape); }
.contract-item h4 { font-size: 16px; color: var(--purple-grape); margin-bottom: 5px; font-weight: 700; }
.contract-item p { font-size: 13px; margin: 0; line-height: 1.5; color: var(--text-muted); }

/* Responsividade Mobile */
@media (max-width: 992px) {
    .hero-layout { flex-direction: column; text-align: center; }
    .hero-buttons { justify-content: center; }
    .floating-badge.b1 { right: 0; }
    .floating-badge.b2 { left: 0; }
    
    .mobile-nav-toggle { display: flex; }
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
        max-width: 80vw;
    }
    .sidebar.open { transform: translateX(0); }
    .close-btn { display: block; }
    .main-content { margin-left: 0; padding: 100px 5% 40px; }
}

@media (max-width: 768px) {
    .glass-panel { padding: 30px 20px; }

    .interactive-chart { 
        flex-direction: column; 
        padding: 30px 15px;
    }
    .diagram-box { min-width: 100%; width: 100%; margin-bottom: 10px; }
    .diagram-arrow { transform: rotate(90deg); margin: 15px 0; }

    .timeline { padding-left: 20px; }
    .hero-text h1 { font-size: 38px; }
    .timeline::before { left: 0; }
    .timeline-icon { left: -35px; width: 30px; height: 30px; font-size: 12px; }
    .timeline-content { padding: 20px; }
    
    table th, table td { padding: 10px 10px; font-size: 13px; }
    .footer-content { flex-direction: column; justify-content: center; }
}
