:root {
    --navy: #092547;
    --navy-deep: #05172f;
    --blue-900: #063caa;
    --blue-700: #1c60cd;
    --blue-500: #3f96ef;
    --blue-300: #82c1f8;
    --ice: #eaeff5;
    --paper: #f8fbff;
    --white: #ffffff;
    --amber: #e89825;
    --amber-soft: #fff0d7;
    --muted: #5f7188;
    --border: rgba(9, 37, 71, 0.13);
    --shadow: 0 24px 70px rgba(6, 60, 170, 0.16);
    --radius-lg: 30px;
    --radius-md: 20px;
    --page: min(1180px, calc(100% - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 83% 8%, rgba(63, 150, 239, 0.16), transparent 29rem),
        linear-gradient(180deg, #f9fcff 0%, #f4f8fc 58%, #ffffff 100%);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 26px;
    font-size: clamp(2.8rem, 5.6vw, 5rem);
    font-weight: 780;
}

h1 em {
    color: var(--blue-700);
    font-style: normal;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 3.7vw, 3.5rem);
    font-weight: 760;
}

h3 {
    margin-bottom: 13px;
    font-size: 1.35rem;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 4px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--page);
    min-height: 92px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    color: var(--navy);
    font-size: 1.22rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    border-radius: 10px;
    filter: drop-shadow(0 7px 12px rgba(6, 60, 170, 0.2));
}

.quiet-link {
    font-size: 0.92rem;
    font-weight: 680;
    text-decoration: none;
}

.quiet-link::after {
    display: inline-block;
    margin-left: 7px;
    content: "↓";
    color: var(--blue-700);
}

.header-actions {
    display: flex;
    gap: 22px;
    align-items: center;
}

.language-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.language-switch a {
    min-width: 34px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.language-switch a[aria-current="true"] {
    color: var(--white);
    background: var(--navy);
}

.legal-page .quiet-link::after {
    content: "↗";
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: clamp(34px, 6vw, 88px);
    align-items: center;
    width: var(--page);
    min-height: calc(100vh - 92px);
    min-height: calc(100svh - 92px);
    margin: 0 auto;
    padding: 55px 0 105px;
}

.hero__copy {
    position: relative;
    z-index: 2;
}

.eyebrow,
.overline {
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 23px;
}

.eyebrow span {
    width: 24px;
    height: 2px;
    background: var(--amber);
}

.hero__intro {
    max-width: 640px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.platform-picker {
    display: inline-flex;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 30px rgba(9, 37, 71, 0.07);
    backdrop-filter: blur(12px);
}

.platform-picker button {
    min-width: 108px;
    padding: 9px 19px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 720;
}

.platform-picker button[aria-pressed="true"] {
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 7px 17px rgba(9, 37, 71, 0.22);
}

.hero__actions {
    display: flex;
    gap: 17px;
    align-items: center;
}

.hero__actions p {
    max-width: 250px;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.button {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 22px;
    border: 0;
    border-radius: 13px;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button--primary {
    min-width: 235px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    box-shadow: 0 13px 28px rgba(6, 60, 170, 0.27);
}

.button--primary:hover {
    box-shadow: 0 17px 35px rgba(6, 60, 170, 0.34);
}

.other-platform {
    display: inline-block;
    margin-top: 17px;
    color: var(--blue-900);
    font-size: 0.88rem;
    font-weight: 680;
    text-underline-offset: 4px;
}

.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 610px;
    isolation: isolate;
}

.hero__visual::before {
    position: absolute;
    z-index: -1;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(130, 193, 248, 0.24), rgba(130, 193, 248, 0.02) 65%, transparent 70%);
}

.app-icon {
    position: relative;
    z-index: 2;
    width: min(100%, 540px);
    height: auto;
    filter: drop-shadow(0 35px 36px rgba(6, 60, 170, 0.23));
    animation: float 7s ease-in-out infinite;
}

.orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(3px);
}

.orb--one {
    top: 7%;
    right: 4%;
    width: 140px;
    height: 140px;
    background: rgba(63, 150, 239, 0.18);
}

.orb--two {
    bottom: 9%;
    left: 2%;
    width: 105px;
    height: 105px;
    background: rgba(232, 152, 37, 0.18);
}

.clip-preview {
    position: absolute;
    z-index: 4;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    width: min(300px, 64%);
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 48px rgba(9, 37, 71, 0.16);
    backdrop-filter: blur(16px);
    font-size: 0.78rem;
    font-weight: 680;
}

.clip-preview--top {
    top: 18%;
    left: -2%;
    transform: rotate(-2deg);
}

.clip-preview--bottom {
    right: -3%;
    bottom: 17%;
    transform: rotate(2deg);
}

.clip-preview__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(63, 150, 239, 0.12);
}

