/* ===========================================================
   LevanTech — Design Tokens
   Palette:  navy-950 #0A1628 · navy-800 #122036 · steel-600 #4A5768
             steel-300 #A6AFBB · fog-100 #E9ECEF · paper-50 #F6F7F8
             brass-500 #C89B3C · brass-700 #96742A · signal-600 #B5432E
   Type:     Display  — 'Oswald' (condensed, technical)
             Body     — 'IBM Plex Sans'
             Utility  — 'IBM Plex Mono' (doc-ref strips, tags, data)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --navy-950: #0A1628;
    --navy-800: #122036;
    --navy-700: #182A45;
    --steel-600: #4A5768;
    --steel-400: #7C8797;
    --steel-300: #A6AFBB;
    --fog-100: #E9ECEF;
    --paper-50: #F6F7F8;
    --brass-500: #C89B3C;
    --brass-700: #96742A;
    --signal-600: #B5432E;
    --line: rgba(233,236,239,0.14);
    --line-dark: rgba(10,22,40,0.12);
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper-50);
    color: var(--navy-950);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 0.5em 0;
    color: var(--navy-950);
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.2rem,5vw,3.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.5rem,3vw,2.1rem);
}

h3 {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

p {
    margin: 0 0 1em 0;
    color: var(--steel-600);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Layout helpers ---------- */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 56px 0;
}

.section--dark {
    background: var(--navy-950);
    color: var(--fog-100);
}

    .section--dark p {
        color: var(--steel-300);
    }

    .section--dark h1, .section--dark h2, .section--dark h3 {
        color: var(--fog-100);
    }

.section--steel {
    background: var(--navy-800);
    color: var(--fog-100);
}

    .section--steel p {
        color: var(--steel-300);
    }

    .section--steel h1, .section--steel h2, .section--steel h3 {
        color: var(--fog-100);
    }

.divider {
    height: 1px;
    background: var(--line-dark);
    border: 0;
    margin: 0;
}

.section--dark + .section--dark .divider,
.section--dark .divider {
    background: var(--line);
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brass-500);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .eyebrow::before {
        content: "";
        width: 22px;
        height: 1px;
        background: var(--brass-500);
        display: inline-block;
    }

/* ---------- Doc-ref strip (signature element) ---------- */
.docref {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--steel-300);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

    .docref .wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 28px;
        justify-content: space-between;
    }

    .docref span b {
        color: var(--brass-500);
        font-weight: 500;
    }

/* ---------- Top navigation ---------- */
.topnav {
    background: var(--navy-950);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

    .topnav .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 76px;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--fog-100);
    letter-spacing: 0.02em;
}

.brand-logo {
    height: 58px;
    width: auto;
    display: block;
}

.brand small {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    color: var(--steel-300);
    text-transform: uppercase;
    font-weight: 400;
    padding-top: 3px;
    border-left: 1px solid var(--line);
    padding-left: 12px;
    line-height: 1.3;
    max-width: 120px;
}

.navlinks {
    display: flex;
    gap: 2px;
    align-items: center;
}

    .navlinks a {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--steel-300);
        padding: 10px 16px;
        border-bottom: 2px solid transparent;
        transition: color .15s ease, border-color .15s ease;
    }

        .navlinks a:hover {
            color: var(--fog-100);
        }

        .navlinks a.active {
            color: var(--brass-500);
            border-color: var(--brass-500);
        }

        .navlinks a.cta {
            color: var(--navy-950);
            background: var(--brass-500);
            border: 1px solid var(--brass-500);
            margin-left: 10px;
            padding: 9px 18px;
        }

            .navlinks a.cta:hover {
                background: var(--brass-700);
                border-color: var(--brass-700);
                color: var(--navy-950);
            }

.navtoggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--fog-100);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, rgba(10,22,40,0.92), rgba(10,22,40,0.97)), repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(233,236,239,0.05) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(233,236,239,0.05) 40px);
    color: var(--fog-100);
    padding: 96px 0 80px;
    border-bottom: 1px solid var(--line);
}

.hero--page {
    padding: 64px 0 56px;
}

.hero h1 {
    color: var(--fog-100);
    max-width: 820px;
}

.hero .lede {
    color: var(--steel-300);
    font-size: 1.1rem;
    max-width: 640px;
    margin-top: 18px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 24px;
    border: 1px solid var(--brass-500);
    color: var(--brass-500);
    transition: all .15s ease;
}

    .btn:hover {
        background: var(--brass-500);
        color: var(--navy-950);
    }

.btn--solid {
    background: var(--brass-500);
    color: var(--navy-950);
}

    .btn--solid:hover {
        background: var(--brass-700);
        border-color: var(--brass-700);
        color: var(--navy-950);
    }

.btn--ghost {
    border-color: var(--line);
    color: var(--fog-100);
}

    .btn--ghost:hover {
        background: rgba(233,236,239,0.08);
        color: var(--fog-100);
    }

