/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #19181f;
    --color-bg-middle: #23202a;

    --color-dimmed-text: #c2c6dd;
    --color-yellow: #dfdb00;
    --color-mint: #abd198;
    --color-green: #97bf0d;

    --border-radius: 24px;
    --border-radius-sm: 12px;

    --spacing-default: 1.5rem;
    --spacing-small: 0.75rem;

    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: var(--color-bg-dark);
}

h1 {
    font-size: 4.25rem;
    font-weight: bold;
    text-align: center;

    @media (max-width: 768px) {
        line-height: 1;
    }
}

h2 {
    font-size: 3.25rem;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    font-weight: 700;

    color: var(--color-dimmed-text);
    margin: var(--spacing-small) 0;

    span {
        color: white;
        margin-right: 0.5rem;
    }
}

.intro {
    margin: calc(var(--spacing-default) * 4);

    p {
        font-size: 1.75rem;
        line-height: 1.5;
        color: var(--color-dimmed-text);
        text-align: center;
    }

    @media (max-width: 768px) {
        margin: 0;
    }
}

.section-head {
    display: grid;
    grid-template-columns: 65% 1fr;
    margin: calc(var(--spacing-default) * 8) 0 calc(var(--spacing-default) * 2)
        0;

    h2 {
        margin: 0;
        line-height: 1;
    }

    p {
        font-size: 1.25rem;
        line-height: 1.5;
        color: var(--color-dimmed-text);
    }

    @media (max-width: 768px) {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-default);
        text-align: center;
    }
}

.product-card {
    display: flex;
    flex-direction: column;

    background-color: var(--color-bg-middle);
    border-radius: var(--border-radius);

    color: var(--color-dimmed-text);
    /*box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow: var(--shadow);*/

    header {
        aspect-ratio: 16 / 9;
        background-size: cover;
        background-position: center;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }

    .body,
    footer {
        padding: var(--spacing-default);
    }

    .pricing {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        margin-bottom: var(--spacing-default);

        div {
            display: flex;
            flex-direction: row;
            gap: var(--spacing-small);
        }
    }

    a {
        /*color: white;*/
        text-decoration: none;
    }

    p:not(:last-child),
    ul:not(:last-child),
    ol:not(:last-child) {
        margin-bottom: var(--spacing-small);
    }

    ol,
    ul {
        list-style-type: none;
        line-height: 2;
    }

    h3 {
        color: white;
        text-decoration: none;

        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;

        margin-bottom: var(--spacing-default);
    }

    footer {
        margin-top: auto;

        a {
            display: block;
            width: 100%;
        }
    }
}

.team {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-default);

    .member {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-default);

        img {
            width: 280px;
            border-radius: var(--border-radius);
        }

        p {
            color: var(--color-dimmed-text);
            font-size: 1.25rem;
        }

        .name {
            display: block;

            font-weight: 700;
            color: white;
        }

        .links {
            margin: 0;
            padding: 0;
            list-style-type: none;
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: var(--spacing-default);

            a {
                transition: all 0.3s ease;
                aspect-ratio: 1;
                background-color: var(--color-bg-middle);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border-radius: var(--border-radius-sm);
                padding: 0.125rem 0.5rem;
                text-decoration: none;
                font-weight: bold;
                text-align: center;
                color: var(--color-dimmed-text);

                &:hover {
                    background-color: var(--color-yellow);
                    color: black;
                }

                &:active {
                    background: var(--color-mint);
                    color: black;
                }
            }

            svg {
                width: 24px;
            }
        }
    }
}

.cta-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background: var(--color-bg-middle);
    border-radius: var(--border-radius);
    margin: calc(var(--spacing-default) * 4) 0;

    .cta-diagonal-bg {
        position: absolute;
        top: 0;
        right: 25%;
        z-index: 20;
        width: 25%;
        height: 100%;
        color: var(--color-bg-middle);
    }

    .cta-bg {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 10;
        width: 50%;
        height: 100%;
        background: var(--color-dark-800, #111);
        border-top-right-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
    }

    .cta-content {
        position: relative;
        z-index: 30;
        display: grid;
        grid-template-columns: 2fr 1fr;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
        margin: 0 auto;
        text-align: center;
        max-width: 1200px;
    }

    .cta-heading {
        font-size: 2.5rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #fff;
        margin: 0;
    }
    .cta-action {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 32rem;

        flex: 1 1 50%;
    }

    .cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 2rem;
        height: 3.5rem;
        font-size: 1rem;
        font-weight: 600;
        background: #fff;
        color: #18181b;
        border-radius: 9999px;
        transition:
            background 0.25s,
            color 0.25s;
        text-decoration: none;
        outline: none;

        &:hover,
        &:focus {
            background: var(--color-yellow);
            color: black;
        }
        &:active {
            background: var(--color-mint);
            color: black;
        }
    }

    @media (max-width: 768px) {
        .cta-content {
            grid-template-columns: 1fr;
            gap: var(--spacing-default);
        }
    }
}

[class^="button-"] {
    transition: all 0.3s ease;
    display: inline-block;
    background-color: var(--color-green);
    color: black;
    border: none;
    padding: var(--spacing-small) var(--spacing-default);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    text-align: center;

    &:hover {
        background-color: var(--color-yellow);
    }

    &:active {
        background-color: var(--color-mint);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-default);
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "stats testimonial1 testimonial2" "stats testimonial3 testimonial4";

    gap: var(--spacing-default);

    h3 {
        font-size: 2.25rem;
        line-height: 1.2;
        font-weight: bold;
        text-align: center;
    }

    .box {
        position: relative;
        background-color: var(--color-bg-middle);
        border-radius: var(--border-radius-sm);
        padding: calc(var(--spacing-default) * 3)
            calc(var(--spacing-default) * 1.5);

        svg {
            position: absolute;
            top: calc(var(--spacing-default) * -1);
            left: calc(var(--spacing-default) * -1);
            width: 200px;
            height: 200px;
            border-radius: var(--border-radius-sm);
            color: var(--color-bg-dark);
            z-index: 0;
        }

        blockquote {
            position: relative;
            z-index: 1;
        }

        p,
        span {
            display: block;
            color: var(--color-dimmed-text);
            text-align: center;
            font-size: 1.12rem;
            line-height: 1.5;
        }

        p {
            font-weight: 500;
            line-height: 1.7;
        }

        .name {
            color: white;
        }

        .number {
            font-size: 3rem;
            color: white;
            line-height: 1;
            font-weight: bold;
            text-align: center;
        }

        .stat {
            margin: calc(var(--spacing-default) * 1.5) 0;
        }

        footer {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .avatar {
            object-fit: cover;
            object-position: center;
            border-radius: 50%;
            width: 75px;
            margin: var(--spacing-default);
        }
    }

    .stats {
        grid-area: stats;
    }
}

body > footer {
    margin: calc(var(--spacing-default) * 2);
    font-size: 1.2rem;

    .columns {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-default);

        color: var(--color-dimmed-text);
    }

    .logo {
        justify-self: start;
        margin-top: 0;
    }

    h5 {
        color: white;
        font-size: 1.4rem;
        margin-bottom: var(--spacing-small);
    }

    ol,
    ul {
        list-style: none;
        padding: 0;

        a {
            color: var(--color-dimmed-text);
            text-decoration: none;

            &:hover {
                color: var(--color-yellow);
            }
        }
    }

    @media (max-width: 768px) {
        .columns {
            display: grid;
            grid-template-columns: 1fr;
        }
    }
}

@media (max-width: 768px) {
    .testimonials {
        display: block;
    }

    .team {
        display: grid;
        grid-template-columns: 1fr;
    }
}