.clip-preview__dot--amber {
    background: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 152, 37, 0.12);
}

kbd {
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--ice);
    font-family: inherit;
    font-size: 0.7rem;
}

.feature-section,
.downloads {
    width: var(--page);
    margin: 0 auto;
    padding: 110px 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 45px;
}

.section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 1.05rem;
}

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

.feature-card {
    min-height: 250px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.77);
    box-shadow: 0 12px 42px rgba(9, 37, 71, 0.06);
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.feature-card--blue {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(145deg, var(--blue-900), var(--blue-700));
    box-shadow: 0 22px 50px rgba(6, 60, 170, 0.23);
}

.feature-card--blue p {
    color: rgba(255, 255, 255, 0.77);
}

.feature-card--warm {
    background: linear-gradient(145deg, var(--white), var(--amber-soft));
}

.feature-card--wide {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    grid-column: 1 / -1;
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    min-height: 0;
    overflow: hidden;
}

.feature-card--wide::before {
    position: absolute;
    right: -120px;
    bottom: -170px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle, rgba(63, 150, 239, 0.16), transparent 68%);
}

.feature-card--wide__copy,
.feature-card--wide__visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.feature-card--wide__copy p {
    max-width: 650px;
}

.feature-card--wide__visual img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 28px rgba(6, 60, 170, 0.17));
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 15px;
    color: var(--blue-900);
    background: var(--ice);
    font-size: 1.5rem;
    font-weight: 800;
}

