/* ========================================
   MDS — MAIER DIGITAL SYSTEMS
   Website v0.8
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #05070a;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: #00b7ff;
    color: #05070a;
}


/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(5, 7, 10, 0.78);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.brand-mds {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 5px;
    color: #ffffff;
}

.brand-name {
    font-size: 10px;
    letter-spacing: 3px;
    color: #82909e;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    position: relative;

    color: #9ba6b2;
    text-decoration: none;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;

    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: #00b7ff;

    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}


/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 140px 10% 80px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 73% 48%,
            rgba(0,132,255,0.12),
            transparent 32%
        ),

        radial-gradient(
            circle at 25% 70%,
            rgba(0,183,255,0.05),
            transparent 30%
        ),

        #05070a;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to right,
            rgba(0,0,0,0.8),
            transparent 90%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    right: -190px;
    top: 20%;

    border: 1px solid rgba(0,183,255,0.10);
    border-radius: 50%;

    box-shadow:
        0 0 100px rgba(0,132,255,0.08),
        inset 0 0 100px rgba(0,132,255,0.04);

    pointer-events: none;
}


/* ========================================
   HERO CIRCUIT
   ======================================== */

.circuit-background {
    position: absolute;

    right: 3%;
    top: 50%;

    width: 44vw;
    height: 68vh;

    transform: translateY(-50%);

    opacity: 0.6;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0,183,255,0.08) 50%,
            transparent 100%
        ),

        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 69px,
            rgba(0,183,255,0.08) 70px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 89px,
            rgba(0,183,255,0.08) 90px
        );

    mask-image:
        radial-gradient(
            ellipse at center,
            black 10%,
            transparent 72%
        );

    animation: circuitPulse 5s ease-in-out infinite;

    z-index: 1;
}

.circuit-background::before {
    content: "";

    position: absolute;

    left: 18%;
    top: 18%;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #00b7ff;

    box-shadow:
        0 0 18px #00b7ff,

        140px 70px 0 rgba(0,183,255,.8),
        140px 70px 18px rgba(0,183,255,.8),

        280px -20px 0 rgba(0,183,255,.6),
        280px -20px 14px rgba(0,183,255,.6),

        350px 150px 0 rgba(0,183,255,.8),
        350px 150px 18px rgba(0,183,255,.8),

        100px 250px 0 rgba(0,183,255,.5),
        100px 250px 14px rgba(0,183,255,.5),

        420px 300px 0 rgba(0,183,255,.7),
        420px 300px 18px rgba(0,183,255,.7),

        240px 380px 0 rgba(0,183,255,.5),
        240px 380px 14px rgba(0,183,255,.5);
}

.circuit-background::after {
    content: "MDS // SYSTEM ONLINE";

    position: absolute;

    right: 8%;
    bottom: 10%;

    color: rgba(0,183,255,0.48);

    font-size: 9px;
    font-family: monospace;
    letter-spacing: 4px;
}

@keyframes circuitPulse {
    0%,
    100% {
        opacity: 0.35;
        filter: brightness(0.8);
    }

    50% {
        opacity: 0.75;
        filter: brightness(1.4);
    }
}


/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
    position: relative;
    max-width: 1050px;
    z-index: 5;
}

.hero-label {
    color: #00b7ff;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 7px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(100px, 16vw, 220px);

    line-height: 0.85;
    letter-spacing: -10px;

    font-weight: 800;

    color: #ffffff;

    margin-left: -8px;
}

.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
}

.hero-description {
    margin-top: 45px;

    color: #b7c0c9;

    font-size: 11px;
    letter-spacing: 3px;
    line-height: 2;
}

.hero-description span {
    color: #00b7ff;
    margin: 0 7px;
}

.hero-line {
    width: 90px;
    height: 2px;

    margin: 32px 0;

    background:
        linear-gradient(
            90deg,
            #00b7ff,
            transparent
        );
}

.hero-text {
    max-width: 540px;

    color: #697684;

    font-size: 16px;
    line-height: 1.8;
}


/* ========================================
   BUTTONS
   ======================================== */

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 45px;
}

.button-primary,
.button-secondary {
    padding: 17px 26px;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    transition: 0.3s;
}

.button-primary {
    color: #05070a;
    background: #ffffff;
    border: 1px solid #ffffff;
}

.button-primary:hover {
    background: #00b7ff;
    border-color: #00b7ff;

    box-shadow:
        0 0 30px rgba(0,183,255,0.25);

    transform: translateY(-2px);
}

.button-secondary {
    color: #ffffff;

    border: 1px solid rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.02);
}

.button-secondary:hover {
    border-color: #00b7ff;
    color: #00b7ff;

    transform: translateY(-2px);
}


/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;

    right: 5%;
    bottom: 40px;

    display: flex;
    align-items: center;
    gap: 15px;

    transform: rotate(90deg);
    transform-origin: right bottom;

    z-index: 5;
}

.scroll-indicator span {
    color: #53606c;
    font-size: 8px;
    letter-spacing: 4px;
}

.scroll-line {
    width: 50px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #00b7ff,
            transparent
        );
}


/* ========================================
   SHARED SECTION
   ======================================== */

.section-container {
    position: relative;

    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    z-index: 2;
}

.section-header {
    display: grid;

    grid-template-columns:
        100px 1fr;

    gap: 40px;

    margin-bottom: 90px;
}

.section-number {
    color: #00b7ff;

    font-family: monospace;
    font-size: 12px;
    letter-spacing: 3px;

    padding-top: 8px;
}

.section-label {
    color: #00b7ff;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 6px;

    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(42px, 5vw, 80px);

    line-height: 1.05;
    letter-spacing: -3px;

    font-weight: 700;
}

.section-header h2 span {
    color: #59636d;
    font-weight: 400;
}


/* ========================================
   SYSTEMS
   ======================================== */

.systems-section {
    position: relative;

    min-height: 100vh;

    padding: 150px 8%;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(0,183,255,0.05),
            transparent 25%
        ),
        #080b0f;

    border-top:
        1px solid rgba(255,255,255,0.06);

    overflow: hidden;
}

.systems-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    pointer-events: none;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.system-card {
    position: relative;

    min-height: 430px;

    padding: 35px;

    border-right:
        1px solid rgba(255,255,255,0.10);

    background:
        rgba(255,255,255,0.008);

    overflow: hidden;

    transition:
        background 0.4s,
        transform 0.4s;
}

.system-card:first-child {
    border-left:
        1px solid rgba(255,255,255,0.10);
}

.system-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #00b7ff,
            transparent
        );

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.4s;
}

.system-card:hover {
    background:
        rgba(0,183,255,0.035);

    transform:
        translateY(-5px);
}

.system-card:hover::before {
    transform: scaleX(1);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 70px;
}

