:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-strong: #f6f8fb;
    --ink: #142033;
    --muted: #617086;
    --line: #dce4ee;
    --line-strong: #c8d4e2;
    --primary: #0f766e;
    --primary-dark: #115e59;
    --cyan: #0891b2;
    --amber: #d97706;
    --shadow: 0 18px 50px rgba(20, 32, 51, 0.12);
    --shell: 1160px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    letter-spacing: 0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

.site-shell {
    width: min(var(--shell), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(220, 228, 238, 0.9);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--ink);
}

.brand__icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.2);
}

.brand__name {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--surface-strong);
    color: var(--ink);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-menu {
    position: relative;
}

.language-menu__button {
    min-width: 70px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    list-style: none;
    box-shadow: 0 8px 22px rgba(20, 32, 51, 0.06);
}

.language-menu__button::-webkit-details-marker {
    display: none;
}

.language-menu__globe,
.language-menu__chevron {
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.language-menu__chevron {
    width: 14px;
    height: 14px;
    transition: transform 160ms ease;
}

.language-menu[open] .language-menu__button {
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.language-menu[open] .language-menu__chevron {
    transform: rotate(180deg);
}

.language-menu__list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: 218px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.language-menu__list::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 25px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: #fff;
    transform: rotate(45deg);
}

.language-menu__item {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
}

.language-menu__item:hover,
.language-menu__item.is-active {
    background: var(--surface-strong);
}

.language-menu__mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.language-menu__item strong,
.language-menu__item small {
    display: block;
    line-height: 1.25;
}

.language-menu__item strong {
    font-size: 14px;
}

.language-menu__item small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.button--primary:hover {
    background: var(--primary-dark);
}

.button--secondary {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--ink);
}

.button--compact {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
}

.hero {
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(8, 145, 178, 0.08), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.hero__grid {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
    align-items: center;
    padding: 72px 0 68px;
}

.hero__copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: 54px;
    line-height: 1.06;
    letter-spacing: 0;
}

.hero__copy p {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.proof-list {
    display: grid;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-weight: 700;
}

.proof-list li {
    position: relative;
    padding-left: 24px;
}

.proof-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.14);
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.phone {
    width: 330px;
    padding: 12px;
    border-radius: 32px;
    background: #101827;
    box-shadow: var(--shadow);
}

.phone__screen {
    min-height: 610px;
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(8, 145, 178, 0.18), rgba(255, 255, 255, 0) 36%),
        #f8fafc;
}

.phone__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone__icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.phone__top strong,
.phone__top span {
    display: block;
}

.phone__top strong {
    line-height: 1.2;
}

.phone__top span {
    color: var(--muted);
    font-size: 13px;
}

.balance-card {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    background: #122033;
    color: #fff;
}

.balance-card span,
.balance-card small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
}

.balance-card strong {
    display: block;
    margin: 8px 0;
    font-size: 38px;
    line-height: 1;
}

.task-list {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.task-list__header,
.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.task-list__header {
    margin-bottom: 12px;
}

.task-list__header span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.task-row {
    min-height: 48px;
    border-top: 1px solid var(--line);
}

.task-row span {
    color: var(--muted);
}

.task-row strong {
    color: var(--primary);
}

.section {
    padding: 88px 0;
}

.section--tinted {
    background: var(--surface-strong);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__intro {
    max-width: 760px;
    margin-bottom: 34px;
}

.section h2,
.page-hero h1,
.cta-band h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.16;
    letter-spacing: 0;
}

.section__intro p,
.split-section > div > p,
.cta-band p,
.page-hero p,
.release-note p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.download-card,
.release-note,
.legal-content,
.operation-row,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.feature-card {
    min-height: 255px;
    padding: 24px;
}

.feature-card__number {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
}

.feature-card h3,
.operation-row h3 {
    margin: 18px 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

.feature-card p,
.operation-row p,
.faq-item p {
    margin: 0;
    color: var(--muted);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 48px;
    align-items: start;
}

.operation-list {
    display: grid;
    gap: 14px;
}

.operation-row {
    padding: 22px;
}

.operation-row h3 {
    margin-top: 0;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 44px;
    align-items: start;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 0 20px;
}

.faq-item summary {
    cursor: pointer;
    padding: 18px 0;
    color: var(--ink);
    font-weight: 800;
}

.faq-item p {
    padding: 0 0 20px;
}

.cta-band {
    padding: 46px 0;
    background: #112033;
    color: #fff;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.72);
}

.page-hero {
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
}

.page-hero__inner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 54px 0;
}

.page-hero__inner > div {
    max-width: 760px;
}

.page-hero__icon {
    width: 118px;
    height: 118px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section--download {
    background: #fff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.download-card {
    padding: 26px;
}

.download-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.download-card h2 {
    margin: 0;
    font-size: 28px;
}

.download-card__header span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.version-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

.version-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.version-list dt {
    color: var(--muted);
    font-weight: 700;
}

.version-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 800;
}

.download-links {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.download-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 800;
}

.download-link::after {
    content: "";
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.download-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.download-card__empty {
    margin: 0;
    color: var(--muted);
}

.release-note {
    max-width: 830px;
    padding: 28px;
}

.release-note h2 {
    margin: 0;
    font-size: 26px;
}

.legal-content {
    max-width: 860px;
    padding: 34px;
    color: var(--muted);
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    color: var(--ink);
    line-height: 1.25;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    margin-top: 1.5em;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand--footer .brand__icon {
    width: 34px;
    height: 34px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-left: auto;
}

.site-footer__links a,
.site-footer__copy {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-footer__copy {
    margin: 0;
}

@media (max-width: 980px) {
    .site-header__inner,
    .site-actions,
    .site-footer__inner {
        flex-wrap: wrap;
    }

    .site-header__inner {
        padding: 14px 0;
    }

    .site-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
    }

    .site-actions {
        margin-left: auto;
    }

    .hero__grid,
    .split-section,
    .faq-section,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        min-height: 0;
        padding-top: 52px;
    }

    .hero__copy h1 {
        font-size: 42px;
    }

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

    .feature-card {
        min-height: auto;
    }

    .cta-band__inner,
    .page-hero__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__links,
    .site-footer__copy {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 28px, var(--shell));
    }

    .site-actions {
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
    }

    .language-menu__button {
        min-width: 66px;
    }

    .button--compact {
        display: none;
    }

    .hero__copy h1 {
        font-size: 34px;
    }

    .hero__copy p,
    .section__intro p,
    .split-section > div > p,
    .cta-band p,
    .page-hero p,
    .release-note p {
        font-size: 16px;
    }

    .hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__actions .button {
        width: 100%;
    }

    .phone {
        width: min(100%, 330px);
    }

    .phone__screen {
        min-height: 560px;
    }

    .section {
        padding: 62px 0;
    }

    .section h2,
    .page-hero h1,
    .cta-band h2 {
        font-size: 30px;
    }

    .page-hero__icon {
        width: 92px;
        height: 92px;
    }

    .download-card,
    .legal-content,
    .release-note {
        padding: 22px;
    }

    .download-card__header,
    .version-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .version-list dd {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
