* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: #07111d;
    color: #f6f8fc;
    line-height: 1.65
}

.hero {
    padding: 80px 8vw 60px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 45, 45, .18), transparent 32%), linear-gradient(135deg, #07111d, #111f34);
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.label {
    color: #ff5050;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em
}

h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1;
    margin: 18px 0
}

.hero p {
    max-width: 860px;
    color: #c6d0e2;
    font-size: 20px
}

.device-list {
    padding: 45px 8vw 80px
}

.topnav{
    position:sticky;
    top:0;
    z-index:100;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(7,17,29,.92);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo{
    color:#fff;
    font-size:24px;
    font-weight:700;
}

.topnav nav{
    display:flex;
    gap:28px;
    align-items:center;
}

.topnav nav a{
    color:#d6dceb;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.topnav nav a:hover,
.topnav nav a.active{
    color:#ff4b4b;
}

.btn-demo{
    padding:12px 22px;
    background:#e53935;
    color:#fff !important;
    border-radius:30px;
}

.device-item {
    display: grid;
    grid-template-columns:420px 1fr;
    gap: 50px;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.device-image {
    min-height: 310px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 47, 47, .12), rgba(255, 255, 255, .045));
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative
}

.device-item:nth-child(even) .device-image {
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 47, 47, .09))
}

.number {
    color: #ff4545;
    font-weight: 900;
    letter-spacing: .12em
}

.device-content h2 {
    font-size: 42px;
    margin: 8px 0 0;
    line-height: 1.1
}

.device-content h3 {
    color: #ff6666;
    margin: 4px 0 16px
}

.device-content p, .device-content li {
    color: #c7d2e6;
    font-size: 16px
}

.device-content ul {
    padding-left: 20px;
    margin-top: 18px
}

.smart-alarm {
    width: 150px;
    height: 150px;
    background: #e71313;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 0, 0, .45);
    position: relative;
    animation: pulse 1.2s infinite
}

.siren-light {
    position: absolute;
    inset: 35px;
    border-radius: 50%;
    background: #fff0f0
}

.speaker {
    position: absolute;
    bottom: -42px;
    left: 50%;
    width: 100px;
    height: 50px;
    transform: translateX(-50%);
    background: #7f8a9b;
    border-radius: 8px
}

.display-device {
    width: 300px;
    background: #dff9ff;
    color: #102038;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 0 0 8px #25344b, 0 25px 70px rgba(0, 0, 0, .35)
}

.display-head {
    background: #e71919;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-weight: 900;
    text-align: center
}

.display-map {
    height: 120px;
    margin: 14px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #bdeaff, #f7ffff);
    position: relative;
    overflow: hidden
}

.pin {
    position: absolute;
    right: 70px;
    top: 36px;
    width: 18px;
    height: 18px;
    background: #f00;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 0, 0, .18)
}

.route {
    position: absolute;
    left: 45px;
    right: 55px;
    top: 70px;
    border-top: 4px dashed #1c9ed8;
    transform: rotate(-18deg)
}

.display-info {
    font-weight: 700
}

.gps-card {
    width: 310px;
    background: #0f2138;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .35)
}

.gps-map {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(135deg, #14365a, #0b1829);
    position: relative;
    overflow: hidden
}

.gps-route {
    position: absolute;
    left: 30px;
    right: 30px;
    top: 90px;
    border-top: 5px dashed #64d4ff;
    transform: rotate(-20deg)
}

.truck {
    position: absolute;
    left: 30px;
    bottom: 45px;
    font-size: 36px;
    animation: truck 4.5s infinite ease-in-out
}

.gps-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%
}

.gps-pin.start {
    left: 30px;
    bottom: 50px;
    background: #4ade80
}

.gps-pin.end {
    right: 45px;
    top: 42px;
    background: #ff3030;
    box-shadow: 0 0 20px #ff3030
}

.gps-text {
    color: #d8e5f8;
    font-weight: 800;
    margin-top: 12px
}

.fastbridge-flow {
    width: 360px;
    position: relative
}

.flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px 0
}

.flow-row.lower {
    margin-top: 42px
}

.flow-box {
    width: 110px;
    height: 92px;
    border-radius: 16px;
    background: #10243d;
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800
}

.fast-device {
    width: 110px;
    height: 140px;
    border-radius: 12px;
    background: #d90429;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-shadow: 0 0 35px rgba(255, 0, 0, .4)
}

.leds {
    display: flex;
    gap: 7px
}

.leds i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s infinite
}

.leds i:nth-child(2) {
    background: #4cff8a;
    animation-delay: .2s
}

.leds i:nth-child(3) {
    background: #ffe45c;
    animation-delay: .4s
}

.leds i:nth-child(4) {
    background: #67d7ff;
    animation-delay: .6s
}

.fast-device b {
    text-align: center;
    line-height: 1.1
}

.flow-line {
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, .25);
    position: relative
}

.flow-line span {
    position: absolute;
    top: -6px;
    left: -10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff3030;
    box-shadow: 0 0 18px #ff3030;
    animation: packet 1.8s infinite linear
}

.mqtt {
    margin-top: 18px;
    color: #ffe94a;
    font-weight: 900;
    text-align: center
}

footer {
    padding: 30px 8vw;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #aebbd1
}

@keyframes pulse {
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(255, 0, 0, .75)
    }
}

@keyframes blink {
    50% {
        opacity: .25
    }
}

@keyframes packet {
    from {
        left: -10px
    }
    to {
        left: 100%
    }
}

@keyframes truck {
    0% {
        left: 30px;
        bottom: 45px
    }
    50% {
        left: 210px;
        bottom: 105px
    }
    100% {
        left: 30px;
        bottom: 45px
    }
}

@media (max-width: 900px) {
    .device-item {
        grid-template-columns:1fr;
        gap: 24px
    }

    .device-content h2 {
        font-size: 34px
    }
}

@media (max-width: 520px) {
    .hero, .device-list, footer {
        padding-left: 22px;
        padding-right: 22px
    }

    .device-image {
        min-height: 260px
    }

    .fastbridge-flow, .gps-card, .display-device {
        width: 92%
    }

    footer {
        flex-direction: column;
        gap: 6px
    }
}