/* --- HERO --- */
.hero {
    background: var(--bg-light);
    padding-top: 100px;
    padding-bottom: 50px;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 70px;
    }
}

.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 h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
}

.hero p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--text-grey);
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.1rem;
    }
}

.hero-img-container {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.hero-img-container img {
    max-height: 400px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@media (min-width: 768px) {
    .hero-img-container img {
        max-height: 500px;
    }
}


/* --- PROCESS STEPS --- */
.process-steps {
    display: flex;
    flex-wrap: wrap; /* Changed grid to flex wrap/row */
    justify-content: space-between;
    position: relative;
    gap: 40px; /* Gap for mobile stacking */
}

@media (min-width: 900px) {
    .process-steps {
        flex-wrap: nowrap;
        gap: 20px;
    }
}

.steps-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
    display: none; /* Hide on mobile by default */
}

@media (min-width: 900px) {
    .steps-line {
        display: block;
    }
}

.step-item {
    position: relative;
    z-index: 1;
    background: white; /* To cover line if needed, but transparent looks ok with spacing */
    flex: 1 1 100%; /* Full width on mobile */
    text-align: center;
    padding: 0 10px;
}

@media (min-width: 600px) {
    .step-item {
        flex: 1 1 45%; /* 2 per row on tablet */
    }
}

@media (min-width: 900px) {
    .step-item {
        flex: 1;
    }
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(2, 136, 209, 0.3);
}

.step-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}


/* --- TOPOLOGY --- */
.topology-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.device-flow {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 20px;
}

@media (min-width: 900px) {
    .device-flow {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.device-node {
    text-align: center;
    width: 150px;
    padding: 10px;
    background: #fdfdfd;
    border-radius: 10px;
    /* border: 1px solid #f0f0f0; Optional */
}

.device-icon {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 10px;
    height: 60px;
    width: 60px;
    background: #eef7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.flow-arrow {
    width: 2px;
    height: 40px; /* Vertical arrow for mobile */
    background: #ccc;
    position: relative;
}

@media (min-width: 900px) {
    .flow-arrow {
        width: 100px;
        height: 2px; /* Horizontal arrow for desktop */
        margin-top: 40px; /* Align with icon center approx */
    }
}

.flow-arrow::after {
    content: "";
    position: absolute;
    /* Arrow head logic changes based on orientation */
    border: solid #ccc;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

/* Vertical arrow head */
.flow-arrow::after {
    bottom: 0;
    left: -2px; /* Center */
    transform: rotate(45deg); 
}

/* Horizontal arrow head override */
@media (min-width: 900px) {
    .flow-arrow::after {
        right: 0;
        bottom: -2px;
        left: auto;
        transform: rotate(-45deg);
    }
}


/* --- VARIANTS --- */
.variants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .variants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.variant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.variant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.variant-header {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.variant-icon-area {
    height: fit-content;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-icon-area img {
    max-height: 200px;
    margin: 20px 0;
}

.variant-body {
    padding: 25px;
    flex: 1; /* Pushes button to bottom if height fixed, though auto here */
    display: flex;
    flex-direction: column;
}

.variant-body h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.variant-body .desc {
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 20px;
    text-align: center;
    min-height: 40px; /* Align heights */
}

.spec-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-grey);
}

.spec-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.full-width {
    width: 100%;
}
