/* -----------------------------------------------------------------------------
   Software — SaaS Platforms page
   Loaded conditionally for 'software' route.
----------------------------------------------------------------------------- */

/* =============================================================================
   HERO — dark
============================================================================= */

.sw-hero {
    background: linear-gradient(135deg, #1a2e10 0%, #14161A 50%, #0e1012 100%);
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.sw-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: 5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(123,185,62,0.11) 0%, transparent 68%);
    pointer-events: none;
}

.sw-hero-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
    padding-left: 0.75rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.sw-hero-title {
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.sw-hero-title span {
    color: var(--primary-green);
}

.sw-hero-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* --- Hero visual: feature highlights grid --- */

.sw-hero-feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 340px;
    margin-left: auto;
}

.sw-hero-feat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.sw-hero-feat:hover {
    border-color: rgba(123,185,62,0.35);
    background: rgba(123,185,62,0.06);
}

.sw-hero-feat i {
    color: var(--primary-green);
    font-size: 1.15rem;
}

.sw-hero-feat span {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    line-height: 1.3;
}

/* =============================================================================
   PLATFORMS SECTION
============================================================================= */

.sw-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
    border-left: 3px solid var(--primary-green);
    padding-left: 0.75rem;
    line-height: 1;
}

.sw-platform-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small-card);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sw-platform-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.sw-platform-card-image {
    height: 330px;
    overflow: hidden;
    position: relative;
}

.sw-platform-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sw-platform-card:hover .sw-platform-card-image img {
    transform: scale(1.03);
}

.sw-platform-card-body {
    padding: 2rem;
}

.sw-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: var(--light-green);
    color: var(--primary-green-darker);
    margin-bottom: 1.25rem;
}

.sw-platform-logo-wrap {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--navbar-bg);
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-platform-logo {
    max-height: 48px;
    width: auto;
    display: block;
}

.sw-platform-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.sw-platform-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sw-platform-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.sw-platform-features li i {
    color: var(--primary-green);
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* =============================================================================
   CTA SECTION
============================================================================= */

.sw-cta {
    background: linear-gradient(135deg, #14161A 0%, #1a2e10 100%);
    padding: 4.5rem 0;
}

/* =============================================================================
   RESPONSIVE
============================================================================= */

@media (max-width: 1024px) {
    .sw-hero-feat-grid {
        max-width: 100%;
        margin-left: 0;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .sw-hero {
        padding: 3.5rem 0 3rem;
    }
    /* Hero mobile centering */
    .sw-hero .column:first-child { text-align: center; }
    .sw-hero .buttons { justify-content: center; }
    .sw-hero-subtitle { text-align: center; }

    .sw-hero-title {
        font-size: 2rem;
    }

    .sw-hero-feat-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 1.5rem;
    }

    .sw-hero-feat {
        padding: 1rem 0.85rem;
    }

    .sw-platform-card-image {
        height: 270px;
    }

    .sw-platform-card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sw-hero-feat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sw-hero-feat span {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .sw-platform-card-body {
        padding: 1.25rem;
    }
    .sw-platform-card-body .button {
        width: 100%;
        justify-content: center;
    }
}
