:root {
    --bg: #060816;
    --surface: rgba(17, 23, 40, 0.74);
    --surface-2: rgba(255, 255, 255, 0.045);
    --surface-3: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.1);

    --text: #f5f7ff;
    --muted: #a6afc8;

    --ig-blue: #405de6;
    --ig-purple: #833ab4;
    --ig-pink: #c13584;
    --ig-rose: #e1306c;
    --ig-orange: #f56040;
    --ig-yellow: #fcaf45;

    --primary: var(--ig-rose);
    --on-bg: var(--text);
    --on-muted: var(--muted);
    --on-primary: #ffffff;

    --ig-gradient: linear-gradient(
        130deg,
        var(--ig-blue) 0%,
        var(--ig-purple) 26%,
        var(--ig-pink) 48%,
        var(--ig-rose) 64%,
        var(--ig-orange) 84%,
        var(--ig-yellow) 100%
    );

    --nav-h: 72px;
    --edge-space: clamp(1rem, 4vw, 4rem);
    --r-pill: 22px;
    --r-card: 30px;
    --r-section: 32px;

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(900px 540px at 8% 5%, rgba(252, 175, 69, 0.28), transparent 70%),
        radial-gradient(860px 520px at 92% 24%, rgba(225, 48, 108, 0.26), transparent 74%),
        radial-gradient(760px 460px at 52% 92%, rgba(64, 93, 230, 0.24), transparent 72%),
        var(--ig-gradient);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 22, 0.78);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3 {
    font-family: 'Syne', sans-serif;
}

img, svg {
    max-width: 100%;
    height: auto;
}

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

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--ig-gradient);
    box-shadow: 0 0 16px rgba(252, 175, 69, 0.6);
    z-index: 250;
    transition: width 0.1s linear;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(95px);
    opacity: 0.38;
    animation: orbDrift 24s ease-in-out infinite alternate;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: #833ab4;
    top: -130px;
    left: -90px;
    animation-duration: 28s;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: #e1306c;
    top: 120px;
    right: -110px;
    animation-duration: 22s;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #f56040;
    bottom: -80px;
    left: 40%;
    animation-duration: 30s;
    animation-delay: -5s;
}

@keyframes orbDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    35% {
        transform: translate(36px, -28px) scale(1.07);
    }
    70% {
        transform: translate(-25px, 26px) scale(0.96);
    }
    100% {
        transform: translate(14px, 40px) scale(1.03);
    }
}

nav {
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 var(--edge-space);
    background: rgba(6, 8, 22, 0.56);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.32);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.25s ease;
}

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

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    backdrop-filter: blur(14px);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transform-origin: center;
    transition: all 0.28s var(--ease-inout);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 4%;
    right: 4%;
    z-index: 110;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 30, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 16px 18px;
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-inout);
}

.mobile-menu.open {
    display: flex;
    max-height: calc(100dvh - var(--nav-h) - 16px);
    overflow-y: auto;
}

.mobile-menu a {
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: color 0.2s ease;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a.active,
.mobile-menu a:hover {
    color: #ffffff;
}

.hero {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 7.2rem) var(--edge-space) clamp(4.2rem, 8vw, 5.8rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    color: #dbe2f8;
    backdrop-filter: blur(12px);
    margin-bottom: 30px;
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-badge i {
    color: var(--ig-yellow);
}

.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5.8rem);
    line-height: 1;
    letter-spacing: -2.8px;
    margin-bottom: 24px;
}

.hero h1 span {
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--ig-gradient);
    color: #ffffff !important;
    box-shadow: 0 12px 30px rgba(193, 53, 132, 0.28);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: #ffffff !important;
    backdrop-filter: blur(14px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
}

.features {
    position: relative;
    z-index: 2;
    width: min(1180px, 92%);
    margin: 0 auto clamp(1.8rem, 4vw, 2.5rem);
    padding: clamp(2.6rem, 6vw, 4rem) clamp(1.1rem, 3vw, 1.8rem);
    border-radius: var(--r-section);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.35rem);
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 34px;
}

.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 30px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(20, 27, 47, 0.8);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.grid .card:nth-child(4n + 1) .card-icon {
    background: rgba(64, 93, 230, 0.15);
    color: var(--ig-blue);
}

.grid .card:nth-child(4n + 2) .card-icon {
    background: rgba(131, 58, 180, 0.14);
    color: #b89fff;
}

.grid .card:nth-child(4n + 3) .card-icon {
    background: rgba(225, 48, 108, 0.16);
    color: #ff78ae;
}

