:root {
    --ink: #101820;
    --muted: #58616b;
    --line: #d9e1e7;
    --panel: #f5f8fa;
    --white: #ffffff;
    --blue: #006ea7;
    --blue-dark: #203241;
    --cyan: #12a9df;
    --green: #16a06b;
    --amber: #d98f00;
    --red: #c94747;
    --steel: #203241;
    --shadow: 0 18px 60px rgba(16, 24, 32, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f7fbfd;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 3vw, 36px);
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(0, 110, 167, .16);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand img {
    width: auto;
    height: clamp(70px, 6vw, 86px);
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    color: var(--blue-dark);
    font-size: 1rem;
    font-weight: 850;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--blue);
    background: #eaf6fb;
}

.site-nav .portal-link {
    color: var(--white);
    background: var(--blue-dark);
    border: 1px solid var(--blue-dark);
}

.site-nav .portal-link:hover {
    color: var(--white);
    background: var(--blue);
}

.hero {
    min-height: calc(100vh - 118px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
    align-items: center;
    gap: clamp(28px, 5vw, 84px);
    padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(105deg, rgba(32,50,65,.98) 0%, rgba(19,35,51,.96) 40%, rgba(0,110,167,.68) 66%, rgba(0,110,167,.32) 100%),
        url("/assets/img/emspro-battery-monitoring.png") right center / cover;
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -32% 38%;
    height: 62%;
    background: radial-gradient(circle, rgba(18,169,223,.34) 0%, rgba(18,169,223,0) 66%);
    pointer-events: none;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #8de3ff;
}

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

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: .98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.06rem;
    line-height: 1.25;
}

.lead {
    max-width: 690px;
    color: #334150;
    font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.hero .lead {
    color: #d9eaf3;
}

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

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    color: var(--white);
    background: var(--cyan);
    border-color: var(--cyan);
}

.button.primary:hover {
    background: #3bc3ef;
    border-color: #3bc3ef;
}

.button.secondary {
    color: var(--white);
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.38);
}

.button.secondary:hover {
    background: rgba(255,255,255,.18);
}

.hero-visual {
    min-width: 0;
}

.dashboard-shell {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    background: #0d1925;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.dash-top {
    display: flex;
    gap: 7px;
    padding: 14px;
    background: linear-gradient(90deg, #162838, #203241);
}

.dash-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7c8b98;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #35556b;
}

.metric {
    min-height: 92px;
    padding: 16px 14px;
    color: var(--white);
    background: linear-gradient(180deg, #132333, #0d1b28);
}

.metric b {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.1;
}

.metric span {
    color: #c8d3dd;
    font-size: .85rem;
}

.metric.ok b {
    color: #62e5a6;
}

.metric.warn b {
    color: #ffc766;
}

.dashboard-shell img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: left top;
    filter: saturate(1.14) contrast(1.08);
}

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

.intro-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: start;
    background:
        linear-gradient(135deg, rgba(32,50,65,.98), rgba(0,110,167,.9)),
        url("/assets/img/hd_env.jpg") center / cover;
    color: var(--white);
}

.intro-band p {
    color: #d9e4ec;
    font-size: 1.1rem;
}

.focus-list,
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.focus-list {
    display: grid;
    gap: 10px;
}

.focus-list li,
.check-list li {
    padding: 13px 16px;
    border-radius: 6px;
    background: rgba(255,255,255,.12);
    font-weight: 750;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
    gap: clamp(30px, 5vw, 78px);
    align-items: center;
}

.section-copy > p:not(.eyebrow),
.section-heading p,
.proof p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.04rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.feature-link {
    display: inline-flex;
    margin-top: 24px;
}

.feature-grid article,
.operations-grid article,
.module-grid article,
.pbdl-grid article,
.proof-grid article,
.signal-grid div {
    border: 1px solid rgba(0, 110, 167, .14);
    border-radius: 8px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(16, 24, 32, .05);
}

.feature-grid article {
    border-top: 4px solid var(--blue);
}

.feature-grid article:nth-child(2) {
    border-top-color: var(--cyan);
}

.feature-grid article:nth-child(3) {
    border-top-color: var(--green);
}

.feature-grid article:nth-child(4) {
    border-top-color: var(--amber);
}

.feature-grid p,
.operations-grid p,
.module-grid p,
.pbdl-grid p,
.proof-grid p,
.signal-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.product-stack {
    display: grid;
    gap: 16px;
}

.product-stack img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: left top;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 34px rgba(16, 24, 32, .1);
}

#emspro {
    background:
        linear-gradient(90deg, rgba(0,110,167,.08) 0 10px, transparent 10px 100%),
        linear-gradient(180deg, #ffffff 0%, #f3faff 100%);
    background-size: 100% 100%, 100% 100%;
}

