:root {
    --bg-dark: #020813;
    --bg-blue: #06275a;
    --panel: rgba(7, 37, 86, 0.88);
    --panel-light: rgba(67, 154, 225, 0.88);
    --line: #35aaff;
    --line-soft: rgba(53, 170, 255, 0.45);
    --text: #edf6ff;
    --text-soft: #7ec7ff;
    --text-muted: #4f93cf;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 48%, rgba(0, 168, 255, 0.26), transparent 26rem),
        radial-gradient(circle at 0% 88%, rgba(0, 169, 255, 0.42), transparent 28rem),
        linear-gradient(118deg, #020814 0%, #030716 38%, #071b39 72%, #020712 100%);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        linear-gradient(90deg, rgba(0, 168, 255, 0.06) 1px, transparent 1px) 0 0 / 90px 90px,
        linear-gradient(0deg, rgba(0, 168, 255, 0.04) 1px, transparent 1px) 0 0 / 90px 90px;
    mask-image: radial-gradient(circle at 50% 65%, black, transparent 68%);
}

body::after {
    content: "";
    position: fixed;
    inset: auto -10vw -18vh -10vw;
    height: 54vh;
    pointer-events: none;
    background:
        linear-gradient(168deg, transparent 0 46%, rgba(0, 153, 255, 0.08) 47%, rgba(35, 208, 255, 0.85) 49%, rgba(30, 85, 255, 0.8) 50%, transparent 54% 100%),
        linear-gradient(170deg, transparent 0 54%, rgba(0, 153, 255, 0.13) 55%, rgba(20, 200, 255, 0.7) 57%, transparent 61% 100%);
    filter: drop-shadow(0 0 22px rgba(0, 204, 255, 0.95));
    transform: rotate(-2deg);
}

.page-glow {
    position: fixed;
    right: -4rem;
    bottom: 8rem;
    width: 38rem;
    height: 38rem;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 195, 255, 0.34), rgba(0, 58, 170, 0.14) 34%, transparent 66%);
    filter: blur(2px);
}

.dotfield {
    position: fixed;
    width: 34rem;
    height: 46rem;
    pointer-events: none;
    opacity: 0.58;
    background-image: radial-gradient(circle, rgba(40, 210, 255, 0.95) 0 1.1px, transparent 1.7px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at center, black 0 36%, transparent 72%);
    transform: perspective(620px) rotateX(58deg) rotateZ(-10deg);
}

.dotfield-left {
    left: -9rem;
    bottom: 15rem;
}

.dotfield-right {
    right: -13rem;
    bottom: 10rem;
    transform: perspective(620px) rotateX(58deg) rotateZ(12deg);
    opacity: 0.42;
}

.wave {
    position: fixed;
    pointer-events: none;
    border: 1px solid rgba(25, 151, 255, 0.25);
    border-left: 0;
    border-right: 0;
    filter: drop-shadow(0 0 12px rgba(0, 140, 255, 0.45));
}

.wave-one {
    left: -8vw;
    bottom: 12vh;
    width: 70vw;
    height: 18vh;
    border-radius: 50%;
    transform: rotate(7deg);
}

.wave-two {
    right: -10vw;
    bottom: 18vh;
    width: 72vw;
    height: 22vh;
    border-radius: 50%;
    transform: rotate(-17deg);
}

.topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid rgba(50, 168, 255, 0.35);
    background: linear-gradient(180deg, rgba(5, 49, 99, 0.92), rgba(3, 28, 62, 0.72));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.brand-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: min(430px, 70vw);
    height: 52px;
    padding: 0 42px 0 30px;
    color: var(--white);
    text-decoration: none;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    line-height: 1;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #2d79bb 0%, #1a5ea3 62%, #16457c 100%);
    border-right: 1px solid rgba(95, 198, 255, 0.35);
    border-bottom-right-radius: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 25px rgba(0, 110, 255, 0.18);
}

.menu-icon {
    width: 24px;
    height: 20px;
    display: inline-block;
    border-top: 5px solid rgba(240, 245, 252, 0.88);
    border-bottom: 5px solid rgba(240, 245, 252, 0.88);
    position: relative;
}