.grid .card:nth-child(4n + 4) .card-icon {
    background: rgba(245, 96, 64, 0.16);
    color: #ff9d7b;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.card p {
    color: var(--muted);
    font-size: 0.96rem;
}

.community {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(3.4rem, 7vw, 5.4rem) var(--edge-space) clamp(3.2rem, 7vw, 4.8rem);
    max-width: min(860px, 100%);
    margin: 0 auto;
}

.community h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.community p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
}

footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px var(--edge-space) 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.88rem;
    max-width: 760px;
    margin: 0 auto;
}

.footer-copy p + p {
    margin-top: 6px;
    opacity: 0.84;
}

#scrollTop {
    position: fixed;
    bottom: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease-inout), transform 0.3s var(--ease-inout), background 0.25s ease;
    backdrop-filter: blur(12px);
}

#scrollTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollTop:hover {
    background: rgba(225, 48, 108, 0.36);
}

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.download-notice {
    grid-column: 1 / -1;
    background:
        linear-gradient(rgba(10, 14, 30, 0.72), rgba(10, 14, 30, 0.72)),
        var(--ig-gradient);
    border: 1px solid rgba(252, 175, 69, 0.28);
}

.notice-loading {
    color: var(--muted);
    font-size: 0.92rem;
}

.notice-head h3 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.8px;
}

.notice-head p {
    margin-top: 0.25rem;
    color: #ffffff;
    opacity: 0.96;
    font-weight: 600;
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}

.notice-chip {
    margin-top: 1.1rem;
    margin-bottom: 1rem;
    background: rgba(252, 175, 69, 0.14);
    border-left: 5px solid #fcaf45;
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.notice-chip span {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.notice-arch {
    margin-top: 0.2rem;
    color: #ffffff;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    font-weight: 700;
}

.download-notice h4 {
    margin-top: 0.7rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.15rem, 2.3vw, 1.6rem);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.notice-changelogs {
    list-style: none;
    background: rgba(255, 255, 255, 0.08);
    border-left: 5px solid #e1306c;
    border-radius: 14px;
    padding: 0.95rem 1rem;
}

.notice-changelogs li {
    color: #ffffff;
    font-size: clamp(0.98rem, 1.7vw, 1.15rem);
    font-weight: 700;
    line-height: 1.42;
}

.notice-actions {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 0.95rem;
}

.notice-actions .btn {
    width: 100%;
    min-height: 56px;
    font-size: clamp(0.96rem, 1.6vw, 1.08rem);
    font-weight: 700;
}

.notice-actions .btn i {
    font-size: 0.88em;
}

@media (max-width: 1080px) {
    .nav-links { gap: 1.35rem; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero h1 { letter-spacing: -1.4px; }
    .btn-group { flex-direction: column; align-items: center; }
    .btn-group .btn { width: 100%; max-width: 340px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 66px; }
    nav { padding: 0 1rem; }
    .logo { font-size: 1.05rem; gap: 9px; }
    .logo img { width: 36px; height: 36px; border-radius: 12px; }
    .mobile-menu { left: 3%; right: 3%; top: calc(var(--nav-h) + 8px); }
    .hero { padding: 4.5rem 1rem 3.7rem; }
    .hero h1 { font-size: clamp(2.2rem, 10vw, 4.2rem); letter-spacing: -1px; }
    .hero p { font-size: 0.99rem; }
    .features { width: calc(100% - 1rem); border-radius: 26px; padding: 2.8rem 1rem; }
    .grid { grid-template-columns: 1fr; }
    .card { border-radius: 26px; padding: 24px; }
    .section-title { font-size: 1.9rem; margin-bottom: 2.2rem; }
    footer { padding: 46px 1rem 34px; }
    .footer-links .btn { width: 100%; max-width: 340px; }
}

@media (max-width: 640px) {
    .btn { white-space: normal; text-align: center; line-height: 1.35; padding: 0.85rem 1rem; }
    .community { padding: 4.1rem 1rem; }
    .notice-actions { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: clamp(1.9rem, 10vw, 2.5rem); }
    .card-icon { width: 48px; height: 48px; font-size: 1.12rem; border-radius: 16px; }
    .mobile-menu a { font-size: 0.92rem; }
}

@media (min-width: 1440px) {
    nav { padding: 0 clamp(2rem, 8vw, 8rem); }
    .hero { max-width: 1040px; }
    .features { width: min(1280px, calc(100% - 5rem)); }
    .community { max-width: 900px; }
}

@media (min-width: 1920px) {
    .hero { padding-top: 7.8rem; }
    .features { width: min(1420px, calc(100% - 8rem)); }
}
