.menu-overlay{
    z-index: 998;
}

header {
    z-index: 999;
}

.download-page-bg {
    position: relative;
    min-height: 100vh;
    color: #fff;
}

.download-page-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: radial-gradient(circle at bottom left,
            #222d5a 0%,
            #000000 60%);

    background-size: cover;
}

.container {
    width: 100%;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 6rem 0;
}

.version-tag {
    width: max-content;
    margin: auto;
    padding: .8rem 1.5rem;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .1);

    backdrop-filter: blur(10px);
}

.download-stat {
    width: max-content;
    margin: 1rem auto 0;
    padding: 0.6rem 1.3rem;

    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;

    color: #ffc978;
    background: rgba(255, 201, 120, 0.08);
    border: 1px solid rgba(255, 201, 120, 0.25);
}

.download-stat span {
    color: #fff;
}

.rating-badge {
    width: max-content;
    margin: 0.7rem auto 0;
    padding: 0.6rem 1.3rem;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;

    color: #ffc978;
    background: rgba(255, 201, 120, 0.08);
    border: 1px solid rgba(255, 201, 120, 0.25);
}

.rating-count {
    color: #bdbdbd;
    font-weight: 500;
}

/* Two stacked star rows: a dim grey row underneath, a gold row on top
   clipped to a width matching the average rating out of 5. This gives
   the same "partial fill" look Play Store uses for 4.5-style averages,
   with no icon font or SVG needed. */
.rating-stars {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 2px;
}

.rating-stars-back {
    color: rgba(255, 255, 255, 0.2);
}

.rating-stars-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    overflow: hidden;
    white-space: nowrap;
    color: #ffc978;
}

