﻿/* Stiluri de bază și resetare */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

    color: #ffffff;
    overflow-x: hidden;
}

.main-container-aprindere {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background-color: #0a0a0a;
}

.content-wrapper-aprindere {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    text-align: center;
}

.brand-red {
    color: #c10206;
    font-size: 1.5rem;
}

.section-header-aprindere {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 3rem;
}

.section-title-aprindere {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

    .section-title-aprindere svg {
        width: 3rem;
        height: 3rem;
        stroke: #fff;
        color: #EF4444;
        flex-shrink: 0;
    }

/* Reguli consolidate pentru H1 */
h1.title-text-stacked-aprindere {
    text-align: left;
    margin: 0;
    padding: 0;
    font-weight: normal;
}

    h1.title-text-stacked-aprindere span {
        display: block;
        font-family: 'Inter', sans-serif;
        font-size: 1.5rem;
        font-weight: 900;
        line-height: 1.4;
    }

        h1.title-text-stacked-aprindere span.h1-principal {
            font-size: 1.7rem;
            text-align: left;
        }

.section-header-aprindere p {
    font-size: 1.1rem;
    color: #999;
    max-width: 896px;
}

/* Container de comparație */
.comparison-container-aprindere {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
}

.card-aprindere {
    position: relative;
    width: 100%;
    background-color: #1F2937;
    border-radius: 1rem;
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card-aprindere:hover {
        transform: scale(1.05);
    }

.card-apacks {
    border: 2px solid #DC2626;
    background: radial-gradient(circle, rgba(193, 2, 6, 0.3) 0%, rgba(10, 10, 10, 0) 70%), #101010;
}

    .card-apacks:hover {
        box-shadow: 0 25px 50px -12px rgba(127, 29, 29, 0.5);
    }

.card-competitor {
    border: 1px solid #4B5563;
}

.badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    background-color: #DC2626;
    color: #FFFFFF;
    border: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.3);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

    .badge svg {
        width: 16px;
        height: 16px;
        color: #FBBF24;
        fill: currentColor;
    }

.card-aprindere h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-apacks h4 {
    color: #EF4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.card-competitor h4 {
    color: #6B7280;
}

.time-display {
    margin: 0.1rem 0;
    text-align: center;
}

.time-value-main {
    font-size: 4.75rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7), 0 0 12px rgba(255, 255, 255, 0.5);
    line-height: 0.8;
    margin-bottom: 15px;
    letter-spacing: -0.4rem;
    text-align: center;
}

.time-value-main-competitor {
    font-size: 3.75rem;
    font-weight: 800;
    color: #4B5563;
}

.time-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-top: -1rem;
    text-align: center;
    padding-left: 10px;
}

.time-unit-competitor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    margin-top: -2rem;
    text-align: center;
    padding-left: 10px;
}

