:root {
    --black: #000000;
    --surface: #0b0f13;
    --surface-light: #11171d;

    --text: #f3f5f7;
    --muted: #aab3bc;

    --blue: #678eb7;
    --blue-light: #86a9cc;
    --line: rgba(103, 142, 183, 0.38);

    --content-width: 1120px;
    --text-width: 760px;

    --radius: 4px;
}


/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 17px;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* ---------- Shared Layout ---------- */

.content {
    width: min(calc(100% - 40px), var(--content-width));
    margin-inline: auto;
}

.content.narrow {
    max-width: var(--text-width);
}

section {
    padding: 96px 0;
}

.eyebrow {
    margin: 0 0 24px;

    color: var(--blue-light);

    font-size: 1.33rem;
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 650;
}

p {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}


/* ---------- Masthead ---------- */

.site-header {
    display: flex;
    justify-content: center;

    padding: 40px 20px 12px;
    background: var(--black);
}

.masthead {
    width: 100%;
    max-width: 500px;
    height: auto;
}


/* ---------- Hero ---------- */

.hero {
    padding-top: 6px;
    padding-bottom: 112px;
    text-align: center;
    background:
        linear-gradient(
            to bottom,
            var(--black),
            var(--surface)
        );
}

.hero-copy {
    max-width: 680px;
    margin: 0 auto 38px;
    color: var(--muted);
    font-size: 1.14rem;
    line-height: 1.6;
    margin-bottom: 30px;
}



/* ---------- Buttons ---------- */

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

    min-height: 50px;
    padding: 12px 24px;

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

    background: var(--blue);
    color: #071019;

    font: inherit;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.button:hover {
    background: var(--blue-light);
    border-color: var(--blue-light);
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(134, 169, 204, 0.45);
    outline-offset: 4px;
}


/* ---------- Services ---------- */

.services {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 52px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service {
    padding: 30px;

    border-top: 3px solid var(--blue);
    background: var(--surface-light);
}

.service p {
    color: var(--muted);
}


/* ---------- About ---------- */

.about {
    background: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 80px;
    align-items: start;
}

.about-copy {
    color: var(--muted);
    font-size: 1.05rem;
}

.about-copy p + p {
    margin-top: 22px;
}


/* ---------- Contact ---------- */

.contact {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 80px;
    align-items: start;
}

.contact-grid > div > p:last-child {
    color: var(--muted);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid #35414c;
    border-radius: var(--radius);

    background: #080b0e;
    color: var(--text);

    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(103, 142, 183, 0.2);
}

.form-actions {
    padding-top: 4px;
}


/* ---------- Footer ---------- */

.site-footer {
    padding: 30px 0;

    border-top: 1px solid var(--line);
    background: var(--black);
    color: var(--muted);

    font-size: 0.82rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-content p {
    margin: 0;
}


/* ---------- Responsive ---------- */

@media (max-width: 800px) {
    section {
        padding: 72px 0;
    }

    .site-header {
        padding-top: 24px;
    }

    .service-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        gap: 42px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-row,
    .full-width {
        grid-column: 1;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .content {
        width: min(calc(100% - 28px), var(--content-width));
    }

    section {
        padding: 58px 0;
    }

    .service {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}