:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --dark: #111827;
    --bg: #F3F4F6;
    --success: #10B981;
    --white: #FFFFFF;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.brand img { width: 30px; height: 30px; display: block; }
.brand-text {
    display: inline-flex;
    align-items: center;
}
.brand-version {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-left: 4px;
}
.header-nav a {
    color: var(--text);
    font-weight: 500;
    margin-left: 22px;
    font-size: 15px;
}
.header-nav a:hover { color: var(--primary); text-decoration: none; }
.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    flex-shrink: 0;
}
.header-menu-icon {
    position: relative;
    width: 18px;
    height: 14px;
}
.header-menu-bar,
.header-menu-bar::before,
.header-menu-bar::after {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.header-menu-bar {
    top: 6px;
}
.header-menu-bar::before {
    content: "";
    top: -6px;
}
.header-menu-bar::after {
    content: "";
    top: 6px;
}
.header-menu-toggle.is-open .header-menu-bar {
    background: transparent;
}
.header-menu-toggle.is-open .header-menu-bar::before {
    top: 0;
    transform: rotate(45deg);
}
.header-menu-toggle.is-open .header-menu-bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== Hero ===== */
.hero,
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero > .container,
section > .container {
    width: 100%;
}
.hero {
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h1 {
    display: block;
    width: 100%;
    max-width: 820px;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero .tagline {
    font-size: 19px;
    color: var(--text-light);
    width: 100%;
    max-width: 620px;
    margin: 0 0 20px;
}
.platforms {
    font-size: 14px;
    color: var(--text-light);
    width: 100%;
    max-width: 620px;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.platforms strong { color: var(--text); }
.platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.platform-icon {
    width: 15px;
    height: 15px;
    display: block;
    color: var(--text);
}

/* ===== Download CTA ===== */
.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 820px;
    margin-top: 28px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}
.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: inherit;
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

/* ===== Modal ===== */
body.modal-open { overflow: hidden; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 475px;
    padding: 32px 28px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.22s ease;
}
.modal.is-open .modal-dialog {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover {
    background: var(--bg);
    color: var(--text);
}
.modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 0 16px;
    align-self: flex-start;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--border) 100%);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}
.modal-title {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 8px;
    text-align: left;
}
.modal-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 22px;
    text-align: left;
}
.modal-ok {
    min-width: 120px;
    justify-content: center;
    align-self: flex-end;
}

/* ===== Screenshot ===== */
.hero .screenshot {
    width: min(100%, 820px, calc((100vh - 24rem) * 1920 / 1080));
}
.screenshot {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.10);
    overflow: hidden;
}
.screenshot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.screenshot-bar i {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--border); display: block;
}
.screenshot-body {
    aspect-ratio: 1920 / 1080;
    line-height: 0;
    background: var(--white);
}
.screenshot-body img {
    display: block;
    width: 100%;
    max-width: 1920px;
    height: auto;
    aspect-ratio: 1920 / 1080;
}

/* ===== Gradient headings ===== */
.section-title {
    display: inline-block;
    max-width: 100%;
    color: #000000;
    background-image: linear-gradient(90deg, #000000 0%, #6B7280 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 {
    color: #000000;
    background-image: linear-gradient(90deg, #000000 0%, #6B7280 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Sections ===== */
section { border-bottom: 1px solid var(--border); }
section:last-child { border-bottom: none; }
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.section-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
}
.feature h3 {
    font-size: 19px;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.feature h3 .feature-icon {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
    display: inline-flex;
}
.feature h3 .feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.feature p {
    font-size: 15.5px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Steps / How it works ===== */
.how {
    background: var(--bg);
}
.how .section-sub {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    list-style: none;
}
.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(16.666% + 28px);
    right: calc(16.666% + 28px);
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
    z-index: 0;
}
.step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-marker {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--bg);
}
.step h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}
.step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

/* ===== Payment methods ===== */
.payments {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    overflow-x: auto;
}
.payments img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
    display: block;
}

/* ===== Footer ===== */
footer {
    padding: 28px 0;
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy,
.footer-inquiries {
    color: var(--text-light);
}
footer a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 2px;
}
footer a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

/* ===== Section scroll indicators ===== */
.section-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.section-nav a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    background: transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.section-nav a:hover {
    border-color: var(--primary);
    transform: scale(1.15);
}
.section-nav a.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

@media (max-width: 760px) {
    .hero h1 { font-size: 30px; }
    .features, .steps { grid-template-columns: 1fr; }
    .payments {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 64px));
        justify-content: center;
        gap: 18px 14px;
        overflow: visible;
    }
    .payments img {
        width: 64px;
        height: 64px;
        max-width: 100%;
        justify-self: center;
    }
    .hero,
    section {
        align-items: stretch;
    }
    .hero > .container,
    section > .container {
        box-sizing: border-box;
        min-height: 100vh;
        padding-block: clamp(48px, 12vh, 96px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #features > .container,
    #hero > .container {
        min-height: auto;
        justify-content: flex-start;
    }
    header .container {
        height: 64px;
    }
    .header-menu-toggle {
        display: inline-flex;
    }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 8px 20px 12px;
        box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
        z-index: 200;
    }
    .header-nav.is-open {
        display: flex;
    }
    .header-nav a {
        margin-left: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .header-nav a:last-child {
        border-bottom: none;
    }
    .steps::before { display: none; }
    .step { text-align: left; }
    .step-marker { margin: 0 0 14px; }
    .step p { max-width: none; margin: 0; }
    .section-nav {
        left: 50%;
        right: auto;
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        flex-direction: row;
        gap: 12px;
        padding: 9px 12px;
        border: 1px solid rgba(203, 213, 225, 0.8);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(8px);
    }
    .section-nav a { width: 8px; height: 8px; }
    .screenshot {
        width: 100%;
        border-radius: 10px;
    }
    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .payments {
        grid-template-columns: repeat(4, minmax(0, 56px));
        gap: 14px 10px;
    }
    .payments img {
        width: 56px;
        height: 56px;
    }
}
