:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #171a21;
    --muted: #6b7280;
    --line: #e5e7eb;
    --blue: #0b5cff;
    --blue-hover: #004ee0;
    --soft-blue: #eef4ff;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.page {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
}

.site-header {
    height: 76px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: 168px;
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    color: var(--muted);
}

.header-nav a {
    text-decoration: none;
}

.header-nav a:hover {
    color: var(--text);
}

main {
    padding: 72px 0 64px;
}

.hero {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    margin-bottom: 18px;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    background: var(--soft-blue);
    color: #174ea6;
    font-size: 13px;
    font-weight: 600;
}

.hero h1 {
    margin: 0;
    max-width: 740px;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.hero-text {
    max-width: 670px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition:
        background-color 120ms ease,
        border-color 120ms ease;
}

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

.button-secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.button-secondary:hover {
    background: #f4f5f7;
}

.version-note {
    color: var(--muted);
    font-size: 13px;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 66px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.feature {
    min-height: 112px;
    padding: 20px;
    background: var(--surface);
}

.feature-title {
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 650;
}

.feature-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.download-section {
    margin-top: 72px;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.release-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.release {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
}

.release + .release {
    border-top: 1px solid var(--line);
}

.release-label {
    margin-bottom: 4px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.release.previous .release-label {
    color: var(--muted);
}

.release-name {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
}

.release-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.release-action {
    white-space: nowrap;
}

.site-footer {
    padding: 26px 0 38px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
}

.footer-inner a:hover {
    color: var(--text);
}

@media (max-width: 760px) {
    .page {
        width: min(100% - 28px, 1000px);
    }

    .site-header {
        height: 68px;
    }

    .brand img {
        width: 150px;
    }

    .header-nav {
        gap: 14px;
    }

    .header-nav .email-link {
        display: none;
    }

    main {
        padding-top: 48px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-text {
        font-size: 16px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 48px;
    }

    .download-section {
        margin-top: 54px;
    }
}

@media (max-width: 500px) {
    .features {
        grid-template-columns: 1fr;
    }

    .release {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .release-action {
        justify-self: start;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }
}

/* Header alignment */

.header-inner {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
}

/* Footer */

.site-footer {
    padding: 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 430px;
}

.footer-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 9px;
}

.footer-brand-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.footer-description {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.footer-label {
    color: var(--muted);
    font-size: 12px;
}

.footer-column a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 550;
}

.footer-column a:hover {
    color: var(--blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 17px;
    padding-bottom: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 28px, 1000px);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-links {
        gap: 36px;
    }
}

@media (max-width: 500px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

/* Footer text action */

.footer-link-button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
}

.footer-link-button:hover {
    color: var(--blue);
}

/* About dialog */

.about-dialog {
    width: min(calc(100% - 32px), 520px);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    box-shadow:
        0 24px 70px rgba(17, 24, 39, 0.16),
        0 3px 12px rgba(17, 24, 39, 0.08);
}

.about-dialog::backdrop {
    background: rgba(17, 24, 39, 0.34);
    backdrop-filter: blur(2px);
}

.about-dialog-inner {
    padding: 26px 28px 28px;
}

.about-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.about-dialog-label {
    display: block;
    margin-bottom: 5px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.about-dialog-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dialog-close {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.dialog-close:hover {
    background: #f4f5f7;
    color: var(--text);
}

.about-dialog-intro {
    margin: 22px 0 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.about-dialog-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.about-dialog-list li + li {
    margin-top: 6px;
}

.about-dialog-note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.about-dialog-note a {
    color: var(--blue);
    text-decoration: none;
}

.about-dialog-note a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .about-dialog-inner {
        padding: 22px 20px 24px;
    }
}