.card-number {
    color: #59636d;

    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

.card-symbol {
    color: #00b7ff;

    font-family: monospace;
    font-size: 18px;
}

.system-card h3 {
    min-height: 90px;

    color: #ffffff;

    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 1px;

    margin-bottom: 25px;
}

.system-card p {
    min-height: 100px;

    color: #687480;

    font-size: 13px;
    line-height: 1.8;
}

.card-line {
    width: 100%;
    height: 1px;

    margin: 25px 0 20px;

    background:
        rgba(255,255,255,0.08);
}

.card-tag {
    color: #45515c;

    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
}


/* ========================================
   SOLUTIONS
   ======================================== */

.solutions-section {
    position: relative;

    min-height: 100vh;

    padding: 150px 8% 120px;

    background: #05070a;

    border-top:
        1px solid rgba(255,255,255,0.06);

    overflow: hidden;
}

.solutions-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0,183,255,0.022) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0,183,255,0.022) 1px,
            transparent 1px
        );

    background-size: 90px 90px;

    pointer-events: none;
}

.solutions-glow {
    position: absolute;

    width: 700px;
    height: 700px;

    right: -300px;
    top: 20%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,119,255,0.10),
            transparent 65%
        );

    pointer-events: none;
}

.solutions-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 55px;

    padding-bottom: 30px;

    border-bottom:
        1px solid rgba(255,255,255,0.12);
}

.solutions-intro > p {
    max-width: 650px;

    color: #76828d;

    font-size: 15px;
    line-height: 1.8;
}

.solutions-status {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #53606c;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 3px;

    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #00b7ff;

    box-shadow:
        0 0 14px rgba(0,183,255,0.9);

    animation:
        statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}


/* SOLUTION ROWS */

.solutions-list {
    border-top:
        1px solid rgba(255,255,255,0.08);
}

.solution-row {
    position: relative;

    display: grid;

    grid-template-columns:
        70px
        minmax(260px, 1.1fr)
        minmax(300px, 1.5fr)
        220px;

    align-items: center;

    gap: 30px;

    min-height: 145px;

    padding: 25px 20px;

    border-bottom:
        1px solid rgba(255,255,255,0.08);

    transition:
        background 0.35s,
        padding-left 0.35s;
}

.solution-row::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 2px;
    height: 100%;

    background: #00b7ff;

    transform: scaleY(0);

    transition:
        transform 0.35s;
}

.solution-row:hover {
    background:
        linear-gradient(
            90deg,
            rgba(0,183,255,0.055),
            rgba(0,183,255,0.008)
        );

    padding-left: 30px;
}

.solution-row:hover::before {
    transform: scaleY(1);
}

.solution-number {
    color: #3f4b56;

    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

.solution-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: #00b7ff;

    border:
        1px solid rgba(0,183,255,0.22);

    font-family: monospace;

    transition:
        background 0.35s,
        box-shadow 0.35s;
}

.solution-row:hover .solution-icon {
    background:
        rgba(0,183,255,0.08);

    box-shadow:
        0 0 25px rgba(0,183,255,0.10);
}

.solution-title h3 {
    color: #ffffff;

    font-size: 19px;
    letter-spacing: 1px;
}

.solution-row > p {
    color: #687480;

    font-size: 13px;
    line-height: 1.7;
}

.solution-code {
    justify-self: end;

    color: #3f4b56;

    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
}


/* SOLUTIONS FOOTER */

.solutions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;

    margin-top: 60px;

    padding-top: 30px;

    border-top:
        1px solid rgba(0,183,255,0.25);
}

.solutions-footer div {
    display: flex;
    align-items: center;
    gap: 18px;

    color: #aab3bc;

    font-size: 10px;
    letter-spacing: 3px;
}

.footer-separator {
    color: #00b7ff;

    font-size: 7px;
}

.solutions-footer p {
    color: #4e5a65;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2px;
}




/* ========================================
   MDS LAB / RESEARCH & DEVELOPMENT
   ======================================== */

.lab-section {
    position: relative;
    min-height: 100vh;
    padding: 150px 8% 125px;
    background:
        radial-gradient(circle at 78% 32%, rgba(0,183,255,0.085), transparent 25%),
        radial-gradient(circle at 18% 80%, rgba(0,90,255,0.05), transparent 28%),
        #070a0e;
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.lab-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,183,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,183,255,0.022) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, rgba(0,0,0,.35) 80%, transparent);
    pointer-events: none;
}

.lab-orbit {
    position: absolute;
    border: 1px solid rgba(0,183,255,0.10);
    border-radius: 50%;
    pointer-events: none;
}

.lab-orbit-one {
    width: 720px;
    height: 720px;
    right: -360px;
    top: 80px;
}

.lab-orbit-two {
    width: 460px;
    height: 460px;
    right: -230px;
    top: 210px;
    border-style: dashed;
    animation: labRotate 30s linear infinite;
}

@keyframes labRotate {
    to { transform: rotate(360deg); }
}

.lab-console {
    border: 1px solid rgba(0,183,255,0.18);
    background: rgba(0,183,255,0.018);
    margin-bottom: 55px;
}

.lab-console-head {
    min-height: 58px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #77838e;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2.5px;
}

.lab-live {
    color: #00b7ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-live i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: #00b7ff;
    box-shadow: 0 0 14px rgba(0,183,255,.9);
    animation: statusPulse 2s ease-in-out infinite;
}

.lab-console-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.lab-console-grid div {
    padding: 24px;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.lab-console-grid div:last-child { border-right: 0; }

.lab-console-grid span,
.lab-console-grid strong { display: block; }

.lab-console-grid span {
    color: #48545f;
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.lab-console-grid strong {
    color: #c4ccd3;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.09);
}

.lab-card {
    position: relative;
    min-height: 475px;
    padding: 34px;
    background: #080c11;
    overflow: hidden;
    transition: background .4s ease, transform .4s ease;
}

.lab-card:hover {
    background: #0a1118;
    transform: translateY(-4px);
}

.lab-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00b7ff, transparent 75%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.lab-card:hover::before { transform: scaleX(1); }

.lab-card-index {
    color: #46525d;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2px;
}

.lab-card-icon {
    width: 72px;
    height: 72px;
    margin: 55px 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,183,255,.25);
    color: #00b7ff;
    font-family: monospace;
    font-size: 15px;
    letter-spacing: 1px;
    box-shadow: inset 0 0 25px rgba(0,183,255,.025);
}

.lab-card-kicker {
    color: #00b7ff !important;
    font-family: monospace;
    font-size: 8px !important;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.lab-card h3 {
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.lab-card > p:not(.lab-card-kicker) {
    max-width: 390px;
    color: #76828d;
    font-size: 13px;
    line-height: 1.8;
}

.lab-scan {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 28px;
    height: 1px;
    background: rgba(255,255,255,.07);
    overflow: hidden;
}

.lab-scan::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 1px;
    background: #00b7ff;
    box-shadow: 0 0 10px rgba(0,183,255,.65);
    animation: labScan 4s ease-in-out infinite;
}

@keyframes labScan {
    0%,100% { left: -90px; opacity: .25; }
    50% { left: 100%; opacity: 1; }
}

.lab-footer {
    display: grid;
    grid-template-columns: 1fr repeat(4, auto) auto;
    align-items: center;
    gap: 25px;
    margin-top: 45px;
    color: #4f5b66;
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
}

.lab-footer-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(0,183,255,.5), rgba(255,255,255,.06));
}

