/* =================================
   CAPABILITIES PAGE
   ================================= */

:root {

    --bg: #fafafa;
    --surface: #ffffff;

    --text: #222222;
    --muted: #666666;

    --border: #e2e2e2;

    --accent: #1f5eff;
    --accent-light: #edf2ff;

    --shadow: rgba(0, 0, 0, 0.08);

    --max-width: 1200px;
}

/* =================================
   RESET
   ================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;
}

/* =================================
   HEADER
   ================================= */

.header {

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 1.5rem 2rem;

    background: white;

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 100;
}

.logo {

    font-weight: 800;

    letter-spacing: .15rem;
}

nav {

    display: flex;
    gap: 1.5rem;
}

nav a {

    text-decoration: none;

    color: var(--muted);

    transition: .2s ease;
}

nav a:hover {

    color: var(--accent);
}

/* =================================
   PAGE HEADER
   ================================= */

.page-header {

    text-align: center;

    padding: 6rem 2rem 3rem;
}

.page-header h1 {

    font-size: clamp(2.5rem, 6vw, 4rem);

    margin-bottom: 1rem;
}

.page-header p {

    max-width: 700px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 1.1rem;
}

/* =================================
   MAIN SECTION
   ================================= */

.capabilities {

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 1rem 2rem 5rem;
}

/* =================================
   GRID
   ================================= */

.grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 1.5rem;
}

/* =================================
   CAPABILITY CARDS
   ================================= */

.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 2rem;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.card:hover {

    transform: translateY(-4px);

    border-color: var(--accent);

    box-shadow:
        0 12px 30px var(--shadow);
}

.card h3 {

    margin-bottom: 1rem;

    color: var(--text);

    font-size: 1.25rem;
}

.card p {

    color: var(--muted);

    min-height: 110px;
}

/* =================================
   EXAMPLE SECTION
   ================================= */

.example {

    margin-top: 1.5rem;

    padding-top: 1rem;

    border-top: 1px solid var(--border);
}

.example span {

    display: block;

    margin-bottom: .5rem;

    font-size: .75rem;

    font-weight: 700;

    letter-spacing: .08rem;

    text-transform: uppercase;

    color: var(--accent);
}

.example a,
.example {

    color: var(--text);

    text-decoration: none;

    font-weight: 600;
}

.example a:hover {

    color: var(--accent);
}

/* =================================
   OPTIONAL PROJECT TAG STYLE
   ================================= */

.example-project {

    display: inline-block;

    padding: .35rem .75rem;

    background: var(--accent-light);

    color: var(--accent);

    border-radius: 999px;

    font-size: .875rem;

    font-weight: 600;
}

/* =================================
   NEXT STEPS SECTION
   ================================= */

.next-steps {

    margin-top: 2rem;

    padding: 5rem 2rem;

    background: white;

    border-top: 1px solid var(--border);
}

.next-steps-container {

    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}

.next-steps h2 {

    margin-bottom: 1rem;

    font-size: 2rem;

    color: var(--text);
}

.next-steps p {

    margin-bottom: 2rem;

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.8;
}

/* =================================
   BUTTONS
   ================================= */

.btn-primary {

    display: inline-block;

    padding: .9rem 1.5rem;

    background: var(--accent);

    color: white;

    text-decoration: none;

    font-weight: 600;

    border-radius: 8px;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.btn-primary:hover {

    background: #154de6;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(31, 94, 255, 0.20);
}

/* =================================
   FOOTER
   ================================= */

footer {

    text-align: center;

    padding: 3rem 2rem;

    border-top: 1px solid var(--border);

    color: var(--muted);
}

/* =================================
   MOBILE
   ================================= */

@media (max-width: 768px) {

    .header {

        flex-direction: column;

        gap: 1rem;
    }

    nav {

        flex-wrap: wrap;

        justify-content: center;
    }

    .page-header {

        padding-top: 4rem;
    }

    .card p {

        min-height: auto;
    }
}