#features {
    padding: 180px 0 120px 0; /* Padding superior estendido para acomodar a sobreposição */
    margin-top: -80px; /* Margem negativa para "entrar" debaixo da seção Sobre */
    position: relative;
    background-color: var(--bg-main);
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

/* Card Base */
.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    padding: 24px 20px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 97, 255, 0.35);
    box-shadow: 0 15px 40px rgba(123, 97, 255, 0.1);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 10px;
}

.feature-card p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #B8BFC8;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Área Interativa das Micro-UIs */
.micro-ui-container {
    flex-grow: 1;
    width: 100%;
    background-color: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 20px;
}

/* Card 1 - Diagnostic Shuffler */
.shuffler-wrapper {
    position: relative;
    width: 80%;
    height: 120px;
}

.shuffler-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(123, 97, 255, 0.2);
    border-radius: 1.2rem;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform-origin: center bottom;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease, z-index 0.6s ease;
}

.shuffler-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFF;
}

.shuffler-card .shuffler-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.shuffler-card .shuffler-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
}

.shuffler-card.active .shuffler-bar-fill {
    width: 100%;
    transition: width 3s linear;
}

.shuffler-card .shuffler-badge {
    align-self: flex-start;
    padding: 3px 8px;
    font-size: 1rem;
    font-family: var(--font-code);
    background: rgba(123, 97, 255, 0.1);
    color: #9C8CFF;
    border-radius: 4px;
    border: 1px solid rgba(123, 97, 255, 0.15);
}

/* Card 2 - Performance Dashboard */
.performance-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.performance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.performance-title {
    font-family: var(--font-code);
    font-size: 1.05rem;
    color: var(--text-muted);
}

.fps-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-code);
    font-size: 1rem;
    color: #4ADE80;
}

.fps-dot {
    width: 6px;
    height: 6px;
    background-color: #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ADE80;
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.performance-metrics {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 15px;
}

.metric-circle-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 3.5;
}

.circle-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-circle-text {
    position: absolute;
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: bold;
    color: #FFF;
}

.metric-vitals {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vital-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-code);
    font-size: 1.1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 2px;
}

.vital-label {
    color: var(--text-muted);
}

.vital-value {
    color: #FFF;
    font-weight: 600;
}

.vital-value.text-green {
    color: #4ADE80;
}

.performance-chart-container {
    width: 100%;
    height: 45px;
    background: rgba(10, 10, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.performance-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-line {
    fill: none;
    stroke: #7B61FF;
    stroke-width: 2;
    stroke-linecap: round;
    transition: d 0.15s linear;
}

.chart-area {
    fill: rgba(123, 97, 255, 0.08);
    transition: d 0.15s linear;
}

/* Card 3 - Cursor Protocol Scheduler */
.scheduler-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scheduler-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    width: 100%;
}

.scheduler-cell {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.scheduler-cell span.day-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.75;
}

.scheduler-cell.active {
    background-color: rgba(123, 97, 255, 0.2);
    border-color: var(--primary);
    color: #FFF;
    font-weight: bold;
    box-shadow: 0 0 12px var(--primary-glow);
}

.scheduler-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.scheduler-button.saved {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFF;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* SVG Cursor Simulado */
.scheduler-virtual-cursor {
    position: absolute;
    width: 14px;
    height: 20px;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    transform: translate(0, 0);
    opacity: 0;
}

/* Card 4 - Wireframe Landing Page */
.wireframe-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px;
}

.wireframe-nav {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 20px;
}

.wireframe-hero {
    width: 100%;
    height: 100px;
    background: rgba(123, 97, 255, 0.1);
    border: 1px dashed rgba(123, 97, 255, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.wireframe-title {
    width: 60%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.wireframe-btn {
    width: 30%;
    height: 12px;
    background: var(--primary);
    border-radius: 6px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wireframe-btn.clicked {
    transform: scale(0.85);
    background: #10B981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.wireframe-seo-badge {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: #10B981;
    color: #FFF;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    animation: bounceBadge 2s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wireframe-seo-badge.glow {
    transform: scale(1.1);
    box-shadow: 0 0 20px #10B981;
}

/* Notificação flutuante de lead */
.wireframe-notification {
    position: absolute;
    top: 5px;
    background: #10B981;
    color: #FFF;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    pointer-events: none;
}

.wireframe-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor virtual para o Wireframe */
.wireframe-virtual-cursor {
    position: absolute;
    width: 14px;
    height: 20px;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    transform: translate(0, 0);
    opacity: 0;
}

@keyframes bounceBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsividade */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .feature-card {
        padding: 30px 24px;
        min-height: 460px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .feature-card {
        min-height: auto;
        padding: 30px 20px;
    }
}