.lab-footer strong {
    color: #00b7ff;
    font-size: 8px;
    font-weight: 400;
}



/* ========================================
   04 — MDS / APPROACH
   ======================================== */

.about-section {
    position: relative;
    min-height: 100vh;
    padding: 150px 8% 130px;
    background:
        radial-gradient(circle at 12% 72%, rgba(0,183,255,.055), transparent 28%),
        #070a0e;
    border-top: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(560px, 1.25fr);
    gap: clamp(70px, 8vw, 150px);
    align-items: start;
}

.about-manifesto {
    position: sticky;
    top: 140px;
}

.about-manifesto > p {
    max-width: 650px;
    color: #7f8b96;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-manifesto .about-lead {
    color: #d7dde3;
    font-size: clamp(19px, 1.5vw, 25px);
    line-height: 1.6;
    font-weight: 400;
}

.about-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
}

.about-values span {
    padding: 10px 13px;
    border: 1px solid rgba(0,183,255,.18);
    color: #91a0ad;
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
}

.about-method {
    border-top: 1px solid rgba(255,255,255,.10);
}

.about-step {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 30px;
    min-height: 210px;
    padding: 38px 10px 38px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.about-step::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: #00b7ff;
    box-shadow: 0 0 12px rgba(0,183,255,.45);
    transition: width .45s ease;
}

.about-step:hover::after { width: 100%; }

.about-step-number {
    color: #00b7ff;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    padding-top: 5px;
}