.hero h1 {
    font-size: 5rem;
    margin: 2rem 0;

    background:
        linear-gradient(to bottom,
            white,
            #777);

    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 700px;
    margin: auto;
    color: #bdbdbd;
    font-size: 1.1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background:
        linear-gradient(to right,
            #89a8f5,
            #e67d7d);

    color: black;
    font-weight: 700;
    transition: .3s;
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.download-btn:hover {
    background: linear-gradient(to right, #c1c9fa, #f2c1c1);
    animation: stretchSquash 0.5s 1 ease-in-out;
}

@keyframes stretchSquash {
    0% {
        transform: scale(1, 1);
    }

    30% {
        transform: scale(1.1, 0.9);
    }

    60% {
        transform: scale(0.9, 1.1);
    }

    100% {
        transform: scale(1, 1);
    }
}

.features {
    margin-top: 5rem;
    display: flex;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    position: relative;
    min-width: 340px;
    width: 16rem;
    height: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 2rem;

    border-radius: 24px;

    background:
        linear-gradient(135deg,
            rgba(127, 66, 167, .15),
            rgba(83, 0, 160, .08));

    border: 1px solid rgba(255, 255, 255, .12);

    backdrop-filter: blur(20px);

    box-shadow:
        0 0 20px rgba(127, 66, 167, .15),
        0 0 40px rgba(83, 0, 160, .08);

    flex-shrink: 0;
    transition: 0.3s ease;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.feature-card h3 span {
    background: linear-gradient(to right,
            #89a8f5,
            #e67d7d);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.feature-card p {
    color: #cfcfcf;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, .4),
            transparent);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 25px rgba(127, 66, 167, 0.25);
}

.download-info {
    padding: 5rem 0;
}

.glass-card {

    max-width: 900px;
    margin: auto;

    background:
        rgba(255, 255, 255, .05);

    border: 1px solid rgba(255, 255, 255, .1);

    backdrop-filter: blur(20px);

    border-radius: 25px;

    padding: 3rem;
}

.glass-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.info-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 2rem;

    text-align: center;
}

.info-grid span {
    color: #888;
}

.checksum-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;

    margin-top: 1.5rem;
    padding: 0.9rem 1.2rem;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.checksum-label {
    color: #ffc978;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.checksum-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #cfcfcf;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    word-break: break-all;
    max-width: 100%;
}

.checksum-copy {
    flex-shrink: 0;
    border: 1px solid rgba(137, 168, 245, 0.3);
    background: rgba(137, 168, 245, 0.1);
    color: #89a8f5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.checksum-copy:hover {
    background: rgba(137, 168, 245, 0.2);
}

.checksum-copy.copied {
    background: rgba(120, 200, 140, 0.2);
    border-color: rgba(120, 200, 140, 0.4);
    color: #8fe0a8;
}

@media (max-width: 600px) {
    .checksum-value {
        font-size: 0.7rem;
    }
}

.changelog {
    margin-top: 1.5rem;
    text-align: left;

    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.changelog summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1.2rem;

    font-weight: 600;
    color: #ffc978;
    font-size: 0.95rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.changelog summary::-webkit-details-marker {
    display: none;
}

.changelog summary::after {
    content: "▾";
    font-size: 0.9rem;
    color: #ffc978;
    transition: transform 0.2s ease;
}

.changelog[open] summary::after {
    transform: rotate(180deg);
}

.changelog-body {
    padding: 0 1.2rem 1.2rem;
    color: #cfcfcf;
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
}

.changelog-body h1,
.changelog-body h2,
.changelog-body h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0.9rem 0 0.4rem;
    text-align: left;
}

.changelog-body h1:first-child,
.changelog-body h2:first-child,
.changelog-body h3:first-child {
    margin-top: 0;
}

.changelog-body ul {
    margin: 0.3rem 0 0.3rem 1.2rem;
}

.changelog-body li {
    margin-bottom: 0.3rem;
}

.changelog-body strong {
    color: #fff;
}

.changelog-body p {
    margin-bottom: 0.5rem;
}

.changelog-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.changelog-body blockquote {
    margin: 0.6rem 0;
    padding: 0.6rem 1rem;
    border-left: 3px solid #ffc978;
    background: rgba(255, 201, 120, 0.06);
    border-radius: 0 8px 8px 0;
    color: #e0d4b8;
}

.changelog-body code {
    background: rgba(255, 255, 255, 0.08);
    color: #89a8f5;
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
}

.btn-download-now {
    display: flex;
    width: max-content;
    margin: 3rem auto 0;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    color: #fff;
    border: none;
    cursor: pointer;
    background: transparent;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Animated gradient border */
.btn-download-now::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1.5px;
    background: linear-gradient(90deg, #89a8f5, #e67d7d, #a78afe, #89a8f5);
    background-size: 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderSpin 3s linear infinite;
    z-index: -1;
}

/* Dark fill inside */
.btn-download-now::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: -1;
    transition: background 0.25s ease;
}

.btn-download-now:hover::after {
    background: rgba(137, 168, 245, 0.03);
}

.btn-download-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(137, 168, 245, 0.08);
}

@keyframes borderSpin {
    to {
        background-position: 300%;
    }
}

/* Waveform icon inside button */
.btn-download-now-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
}

.btn-download-now-bars span {
    display: block;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to top, #89a8f5, #e67d7d);
    animation: miniwave 1.2s ease-in-out infinite;
}

.btn-download-now-bars span:nth-child(1) {
    animation-delay: 0s;
    height: 4px;
}

.btn-download-now-bars span:nth-child(2) {
    animation-delay: .15s;
    height: 10px;
}

.btn-download-now-bars span:nth-child(3) {
    animation-delay: .3s;
    height: 14px;
}

.btn-download-now-bars span:nth-child(4) {
    animation-delay: .15s;
    height: 10px;
}

.btn-download-now-bars span:nth-child(5) {
    animation-delay: 0s;
    height: 4px;
}

@keyframes miniwave {

    0%,
    100% {
        transform: scaleY(0.4);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Layout: both buttons side by side */
.button {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-section {
    padding: 5rem 0 2rem;
    text-align: center;
}

.preview-section h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.preview-tabs {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.4rem;
    margin-bottom: 2rem;

    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
}

.preview-tab {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.preview-tab:hover {
    color: #fff;
}

.preview-tab.active {
    color: #000;
    background: linear-gradient(to right, #89a8f5, #e67d7d);
}

.screenshot-frame {
    max-width: 900px;
    margin: 0 auto;

    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    overflow: hidden;

    box-shadow:
        0 0 20px rgba(127, 66, 167, .15),
        0 0 40px rgba(83, 0, 160, .08);
}

.screenshot-chrome {
    display: flex;
    gap: 8px;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.screenshot-chrome span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.screenshot-body {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #0a0a12;
}

.screenshot-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.screenshot-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* Shown automatically (via JS) if a screenshot file hasn't been added yet --
   a shimmering skeleton loader (same idea as YouTube's loading placeholders)
   instead of a broken image icon or static text. */
.screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    background: #1a1a24;
    overflow: hidden;
}

.screenshot-placeholder.show {
    display: block;
}

.screenshot-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent);
    transform: translateX(-100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 600px) {
    .preview-tabs {
        flex-wrap: wrap;
        border-radius: 20px;
    }
}

.getting-started {
    padding: 5rem 0;
}

.getting-started h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step span {
    min-width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(to right,
            #89a8f5,
            #e67d7d);

    color: #000;
    font-weight: bold;
}

.step h3 {
    margin-bottom: .5rem;
    color: #ffc978;
}

.step p {
    color: #bdbdbd;
}

body {
    overflow: auto !important;
}

.version-banner {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;

    padding: .8rem 1.5rem;
    text-align: center;

    background: linear-gradient(to right, #89a8f5, #e67d7d);
    color: #000;
    font-weight: 600;
    font-size: .95rem;
}

.version-banner-link {
    text-decoration: none;
    padding: .35rem 1rem;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    transition: .2s;
}

.version-banner-link:hover {
    background: #222;
}

.version-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    color: #000;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 600px) {
    .version-banner {
        font-size: .85rem;
        padding: .7rem 3rem;
    }

    .version-banner-close {
        right: .6rem;
    }
}

@media(max-width:768px) {

    .hero h1 {
        font-size: 3rem;
    }

    .container {
        padding: 0 1rem;
    }

}