:root {
    --bg: #e9f4ff;
    --bg-secondary: #dcecff;
    --surface: rgba(255, 255, 255, 0.42);
    --surface-strong: rgba(255, 255, 255, 0.56);
    --surface-border: rgba(255, 255, 255, 0.4);
    --text: #16304f;
    --text-muted: rgba(22, 48, 79, 0.76);
    --accent: #2e6bff;
    --accent-2: #6ad6ff;
    --shadow: 0 24px 80px rgba(46, 107, 255, 0.18);
    --glass-blur: blur(28px);
    --hero-overlay: linear-gradient(135deg, rgba(8, 24, 53, 0.46), rgba(42, 95, 255, 0.2));
}

body[data-theme="dark"] {
    --bg: #06111f;
    --bg-secondary: #0d1e36;
    --surface: rgba(14, 29, 58, 0.48);
    --surface-strong: rgba(16, 37, 76, 0.66);
    --surface-border: rgba(180, 220, 255, 0.16);
    --text: #f2f7ff;
    --text-muted: rgba(242, 247, 255, 0.76);
    --accent: #79a2ff;
    --accent-2: #8be9ff;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
    --glass-blur: blur(32px);
    --hero-overlay: linear-gradient(135deg, rgba(3, 8, 20, 0.58), rgba(56, 104, 255, 0.22));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(120, 215, 255, 0.55), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(82, 112, 255, 0.35), transparent 25%),
        linear-gradient(180deg, var(--bg), var(--bg-secondary));
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
}

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

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

button {
    font: inherit;
}

.page-shell {
    position: relative;
    overflow: hidden;
}

.container {
    width: min(1460px, calc(100% - 20px));
    margin: 0 auto;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(106, 214, 255, 0.3), transparent 70%);
}

.orb-2 {
    width: 480px;
    height: 480px;
    top: 20%;
    right: -180px;
    background: radial-gradient(circle at 30% 30%, rgba(160, 190, 255, 0.78), rgba(46, 107, 255, 0.18), transparent 70%);
}

.orb-3 {
    width: 360px;
    height: 360px;
    bottom: 8%;
    left: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(218, 255, 251, 0.88), rgba(81, 232, 199, 0.22), transparent 72%);
}

.glass-card,
.glass-nav,
.glass-pill,
.glass-shot,
.theme-toggle,
.button {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -16px 30px rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.glass-card::before,
.glass-nav::before,
.glass-pill::before,
.glass-shot::before,
.theme-toggle::before,
.button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.14));
    opacity: 0.72;
    pointer-events: none;
}

.glass-card::after,
.glass-nav::after,
.glass-pill::after,
.glass-shot::after,
.theme-toggle::after {
    content: "";
    position: absolute;
    inset: auto 12% 56% 12%;
    height: 30%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 90%);
    filter: blur(10px);
    opacity: 0.56;
    pointer-events: none;
}

.glass-card,
.glass-shot {
    border-radius: 34px;
}

.glass-pill,
.button,
.theme-toggle {
    border-radius: 999px;
}

.site-header {
    position: sticky;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    margin-top: 18px;
    margin-bottom: 28px;
    z-index: 20;
    border-radius: 999px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 16px 30px rgba(46, 107, 255, 0.24);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.05;
}

.brand-text span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
}

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

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text);
    cursor: pointer;
}

.theme-toggle span:last-child {
    color: var(--text-muted);
}

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
    padding: 18px 0 34px;
}

