/* body font. */
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* title font. */
@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* nuke all defaults. */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* prism color palette. */
:root {
    --bg:          #080b10;
    --bg-raised:   #0e1218;
    --surface:     rgba(123, 140, 255, 0.04);
    --border:      rgba(123, 140, 255, 0.1);
    --text:        #e2e4ed;
    --muted:       #8b8fa3;
    --accent:      #7b8cff;
    --accent-lt:   #a78bfa;
    --pink:        #f472b6;
    --cyan:        #38bdf8;
    --warm:        #fbbf24;
    --red:         #f87171;
    --r-sm:        8px;
    --r-md:        14px;
    --r-lg:        22px;
    --ease:        0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* no selecting text on this site. */
*, *::before, *::after {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* invisible scrollbar that still works. */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* the box that keeps things centered. */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    content-visibility: auto; /* skip rendering offscreen containers */
    contain-intrinsic-size: 500px;
}

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

/* rainbow text that never stops moving. */
.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--accent), var(--accent-lt), var(--pink));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-go 4s linear infinite;
}

@keyframes gradient-go {
    to { background-position: 300% center; }
}



/* ---- header ---- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 68px;
    display: flex;
    align-items: center;
    background: rgba(8, 11, 16, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    transition: background var(--ease), box-shadow var(--ease);
}

.header--scrolled {
    background: rgba(8, 11, 16, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header__nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
}

.header__link {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    transition: color var(--ease);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* underline that appears on hover. */
.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--ease);
}

.header__link:hover { color: #fff; }
.header__link:hover::after { width: 100%; }
.header__link--ext::after { display: none; }

/* the hamburger. */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header__burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--ease);
}

/* mobile nav. */
.mobile-nav {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    z-index: 99;
    background: rgba(8, 11, 16, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

.mobile-nav--open { display: flex; }

.mobile-nav__link {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    transition: color var(--ease);
}

.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link:hover { color: var(--accent); }

@media (max-width: 768px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
}


/* ---- hero section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero__content {
    text-align: center;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

/* big logo. */
.hero__logo {
    max-width: 280px;
    width: 100%;
    margin: 0 auto 2.5rem;
    display: block;
    filter: drop-shadow(0 0 60px rgba(123, 140, 255, 0.2));
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__logo:hover {
    transform: scale(1.05) rotate(1deg);
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: #edf0f5; /* brighter text */
    max-width: 600px; /* wider text block */
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 600; /* significantly bolder */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* drop shadow for readability */
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* download counter. */
.hero__stats {
    margin-top: 1rem; /* reduced margin since buttons are gone */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9rem; /* larger */
    font-weight: 800; /* extra bold */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff; /* brighter */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__stats-text {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero__stats-line {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}


/* ---- wave dividers ---- */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider--top {
    margin-top: -1px;
    background: var(--bg);
}

.wave-divider--bottom {
    margin-bottom: -1px;
    background: var(--bg);
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 80px;
}

@media (min-width: 768px) {
    .wave-divider svg { height: 120px; }
}


/* ---- buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--r-md);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    transition: all var(--ease);
    position: relative;
    overflow: hidden;
}

/* primary button with sweep. */
.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-lt));
    color: #fff;
    box-shadow: 0 4px 24px rgba(123, 140, 255, 0.2);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s;
}

.btn--primary:hover::after { left: 100%; }

.btn--primary:hover {
    box-shadow: 0 8px 32px rgba(123, 140, 255, 0.35);
    transform: translateY(-2px);
}

/* glass button. */
.btn--glass {
    background: rgba(123, 140, 255, 0.06);
    color: #fff;
    border: 1px solid var(--border);
}

.btn--glass:hover {
    background: rgba(123, 140, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn--block { width: 100%; }


/* ---- section titles ---- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header__title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

/* tiny gradient bar. */
.section-header__bar {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    border-radius: 3px;
    margin: 0 auto 0.75rem;
}

.section-header__sub {
    font-size: 0.85rem;
    color: var(--muted);
}


/* ---- downloads section ---- */
.downloads {
    padding: 6rem 0;
    background: var(--bg-raised);
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.downloads__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* glass cards with 3d tilt. */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}

.card:hover {
    background: rgba(123, 140, 255, 0.06);
    border-color: var(--accent);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(123, 140, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* card glow effect on hover. */
.card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(123, 140, 255, 0.15), transparent, rgba(244, 114, 182, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover::before { opacity: 1; }

/* icon bubble. */
.card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform var(--ease);
}

.card:hover .card__icon { transform: scale(1.08) rotate(2deg); }

.card__icon--blue   { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.15); color: var(--cyan); }
.card__icon--purple { background: rgba(167, 139, 250, 0.08); border: 1px solid rgba(167, 139, 250, 0.15); color: var(--accent-lt); }
.card__icon--cyan   { background: rgba(123, 140, 255, 0.08); border: 1px solid rgba(123, 140, 255, 0.15); color: var(--accent); }

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.card__desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .downloads__grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}


/* ---- contributors ---- */
.contributors {
    padding: 6rem 0;
    background: var(--bg);
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.contributors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.contributor {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: rgba(123, 140, 255, 0.04);
    text-decoration: none;
    transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.contributor:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 140, 255, 0.35);
    background: rgba(123, 140, 255, 0.08);
}

.contributor__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(123, 140, 255, 0.08);
    object-fit: cover;
    transition: all var(--ease);
}

/* glow on hover. */
.contributor:hover .contributor__avatar {
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(123, 140, 255, 0.25);
    transform: scale(1.05);
}

/* lead contributor gets extra glow. */
.contributor--lead .contributor__avatar {
    border-width: 2px;
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(123, 140, 255, 0.15);
}

.contributor__name {
    margin-top: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    transition: color var(--ease);
}

.contributor:hover .contributor__name { color: #fff; }


/* ---- footer ---- */
.footer {
    background: #050710;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.footer__logo {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
}

.footer__name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.footer__disclaimer {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 0.75rem;
}

.footer__links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: filter var(--ease);
}

.footer__link:hover { filter: brightness(1.3); }
.footer__link--warm   { color: var(--warm); }
.footer__link--red    { color: var(--red); }
.footer__link--accent { color: var(--accent); }

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

/* maintainer card. */
.footer__maintainer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--ease), box-shadow var(--ease);
}

.footer__maintainer:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(123, 140, 255, 0.1);
}

.footer__maintainer-info { text-align: right; }

.footer__maintainer-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.footer__maintainer-name {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.footer__maintainer-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
}

.footer__copy {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__disclaimer { margin: 0 auto 0.75rem; }
    .footer__links { justify-content: center; }
    .footer__right { align-items: center; }
    .footer__maintainer-info { text-align: center; }
}


/* ---- smooth reveal animation ---- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}


/* ---- count-up number pulse ---- */
@keyframes count-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.count-done {
    animation: count-pulse 0.4s ease;
}
