:root {
    color-scheme: dark;
    --bg: #05070a;
    --bg-soft: #0a0f14;
    --panel: rgba(12, 18, 24, 0.82);
    --panel-strong: #101820;
    --line: rgba(173, 214, 217, 0.18);
    --line-strong: rgba(119, 236, 218, 0.42);
    --text: #f2f7f8;
    --muted: #8ea0a8;
    --faint: #5e6e76;
    --cyan: #54d4e8;
    --emerald: #40df9f;
    --amber: #ffb85a;
    --red: #ff6b6b;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(84, 212, 232, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(84, 212, 232, 0.04) 1px, transparent 1px),
        var(--bg);
    background-size: 42px 42px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 54px);
    background: rgba(5, 7, 10, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(64, 223, 159, 0.28), rgba(84, 212, 232, 0.13));
    color: var(--emerald);
}

.site-nav {
    gap: 6px;
}

.site-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
    color: var(--muted);
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    min-height: 82vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 104px clamp(18px, 4vw, 54px) 64px;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    z-index: -2;
    background-image: url("/assets/images/avanatro-ops-hero.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.82) 34%, rgba(5, 7, 10, 0.46) 66%, rgba(5, 7, 10, 0.9) 100%),
        linear-gradient(180deg, rgba(5, 7, 10, 0.22) 0%, rgba(5, 7, 10, 0.92) 88%);
}

.hero-content {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: end;
}

.hero-copy {
    max-width: 760px;
    padding-bottom: 16px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--emerald);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(58px, 12vw, 132px);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
    letter-spacing: 0;
}

.lead {
    max-width: 650px;
    margin-bottom: 28px;
    color: #c2d0d5;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--emerald), #1b9ca8);
    color: #02100d;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--line);
}

.band {
    padding: clamp(58px, 9vw, 110px) clamp(18px, 4vw, 54px);
}

.band > * {
    width: min(1220px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    margin-bottom: 28px;
}

.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

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

.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 480px);
    gap: clamp(24px, 5vw, 70px);
    align-items: start;
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.contact-band > * {
    width: auto;
    margin: 0;
}

.contact-copy {
    padding-top: 12px;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.contact-form label {
    display: grid;
    gap: 7px;
}

.contact-form span {
    color: #b7c7cd;
    font-size: 13px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(2, 6, 9, 0.72);
    color: var(--text);
    outline: none;
    padding: 12px 13px;
}

textarea {
    resize: vertical;
    min-height: 132px;
}

input:focus,
textarea:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(84, 212, 232, 0.09);
}

.form-note {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
}

.form-note.is-success {
    color: var(--emerald);
}

.form-note.is-error {
    color: var(--red);
}

.site-footer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    min-height: 86px;
    padding: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #05070a;
}

.site-footer span {
    color: var(--text);
    font-weight: 800;
}

.site-footer a:hover {
    color: var(--emerald);
}

@media (max-width: 980px) {
    .hero-content,
    .contact-band {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav a {
        padding: 0 8px;
    }

    .hero {
        min-height: 96vh;
        padding-top: 146px;
        padding-bottom: 42px;
    }

    h1 {
        font-size: clamp(54px, 18vw, 82px);
    }

    .lead {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
