:root {
    --primary: #7b2ff7;
    --primary-light: #a26bff;
    --bg-main: #170a27;
    --bg-soft: #221138;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.74);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: #180928;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-main);
    background-color: #180928;
    background:
        radial-gradient(circle at top right, rgba(123, 47, 247, 0.34), transparent 28%),
        radial-gradient(circle at center, rgba(150, 87, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #180928 0%, #10071b 100%);
    line-height: 1.75;
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(25, 11, 42, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrap {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: 900;
}

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

.nav-links {
    display: flex;
    gap: 38px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover {
    color: #fff;
}

.header-btn,
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(123, 47, 247, 0.28);
}

.section {
    padding: 108px 0;
}

.section-dark {
    background: rgba(6, 3, 14, 0.24);
}

.section-dark-soft {
    background: rgba(108, 39, 214, 0.08);
}

.section-head {
    margin-bottom: 42px;
}

.section-head h2 {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1.04;
    font-weight: 900;
}

.section-head span {
    display: block;
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    margin-top: 20px;
}

.section-head.compact h2 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-section {
    padding: 112px 0 86px;
}

.hero-grid,
.feature-grid,
.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
    gap: 34px;
    align-items: center;
}

.hero-copy h1,
.download-copy h2 {
    margin-top: 20px;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.98;
    font-weight: 900;
}

.hero-copy p,
.download-copy p,
.feature-main p,
.faq-intro p,
.panel-copy {
    margin-top: 22px;
    color: var(--text-dim);
    font-size: 1.06rem;
}

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

.hero-meta strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.hero-meta span {
    display: block;
    margin-top: 4px;
    color: var(--text-dim);
}

.hero-card,
.feature-main,
.feature-item,
.seo-panel,
.faq-intro,
.faq-item,
.download-panel {
    border-radius: 36px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top left, rgba(162, 107, 255, 0.2), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(18px);
}

.hero-card {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(420px, 100%);
    margin-left: auto;
    padding: 14px;
}

.hero-card img {
    width: min(280px, 82%);
    display: block;
}

.feature-main {
    padding: 42px;
}

.feature-main h3 {
    margin-top: 20px;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.08;
}

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

.feature-stats div,
.download-meta-item {
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-stats strong {
    display: block;
    font-size: 1.4rem;
}

.feature-stats span,
.download-meta-item span {
    display: block;
    margin-top: 8px;
    color: var(--text-dim);
}

.feature-list {
    display: grid;
    gap: 18px;
}

.feature-item {
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.feature-item h4,
.faq-item h4 {
    font-size: 1.16rem;
    font-weight: 800;
}

.feature-item p,
.faq-item p,
.version-item p {
    margin-top: 12px;
    color: var(--text-dim);
}

.screenshots-marquee {
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 0;
}

.screenshots-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollShots 28s linear infinite;
}

.screenshots-track img {
    width: 250px;
    height: 540px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
}

@keyframes scrollShots {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

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

.seo-panel {
    padding: 36px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-list span,
.tag-list a,
.download-notes span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.tag-list a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.version-list {
    display: grid;
    gap: 16px;
}

.version-item {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.version-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.version-top strong {
    font-size: 1.08rem;
}

.version-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 102px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    font-size: 0.9rem;
    font-weight: 800;
    transition: 0.2s;
}

.version-top a:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.version-top a.history-link-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.version-top a.history-link-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.faq-layout {
    display: grid;
    gap: 24px;
}

.faq-intro {
    padding: 36px 38px;
}

.faq-intro h3 {
    margin-top: 18px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
}

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

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

.faq-item p {
    margin-top: 14px;
    line-height: 1.72;
}

.download-panel {
    padding: 48px;
}

.download-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.download-meta-item strong {
    display: block;
    color: #fff;
}

.download-actions {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.download-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.download-brand span {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.download-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 900;
}

.download-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.download-tip {
    margin-top: 18px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 80px;
    padding: 56px 0;
    background: rgba(5, 3, 10, 0.88);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 18px;
}

.site-footer h4 {
    margin-bottom: 18px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a {
    color: var(--text-dim);
    text-decoration: none;
}

.site-footer p {
    color: var(--text-dim);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 0.9rem;
}

.subpage {
    padding-top: 40px;
}

.page-hero {
    margin-bottom: 54px;
}

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.04;
    font-weight: 900;
}

.page-hero p {
    margin-top: 18px;
    max-width: none;
    width: 100%;
    color: var(--text-dim);
    font-size: 1.08rem;
}

.subpage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.info-card,
.content-panel,
.version-panel,
.timeline-content-card {
    padding: 28px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top left, rgba(162, 107, 255, 0.16), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(16px);
}

.info-card-large {
    grid-column: span 2;
}

.info-card-full {
    grid-column: 1 / -1;
}

.about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-cards {
    gap: 18px;
}

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

.prose-block {
    width: 100%;
    max-width: none;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.9;
}

.prose-block p + p {
    margin-top: 24px;
}

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

.prose-block-strong {
    width: 100%;
    max-width: none;
    padding: 34px 36px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top left, rgba(162, 107, 255, 0.14), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.info-card h3,
.content-panel h2,
.version-panel h3,
.timeline-content-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.info-card p,
.content-panel p,
.version-panel p,
.timeline-content-card p {
    margin-top: 14px;
    color: var(--text-dim);
}

.content-block {
    margin-top: 60px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.version-stack {
    display: grid;
    gap: 22px;
}

.version-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.history-card {
    padding: 18px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background:
        radial-gradient(circle at top left, rgba(162, 107, 255, 0.14), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(16px);
}

.history-card-highlight {
    box-shadow: 0 18px 48px rgba(123, 47, 247, 0.16);
}

.history-card-top {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 16px;
    align-items: start;
}

.history-logo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #20c1b6, #108f88);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.history-logo-image {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    background: linear-gradient(135deg, #20c1b6, #108f88);
}

.history-meta h3 {
    font-size: 1.55rem;
    line-height: 1.25;
    font-weight: 900;
}

.history-stars {
    margin-top: 8px;
    color: #ffb22d;
    letter-spacing: 0.08em;
    font-size: 1rem;
}

.history-date {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    font-size: 0.92rem;
    font-weight: 800;
}

.history-desc {
    margin-top: 16px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255,255,255,0.08);
}

.history-desc p {
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.8;
}

.version-panel-highlight {
    box-shadow: 0 18px 48px rgba(123, 47, 247, 0.16);
}

.version-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(123, 47, 247, 0.18);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.version-badge.muted {
    background: rgba(255, 255, 255, 0.08);
}

.timeline-list {
    display: grid;
    gap: 24px;
}

.timeline-entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 22px;
    align-items: start;
}

.timeline-year {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    padding-top: 12px;
}

.center-panel {
    text-align: center;
}

.journey-editorial {
    margin-top: 68px;
    display: grid;
    gap: 56px;
}

.journey-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.journey-row-right {
    grid-template-columns: 1fr;
}

.journey-copy h2,
.journey-summary h2 {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.04;
    font-weight: 900;
}

.journey-copy span,
.journey-summary span {
    display: block;
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    margin-top: 22px;
    margin-bottom: 32px;
}

.journey-copy p,
.journey-summary p {
    color: var(--text-dim);
    font-size: 1.06rem;
    line-height: 1.9;
}

.journey-copy p + p,
.journey-summary p + p {
    margin-top: 24px;
}

.journey-summary {
    padding: 36px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
    .hero-grid,
    .feature-grid,
    .seo-grid,
    .download-panel {
        grid-template-columns: 1fr;
    }

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

    .version-grid-cards {
        grid-template-columns: 1fr;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 99px;
    transition: 0.3s;
}

/* Open State Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, 1320px);
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .header-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #190b2a;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 90;
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .mobile-only-btn {
        display: inline-flex !important;
        margin-top: 10px;
        width: 100%;
        padding: 0 20px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        width: 160px;
        height: 160px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .hero-card img {
        width: 100px;
    }

    .hero-copy h1 {
        font-size: 3rem !important;
        margin-top: 14px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        text-align: left;
    }

    .section {
        padding: 84px 0;
    }

    .hero-copy h1,
    .download-copy h2,
    .section-head h2,
    .page-hero h1,
    .journey-copy h2,
    .journey-summary h2 {
        font-size: 2.4rem;
    }

    .feature-main,
    .seo-panel,
    .faq-intro,
    .download-panel {
        padding: 26px 22px;
    }

    .feature-stats,
    .download-meta,
    .faq-list,
    .footer-grid,
    .subpage-grid,
    .two-col,
    .prose-columns {
        grid-template-columns: 1fr;
    }

    .footer-tags {
        gap: 8px;
    }

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

    .screenshots-track img {
        width: 170px;
        height: 360px;
    }

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

    .version-panel-top,
    .timeline-entry {
        grid-template-columns: 1fr;
    }

    .history-card-top {
        grid-template-columns: 1fr;
    }

    .journey-row,
    .journey-row-right {
        grid-template-columns: 1fr;
    }

    .download-actions {
        padding: 22px 18px;
    }

    .download-main-btn {
        min-height: 62px;
        font-size: 1.02rem;
    }

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