.feature-card--blue .feature-icon {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.feature-card--warm .feature-icon {
    color: #7d4d08;
    background: rgba(232, 152, 37, 0.16);
}

.feature-card__status {
    margin: -8px 0 10px;
    color: var(--blue-700) !important;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.feature-section {
    padding-bottom: 48px;
}

.downloads {
    padding: 64px 0 130px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.download-card {
    display: grid;
    grid-template-columns: auto 1fr;
    min-width: 0;
    gap: 14px 16px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 15px 45px rgba(9, 37, 71, 0.075);
    transition: transform 170ms ease, border 170ms ease, box-shadow 170ms ease;
}

.download-card.is-selected {
    border-color: rgba(28, 96, 205, 0.56);
    box-shadow: 0 22px 58px rgba(6, 60, 170, 0.16);
    transform: translateY(-4px);
}

.platform-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: var(--blue-900);
    background: var(--ice);
}

.platform-mark svg {
    width: 22px;
    fill: currentColor;
}

.download-card__copy h3 {
    margin-bottom: 5px;
    font-size: 1.18rem;
}

.download-card__copy {
    min-width: 0;
}

.download-card__copy .overline {
    margin-bottom: 5px;
    font-size: 0.67rem;
}

.download-status {
    margin-bottom: 3px;
    color: var(--blue-700);
    font-weight: 720;
}

.requirements {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.87rem;
}

.button--card {
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 10px 16px;
    margin-top: 3px;
    color: var(--white);
    background: var(--navy);
}

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

.release-checksum {
    grid-column: 1 / -1;
    min-width: 0;
    color: var(--blue-900);
    font-size: 0.82rem;
}

.release-checksum summary {
    width: fit-content;
    cursor: pointer;
    font-weight: 700;
}

.release-checksum code,
.older-releases code {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border-radius: 8px;
    color: var(--navy);
    background: var(--ice);
    font-size: 0.72rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-all;
    user-select: all;
}

.store-link {
    grid-column: 1 / -1;
    text-align: center;
}

.older-releases {
    grid-column: 1 / -1;
    min-width: 0;
    color: var(--blue-900);
    font-size: 0.9rem;
}

.older-releases summary {
    width: fit-content;
    cursor: pointer;
    font-weight: 700;
}

.older-releases ul {
    min-width: 0;
    margin: 12px 0 0;
    padding-left: 20px;
}

.older-releases li {
    min-width: 0;
}

.older-releases li + li {
    margin-top: 8px;
}

.older-releases li > span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.older-releases a {
    color: var(--blue-900);
}

.installation-link {
    margin: 26px auto 0;
    color: var(--blue-900);
    font-weight: 700;
    text-align: center;
}

.installation-link a {
    text-underline-offset: 4px;
}

.download-footnote,
.cache-note {
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.cache-note {
    color: #7d4d08;
}

.project-origin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: var(--page);
    margin: 0 auto 88px;
    padding: 24px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.65);
}

.project-origin h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.project-origin p {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
}

.project-origin .project-origin__slogan {
    margin-top: 14px;
    color: var(--blue-900);
    font-size: 0.9rem;
    font-style: italic;
}

.project-origin a {
    flex-shrink: 0;
    color: var(--blue-900);
    font-weight: 700;
    text-underline-offset: 4px;
}

@media (max-width: 760px) {
    .project-origin {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

.site-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: var(--page);
    padding: 42px 0 48px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.brand--footer {
    font-size: 1rem;
}

.site-footer p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 22px;
    justify-content: flex-end;
    max-width: 620px;
}

.site-footer nav a {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--blue-900);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-main {
    width: min(820px, calc(100% - 40px));
    min-height: 65vh;
    padding: 75px 0 110px;
    margin: 0 auto;
}

.legal-main__intro {
    padding-bottom: 35px;
    margin-bottom: 42px;
    border-bottom: 1px solid var(--border);
}

.legal-main h1 {
    margin-bottom: 20px;
    font-size: clamp(2.45rem, 5vw, 4rem);
}

.legal-main h2 {
    margin-top: 48px;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    letter-spacing: -0.025em;
}

.legal-main h3 {
    margin-top: 30px;
    font-size: 1.18rem;
}

.legal-main p,
.legal-main li {
    color: #42566f;
}

.legal-main a {
    color: var(--blue-900);
    text-underline-offset: 3px;
}

.legal-main address {
    color: #42566f;
    font-style: normal;
}

.legal-main ul {
    padding-left: 1.25rem;
}

.installation-guide ol {
    padding-left: 1.4rem;
}

.installation-guide li + li {
    margin-top: 10px;
}

.installation-guide__notice {
    padding: 20px 24px;
    border: 1px solid rgba(232, 152, 37, 0.34);
    border-radius: 16px;
    background: var(--amber-soft);
}

.installation-guide__notice p {
    margin: 6px 0 0;
}

.installation-guide__back {
    margin-top: 45px;
    font-weight: 700;
}

.external-page {
    max-width: 720px;
}

.external-page__destination {
    display: grid;
    gap: 4px;
    padding: 22px 24px;
    margin: 32px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 12px 42px rgba(9, 37, 71, 0.06);
}

.external-page__destination strong {
    font-size: 1.1rem;
}

.external-page__destination span {
    color: var(--blue-900);
    font-weight: 700;
}

.external-page__destination small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.external-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.external-page .button--primary {
    color: var(--white);
}

.legal-notice {
    padding: 18px 20px;
    border-left: 4px solid var(--amber);
    border-radius: 0 10px 10px 0;
    background: var(--amber-soft);
}

.missing-value {
    color: #8a3800;
    background: #ffe2d0;
    box-shadow: 0 0 0 2px #ffe2d0;
}

.license-text {
    padding: 25px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--navy);
    background: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-13px) rotate(0.5deg); }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 70px;
    }

    .hero__copy {
        max-width: 760px;
    }

    .hero__visual {
        min-height: 540px;
    }

    .app-icon {
        width: 500px;
    }

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

}

@media (max-width: 680px) {
    :root {
        --page: min(100% - 28px, 1180px);
        --radius-lg: 22px;
    }

    .site-header {
        min-height: 76px;
    }

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

    .header-actions {
        gap: 12px;
    }

    .quiet-link {
        display: none;
    }

    .hero {
        gap: 15px;
        padding: 55px 0 75px;
    }

    h1 {
        font-size: clamp(2.55rem, 12vw, 3.6rem);
    }

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

    .button--primary {
        width: 100%;
    }

    .hero__visual {
        min-height: 410px;
    }

    .app-icon {
        width: min(100%, 390px);
    }

    .clip-preview {
        width: 72%;
    }

    .clip-preview--top {
        left: 0;
    }

    .clip-preview--bottom {
        right: 0;
    }

    .feature-section,
    .downloads {
        padding: 78px 0;
    }

    .feature-section {
        padding-bottom: 28px;
    }

    .downloads {
        padding-top: 28px;
    }

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

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

    .feature-card--wide__visual {
        width: min(100%, 520px);
        margin: 0 auto;
    }

    .site-footer {
        gap: 30px;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