/* ---------- Grids / cards ---------- */
.grid {
    display: grid;
    gap: 1px;
    background: var(--line-dark);
}

.grid-2 {
    grid-template-columns: repeat(2,1fr);
}

.grid-3 {
    grid-template-columns: repeat(3,1fr);
}

.grid-4 {
    grid-template-columns: repeat(4,1fr);
}

.card {
    background: var(--paper-50);
    padding: 32px;
    border-top: 2px solid transparent;
    transition: border-color .15s ease;
}

    .card:hover {
        border-top-color: var(--brass-500);
    }

    .card .tag {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        color: var(--brass-700);
        text-transform: uppercase;
        display: block;
        margin-bottom: 10px;
    }

    .card h3 {
        margin-bottom: 10px;
    }

    .card p {
        margin-bottom: 0;
        font-size: 0.94rem;
    }

.card--dark {
    background: var(--navy-800);
    color: var(--fog-100);
}

    .card--dark p {
        color: var(--steel-300);
    }

    .card--dark h3 {
        color: var(--fog-100);
    }

/* ---------- Capability lists ---------- */
.speclist li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.96rem;
    color: var(--navy-950);
}

.section--dark .speclist li, .section--steel .speclist li {
    border-bottom: 1px solid var(--line);
    color: var(--fog-100);
}

.speclist li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--brass-500);
    flex: none;
    transform: rotate(45deg);
}

/* ---------- Service block ---------- */
.svc {
    padding: 64px 0;
    border-bottom: 1px solid var(--line-dark);
}

    .svc:last-child {
        border-bottom: 0;
    }

.svc-head {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.svc-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--steel-400);
    letter-spacing: 0.1em;
    padding-top: 6px;
}

.svc-body {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
}

/* ---------- Value grid (About) ---------- */
.value-item {
    padding: 28px 0;
    border-top: 1px solid var(--line-dark);
}

    .value-item:last-child {
        border-bottom: 1px solid var(--line-dark);
    }

    .value-item h3 {
        color: var(--brass-700);
        margin-bottom: 6px;
    }

.section--dark .value-item {
    border-top: 1px solid var(--line);
}

    .section--dark .value-item:last-child {
        border-bottom: 1px solid var(--line);
    }

    .section--dark .value-item h3 {
        color: var(--brass-500);
    }

/* ---------- Region grid ---------- */
.region {
    padding: 22px 20px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--fog-100);
    text-transform: uppercase;
}

    .region span.code {
        color: var(--brass-500);
    }

/* ---------- Footer ---------- */
footer {
    background: var(--navy-950);
    color: var(--steel-300);
    padding: 56px 0 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.foot-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--brass-500);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.foot-col p, .foot-col li {
    font-size: 0.88rem;
    color: var(--steel-300);
    margin-bottom: 8px;
}

.foot-col a:hover {
    color: var(--fog-100);
}

.foot-credentials {
    border-top: 1px solid var(--line);
    padding: 16px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel-300);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
}

    .foot-credentials b {
        color: var(--brass-500);
        font-weight: 500;
    }

.foot-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--steel-400);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    text-transform: uppercase;
}

/* ---------- Contact form ---------- */
.form-field {
    margin-bottom: 20px;
}

    .form-field label {
        display: block;
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--steel-300);
        margin-bottom: 8px;
    }

    .form-field input, .form-field textarea, .form-field select {
        width: 100%;
        background: var(--navy-800);
        border: 1px solid var(--line);
        color: var(--fog-100);
        padding: 13px 14px;
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 0.95rem;
    }

        .form-field input:focus, .form-field textarea:focus, .form-field select:focus {
            outline: none;
            border-color: var(--brass-500);
        }

    .form-field textarea {
        resize: vertical;
        min-height: 130px;
    }

.contact-line {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line-dark);
    align-items: flex-start;
}

    .contact-line .k {
        font-family: 'IBM Plex Mono', monospace;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--brass-700);
        width: 120px;
        flex: none;
        padding-top: 2px;
    }

.section--dark .contact-line, .section--steel .contact-line {
    border-top: 1px solid var(--line);
}

    .section--dark .contact-line .k, .section--steel .contact-line .k {
        color: var(--brass-500);
    }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .svc-head {
        grid-template-columns: 1fr;
    }

    .svc-body {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .navlinks {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--navy-950);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 24px;
        display: flex; /* Always flex */
        border-top: 1px solid var(--line);
        transform: translateX(100%); /* Hidden to the right */
        transition: transform .35s ease;
    }

        .navlinks.open {
            transform: translateX(0);
        }

        .navlinks a {
            padding: 16px 18px;
            border-bottom: 1px solid var(--line);
        }

            .navlinks a.cta {
                margin: 14px 0 0;
                padding: 9px 18px;
                /*text-align: center;*/
            }

    .navtoggle {
        display: flex;
    }

    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .docref .wrap {
        flex-direction: column;
        gap: 4px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brass-500);
    outline-offset: 2px;
}
