:root {
    --ink: #182b43;
    --muted: #566579;
    --line: #e2e7ed;
    --blue: #1673cf;
    --gold: #f4c52e;
    --black: #080808
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #171b22;
    background: #fff;
    font-size: 15px;
    line-height: 1.7
}

a {
    color: #126dc0
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff
}

.header-inner {
    max-width: 1120px;
    margin: auto;
    min-height: 66px;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #14263b;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap
}

nav a {
    text-decoration: none;
    color: #526174;
    font-size: 12px;
    letter-spacing: .1px
}

nav a:hover,
nav a[aria-current=page] {
    color: var(--blue)
}

.page-intro {
    text-align: center;
    padding: 12px 18px 0
}

.page-intro h1 {
    font-size: 22px;
    line-height: 1.35;
    margin: 0 0 14px;
    color: #101820
}

.hero-logo {
    display: block;
    width: 126px;
    height: 126px;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto 12px
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d41a1a;
    color: #fff;
    border-radius: 3px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: .3px
}

.download-btn:hover {
    background: #b01212
}

.content {
    max-width: 960px;
    margin: 24px auto 44px;
    padding: 0 24px
}

.content h2 {
    font-size: 25px;
    line-height: 1.3;
    color: var(--ink);
    margin: 0 0 12px
}

.content h3 {
    font-size: 21px;
    line-height: 1.35;
    color: var(--ink);
    margin: 24px 0 8px
}

.content p {
    margin: 0 0 16px
}

.content ul,
.content ol {
    padding-left: 24px;
    margin: 8px 0 18px
}

.home-content {
    margin-top: 18px
}

.home-content h2 {
    font-size: 25px;
    margin-top: 30px
}

.app-preview {
    display: block;
    width: min(100%, 650px);
    max-height: 460px;
    object-fit: contain;
    margin: 28px auto 30px
}

.info-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 590px;
    margin: 20px 0 30px;
    font-size: 14px
}

.info-table th,
.info-table td {
    border: 1px solid #d9e0e8;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top
}

.info-table th {
    width: 34%;
    background: #f6f8fa
}

.note {
    border-left: 4px solid var(--gold);
    padding: 12px 16px;
    background: #fff9e8;
    margin: 20px 0
}

.site-footer {
    border-top: 1px solid var(--line);
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #182333;
    padding: 16px
}

.top-link {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #1673cf;
    color: white;
    text-decoration: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    font-size: 20px
}

#carousel {
    width: 100%;
    max-width: 900px;
    margin: 25px auto;
    position: relative;
    overflow: hidden;
    background: #fff
}

#carousel .carousel-track {
    display: flex;
    align-items: stretch;
    gap: 4px;
    transition: transform 0.5s ease-in-out;
    will-change: transform
}

#carousel .slide {
    flex: 0 0 calc((100% - 8px) / 3);
    position: relative;
    aspect-ratio: 0.43 / 1;
    overflow: hidden;
    background: #170707
}

#carousel .slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

#carousel .slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.60);
    transition: background 0.4s ease;
    pointer-events: none
}

#carousel .slide.active::after {
    background: transparent
}

#carousel .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 42px;
    border: none;
    border-radius: 4px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease
}

#carousel .arrow:hover {
    background: rgba(0,0,0,0.75)
}

#carousel .prev { left: 4px }
#carousel .next { right: 4px }

#carousel + .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px auto
}

#carousel + .dots .dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c8c8c8;
    cursor: pointer
}

#carousel + .dots .dot.active {
    background: #333
}

@media(max-width:700px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px
    }

    .brand { font-size: 18px }

    .brand img {
        width: 36px;
        height: 36px
    }

    nav { gap: 14px }

    nav a { font-size: 11px }

    .page-intro h1 { font-size: 19px }

    .hero-logo {
        width: 108px;
        height: 108px
    }

    .content {
        padding: 0 18px;
        margin-top: 22px
    }

    .content h2 { font-size: 23px }

    .content h3 { font-size: 19px }

    .info-table { font-size: 13px }

    .info-table th,
    .info-table td { padding: 8px }
}

@media (max-width: 600px) {
    #carousel {
        max-width: 100%;
        margin: 18px auto
    }

    #carousel .carousel-track { gap: 3px }

    #carousel .slide {
        flex-basis: calc((100% - 6px) / 3)
    }

    #carousel .arrow {
        width: 25px;
        height: 34px;
        font-size: 22px
    }
}

@media (prefers-reduced-motion: reduce) {
    #carousel .carousel-track,
    #carousel .slide::after {
        transition: none
    }
}
