/* --- IFP HERO --- */
.hero {
    background: #f4f6f9;
    padding-top: 100px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 900px) {
    .hero-text {
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

.hero-text h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-text h1 span::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(2, 136, 209, 0.1);
    z-index: -1;
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.hero-image img {
    border-radius: 20px;
    transition: 0.5s;
    width: 100%;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.feature-box:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(2, 136, 209, 0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- SCENARIO ROWS --- */
.scenario-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

@media (min-width: 900px) {
    .scenario-row {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.scenario-row:last-child {
    margin-bottom: 0;
}

/* Reordering logic for mobile: Image usually kept first or normal flow.
   If we want consistent Image-Text-Image-Text on desktop, we use order.
   But on mobile, Image then Text usually looks best for both blocks.
*/
@media (max-width: 899px) {
    .scenario-row .scenario-content {
        order: 2;
    }
    .scenario-row .scenario-img {
        order: 1;
    }
}

.scenario-img img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

.scenario-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.scenario-content ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.scenario-content ul li i {
    margin-right: 10px;
}

/* --- SPECS TABLE --- */
.specs-section {
    background: #f4f6f9;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 600px; /* Ensure table doesn't squish too much, scroll instead */
}

/* Scroll wrapper handled in HTML with overflow-x: auto */

.spec-table th,
.spec-table td {
    padding: 15px 25px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.spec-table th {
    background: var(--primary);
    color: white;
    width: 30%;
    font-weight: 500;
}

.spec-table tr:last-child td,
.spec-table tr:last-child th {
    border-bottom: none;
}

.spec-table tr:hover td {
    background: #fafafa;
}
