/* =========================================================
   MVIS APPLICATIONS — IMAGE-LED PROFESSIONAL LAYOUT
   Used by the application detail pages (Rolling Stock / Load Balance).
   ========================================================= */

.applications-page .page-hero {
    min-height: 58vh;
    display: flex;
    align-items: center;
    background:
      radial-gradient(circle at 82% 25%, rgba(0,210,255,.13), transparent 28%),
      linear-gradient(135deg, #07111f 0%, #0a1828 55%, #102438 100%);
    position: relative;
    overflow: hidden;
}

.applications-page .page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to right, transparent, black 45%, black 100%);
    pointer-events: none;
}

.applications-page .page-hero .wrap { position: relative; z-index: 2; }
.applications-page .page-hero h1 { max-width: 980px; }
.applications-page .page-hero p { max-width: 820px; }

.application-intro {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.application-intro h2 {
    margin: 14px 0 18px;
}

.application-intro p {
    color: #5d7085;
    font-size: 17px;
    line-height: 1.85;
}

.app-block {
    padding: 110px 0;
    background: #f5f8fa;
}

.app-block:nth-of-type(odd) { background: #ffffff; }

.app-block + .app-block {
    border-top: 1px solid rgba(9, 29, 49, .08);
}

.app-visual {
    position: relative;
    min-height: 530px;
    border-radius: 30px;
    overflow: hidden;
    background: #07111f;
    box-shadow: 0 28px 70px rgba(5, 22, 39, .18);
    margin-bottom: 48px;
}

.app-visual img {
    width: 100%;
    height: 530px;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.app-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(3,14,26,.80), rgba(3,14,26,.18) 58%, rgba(3,14,26,.10)),
      linear-gradient(0deg, rgba(3,14,26,.48), transparent 55%);
}

.app-visual-content {
    position: absolute;
    z-index: 3;
    left: 48px;
    bottom: 44px;
    max-width: 650px;
    color: #fff;
}

.app-visual-content .panel-kicker {
    color: #27d8ff;
}

.app-visual-content h2 {
    color: #fff;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.02;
    margin: 10px 0 16px;
}

.app-visual-content p {
    color: rgba(255,255,255,.82);
    max-width: 620px;
    font-size: 16px;
    line-height: 1.75;
}

.app-status {
    position: absolute;
    z-index: 4;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(39,216,255,.38);
    background: rgba(4,17,31,.72);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    color: #dffaff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.app-status i {
    color: #27d8ff;
    font-size: 8px;
    animation: appPulse 1.8s infinite;
}

@keyframes appPulse {
    0%,100% { opacity: .45; transform: scale(.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

.app-scan {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    width: 2px;
    left: 14%;
    background: #25dcff;
    box-shadow: 0 0 12px #25dcff, 0 0 38px rgba(37,220,255,.85);
    animation: appScan 4.5s ease-in-out infinite;
}

.app-scan::after {
    content: "";
    position: absolute;
    left: -70px;
    top: 0;
    bottom: 0;
    width: 140px;
    background: linear-gradient(90deg, transparent, rgba(37,220,255,.14), transparent);
}

@keyframes appScan {
    0% { left: 10%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 88%; opacity: 1; }
    90% { opacity: 1; }
    100% { left: 10%; opacity: 0; }
}

.app-overlay-grid {
    position: absolute;
    z-index: 2;
    inset: 0;
    background-image: linear-gradient(rgba(37,220,255,.07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(37,220,255,.07) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .4;
    pointer-events: none;
}

.detection-box {
    position: absolute;
    z-index: 5;
    border: 1px solid #2cddff;
    box-shadow: 0 0 0 1px rgba(44,221,255,.08), 0 0 20px rgba(44,221,255,.22);
    color: #dffaff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(3,17,29,.25);
}

.detection-box span {
    position: absolute;
    top: -25px;
    left: -1px;
    padding: 5px 7px;
    background: #071827;
    border: 1px solid rgba(44,221,255,.38);
    white-space: nowrap;
}

.box-wheel { width: 125px; height: 90px; left: 28%; bottom: 17%; }
.box-body { width: 220px; height: 120px; left: 53%; top: 23%; }
.box-underframe { width: 190px; height: 72px; left: 64%; bottom: 17%; }

.app-content-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: start;
}

.app-copy h3 {
    font-size: clamp(28px, 3vw, 42px);
    margin: 0 0 20px;
    line-height: 1.08;
}

.app-copy > p {
    color: #5d7085;
    line-height: 1.85;
    font-size: 16px;
    margin: 0 0 20px;
}

.app-copy .lead {
    font-size: 19px;
    color: #24384c;
}

.app-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
    margin-top: 30px;
}

.app-point {
    padding: 18px;
    border: 1px solid #dce5ec;
    border-radius: 15px;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.app-point:hover {
    transform: translateY(-3px);
    border-color: rgba(0,184,235,.45);
    box-shadow: 0 14px 30px rgba(6,25,43,.08);
}

.app-point i {
    color: #00bce9;
    margin-top: 3px;
}

.app-point strong {
    display: block;
    color: #12263a;
    font-size: 13px;
    margin-bottom: 4px;
}

.app-point span {
    color: #6b7d8f;
    font-size: 12px;
    line-height: 1.55;
}

.app-side {
    padding: 30px;
    border-radius: 22px;
    background: #071522;
    color: #fff;
    position: sticky;
    top: 110px;
    box-shadow: 0 22px 50px rgba(4,20,37,.15);
}

.app-side .panel-kicker { color: #27d8ff; }
.app-side h3 { color: #fff; font-size: 25px; margin: 10px 0 17px; }
.app-side p { color: #a9bdd0; font-size: 14px; line-height: 1.75; }

.app-side-list { list-style: none; padding: 0; margin: 22px 0 0; }
.app-side-list li {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.09);
    color: #c8d7e4;
    font-size: 13px;
}
.app-side-list i { color: #27d8ff; margin-top: 3px; }

.app-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 55px;
}

.app-metric {
    padding: 24px;
    border: 1px solid #dbe5eb;
    border-radius: 17px;
    background: #fff;
}

.app-metric strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    color: #0a1b2c;
    margin-bottom: 7px;
}
.app-metric span { color: #718296; font-size: 12px; line-height: 1.5; }

.app-process {
    padding: 100px 0;
    background: #07111f;
    color: #fff;
}
.app-process h2 { color: #fff; max-width: 760px; }
.app-process-intro { color: #9fb4c7; max-width: 760px; line-height: 1.8; }

.app-process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 50px;
}

.app-process-card {
    padding: 22px 17px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 17px;
    background: rgba(255,255,255,.035);
}
.app-process-card .num { color: #27d8ff; font-weight: 800; font-size: 11px; letter-spacing: 1px; }
.app-process-card i { display: block; font-size: 20px; margin: 25px 0 16px; color: #fff; }
.app-process-card h3 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.app-process-card p { color: #8ea6ba; font-size: 12px; line-height: 1.6; }

.app-note {
    margin-top: 30px;
    padding: 20px 22px;
    border-left: 3px solid #20cceF;
    background: #edf8fb;
    color: #52687b;
    font-size: 13px;
    line-height: 1.7;
    border-radius: 0 12px 12px 0;
}

@media (max-width: 1050px) {
    .app-content-grid { grid-template-columns: 1fr; gap: 35px; }
    .app-side { position: static; }
    .app-process-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    .app-block { padding: 70px 0; }
    .app-visual, .app-visual img { height: 430px; min-height: 430px; }
    .app-visual-content { left: 25px; right: 20px; bottom: 28px; }
    .app-visual-content h2 { font-size: 34px; }
    .app-points { grid-template-columns: 1fr; }
    .app-metrics { grid-template-columns: repeat(2, 1fr); }
    .app-process-grid { grid-template-columns: 1fr 1fr; }
    .box-body { left: 45%; width: 150px; }
    .box-wheel { left: 15%; }
}

@media (max-width: 480px) {
    .app-metrics, .app-process-grid { grid-template-columns: 1fr; }
    .app-visual, .app-visual img { height: 390px; min-height: 390px; }
    .app-status { left: 14px; top: 14px; }
    .app-visual-content h2 { font-size: 30px; }
}