.operations {
    background:
        linear-gradient(135deg, rgba(18,169,223,.13) 0%, rgba(255,255,255,0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f4fafc 100%);
}

.pbdl {
    background:
        linear-gradient(135deg, rgba(22,160,107,.16) 0%, rgba(255,255,255,0) 44%),
        linear-gradient(180deg, #f7fbfd 0%, #ebf8f2 100%);
}

.bcm {
    background:
        linear-gradient(135deg, rgba(217,143,0,.18) 0%, rgba(255,255,255,0) 44%),
        linear-gradient(180deg, #ffffff 0%, #fff7e8 100%);
}

.monitoring {
    background:
        linear-gradient(135deg, rgba(0,110,167,.14) 0%, rgba(18,169,223,.08) 48%, rgba(255,255,255,0) 100%),
        #f5fbfe;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 30px;
}

.signal-grid,
.operations-grid,
.module-grid,
.pbdl-grid,
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.operations-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pbdl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.module-grid {
    margin-bottom: 24px;
}

.pbdl-grid article {
    border-top: 4px solid var(--green);
}

.pbdl-grid article:nth-child(2) {
    border-top-color: var(--cyan);
}

.pbdl-grid article:nth-child(3) {
    border-top-color: var(--blue);
}

.module-grid article {
    border-top: 4px solid var(--amber);
}

.module-grid article:nth-child(2) {
    border-top-color: var(--blue);
}

.module-grid article:nth-child(3) {
    border-top-color: var(--green);
}

.module-grid article:nth-child(4) {
    border-top-color: var(--cyan);
}

.operations-grid article {
    border-top: 4px solid var(--blue);
}

.operations-grid article:nth-child(2) {
    border-top-color: var(--green);
}

.operations-grid article:nth-child(3) {
    border-top-color: var(--cyan);
}

.operations-grid article:nth-child(4) {
    border-top-color: var(--amber);
}

.signal-grid span {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 6px;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
}

.signal-grid div:nth-child(2) span,
.signal-grid div:nth-child(6) span {
    background: var(--green);
}

.signal-grid div:nth-child(3) span,
.signal-grid div:nth-child(7) span {
    background: var(--cyan);
}

.signal-grid div:nth-child(4) span,
.signal-grid div:nth-child(8) span {
    background: var(--amber);
}

.signal-grid div:nth-child(5) span {
    background: var(--blue-dark);
}

.text-link {
    color: var(--blue-dark);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
}

.text-link:hover {
    color: var(--blue);
}

.bms {
    background:
        linear-gradient(135deg, rgba(22,160,107,.16) 0%, rgba(0,110,167,.1) 48%, rgba(255,255,255,0) 100%),
        linear-gradient(180deg, #f7fbfd 0%, #eef8f4 100%);
}

.bms .check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.bms .check-list li {
    background: var(--white);
    border: 1px solid #d1e4dc;
}

.bms-panel {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.platforms span {
    min-height: 78px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--white);
    background: linear-gradient(135deg, var(--steel), var(--blue));
    font-weight: 900;
}

.proof {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    background:
        linear-gradient(135deg, rgba(18,169,223,.24) 0%, rgba(22,160,107,.16) 54%, rgba(32,50,65,0) 100%),
        linear-gradient(135deg, #203241 0%, #0f202c 100%);
    color: var(--white);
}

.proof .eyebrow {
    color: #8de3ff;
}

.proof h2,
.proof p {
    color: var(--white);
}

.proof .section-copy p:not(.eyebrow) {
    color: #d8e6ee;
}

.proof-grid article {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    box-shadow: none;
}

.proof-grid article:nth-child(1) {
    border-top: 4px solid var(--cyan);
}

.proof-grid article:nth-child(2) {
    border-top: 4px solid var(--green);
}

.proof-grid article:nth-child(3) {
    border-top: 4px solid var(--amber);
}

.proof-grid article:nth-child(4) {
    border-top: 4px solid #8de3ff;
}

.proof-grid p {
    color: #d8e6ee;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
    gap: clamp(30px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(32,50,65,.98), rgba(0,110,167,.9)),
        url("/assets/img/hd_contact.jpg") center / cover;
    color: var(--white);
}

.contact h2,
.contact p {
    color: var(--white);
}

.contact-copy p:not(.eyebrow) {
    color: #d9e4ec;
}

.contact-methods {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.contact-methods a,
.contact-methods span {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.form-extra-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
    resize: vertical;
}

.form-message {
    margin: 0;
    padding: 12px;
    border-radius: 6px;
    font-weight: 800;
}

.form-message.success {
    color: #0e5f40;
    background: #e2f6ed;
}

.form-message.error {
    color: #8b1d1d;
    background: #fde8e8;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 26px clamp(18px, 5vw, 72px);
    color: #d6dde5;
    background: #0e1720;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

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

    .signal-grid,
    .operations-grid,
    .module-grid,
    .pbdl-grid,
    .proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 6px;
    }

    .hero {
        min-height: auto;
        padding-top: 44px;
    }

    .dash-grid,
    .feature-grid,
    .signal-grid,
    .operations-grid,
    .module-grid,
    .pbdl-grid,
    .proof-grid,
    .bms .check-list,
    .platforms {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: 76px;
    }
}

@media (max-width: 460px) {
    .brand img {
        height: 68px;
    }

    .site-nav a {
        min-height: 42px;
        padding: 8px 9px;
        font-size: .95rem;
    }

    .button {
        width: 100%;
    }
}