.hero-media {
    position: relative;
    min-height: 640px;
    border-radius: 42px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-media__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-media__glass {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    color: #fff;
    background: rgba(154, 189, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 30px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -25px 40px rgba(255,255,255,0.06), 0 24px 60px rgba(6, 17, 31, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.hero-media__glass::before {
    content: "";
    position: absolute;
    inset: 6px 8% auto 8px;
    height: 34%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
    filter: blur(8px);
}

.hero-media__glass--left {
    top: 36px;
    left: 28px;
    width: min(320px, calc(100% - 56px));
}

.hero-media__glass--right {
    right: 28px;
    bottom: 28px;
    gap: 12px;
    width: calc(100% - 56px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-media__glass--banner-only {
    display: block;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.hero-media__glass--banner-only::before {
    display: none;
}

.hero-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.hero-banner-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    width: 100%;
    padding: 10px 12px;
}

.platform-chip svg,
.download-card__platform svg,
.feature-pill svg,
.feature-icon svg {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.eyebrow,
.section-kicker,
.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.hero-content h1,
.section-heading h2,
.seo-article h2 {
    margin: 0;
    line-height: 1;
    font-size: clamp(2.4rem, 4vw, 4.6rem);
}

.section-heading h2,
.seo-article h2 {
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    line-height: 1.1;
}

.accent {
    color: var(--accent);
}

.hero-lead,
.section-heading p,
.feature-card p,
.download-card p,
.seo-article p,
.faq-item p,
.site-footer p,
.hero-points,
.brand-text span {
    line-height: 1.7;
    color: var(--text-muted);
}

.animated-copy {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    min-height: 84px;
}

.animated-copy__label {
    color: var(--text-muted);
}

.animated-copy__text {
    display: inline-flex;
    align-items: center;
    min-width: 280px;
    min-height: 1.6em;
    font-weight: 700;
    color: var(--text);
}

.hero-actions,
.download-card__actions,
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, rgba(46, 107, 255, 0.92), rgba(106, 214, 255, 0.88));
    color: #fff;
}

.button-secondary {
    color: var(--text);
}

.hero-points {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    margin: 0;
}

.advantages-grid,
.screenshots-grid,
.faq-list {
    position: relative;
    z-index: 1;
}

.feature-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    color: var(--text);
    font-weight: 600;
}

.section-heading {
    padding: 28px;
    margin-bottom: 24px;
}

.download-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 42px;
    padding: 26px;
    min-height: 720px;
}

.download-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 29, 60, 0.28), rgba(11, 29, 60, 0.56));
}

.download-showcase__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 380px));
    justify-content: space-between;
    gap: 26px 120px;
    padding-top: 260px;
    width: 100%;
    margin: 0;
}

.download-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(8, 21, 43, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -10px 22px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
}

body[data-theme="dark"] .download-card {
    background: rgba(10, 24, 49, 0.14);
    border-color: rgba(180, 220, 255, 0.1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -10px 22px rgba(255, 255, 255, 0.01);
}

.download-card__platform {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--accent-2);
    font-weight: 700;
}

.advantages,
.screenshots,
.seo-text,
.faq,
.site-footer,
.downloads {
    padding-bottom: 34px;
}

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

.feature-card {
    padding: 26px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(46, 107, 255, 0.22), rgba(106, 214, 255, 0.28));
    color: var(--accent);
}

.feature-card h3,
.download-card h3,
.faq-item summary {
    margin-top: 0;
    margin-bottom: 12px;
}

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

.glass-shot {
    overflow: hidden;
    padding: 12px;
}

.glass-shot img {
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.glass-shot figcaption {
    padding: 14px 8px 8px;
    color: var(--text-muted);
}

.seo-article {
    padding: 30px;
}

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

.faq-item {
    padding: 22px 24px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand__mark {
    flex: 0 0 52px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.copyright {
    max-width: 540px;
    margin: 0;
    text-align: right;
}

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

    .hero-media {
        min-height: 520px;
    }

    .download-grid,
    .feature-pills,
    .advantages-grid,
    .screenshots-grid,
    .faq-list {
        grid-template-columns: 1fr 1fr;
    }

    .download-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        justify-content: stretch;
        gap: 22px;
        width: min(100%, calc(100% - 24px));
        margin: 0 auto;
    }
}

@media (max-width: 780px) {
    .site-header,
    .nav-links,
    .site-footer {
        flex-direction: column;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .download-grid,
    .feature-pills,
    .advantages-grid,
    .screenshots-grid,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 460px;
    }

    .hero-content,
    .section-heading,
    .download-card,
    .feature-card,
    .seo-article,
    .faq-item,
    .site-footer {
        padding: 22px;
    }

    .download-showcase {
        min-height: auto;
        padding: 20px;
    }

    .download-grid {
        padding-top: 180px;
    }

    .hero-media__glass--left,
    .hero-media__glass--right {
        width: auto;
        left: 18px;
        right: 18px;
    }

    .hero-media__glass--right {
        top: auto;
        bottom: 18px;
        grid-template-columns: 1fr 1fr;
    }

    .animated-copy__text {
        min-width: 100%;
    }

    .footer-meta,
    .copyright {
        align-items: flex-start;
        text-align: left;
    }
}

/* Banner */
.banner-section {
    margin: 40px auto;
}
.banner-showcase {
    display: block;
    padding: 14px;
    border-radius: 28px;
    overflow: hidden;
}
.banner-showcase a {
    display: block;
    line-height: 0;
}
.banner-showcase img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Image copy protection */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