.time-subtext {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.card-divider {
    width: 50%;
    border: 0;
    height: 1px;
    background-color: #FFFFFF;
    margin: 0.1rem auto;
}

.card-features {
    margin-bottom: 20px;
    text-align: center;
}

    .card-features h5 {
        font-size: 1rem;
        font-weight: 700;
        color: #FFFFFF;
        margin: 0 0 0.5rem 0;
    }

.feature-items {
    font-size: 0.875rem;
    color: #D1D5DB;
    margin: 0;
}

.card-aprindere .card-description {
    margin-top: 0;
    max-width: 300px;
}

.vs-divider-mobile, .vs-divider-desktop {
    font-size: 1.875rem;
    font-weight: 900;
    color: #4B5563;
    align-self: center;
}

.vs-divider-mobile {
    display: block;
}

.vs-divider-desktop {
    display: none;
}

.arsenal-section  {
    margin-bottom: 10px;
}

/* Secțiunea Arsenal */
.arsenal-section h2 {
    font-size: 2.25rem;
    margin-top: 20px;
}

.text-glow {
    color: #EF4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.arsenal-section > p {
    color: #9CA3AF;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

/* Grila de jos, redenumită pentru a evita conflictul */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: left;
}

.feature-item {
    background-color: rgba(17, 24, 39, 0.5);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #374151;
    transition: all 0.3s ease;
}

    .feature-item:hover {
        border-color: #EF4444;
        transform: translateY(-0.25rem);
    }

    .feature-item .icon-wrapper {
        background-color: rgba(239, 68, 68, 0.1);
        padding: 0.75rem;
        border-radius: 9999px;
        margin-bottom: 1rem;
        /* ADAUGĂ PROPRIETĂȚILE DE MAI JOS: */
        width: 4rem;
        height: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box; /* Asigură că padding-ul este inclus în dimensiune */
    }

    .feature-item .icon {
        width: 2rem;
        height: 2rem;
        color: #EF4444;
    }

    .feature-item h4 {
        font-size: 1.125rem;
        line-height: 1.75rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        color: #9CA3AF;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

/* Secțiune CTA */
.cta-section {
    margin-top: 1rem;
}

    .cta-section p {
        font-size: 1.125rem;
        color: #D1D5DB;
    }

.highlight-text {
    color: #ffffff;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background-color: #DC2626;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(127, 29, 29, 0.5), 0 4px 6px -2px rgba(127, 29, 29, 0.5);
    transform: scale(1);
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

    .cta-button:hover {
        transform: scale(1.05);
        background-color: #EF4444;
    }

/* Media Queries */
@media (min-width: 640px) {
    /* Stiluri pentru tablete... */
}

@media (min-width: 768px) {
    .comparison-container-aprindere {
        flex-direction: row;
        gap: 2.5rem;
    }

    .card-aprindere {
        width: 50%; /* Ocupă jumătate din spațiu */
    }

    .vs-divider-mobile {
        display: none;
    }

    .vs-divider-desktop {
        display: flex;
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 coloane pe desktop */
        gap: 2rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

        .feature-item .icon-wrapper {
            padding: 1rem;
        }

        .feature-item .icon {
            width: 2.5rem;
            height: 2.5rem;
        }

        .feature-item h4 {
            font-size: 1.25rem;
        }

        .feature-item p {
            font-size: 1rem;
        }
}
.feature-item .icon-wrapper .icon-chimney {
    width: 100%; /* Iconița va umple complet containerul .icon-wrapper */
    height: 100%;
    color: #EF4444;
    position: relative;
    left: -1px; /* Poți ajusta această valoare (ex: -5px) dacă vrei să o muți mai mult */
}

    .feature-item .icon-wrapper .icon-chimney path,
    .feature-item .icon-wrapper .icon-chimney line {
        stroke: currentColor;
    }

/* === CONFIGURARE & VARIABILE === */
:root {

    --font-body: 'Inter', sans-serif;
    --color-red: #ef4444;
    --color-red-light: #f87171;
    --color-gray-text: #9ca3af;
    --color-gray-bg: #111827;
    --color-gray-border: #374151;
    --border-color-default: #4B5563; /* Culoarea bordurii gri (preluată din stilurile tale) */
    --border-color-animated: #EF4444; /* Culoarea roșie a animației */
}


/* === ANIMAȚIE BORDURĂ (VERSIUNE GENERALĂ PENTRU TOATE ICONIȚELE) === */

@property --p {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* Animația care umple conturul */
@keyframes fill-border {
    to {
        --p: 360deg;
    }
}

/* Clasa care pornește animația, aplicată pe clasa generică */
.icon-animabil.is-animating {
    border-color: transparent;
}

    /* Pseudo-elementul care se umple vizual */
    .icon-animabil.is-animating::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 50%;
        background: conic-gradient(var(--border-color-animated) var(--p), transparent 0);
        mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
        animation: fill-border 0.8s linear forwards;
        z-index: -1;
    }

/* Clasa pentru starea finală, aplicată pe clasa generică */
.icon-animabil.has-animated {
    border-color: var(--border-color-animated);
}


/* === STILURI DE BAZĂ === */
.body-cum-functioneaza {
    background-color: #0a0a0a;
    color: #fff;
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
}

.how-it-works-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* === ANTET SECȚIUNE === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-family: var(--font-heading);
        font-size: 2.25rem; /* 36px */
        font-weight: 800;
        margin: 0 0 1rem;
    }

    .section-header .text-glow {
        color: var(--color-red);
        text-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
    }

    .section-header p {
        font-size: 1.125rem; /* 18px */
        color: var(--color-gray-text);
        max-width: 600px;
        margin: 0 auto;
    }

/* === LAYOUT VERTICAL PENTRU MOBIL (Mobile First) === */

/* === LAYOUT TIMELINE (VERSIUNEA FINALĂ) === */
.steps-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    /* Definim o variabilă pentru spațiere, pe care o vom refolosi */
    --timeline-gap: 2.5rem;
    gap: var(--timeline-gap);
}

.step-card {
    position: relative; /* Necesar pentru a poziționa liniile absolut */
    padding-left: 4.5rem; /* Spațiu mai generos pentru iconiță */
    z-index: 1;
}

    /* LINIA GRI DE FUNDAL (atașată de fiecare card) */
    .step-card::after {
        content: '';
        position: absolute;
        width: 3px;
        background-color: var(--color-gray-border);
        z-index: -2; /* În spatele tuturor */
        /* Poziționare și dimensionare dinamică */
        left: 1.5rem; /* Centrul iconiței */
        top: 3rem; /* Pornește de sub iconiță (care are 3rem înălțime) */
        /* MAGIA: Calculează înălțimea pentru a acoperi restul cardului PLUS spațiul (gap) de sub el */
        height: calc(100% - 3rem + var(--timeline-gap));
    }

    /* LINIA ROȘIE ANIMATĂ (suprapusă peste cea gri) */
    .step-card::before {
        content: '';
        position: absolute;
        width: 3px;
        background-color: var(--border-color-animated);
        z-index: -1; /* Deasupra liniei gri, dar sub conținutul cardului */
        /* Poziționare și dimensionare identice cu linia gri */
        left: 1.5rem;
        top: 3rem;
        height: calc(100% - 3rem + var(--timeline-gap));
        /* Animația */
        transform-origin: top;
        transform: scaleY(0);
        transition: transform 0.4s ease-out;
    }

    /* Starea finală (declanșată de JS) care desenează linia roșie */
    .step-card.is-drawing-line::before {
        transform: scaleY(1);
    }

/* Ascundem liniile pentru ULTIMUL element din listă */
.steps-timeline .step-card:last-child::before {
    display: none;
}

.steps-timeline .step-card:last-child::after {
    top: 0;
    /* ...și se termină exact deasupra iconiței de la bază. */
    height: calc(100% - 3rem); /* înălțimea cardului minus înălțimea iconiței */
    /* CULOAREA INIȚIALĂ: Gri, la fel ca restul liniilor */
    background-color: var(--color-gray-border);
    /* Adăugăm o tranziție pentru o colorare suavă */
    transition: background-color 0.4s ease-out;
}

.steps-timeline .step-card:last-child .icon-animabil {
    top: auto;
    bottom: 0;
}

/* 4. ADAUGĂM REGULA NOUĂ: Când JS activează animația, colorăm linia în roșu. */
.steps-timeline .step-card:last-child.is-drawing-line::after {
    background-color: var(--border-color-animated);
}

/* === STILURI CARD & ICONIȚĂ (NESCHIMBATE, DAR NECESARE) === */
.card-content {
    background-color: var(--color-gray-bg);
    border: 1px solid var(--color-gray-border);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.card-icon-wrapper, .card-icon-wrapper-chimney {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-gray-bg);
    border: 3px solid var(--color-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    .card-icon-wrapper svg, .card-icon-wrapper-chimney svg {
        width: 1.5rem;
        height: 1.5rem;
        color: var(--color-red-light);
    }

/* ... restul stilurilor pentru textul din carduri ... */
/* ... poți copia de aici în jos stilurile vechi pentru H3, H4, p etc. ... */
.card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.step-card h4 {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--color-red);
}

.step-card p {
    color: var(--color-gray-text);
    margin: 0;
    line-height: 1.6;
}


/* === ANIMAȚIE ICONIȚE (NESCHIMBATĂ) === */
@property --p {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes fill-border {
    to {
        --p: 360deg;
    }
}

.icon-animabil.is-animating {
    border-color: transparent;
}

    .icon-animabil.is-animating::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        border-radius: 50%;
        background: conic-gradient(var(--border-color-animated) var(--p), transparent 0);
        mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
        animation: fill-border 0.8s linear forwards;
        z-index: -1;
    }

.icon-animabil.has-animated {
    border-color: var(--border-color-animated);
}

/* === LAYOUT VERTICAL PENTRU MOBIL (Mobile First) === */

.step-card {
    position: relative;
    padding-left: 4rem; /* Spațiu pentru iconiță (64px) */
    z-index: 1;
}

.card-content {
    background-color: var(--color-gray-bg);
    border: 1px solid var(--color-gray-border);
    border-radius: 1rem; /* 16px */
    padding: 1.5rem; /* 24px */
    height: 100%;
}

.card-icon-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
    border-radius: 50%;
    background-color: var(--color-gray-bg);
    border: 3px solid var(--color-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    /* Stil pentru SVG-urile integrate */
    .card-icon-wrapper svg {
        width: 1.5rem; /* 24px */
        height: 1.5rem; /* 24px */
        color: var(--color-red-light);
    }

.card-icon-wrapper-chimney {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
    border-radius: 50%;
    background-color: var(--color-gray-bg);
    border: 3px solid var(--color-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

    /* Stil pentru SVG-urile integrate */
    .card-icon-wrapper-chimney svg {
        width: 1.5rem; /* 24px */
        height: 1.5rem; /* 24px */
        color: var(--color-red-light);
        position: relative;
        left: -1px; /* Ajustează valoarea după nevoie */
    }


.card-header h3 {
    font-size: 1rem; /* 16px */
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.step-card h4 {
    font-weight: 600;
    font-size: 1.25rem; /* 20px */
    margin: 0.5rem 0;
    color: var(--color-red);
}

.step-card p {
    color: var(--color-gray-text);
    margin: 0;
    line-height: 1.6;
}

/* === MEDIA QUERY PENTRU TABLETĂ ȘI DESKTOP === */
@media (min-width: 768px) {
    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

        .steps-timeline::before {
            display: none; /* Ascundem linia verticală */
        }

    .step-card {
        padding-left: 0; /* Resetăm padding-ul */
    }

    .card-icon-wrapper {
        position: static; /* Poziția devine normală */
        margin: 0 auto 1rem; /* Centrată deasupra */
    }

    .card-content {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .steps-timeline {
        grid-template-columns: repeat(4, 1fr);
    }
}