.menu-icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 5px;
    background: rgba(240, 245, 252, 0.88);
    transform: translateY(-50%);
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-left: auto;
    padding: 0 38px;
}

.nav-links a {
    color: rgba(231, 246, 255, 0.82);
    text-decoration: none;
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.hero {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 490px);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: center;
    width: min(1260px, calc(100% - 48px));
    min-height: calc(100vh - 52px);
    margin: 0 auto;
    padding: clamp(3rem, 7vh, 7rem) 0 3rem;
}

.hero-content {
    max-width: 680px;
}

.logo-block {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin-bottom: clamp(2rem, 5vh, 4rem);
}

.sth-logo {
    display: grid;
    line-height: 0.82;
    color: #edf1f6;
    font-weight: 900;
    text-shadow: 0 3px 9px var(--shadow);
}

.sth-logo span {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.03em;
    border-top: 8px solid #edf1f6;
    border-radius: 24px 0 0 0;
    padding-top: 4px;
}

.sth-logo small {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.09em;
}

.dm-logo strong {
    display: block;
    color: #12aefb;
    font-size: clamp(2rem, 7vw, 4.3rem);
    line-height: 0.85;
    letter-spacing: 0.03em;
    text-shadow: 0 0 22px rgba(0, 159, 255, 0.6);
}

.dm-logo span {
    display: block;
    color: #e8edf5;
    font-size: clamp(1rem, 3.1vw, 2rem);
    letter-spacing: 0.48em;
    margin-left: 0.18em;
    margin-top: 0.16em;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3.3rem, 9vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--white);
    text-shadow: 0 0 36px rgba(0, 122, 255, 0.45);
}