.about-step-code {
    color: #00b7ff;
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.about-step h3 {
    color: #fff;
    font-size: 22px;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.about-step div > p:last-child {
    max-width: 680px;
    color: #7f8b96;
    font-size: 13px;
    line-height: 1.8;
}

.about-signature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
    padding: 25px 0;
    border-top: 1px solid rgba(0,183,255,.28);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-family: monospace;
}

.about-signature span {
    color: #596773;
    font-size: 8px;
    letter-spacing: 3px;
}

.about-signature strong {
    color: #b9c4ce;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 2px;
}

@media (max-width: 1100px) {
    .about-layout { grid-template-columns: 1fr; gap: 70px; }
    .about-manifesto { position: static; }
}

@media (max-width: 850px) {
    .about-section { padding: 110px 7%; }
    .about-step { grid-template-columns: 45px 1fr; gap: 18px; }
    .about-signature { flex-direction: column; align-items: flex-start; }
}


/* ========================================
   REVEAL
   ======================================== */

.reveal {
    opacity: 0;

    transform:
        translateY(40px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {

    .solution-row {
        grid-template-columns:
            50px
            1fr
            1.4fr;
    }

    .solution-code {
        display: none;
    }
}


@media (max-width: 1000px) {

    .systems-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .system-card {
        border-bottom:
            1px solid rgba(255,255,255,0.10);
    }
}


@media (max-width: 850px) {

    .navbar {
        height: 75px;
        padding: 0 6%;
    }

    .brand-name {
        display: none;
    }

    nav {
        display: none;
    }

    .hero {
        padding:
            120px 7%
            60px;
    }

    .hero h1 {
        font-size: 30vw;
        letter-spacing: -6px;
    }

    .hero-description {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .circuit-background {
        width: 100%;
        height: 60%;

        right: -35%;
        top: 55%;

        opacity: 0.25;
    }

    .circuit-background::after {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .systems-section,
    .solutions-section {
        padding:
            110px 7%;
    }

    .section-header {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 60px;
    }

    .section-header h2 {
        letter-spacing: -2px;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    .system-card {
        min-height: 360px;

        border-left:
            1px solid rgba(255,255,255,0.10);
    }

    .solutions-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .solution-row {
        grid-template-columns:
            40px 1fr;

        gap: 20px;

        padding:
            30px 10px;
    }

    .solution-row > p {
        grid-column:
            2 / 3;
    }

    .solution-code {
        display: none;
    }

    .solutions-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1000px) {
    .lab-grid { grid-template-columns: 1fr; }
    .lab-card { min-height: 410px; }
    .lab-console-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-console-grid div { border-bottom: 1px solid rgba(255,255,255,.07); }
    .lab-footer { grid-template-columns: 1fr 1fr; }
    .lab-footer-line { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
    .lab-section { padding: 110px 7%; }
    .lab-console-head { align-items: flex-start; flex-direction: column; padding: 18px; }
    .lab-console-grid { grid-template-columns: 1fr 1fr; }
    .lab-console-grid div { padding: 18px; }
    .lab-card { min-height: 400px; padding: 28px; }
    .lab-card-icon { margin-top: 40px; }
    .lab-footer { grid-template-columns: 1fr; gap: 14px; }
    .lab-footer-line { grid-column: auto; }
}

/* ========================================
   v0.8 — READABILITY POLISH
   ======================================== */

/* Secondary headings: preserve hierarchy, improve contrast */
.section-header h2 span {
    color: #84909b;
}

/* HOME */
.hero-text {
    color: #9aa6b1;
    font-size: 17px;
}

/* SYSTEMS */
.system-card p {
    color: #a3adb7;
    font-size: 14px;
    line-height: 1.85;
}

.card-number {
    color: #788591;
}

.card-tag {
    color: #71808c;
    font-size: 9px;
}

/* SOLUTIONS */
.solutions-intro > p {
    color: #a7b1bb;
    font-size: 16px;
}

.solutions-status {
    color: #7f8c98;
    font-size: 10px;
}

.solution-number {
    color: #71808c;
}

.solution-row > p {
    color: #a3adb7;
    font-size: 14px;
    line-height: 1.75;
}

.solution-code {
    color: #71808c;
    font-size: 9px;
}

.solutions-footer p {
    color: #7d8994;
    font-size: 10px;
}

/* MDS ABOUT / METHOD — key readability upgrade */
.about-lead {
    color: #f1f4f6;
    font-size: 22px;
    line-height: 1.55;
}

.about-copy,
.about-copy p {
    color: #b2bcc5;
    font-size: 15px;
    line-height: 1.85;
}

.about-values,
.about-tags {
    gap: 12px;
}

.about-value,
.about-tag {
    color: #dce3e8;
    border-color: rgba(255,255,255,0.25);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    padding: 12px 17px;
}

.method-item p,
.about-method-item p {
    color: #aab5be;
    font-size: 14px;
    line-height: 1.75;
}

.method-item h3,
.about-method-item h3 {
    font-size: 20px;
}

.method-code,
.about-method-code {
    color: #7f8d98;
    font-size: 9px;
}

/* LAB — descriptions become readable while telemetry stays subdued */
.lab-card p,
.lab-module p {
    color: #a8b3bd;
    font-size: 14px;
    line-height: 1.8;
}

.lab-card .lab-code,
.lab-module .lab-code,
.lab-meta,
.lab-terminal-label {
    color: #7b8995;
}

/* Keep purely decorative telemetry intentionally quieter */
.lab-index,
.lab-coordinate,
.telemetry-label {
    color: #65737f;
}

@media (max-width: 850px) {
    .hero-text {
        font-size: 16px;
    }

    .system-card p,
    .solution-row > p,
    .lab-card p,
    .lab-module p,
    .method-item p,
    .about-method-item p {
        font-size: 14px;
    }

    .about-lead {
        font-size: 20px;
    }
}

/* ========================================
   v0.9 — SOLUTIONS VISUAL POLISH
   ======================================== */

/* Give the useful content more visual weight */
.solution-row {
    grid-template-columns: 70px minmax(280px, 1.05fr) minmax(380px, 1.65fr) minmax(210px, 0.7fr);
    gap: 34px;
    min-height: 150px;
}

.solution-row > p {
    color: #b2bcc5;
    font-size: 15px;
    line-height: 1.75;
    max-width: 720px;
}

/* Technical codes become readable system badges */
.solution-code {
    position: relative;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    color: #c6d0d8;
    border: 1px solid rgba(0,183,255,0.22);
    background: rgba(0,183,255,0.025);
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    white-space: nowrap;
    transition: border-color .35s, background .35s, color .35s, box-shadow .35s, transform .35s;
}

.solution-code::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 50%;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,183,255,0.55));
}

.solution-code::after {
    content: "";
    position: absolute;
    left: -12px;
    top: calc(50% - 2px);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #00b7ff;
    box-shadow: 0 0 10px rgba(0,183,255,.65);
}

.solution-row:hover .solution-code {
    color: #ffffff;
    border-color: rgba(0,183,255,0.55);
    background: rgba(0,183,255,0.07);
    box-shadow: 0 0 28px rgba(0,183,255,0.08), inset 0 0 24px rgba(0,183,255,0.025);
    transform: translateX(-4px);
}

/* Footer is useful information, not debug telemetry */
.solutions-footer {
    margin-top: 64px;
    padding: 28px 30px;
    border-top: 1px solid rgba(0,183,255,0.34);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(90deg, rgba(0,183,255,0.045), rgba(255,255,255,0.012), transparent);
}

.solutions-footer div {
    color: #d0d7dd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.solutions-footer p {
    color: #d7dee4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.4px;
}

@media (max-width: 1200px) {
    .solution-row {
        grid-template-columns: 50px 1fr 1.4fr;
    }

    .solution-code {
        display: none;
    }
}

@media (max-width: 850px) {
    .solution-row {
        grid-template-columns: 40px 1fr;
    }

    .solution-row > p {
        grid-column: 2 / 3;
        font-size: 14px;
    }

    .solutions-footer {
        padding: 25px 20px;
    }
}

/* ========================================
   05 — CONTACT / v1.0
   ======================================== */
.contact-section {
    position: relative;
    min-height: 100vh;
    padding: 150px 8% 110px;
    background: #05070a;
    border-top: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
}
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,183,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(0,183,255,.018) 1px, transparent 1px);
    background-size: 90px 90px;
    pointer-events: none;
}
.contact-word {
    position: absolute;
    right: -1vw;
    top: 80px;
    color: rgba(255,255,255,.018);
    font-size: clamp(110px, 18vw, 300px);
    font-weight: 800;
    letter-spacing: -12px;
    white-space: nowrap;
    user-select: none;
}
.contact-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
    margin-bottom: 55px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-intro > p { max-width: 760px; color: #aab4be; font-size: 16px; line-height: 1.85; }
.contact-intro > span { color: #82909e; font: 600 9px monospace; letter-spacing: 3px; white-space: nowrap; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-card { position: relative; min-height: 310px; padding: 42px; color: #fff; text-decoration: none; border-left: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.008); transition: background .35s, transform .35s; overflow: hidden; }
.contact-card:last-child { border-right: 1px solid rgba(255,255,255,.12); }
.contact-card::before { content:""; position:absolute; left:0; top:0; width:100%; height:2px; background:linear-gradient(90deg,#00b7ff,transparent 65%); transform:scaleX(.15); transform-origin:left; transition:transform .4s; }
.contact-card:hover { background: rgba(0,183,255,.04); transform: translateY(-4px); }
.contact-card:hover::before { transform:scaleX(1); }
.contact-index { color:#00b7ff; font: 10px monospace; letter-spacing:3px; }
.contact-type { margin-top:52px; color:#8e9ba7; font:600 10px monospace; letter-spacing:4px; }
.contact-card h3 { margin-top:16px; font-size:clamp(20px,2vw,34px); line-height:1.25; letter-spacing:-1px; overflow-wrap:anywhere; }
.contact-action, .contact-actions { margin-top:52px; }
.contact-action { color:#00b7ff; font:700 10px monospace; letter-spacing:3px; }
.contact-action span, .contact-actions span { margin-left:10px; }
.contact-card-direct { cursor:default; }
.contact-actions { display:flex; gap:14px; flex-wrap:wrap; }
.contact-actions a { padding:14px 18px; color:#dce5ec; border:1px solid rgba(0,183,255,.28); text-decoration:none; font:700 10px monospace; letter-spacing:2px; transition:.3s; }
.contact-actions a:hover { color:#05070a; background:#00b7ff; border-color:#00b7ff; box-shadow:0 0 25px rgba(0,183,255,.16); }
.contact-trust { display:flex; align-items:center; gap:15px; margin-top:55px; padding:24px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.contact-trust p { color:#c1c9d0; font-size:14px; line-height:1.7; }
.contact-capabilities { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:38px; color:#aeb8c1; font:600 10px monospace; letter-spacing:2px; }
.contact-capabilities i { color:#00b7ff; font-style:normal; font-size:7px; }
.contact-service { margin-top:30px; color:#d3dbe2; font:700 10px monospace; letter-spacing:3px; }
.site-footer { position:relative; display:flex; align-items:center; justify-content:space-between; gap:40px; padding:45px 8%; background:#030507; border-top:1px solid rgba(0,183,255,.18); }
.footer-brand { display:flex; align-items:center; gap:18px; }
.footer-brand strong { color:#fff; font-size:24px; letter-spacing:5px; }
.footer-brand span, .footer-meta { color:#87939e; font:600 9px monospace; letter-spacing:2px; }
.footer-meta { display:flex; gap:35px; }
@media (max-width:850px) {
    .contact-section { padding:110px 7% 80px; }
    .contact-word { top:100px; font-size:30vw; letter-spacing:-5px; }
    .contact-intro { flex-direction:column; align-items:flex-start; }
    .contact-grid { grid-template-columns:1fr; }
    .contact-card { min-height:270px; padding:32px 24px; border-right:1px solid rgba(255,255,255,.12); border-bottom:1px solid rgba(255,255,255,.12); }
    .contact-type { margin-top:38px; }
    .contact-action,.contact-actions { margin-top:38px; }
    .site-footer { flex-direction:column; align-items:flex-start; }
    .footer-meta { flex-direction:column; gap:10px; }
}


/* ========================================
   v1.1 — CONTACT + FOOTER FINAL POLISH
   ======================================== */
.contact-intro > p {
    color: #c5ced6;
    font-size: 17px;
    line-height: 1.9;
}

.contact-trust {
    gap: 17px;
    padding: 27px 0;
}

.contact-trust p {
    color: #e0e6eb;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.75;
}

.contact-capabilities {
    gap: 18px;
    margin-top: 40px;
    color: #cbd4db;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.contact-service {
    margin-top: 32px;
    color: #e1e7ec;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.site-footer {
    padding: 52px 8%;
}

.footer-brand strong {
    font-size: 27px;
}

.footer-brand span {
    color: #aeb9c2;
    font-size: 10px;
    letter-spacing: 2.4px;
}

.footer-meta {
    color: #b8c3cc;
    font-size: 10px;
    letter-spacing: 2.4px;
}

.footer-meta span:first-child {
    color: #8997a2;
}

@media (max-width:850px) {
    .contact-intro > p { font-size: 16px; }
    .contact-trust p { font-size: 14px; }
    .contact-capabilities, .contact-service { font-size: 10px; }
    .site-footer { padding: 42px 7%; }
}


/* ========================================
   v1.2 — CONTACT / ULTRAWIDE BRAND POLISH
   ======================================== */

/* Watermark: the section already says CONTATTI, so the background becomes a brand mark. */
.contact-word {
    right: 4%;
    top: 105px;
    color: rgba(255,255,255,.026);
    font-size: clamp(150px, 21vw, 360px);
    font-weight: 800;
    letter-spacing: -16px;
    line-height: .8;
    text-shadow: 0 0 60px rgba(0,183,255,.018);
}

/* Contact cards: slightly more substantial on large/ultrawide screens. */
.contact-card {
    min-height: 330px;
    padding: 46px;
}

.contact-card h3 {
    color: #f7f9fa;
    font-weight: 700;
    text-shadow: 0 0 22px rgba(255,255,255,.025);
}

.contact-phone-link {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
}

.contact-phone-link:hover {
    color: #00b7ff;
    text-shadow: 0 0 22px rgba(0,183,255,.16);
}

/* EMAIL action becomes a real visual control while the whole email card remains clickable. */
.contact-action {
    position: relative;
    width: fit-content;
    min-width: 205px;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 4px;
    padding: 13px 16px;
    color: #eef5f9;
    border: 1px solid rgba(0,183,255,.38);
    background: linear-gradient(90deg, rgba(0,183,255,.07), rgba(0,183,255,.018));
    box-shadow: inset 0 0 24px rgba(0,183,255,.018);
    transition: border-color .3s, background .3s, box-shadow .3s, transform .3s;
}

.contact-card:hover .contact-action {
    border-color: rgba(0,183,255,.72);
    background: linear-gradient(90deg, rgba(0,183,255,.13), rgba(0,183,255,.035));
    box-shadow: 0 0 26px rgba(0,183,255,.08), inset 0 0 24px rgba(0,183,255,.025);
    transform: translateY(-2px);
}

/* Direct contact buttons: bigger, sharper, less "debug text". */
.contact-actions {
    gap: 12px;
}

.contact-actions a {
    position: relative;
    min-width: 205px;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 4px;
    padding: 13px 16px;
    color: #eef5f9;
    border: 1px solid rgba(0,183,255,.38);
    background: rgba(0,183,255,.018);
    box-shadow: inset 0 0 24px rgba(0,183,255,.018);
}

.contact-actions a:hover {
    color: #ffffff;
    background: rgba(0,183,255,.11);
    border-color: rgba(0,183,255,.78);
    box-shadow: 0 0 28px rgba(0,183,255,.11), inset 0 0 25px rgba(0,183,255,.035);
    transform: translateY(-2px);
}

.action-main {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    color: inherit;
    font: 800 11px monospace;
    letter-spacing: 2.4px;
}

.action-sub {
    grid-column: 1;
    grid-row: 2;
    margin: 0 !important;
    color: #8796a2;
    font: 600 8px monospace;
    letter-spacing: 1.7px;
}

.action-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0 !important;
    color: #00b7ff;
    font: 400 16px monospace;
}

.contact-card:hover .action-sub,
.contact-actions a:hover .action-sub {
    color: #b8c5ce;
}

/* Footer: no more tiny, fuzzy telemetry on ultrawide. */
.site-footer {
    min-height: 125px;
    padding: 42px 8%;
    border-top: 1px solid rgba(0,183,255,.28);
    background:
        linear-gradient(90deg, rgba(0,183,255,.025), transparent 28%),
        #030507;
}

.footer-brand {
    gap: 22px;
}

.footer-brand strong {
    font-size: 30px;
    letter-spacing: 6px;
}

.footer-brand span {
    color: #c3ccd3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.6px;
}

.footer-meta {
    align-items: center;
    gap: 32px;
    color: #d2dae0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.footer-meta span:first-child {
    color: #9ca9b3;
}

.footer-copyright {
    position: relative;
    padding-left: 18px;
    color: #e1e7eb !important;
}

.footer-copyright::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00b7ff;
    box-shadow: 0 0 12px rgba(0,183,255,.75);
    transform: translateY(-50%);
}

@media (min-width: 1700px) {
    .contact-intro > p {
        font-size: 18px;
        max-width: 820px;
    }

    .contact-type {
        font-size: 11px;
    }

    .contact-card h3 {
        font-size: clamp(28px, 1.8vw, 38px);
    }

    .contact-action,
    .contact-actions a {
        min-width: 225px;
        min-height: 62px;
    }

    .footer-brand span,
    .footer-meta {
        font-size: 11px;
    }
}

@media (max-width: 850px) {
    .contact-word {
        right: 5%;
        top: 125px;
        font-size: 38vw;
        letter-spacing: -8px;
    }

    .contact-card {
        min-height: 285px;
        padding: 34px 24px;
    }

    .contact-action,
    .contact-actions a {
        width: 100%;
        min-width: 0;
    }

    .contact-actions {
        flex-direction: column;
    }

    .site-footer {
        min-height: auto;
        padding: 38px 7%;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .footer-meta {
        gap: 13px;
    }
}


/* ========================================
   v1.3 — CONTACT CONTROL POLISH
   ======================================== */

/* No giant section watermark: keep the visual grammar consistent site-wide. */
.contact-word { display: none !important; }

/* Crisp control typography: fewer tiny letters and less tracking. */
.contact-action,
.contact-actions a.contact-btn {
    width: min(100%, 300px);
    min-width: 220px;
    min-height: 64px;
    display: grid;
    grid-template-columns: 30px 1fr 22px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 15px;
    padding: 0 18px;
    border: 1px solid rgba(0,183,255,.42);
    background:
        linear-gradient(90deg, rgba(0,183,255,.075), rgba(0,183,255,.015));
    color: #f4f8fb;
    box-shadow:
        inset 0 0 24px rgba(0,183,255,.018);
    text-decoration: none;
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.contact-action .action-main,
.contact-actions a.contact-btn .action-main {
    grid-column: 2;
    grid-row: 1;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.8px;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

.contact-btn-icon {
    grid-column: 1;
    grid-row: 1;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #00b7ff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        stroke .25s ease,
        filter .25s ease,
        transform .25s ease;
}

.action-arrow {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    color: #00b7ff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1;
    transition: transform .25s ease, color .25s ease;
}

.contact-card:hover .contact-action,
.contact-actions a.contact-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0,183,255,.9);
    background:
        linear-gradient(90deg, rgba(0,183,255,.15), rgba(0,183,255,.035));
    box-shadow:
        0 0 0 1px rgba(0,183,255,.08),
        0 0 26px rgba(0,183,255,.13),
        inset 0 0 28px rgba(0,183,255,.035);
}

.contact-card:hover .contact-action .contact-btn-icon,
.contact-actions a.contact-btn:hover .contact-btn-icon {
    filter: drop-shadow(0 0 6px rgba(0,183,255,.75));
    transform: scale(1.05);
}

.contact-card:hover .contact-action .action-arrow,
.contact-actions a.contact-btn:hover .action-arrow {
    transform: translateX(4px);
}

/* WhatsApp remains MDS cyan at rest; its identity appears subtly on interaction. */
.contact-actions a.contact-btn-whatsapp:hover {
    border-color: rgba(37,211,102,.72);
    background:
        linear-gradient(90deg, rgba(37,211,102,.105), rgba(0,183,255,.025));
    box-shadow:
        0 0 24px rgba(37,211,102,.08),
        inset 0 0 28px rgba(37,211,102,.025);
}

.contact-actions a.contact-btn-whatsapp:hover .contact-btn-icon {
    stroke: #25d366;
    filter: drop-shadow(0 0 6px rgba(37,211,102,.6));
}

/* Remove v1.2 secondary microcopy completely. */
.action-sub { display: none !important; }

/* Keep the two direct controls balanced. */
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-card-direct .contact-actions a {
    flex: 1 1 220px;
    max-width: 300px;
}

/* Footer: readable but not repetitive. */
.footer-copyright {
    color: #e1e7eb !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

@media (min-width: 1700px) {
    .contact-action,
    .contact-actions a.contact-btn {
        min-height: 68px;
        min-width: 245px;
    }

    .contact-action .action-main,
    .contact-actions a.contact-btn .action-main {
        font-size: 14px;
    }

    .contact-btn-icon {
        width: 25px;
        height: 25px;
    }

    .footer-copyright {
        font-size: 13px;
    }
}

@media (max-width: 850px) {
    .contact-action,
    .contact-actions a.contact-btn,
    .contact-card-direct .contact-actions a {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}

/* ========================================
   v1.4 — DESKTOP TYPOGRAPHY CHARACTER PASS
   IMPORTANT: HERO MDS / OUTLINED D UNTOUCHED
   ======================================== */

/* Human-facing copy: modern technical sans stack, no external dependency. */
.hero-text,
.solutions-intro > p,
.system-card p,
.solution-row > p,
.lab-card > p:not(.lab-card-kicker),
.about-manifesto > p,
.about-step div > p:last-child,
.contact-intro > p,
.contact-trust p {
    font-family: "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
    font-weight: 450;
    letter-spacing: -0.012em;
}

/* Display headings: stronger geometry without altering the HOME MDS logo. */
.section-header h2,
.system-card h3,
.solution-title h3,
.lab-card h3,
.about-step h3,
.contact-card h3 {
    font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
}

.section-header h2 {
    font-weight: 650;
    letter-spacing: -0.045em;
}
.section-header h2 span { font-weight: 350; }

.system-card h3,
.solution-title h3,
.lab-card h3,
.about-step h3 {
    font-weight: 650;
    letter-spacing: -0.018em;
}

/* Technical UI language: consistent machine/HUD voice. */
nav a,
.brand-name,
.hero-label,
.hero-description,
.button-primary,
.button-secondary,
.section-label,
.card-tag,
.solutions-footer div,
.contact-type,
.contact-capabilities,
.contact-service,
.footer-brand span,
.footer-meta,
.contact-action .action-main,
.contact-actions a.contact-btn .action-main {
    font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

/* Contact intro was the most generic-looking text: give it presence. */
.contact-intro > p {
    max-width: 800px;
    color: #d4dbe1;
    font-size: 18px;
    font-weight: 480;
    line-height: 1.75;
    letter-spacing: -0.018em;
}

/* Side descriptor: deliberate system label instead of tiny debug text. */
.contact-intro > span {
    color: #b4c0c9;
    font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 2.4px;
}

/* Manifesto lead deserves editorial weight. */
.about-manifesto .about-lead {
    font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -0.025em;
}

/* Keep telemetry genuinely technical. */
.section-number,
.card-number,
.card-symbol,
.solution-number,
.solution-icon,
.solution-code,
.solutions-status,
.lab-console-head,
.lab-console-grid span,
.lab-card-index,
.lab-card-icon,
.lab-card-kicker,
.lab-footer,
.about-values span,
.about-step-number,
.about-step-code,
.about-signature,
.contact-index {
    font-family: "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

/* Explicit protection: preserve the original MDS construction exactly. */
.hero h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(100px, 16vw, 220px);
    line-height: 0.85;
    letter-spacing: -10px;
    font-weight: 800;
    color: #ffffff;
    margin-left: -8px;
}
.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
}


/* ========================================
   v1.4.1 — EMAIL HOVER FIX ONLY
   Direct contact intentionally untouched.
   ======================================== */

/* The email card must stay visually neutral when hovering the card itself. */
.contact-card:not(.contact-card-direct):hover {
    background: rgba(255,255,255,.008);
    transform: none;
}

.contact-card:not(.contact-card-direct):hover::before {
    transform: scaleX(.15);
}

/* Cancel the old parent-hover activation on the SCRIVI control. */
.contact-card:not(.contact-card-direct):hover .contact-action {
    transform: none;
    border-color: rgba(0,183,255,.42);
    background: linear-gradient(90deg, rgba(0,183,255,.075), rgba(0,183,255,.015));
    box-shadow: inset 0 0 24px rgba(0,183,255,.018);
}

.contact-card:not(.contact-card-direct):hover .contact-action .contact-btn-icon {
    filter: none;
    transform: none;
}

.contact-card:not(.contact-card-direct):hover .contact-action .action-arrow {
    transform: none;
}

/* Activate SCRIVI only when the pointer is actually over the control. */
.contact-card:not(.contact-card-direct) .contact-action:hover {
    transform: translateY(-2px);
    border-color: rgba(0,183,255,.9);
    background: linear-gradient(90deg, rgba(0,183,255,.15), rgba(0,183,255,.035));
    box-shadow:
        0 0 0 1px rgba(0,183,255,.08),
        0 0 26px rgba(0,183,255,.13),
        inset 0 0 28px rgba(0,183,255,.035);
}

.contact-card:not(.contact-card-direct) .contact-action:hover .contact-btn-icon {
    filter: drop-shadow(0 0 6px rgba(0,183,255,.75));
    transform: scale(1.05);
}

.contact-card:not(.contact-card-direct) .contact-action:hover .action-arrow {
    transform: translateX(4px);
}

/* ========================================
   v1.4.2 — EMAIL CARD HOVER RESTORE
   Card animation restored; SCRIVI stays independent.
   Direct contact untouched.
   ======================================== */

/* Restore the original large EMAIL card hover animation. */
.contact-card:not(.contact-card-direct):hover {
    background: rgba(0,183,255,.04);
    transform: translateY(-4px);
}

.contact-card:not(.contact-card-direct):hover::before {
    transform: scaleX(1);
}

/* But hovering the large card must NOT activate the SCRIVI button. */
.contact-card:not(.contact-card-direct):hover .contact-action {
    transform: none;
    border-color: rgba(0,183,255,.42);
    background: linear-gradient(90deg, rgba(0,183,255,.075), rgba(0,183,255,.015));
    box-shadow: inset 0 0 24px rgba(0,183,255,.018);
}

.contact-card:not(.contact-card-direct):hover .contact-action .contact-btn-icon {
    filter: none;
    transform: none;
}

.contact-card:not(.contact-card-direct):hover .contact-action .action-arrow {
    transform: none;
}

/* SCRIVI lights only when the pointer is over SCRIVI itself. */
.contact-card:not(.contact-card-direct) .contact-action:hover {
    transform: translateY(-2px);
    border-color: rgba(0,183,255,.9);
    background: linear-gradient(90deg, rgba(0,183,255,.15), rgba(0,183,255,.035));
    box-shadow: 0 0 0 1px rgba(0,183,255,.08), 0 0 26px rgba(0,183,255,.13), inset 0 0 28px rgba(0,183,255,.035);
}

.contact-card:not(.contact-card-direct) .contact-action:hover .contact-btn-icon {
    filter: drop-shadow(0 0 6px rgba(0,183,255,.75));
    transform: scale(1.05);
}

.contact-card:not(.contact-card-direct) .contact-action:hover .action-arrow {
    transform: translateX(4px);
}

/* ========================================
   v1.5 — MOBILE PASS
   <= 850px only. Desktop untouched.
   ======================================== */
.mobile-menu-toggle { display: none; }

@media (max-width: 850px) {
    .navbar { height: 74px; padding: 0 7%; }
    .brand { position: relative; z-index: 1002; }
    .brand-mds { font-size: 24px; letter-spacing: 5px; }

    .mobile-menu-toggle {
        position: relative; z-index: 1002; display: flex;
        width: 46px; height: 46px; padding: 0;
        border: 1px solid rgba(0,183,255,.28);
        background: rgba(0,183,255,.025);
        align-items: center; justify-content: center;
        flex-direction: column; gap: 7px; cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block; width: 20px; height: 1px; background: #dce5ec;
        transition: transform .3s ease, background .3s ease;
    }
    .mobile-menu-toggle.is-open { border-color: rgba(0,183,255,.72); background: rgba(0,183,255,.07); }
    .mobile-menu-toggle.is-open span { background: #00b7ff; }
    .mobile-menu-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
    .mobile-menu-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .navbar nav {
        position: fixed; inset: 74px 0 auto 0; z-index: 1001;
        display: flex; flex-direction: column; gap: 0;
        padding: 18px 7% 26px;
        background: rgba(5,7,10,.97); backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(0,183,255,.22);
        opacity: 0; visibility: hidden; transform: translateY(-14px);
        pointer-events: none;
        transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
    }
    .navbar nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
    .navbar nav a {
        display: flex; align-items: center; min-height: 52px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        color: #c9d2da; font-size: 11px; letter-spacing: 2.4px;
    }
    .navbar nav a:last-child { border-bottom: 0; }
    .navbar nav a::after { display: none; }
    body.mobile-menu-open { overflow: hidden; }

    .hero { min-height: 100svh; padding: 118px 7% 62px; align-items: center; }
    .hero-content { width: 100%; }
    .hero-label { margin-bottom: 22px; font-size: 9px; line-height: 1.6; letter-spacing: 4.5px; }
    .hero h1 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: clamp(92px, 29vw, 122px);
        line-height: .86; letter-spacing: -6px; font-weight: 800;
        color: #fff; margin-left: -4px;
    }
    .hero h1 span { color: transparent; -webkit-text-stroke: 2px #fff; }
    .hero-description { margin-top: 32px; max-width: 330px; font-size: 9px; line-height: 1.9; letter-spacing: 1.6px; }
    .hero-description span { margin: 0 4px; }
    .hero-line { width: 72px; margin: 25px 0; }
    .hero-text { max-width: 335px; font-size: 15px; line-height: 1.65; }
    .hero-buttons { width: 100%; margin-top: 32px; gap: 12px; }
    .button-primary, .button-secondary {
        width: min(100%, 260px); min-height: 52px; display: flex;
        align-items: center; justify-content: center; padding: 0 18px;
    }
    .circuit-background { right: -42%; top: 54%; width: 120%; height: 58%; opacity: .22; }

    .systems-section, .solutions-section, .lab-section, .about-section, .contact-section {
        padding-left: 7%; padding-right: 7%;
    }
    .section-header { gap: 12px; margin-bottom: 48px; }
    .section-number { padding-top: 0; font-size: 10px; }
    .section-label { margin-bottom: 14px; font-size: 9px; letter-spacing: 4px; }
    .section-header h2 { font-size: clamp(38px, 11vw, 50px); line-height: 1.04; letter-spacing: -1.8px; }

    .system-card { min-height: 0; padding: 28px 24px 30px; }
    .card-top { margin-bottom: 42px; }
    .system-card h3 { min-height: 0; margin-bottom: 22px; font-size: 23px; line-height: 1.15; }
    .system-card p { min-height: 0; margin-bottom: 24px; color: #a8b3bd; font-size: 14px; line-height: 1.75; }
    .card-line { margin: 0 0 18px; }
    .card-tag { color: #75838f; font-size: 8px; line-height: 1.5; }

    .solutions-intro { gap: 24px; margin-bottom: 38px; padding-bottom: 24px; }
    .solutions-intro > p { font-size: 15px; line-height: 1.75; }
    .solution-row { grid-template-columns: 30px 1fr; gap: 14px 16px; min-height: 0; padding: 26px 8px; }
    .solution-title { gap: 14px; }
    .solution-icon { width: 34px; height: 34px; flex: 0 0 34px; }
    .solution-title h3 { font-size: 18px; }
    .solution-row > p { grid-column: 2; font-size: 14px; line-height: 1.7; }
    .solutions-footer { gap: 18px; margin-top: 42px; padding: 24px 18px; }
    .solutions-footer div { flex-wrap: wrap; gap: 10px; font-size: 9px; letter-spacing: 2px; }
    .solutions-footer p { font-size: 9px; line-height: 1.6; }

    .lab-console { margin-bottom: 34px; }
    .lab-console-head { gap: 12px; }
    .lab-console-grid { grid-template-columns: 1fr 1fr; }
    .lab-card { min-height: 0; padding: 28px 24px 48px; }
    .lab-card-icon { width: 62px; height: 62px; margin: 34px 0 28px; }
    .lab-card h3 { font-size: 25px; }
    .lab-card > p:not(.lab-card-kicker) { font-size: 14px; line-height: 1.75; }
    .lab-scan { left: 24px; right: 24px; bottom: 25px; }

    .about-layout { gap: 52px; }
    .about-manifesto .about-lead { font-size: 20px; line-height: 1.55; }
    .about-manifesto > p:not(.about-lead) { font-size: 14px; line-height: 1.75; }
    .about-values { gap: 10px; }
    .about-values span { font-size: 8px; letter-spacing: 1.5px; }
    .about-step { grid-template-columns: 36px 1fr; gap: 14px; padding: 26px 0; }
    .about-step h3 { font-size: 19px; line-height: 1.25; }
    .about-step div > p:last-child { font-size: 14px; line-height: 1.7; }
    .about-signature { margin-top: 52px; gap: 14px; }
    .about-signature strong { line-height: 1.7; }

    .contact-intro { gap: 20px; margin-bottom: 38px; padding-bottom: 24px; }
    .contact-intro > p { font-size: 15px; line-height: 1.7; }
    .contact-intro > span { white-space: normal; font-size: 9px; line-height: 1.6; }
    .contact-card { min-height: 0; padding: 30px 22px; }
    .contact-type { margin-top: 32px; }
    .contact-card h3 { margin-top: 14px; font-size: clamp(20px, 6.2vw, 25px); }
    .contact-action, .contact-actions { margin-top: 32px; }
    .contact-action, .contact-actions a.contact-btn { min-height: 58px; }
    .contact-actions { gap: 10px; }
    .contact-trust { margin-top: 38px; padding: 22px 0; align-items: flex-start; }
    .contact-capabilities { gap: 11px; line-height: 1.7; }
    .contact-service { line-height: 1.65; }

    .site-footer { gap: 28px; padding: 38px 7%; }
    .footer-brand { gap: 12px; flex-wrap: wrap; }
    .footer-brand strong { font-size: 24px; }
    .footer-brand span { font-size: 9px; }
    .footer-meta { gap: 9px; line-height: 1.6; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 29vw; }
    .hero-label { letter-spacing: 4px; }
    .section-header h2 { font-size: 10.5vw; }
    .lab-console-grid { grid-template-columns: 1fr; }
    .lab-console-grid div { border-right: 0; }
}

/* ========================================
   v1.5.1 — MOBILE FINAL SPACING + CONTACTS
   <= 850px only. Desktop untouched.
   ======================================== */
@media (max-width: 850px) {
    /* Reduce only the outer vertical air between sections. */
    .systems-section,
    .solutions-section,
    .lab-section,
    .about-section,
    .contact-section {
        padding-top: 92px;
        padding-bottom: 72px;
    }

    /* Keep the first content block comfortably clear of the fixed navbar. */
    .section-header {
        margin-bottom: 44px;
    }

    /* Contact email: slightly smaller so the address wraps more naturally. */
    .contact-card:not(.contact-card-direct) h3 {
        font-size: clamp(19px, 5.55vw, 23px);
        line-height: 1.22;
        letter-spacing: -0.7px;
    }

    /* Direct controls: cancel the old vertical flex-basis that made them huge. */
    .contact-card-direct .contact-actions a.contact-btn {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 60px;
        height: 60px;
        padding: 0 18px;
    }

    .contact-card-direct .contact-actions {
        gap: 10px;
    }

    /* Email action stays visually aligned with the direct controls. */
    .contact-card:not(.contact-card-direct) .contact-action {
        min-height: 60px;
        height: 60px;
    }

    /* Tighten the lower contact information without making it cramped. */
    .contact-trust {
        margin-top: 32px;
    }

    .contact-capabilities {
        margin-top: 30px;
    }

    .contact-service {
        margin-top: 24px;
    }
}

@media (max-width: 420px) {
    .contact-card:not(.contact-card-direct) h3 {
        font-size: 20px;
    }
}


/* ========================================
   v1.6 — OFFICIAL MDS HERO LOGO
   Replaces only the large HOME MDS wordmark.
   ======================================== */

.hero-logo {
    width: clamp(470px, 46vw, 760px);
    max-width: 100%;
    margin-left: -8px;
    line-height: 0;
}

.hero-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 850px) {
    .hero-logo {
        width: min(100%, 430px);
        margin-left: 0;
    }
}

@media (max-width: 420px) {
    .hero-logo {
        width: 100%;
    }
}


/* ========================================
   v1.7 — BRAND CONSISTENCY + FOOTER + CTA
   ======================================== */

/* Official MDS logo in navbar */
.brand {
    gap: 16px;
}

.brand-logo {
    display: block;
    width: 92px;
    height: auto;
    object-fit: contain;
}

/* Primary CTA: cyan instead of stark white */
.button-primary {
    color: #031018;
    background: #00b7ff;
    border-color: #00b7ff;
    box-shadow: 0 0 24px rgba(0,183,255,0.10);
}

.button-primary:hover {
    color: #031018;
    background: #25c3ff;
    border-color: #25c3ff;
    box-shadow: 0 0 34px rgba(0,183,255,0.28);
}

/* Secondary CTA stays restrained */
.button-secondary {
    background: rgba(255,255,255,0.015);
    border-color: rgba(255,255,255,0.22);
}

/* Footer: keep content together instead of pinning it to ultrawide edges */
.site-footer {
    display: block;
    padding: 0 8%;
}

.footer-inner {
    width: 100%;
    max-width: 1600px;
    min-height: 112px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    display: block;
    width: 78px;
    height: auto;
    object-fit: contain;
}

.footer-brand span {
    white-space: nowrap;
}

.footer-meta {
    align-items: center;
}

/* Mobile consistency */
@media (max-width: 850px) {
    .brand {
        gap: 0;
    }

    .brand-logo {
        width: 76px;
    }

    .brand-name {
        display: none;
    }

    .site-footer {
        padding: 0 7%;
    }

    .footer-inner {
        min-height: 0;
        padding: 34px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .footer-brand {
        gap: 14px;
        flex-wrap: wrap;
    }

    .footer-logo {
        width: 74px;
    }

    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }
}


/* ========================================
   v1.8 — ANIMATED SCROLL INDICATOR
   Desktop only. Mobile behavior unchanged.
   ======================================== */

.scroll-indicator span {
    color: #7b8a96;
    text-shadow: 0 0 10px rgba(0,183,255,0.08);
    animation: mdsScrollLabel 1.8s ease-in-out infinite;
}

.scroll-line {
    position: relative;
    width: 64px;
    height: 1px;
    overflow: visible;
    background: rgba(0,183,255,0.16);
}

.scroll-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #00b7ff 55%,
        rgba(0,183,255,0.18)
    );
    box-shadow: 0 0 12px rgba(0,183,255,0.55);
    animation: mdsScrollScan 1.8s cubic-bezier(.55,.05,.3,1) infinite;
}

.scroll-line::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00b7ff;
    box-shadow:
        0 0 8px rgba(0,183,255,0.95),
        0 0 18px rgba(0,183,255,0.45);
    animation: mdsScrollDot 1.8s cubic-bezier(.55,.05,.3,1) infinite;
}

@keyframes mdsScrollScan {
    0% {
        transform: translateX(-24px);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(64px);
        opacity: 0;
    }
}

@keyframes mdsScrollDot {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(64px);
        opacity: 0;
    }
}

@keyframes mdsScrollLabel {
    0%, 100% {
        opacity: .45;
    }
    50% {
        opacity: 1;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .scroll-indicator span,
    .scroll-line::before,
    .scroll-line::after {
        animation: none;
    }
}
