:root {
    --ink: #102033;
    --muted: #5f6d7e;
    --blue: #0a66c2;
    --blue-dark: #063f7a;
    --cyan: #2bb8d6;
    --green: #2c9f6f;
    --gold: #d79b30;
    --paper: #f7fafc;
    --line: #dce6ef;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(16, 32, 51, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Manrope, Inter, Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 64px);
    color: var(--white);
    transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(16, 32, 51, .1);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 24px rgba(10, 102, 194, .22);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(10, 102, 194, .32);
}

.brand strong,
.brand small {
    display: block;
    line-height: 1.05;
}

.brand strong {
    font-size: 17px;
}

.brand small {
    max-width: 210px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    opacity: .76;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    opacity: .88;
}

.site-nav a:hover {
    opacity: 1;
    color: var(--cyan);
}

.nav-login {
    min-height: 42px;
    padding: 10px 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(10, 102, 194, .26);
    opacity: 1;
}

.nav-login:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 8px;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 96vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 130px clamp(18px, 5vw, 72px) 34px;
    color: var(--white);
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(4, 22, 45, .88) 0%, rgba(6, 63, 122, .68) 48%, rgba(4, 22, 45, .12) 100%);
}

.hero-content {
    position: relative;
    max-width: 850px;
    padding-bottom: 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero h1,
.section h2,
.setup-card h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: .98;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 16px 34px rgba(10, 102, 194, .28);
}

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .44);
    background: rgba(255, 255, 255, .08);
}

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 900px;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.hero-stats article {
    padding: 22px;
    background: rgba(6, 24, 48, .36);
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 34px;
    line-height: 1;
}

.hero-stats span {
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.section {
    padding: 92px clamp(18px, 5vw, 72px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: clamp(30px, 6vw, 88px);
    align-items: center;
    background: var(--white);
}

.section h2 {
    max-width: 850px;
    color: var(--ink);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.04;
}

.section-copy p,
.contact-panel p {
    color: var(--muted);
    font-size: 17px;
}

.profile-card,
.service-card,
.project-card,
.value-card,
.contact-form,
.setup-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(16, 32, 51, .08);
}

.profile-card {
    overflow: hidden;
}

.profile-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.profile-card div {
    padding: 26px;
}

.profile-card h3,
.service-card h3,
.project-card h3 {
    margin: 0 0 10px;
    line-height: 1.18;
}

.values-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    background: linear-gradient(135deg, #eef7fb, #f7fafc 45%, #eef8f3);
}

.value-card {
    padding: 28px;
}

.value-card span {
    color: var(--blue);
    font-weight: 800;
}

.value-card p {
    margin-bottom: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 0;
}

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

.service-card {
    padding: 26px;
    min-height: 410px;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
}

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

.service-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: 18px;
    color: #3d4c5e;
    font-size: 14px;
}

.service-card li + li {
    margin-top: 10px;
}

.service-card li::before {
    position: absolute;
    top: 9px;
    left: 0;
    width: 7px;
    height: 7px;
    content: "";
    background: var(--green);
    border-radius: 999px;
}

.serve-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 38px;
    background: #102033;
    color: var(--white);
}

.serve-section h2 {
    color: var(--white);
}

.serve-list {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 12px;
}

.serve-list span {
    padding: 12px 16px;
    color: #dcefff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.projects-section {
    background: var(--white);
}

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

.project-card {
    overflow: hidden;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-card div {
    padding: 22px;
}

.project-card span {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.project-card small {
    color: var(--blue-dark);
    font-weight: 800;
}

.partner-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.partner-strip article {
    display: grid;
    min-height: 108px;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.partner-strip img {
    max-height: 62px;
    object-fit: contain;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr);
    gap: 36px;
    background: linear-gradient(135deg, #eaf5fb, #ffffff 48%, #eef8f3);
}

.contact-lines {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    color: var(--blue-dark);
    font-weight: 800;
}

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

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fbfdff;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

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

.form-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--blue-dark);
    font-weight: 700;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 42px clamp(18px, 5vw, 72px);
    color: #d7e6f5;
    background: #08182a;
}

.footer p {
    max-width: 480px;
    margin: 18px 0 0;
    color: #9fb1c5;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.setup-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 22px;
}

.setup-card {
    max-width: 620px;
    padding: 36px;
}

.setup-card h1 {
    font-size: 44px;
}

.success {
    color: var(--green);
}

.error {
    color: #b42318;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(6, 63, 122, .92), rgba(16, 32, 51, .72)),
        url("../images/hero-consulting.jpg") center / cover;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(100%, 460px);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.login-brand {
    color: var(--ink);
}

.login-copy {
    margin: 32px 0 22px;
}

.login-copy h1 {
    margin: 8px 0;
    font-size: 44px;
    line-height: 1;
}

.login-copy p {
    margin: 0;
    color: var(--muted);
}

.login-form {
    display: grid;
    gap: 16px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fbfdff;
    font: inherit;
}

.login-back {
    display: inline-flex;
    margin-top: 20px;
    color: var(--blue-dark);
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .service-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 14px 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        color: var(--ink);
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .nav-login {
        justify-content: center;
        margin-top: 8px;
        text-align: center;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand strong {
        font-size: 14px;
    }

    .brand small {
        max-width: 160px;
        font-size: 9px;
    }

    .hero {
        min-height: 94vh;
        padding-top: 116px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(4, 22, 45, .9), rgba(4, 22, 45, .58));
    }

    .hero-stats,
    .values-band,
    .split,
    .serve-section,
    .contact-section,
    .service-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 68px 18px;
    }

    .section-heading {
        display: block;
    }

    .service-card {
        min-height: auto;
    }

    .partner-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer {
        display: block;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 26px;
    }
}