.lead {
    max-width: 620px;
    margin: 1.4rem 0 2.4rem;
    color: rgba(232, 246, 255, 0.83);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.55;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.35rem;
    border: 1px solid rgba(75, 180, 255, 0.7);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(13, 62, 129, 0.78), rgba(2, 22, 52, 0.86));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.card-label {
    display: block;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.download-card h2 {
    margin: 0.3rem 0 0.25rem;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.download-card p {
    margin: 0;
    color: var(--text-muted);
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0 1.3rem;
    color: #03264c;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 10px;
    background: linear-gradient(180deg, #71d8ff, #1ca9ff 52%, #0a6bd4);
    border: 1px solid rgba(191, 244, 255, 0.88);
    box-shadow: 0 0 28px rgba(0, 166, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.download-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.download-card + .download-card {
    margin-top: 1.1rem;
}

.android-button {
    color: #eafff3;
    background: linear-gradient(180deg, #34e28a, #17b968 52%, #0b8c48);
    border: 1px solid rgba(180, 255, 214, 0.88);
    box-shadow: 0 0 28px rgba(0, 200, 120, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.android-icon {
    width: 0;
    height: 0;
    display: inline-block;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #eafff3;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
}

.apk-button {
    color: #d9ffe9;
    background: linear-gradient(180deg, rgba(23, 185, 104, 0.22), rgba(11, 140, 72, 0.28));
    border: 1px solid rgba(120, 230, 170, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.apk-icon {
    width: 18px;
    height: 22px;
    position: relative;
    display: inline-block;
    border: 3px solid #d9ffe9;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.apk-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -14px;
    width: 10px;
    height: 20px;
    border-left: 4px solid #d9ffe9;
    border-bottom: 4px solid #d9ffe9;
    transform: translateX(-50%) rotate(-45deg);
}

.download-icon {
    width: 18px;
    height: 22px;
    position: relative;
    display: inline-block;
    border: 3px solid #03264c;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.download-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -14px;
    width: 10px;
    height: 20px;
    border-left: 4px solid #03264c;
    border-bottom: 4px solid #03264c;
    transform: translateX(-50%) rotate(-45deg);
}

.device-panel {
    width: min(100%, 490px);
    justify-self: end;
    border: 1px solid rgba(80, 185, 255, 0.85);
    border-radius: 9px;
    overflow: hidden;
    background: rgba(5, 32, 77, 0.86);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(147, 215, 255, 0.18) inset;
}

.panel-tabs {
    display: grid;
    grid-template-columns: 1.15fr repeat(4, 1fr);
    height: 58px;
    background: linear-gradient(180deg, #449be0, #327fc4);
    border-bottom: 2px solid rgba(132, 209, 255, 0.55);
}

.tab {
    display: grid;
    place-items: center;
    color: #0c4591;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    border-right: 2px solid rgba(181, 227, 255, 0.32);
}

.tab:last-child {
    border-right: 0;
}

.tab.bluetooth::before {
    content: "♢";
    color: #f2f7ff;
    font-size: 2.2rem;
    text-shadow: 0 0 5px rgba(0, 45, 120, 0.7);
    transform: rotate(45deg) scaleX(0.65);
}

.tab.wifi {
    color: var(--white);
    font-size: 1rem;
    font-weight: 900;
    background: radial-gradient(circle, #000 0 38%, transparent 39%);
}

.tab.usb::before {
    content: "";
    width: 58px;
    height: 26px;
    display: block;
    background: currentColor;
    color: #f4f7fb;
    clip-path: polygon(0 44%, 40% 44%, 40% 20%, 48% 20%, 48% 72%, 62% 72%, 62% 52%, 98% 52%, 98% 66%, 58% 66%, 58% 86%, 40% 86%, 40% 56%, 0 56%);
}

.device-list {
    padding: 14px;
}

.device-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    min-height: 72px;
    margin-bottom: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(82, 177, 255, 0.72);
    border-radius: 9px;
    background: rgba(30, 69, 133, 0.78);
}

.device-item:last-child {
    margin-bottom: 0;
}

.device-icon {
    display: inline-grid;
    place-items: center;
    justify-self: center;
    width: 58px;
    height: 40px;
    color: var(--white);
    font-weight: 900;
    background: #050505;
    border-radius: 50%;
    box-shadow: -14px 4px 0 #050505, 14px 4px 0 #050505;
}

.device-item h3 {
    margin: 0 0 4px;
    color: #82c6ff;
    font-size: 1.35rem;
    line-height: 1.1;
}

.device-item p {
    margin: 0;
    color: #4696d5;
    font-size: 1rem;
}

.feature-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto 4rem;
}

.feature-grid article {
    min-height: 150px;
    padding: 1.4rem;
    border: 1px solid rgba(75, 180, 255, 0.42);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(5, 37, 83, 0.82), rgba(1, 14, 34, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-grid h2 {
    margin: 0 0 0.65rem;
    color: #8ed4ff;
    font-size: 1.2rem;
}

.feature-grid p {
    margin: 0;
    color: rgba(232, 246, 255, 0.74);
    line-height: 1.55;
}

code {
    color: #9bdcff;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(82, 177, 255, 0.25);
    border-radius: 5px;
    padding: 0.12rem 0.35rem;
}

.footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: min(1260px, calc(100% - 48px));
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
    color: rgba(232, 246, 255, 0.58);
    border-top: 1px solid rgba(75, 180, 255, 0.24);
}

.footer a {
    color: #8ed4ff;
    text-decoration: none;
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: start;
        min-height: auto;
    }

    .device-panel {
        justify-self: start;
    }

    .download-card {
        grid-template-columns: 1fr;
    }

    .download-button {
        width: 100%;
    }

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

@media (max-width: 560px) {
    .brand-tab {
        min-width: 100%;
        border-bottom-right-radius: 0;
        padding-left: 20px;
    }

    .hero,
    .feature-grid,
    .footer {
        width: min(100% - 28px, 1260px);
    }

    .logo-block {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dm-logo span {
        letter-spacing: 0.32em;
    }

    .panel-tabs {
        height: 50px;
    }

    .tab {
        font-size: 2.25rem;
    }

    .device-item {
        grid-template-columns: 82px 1fr;
        padding: 9px 10px;
    }

    .device-item h3 {
        font-size: 1.05rem;
    }
}
