.hero-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
}

.hero p {
    /* color: #4a647d; */
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 1rem;
}

h3 {
    margin: 0.8rem 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-visual {
    width: 40%;
    min-width: 260px;
    flex-shrink: 0;
}

.hero-visual .placeholder-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(135deg,
            rgba(140, 20, 35, 0.95),
            rgba(40, 10, 15, 0.95));
    border-radius: 1.125rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.hero-buttons {
    margin-top: 1rem;
    display: flex;
}

/* FEATURES */
.features {
    background: white;
}

.features-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* SOLUTIONS */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.card {
    height: 100%;
    background: white;
    padding: 1.875rem;
    border-radius: 0.625rem;
    text-align: center;
    transition: transform 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card .title {
    font-weight: 600;
    text-align: left;
    margin-bottom: 1rem;
    margin-right: 1rem;
}

.card .content {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.card .card-chevron {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.4rem;
    color: #999;
    transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover .card-chevron,
.card:focus-visible .card-chevron {
    transform: translateX(6px);
    color: var(--main-hover-color);
}

.solution-grid a {
    text-decoration: none;
    color: var(--font-color);
}

a.btn-primary {
    text-decoration: none;
}

a.btn-primary:hover {
    color: white;
    background-color: var(--main-hover-color);
}

.diagram-wrapper .subtitle {
    color: #6b7280;
    margin-bottom: 3rem;
}

.diagram {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .06);
}

.plot {
    position: relative;
    display: flex;
}

.plot svg {
    inset: 0;
    z-index: 0;
    width: 100%;
    height: auto;
}

.features .pi-logo {
    width: 200px;
    height: auto;
    display: flex;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: -0.5rem;
}

.container .pi-logo {
    width: 200px;
    height: auto;
    display: flex;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: none;
    flex-shrink: 0;
    margin-top: -0.5rem;
}

.features .pi-logo svg,
.container .pi-logo svg {
    width: 100%;
    height: auto;
}

.container .pi-header {
    gap: 2rem;
    color: #333;
}

.pi-header-padding {
    padding: 2rem 0;
}

.hero-grid p,
.features p,
.container p,
.diagram-wrapper p {
    margin-bottom: 0.6rem;
}

@media (max-width: 1000px) {
    .hero-grid {
        flex-direction: column;
    }

    .hero-visual {
        width: 100%;
        max-width: 600px;
    }

    .hero-buttons {
        align-self: center;
        display: flex;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
    }

    .hero-visual {
        width: 100%;
    }

    .features-grid {
        display: flex;
        flex-direction: column;
    }

    .feature {
        width: 70%;
        margin: auto;
    }

    .diagram {
        border-radius: 0.25rem;
        padding: 1rem 0.25rem;
    }

    .container .pi-header {
        flex-direction: column;
    }

    .container .pi-logo {
        width: 50%;
    }

    .videos-link-wrapper {
        padding: 1rem 0 !important;
    }

    .videos-link-wrapper a {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
}


.pi-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pi-title {
    font-size: 1.3rem;
    font-weight: bold;
    /* color: #333; */
    line-height: 1.3;
    max-width: 80%;
}

.container-text {
    font-size: 1rem;
    line-height: 1.65;
    color: #2e2e2e;
}

.container-text p {
    margin-bottom: 1.25em;
}

.simple-list {
    padding: 1rem 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 0.5rem;
    color: #333;
}

.simple-list li::marker {
    color: var(--main-color);
    font-size: 1.2rem;
}

.complex-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.complex-list li {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
}

.complex-list li h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0a2b4a;
}

.complex-list li .outcome {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 0.5rem;
}

.complex-list li .outcome h5 {
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--main-color);
    text-transform: uppercase;
}

.complex-list li .outcome p {
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.software-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    padding-bottom: 0;
}

.software-modules-box {
    background: white;
    padding: 0.5rem 2rem 1.5rem 2rem;
    border-radius: 0.625rem;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.software-modules-box:hover {
    transform: translateY(-5px);
}

.software-modules-box ul {
    padding-left: 1rem;
}

.software-modules-box ul li::marker {
    color: var(--main-color);
    font-size: 1.2rem;
}

.request-section {
    background: #f1f5f9;
    padding: 4rem 1.25rem;
}

.request-section-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.request-section-box h2 {
    margin-bottom: 0.75rem;
}

.request-section-box p {
    margin-bottom: 1.5rem;
}

.request-section-box h3 {
    margin-bottom: 0.5rem;
}

.videos-link-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.videos-link-wrapper svg {
    width: 1.2rem;
    height: 1.2rem;
}

.videos-link-wrapper a {
    background-color: var(--main-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.videos-link-wrapper a:hover {
    background-color: var(--main-hover-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.videos-link-wrapper a:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.videos-link-wrapper a:focus-visible {
    outline: 3px solid rgba(178, 31, 45, 0.4);
    outline-offset: 3px;
}