/* ========================================
   ModVault — Midnight Purple Theme
   ======================================== */

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

:root {
    --bg: #08061a;
    --bg2: #0c0a22;
    --card: #0f0d28;
    --card-hover: #151236;
    --border: #1e1a4a;
    --border-hover: #2d2870;
    --text: #e8e4f8;
    --text2: #8880b0;
    --text3: #554e80;
    --purple: #7c3aed;
    --purple-l: #a78bfa;
    --purple-d: #5b21b6;
    --violet: #8b5cf6;
    --green: #22c55e;
    --gradient: linear-gradient(135deg, #7c3aed, #a78bfa);
    --gradient2: linear-gradient(135deg, #5b21b6, #7c3aed);
    --glow: rgba(124, 58, 237, 0.15);
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --tr: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --r: 14px;
}

html {
    scroll-behavior: smooth;
}

/* Hide SEO text visually but keep it for Search Engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(167, 139, 250, 0.05) 0%, transparent 45%);
    animation: bgFloat 30s infinite alternate ease-in-out;
    z-index: -1;
    pointer-events: none;
}

@keyframes bgFloat {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(15deg) scale(1.15);
    }
}

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

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================
   Scroll Reveal Animations
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(3px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal-d1 {
    transition-delay: 0.15s;
}

.reveal-d2 {
    transition-delay: 0.3s;
}

/* Particles */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================
   Navbar
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(8, 6, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--tr);
}

.navbar.scrolled {
    background: rgba(8, 6, 26, 0.95);
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nav Total Downloads Pill */
.nav-downloads-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 14px;
    margin-left: 10px;
}

.nav-downloads-pill .g-count {
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text);
}

.nav-downloads-pill .g-text {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text2);
}

.anim-donut {
    animation: spinDonut 12s linear infinite;
    transform-origin: center;
}

@keyframes spinDonut {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nav-logo span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text2);
    transition: var(--tr);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-logo .accent {
    color: transparent;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text2);
    transition: var(--tr);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* ============================
   Shared Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--tr);
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.link {
    color: var(--purple-l);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link:hover {
    color: var(--violet);
}

/* ============================
   Hero
   ============================ */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 160px 20px 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    top: 40%;
    left: 30%;
    width: 300px;
    height: 250px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate 1s;
}

@keyframes glowPulse {

    0% {
        transform: translateX(-50%) scale(1) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1.2) translateY(-20px);
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}

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

.hero-sub {
    font-size: 1.08rem;
    color: var(--text2);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Section */
.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-align: center;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text2);
    text-align: center;
    margin-bottom: 40px;
}

/* Downloads */
.downloads {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
}

/* ============================
   3-Column Grid
   ============================ */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

/* ============================
   Mod Card — Midnight Purple
   ============================ */
.mod-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    /* overflow: hidden; removed so dropdowns can overlay outside */
}

.mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mod-card:hover {
    border-color: var(--purple-l);
    background: var(--card-hover);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25), 0 0 20px rgba(124, 58, 237, 0.05) inset;
    z-index: 2;
}

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

.mod-card.open {
    grid-column: span 3;
    border-color: rgba(124, 58, 237, 0.5);
    background: var(--card-hover);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2), 0 0 30px rgba(124, 58, 237, 0.08) inset;
    animation: cardExpand 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(-3px);
    z-index: 10;
}

.mod-card.open::before {
    opacity: 1;
}

@keyframes cardExpand {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(-3px);
        filter: blur(0);
    }
}

/* Card Body */
.card-body {
    padding: 28px 28px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
}

.card-info {
    flex: 1;
    min-width: 0;
}


.card-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.card-version {
    font-size: 0.82rem;
    color: var(--purple-l);
    font-weight: 500;
    margin-bottom: 12px;
}

/* Status */
.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 4px currentColor;
    }

    50% {
        box-shadow: 0 0 10px currentColor;
    }
}

.status-dot.green {
    background: var(--green);
    color: var(--green);
}

.status-text {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.status-text.green {
    color: var(--green);
}

/* Meta */
.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 10px;
}

.card-meta svg {
    color: var(--text3);
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text2);
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.04);
    white-space: nowrap;
    transition: var(--tr);
}

.tag:hover {
    border-color: var(--purple);
    color: var(--purple-l);
    background: rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15);
}

.tag-more {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text3);
    padding: 3px 8px;
}

/* Requirements Section */
.card-requirements {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.req-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.req-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text2);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--tr);
}

.req-tag svg {
    opacity: 0.7;
    transition: var(--tr);
}

.req-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text);
}

.req-tag:hover svg {
    opacity: 1;
}

/* ============================
   Card Buttons
   ============================ */
.card-buttons {
    display: flex;
    gap: 8px;
    padding: 20px 28px 24px;
}

.btn-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 14px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-card svg {
    flex-shrink: 0;
}

/* Download Dropdown System */
.download-dropdown {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.btn-download-toggle,
.btn-download-direct {
    width: 100%;
    background: #4353c7;
    /* Deep indigo from screenshot */
    color: white;
    box-shadow: 0 3px 15px rgba(67, 83, 199, 0.25);
}

.btn-download-toggle:hover,
.btn-download-direct:hover {
    background: #4a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 83, 199, 0.35);
}

.btn-download-toggle .chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.download-dropdown.active .btn-download-toggle .chevron {
    transform: rotate(180deg);
}

.download-versions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-height: 220px;
    /* Constrain height */
    overflow-y: auto;
    /* Enable scrolling if there are many items */
}

/* Custom Scrollbar for Dropdown */
.download-versions::-webkit-scrollbar {
    width: 6px;
}

.download-versions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.download-versions::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 10px;
}

.download-versions::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.6);
}

.download-dropdown.active .download-versions {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 8px;
    /* Safe space */
    flex-wrap: nowrap;
    /* Force them to stay on the same line */
}

.version-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
    padding-bottom: 12px;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
}

.v-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.v-size {
    font-size: 0.75rem;
    color: var(--text2);
    font-weight: 500;
}

.btn-dl-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    /* Square padding since text is gone */
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.08);
    /* Very faint background like screenshot */
    color: var(--purple-l);
    /* Accent text color */
    border: 1px solid rgba(124, 58, 237, 0.15);
    /* Faint border */
    transition: var(--tr);
    cursor: pointer;
    flex: 0 0 auto;
    /* Prevent button from shrinking too much */
}

.btn-dl-small:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    color: white;
    transform: scale(1.02);
}

.btn-dl-small:active {
    transform: scale(0.98);
}

.btn-download {
    background: var(--gradient);
    color: white;
    box-shadow: 0 3px 15px rgba(124, 58, 237, 0.25);
}

.btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-download:hover::before {
    transform: translateX(100%);
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.btn-download:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.btn-view {
    background: rgba(124, 58, 237, 0.06);
    color: var(--text2);
    border: 1px solid var(--border) !important;
}

.btn-view:hover {
    border-color: var(--purple) !important;
    color: var(--purple-l);
    background: rgba(124, 58, 237, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.15);
}

.btn-view:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.mod-card.open .btn-view {
    border-color: var(--purple) !important;
    color: var(--purple-l);
    background: rgba(124, 58, 237, 0.15);
}

/* ============================
   Details Panel — Animated
   ============================ */
.mod-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-card.open .mod-details {
    max-height: 500px;
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 24px 28px 28px;
    border-top: 1px solid var(--border);
}

.mod-card.open .details-content {
    animation: detailsFade 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

@keyframes detailsFade {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Detail Screenshot — visible only in expanded panel */
.detail-screenshot {
    display: none;
    flex: 1.2;
    min-width: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mod-card.open .detail-screenshot {
    display: block;
    animation: mediaFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

@keyframes mediaFadeIn {
    0% {
        opacity: 0;
        transform: translateX(15px) scale(0.98);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.detail-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.detail-screenshot img[src=""],
.detail-screenshot img:not([src]) {
    display: none;
}

.detail-screenshot img[src=""]+.screenshot-placeholder,
.detail-screenshot img:not([src])+.screenshot-placeholder {
    display: flex;
}

.screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text3);
    background: linear-gradient(135deg, var(--bg2), rgba(124, 58, 237, 0.08));
    flex-direction: column;
    gap: 6px;
}

.detail-screenshot img:not([src=""]):not(:not([src]))+.screenshot-placeholder {
    display: none;
}

.detail-block h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple-l);
    margin-bottom: 12px;
}

.detail-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-block li {
    font-size: 0.83rem;
    color: var(--text2);
    padding-left: 14px;
    position: relative;
    transition: var(--tr);
}

.detail-block li:hover {
    color: var(--text);
    transform: translateX(3px);
}

.detail-block li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--purple-l);
    font-weight: 700;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
    font-size: 0.82rem;
}

.info-row span:first-child {
    color: var(--text3);
}

.info-row span:last-child {
    color: var(--text);
    font-weight: 500;
}

/* Download Stats */
.info-download {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(124, 58, 237, 0.15);
}

.dl-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--purple-l);
    margin-bottom: 4px;
}

.dl-count {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    letter-spacing: -0.02em;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
    display: inline-block;
}

/* Detail Screenshot — visible only in expanded panel */
.mod-card.open .detail-screenshot {
    display: block;
    animation: mediaFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

@keyframes mediaFadeIn {
    0% {
        opacity: 0;
        transform: translateX(15px) scale(0.98);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.detail-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.detail-screenshot img[src=""],
.detail-screenshot img:not([src]) {
    display: none;
}

.detail-screenshot img[src=""]+.screenshot-placeholder,
.detail-screenshot img:not([src])+.screenshot-placeholder {
    display: flex;
}

.screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text3);
    background: linear-gradient(135deg, var(--bg2), rgba(124, 58, 237, 0.08));
    flex-direction: column;
    gap: 6px;
}

.detail-screenshot img:not([src=""]):not(:not([src]))+.screenshot-placeholder {
    display: none;
}

.detail-block h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--purple-l);
    margin-bottom: 12px;
}

.detail-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-block li {
    font-size: 0.83rem;
    color: var(--text2);
    padding-left: 14px;
    position: relative;
    transition: var(--tr);
}

.detail-block li:hover {
    color: var(--text);
    transform: translateX(3px);
}

.detail-block li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--purple-l);
    font-weight: 700;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
    font-size: 0.82rem;
}

.info-row span:first-child {
    color: var(--text3);
}

.info-row span:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ============================
   Setup Section
   ============================ */
.setup {
    position: relative;
    z-index: 1;
    padding: 80px 0 90px;
}

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

.step-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 32px;
    text-align: center;
    transition: var(--tr);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.1);
}

.step-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.15rem;
    color: white;
    margin: 0 auto 18px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.step-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text2);
    line-height: 1.6;
}

.step-card code,
.step-card kbd {
    font-family: var(--mono);
    font-size: 0.82rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    padding: 1px 7px;
    border-radius: 4px;
    color: var(--purple-l);
}

/* ============================
   FAQ
   ============================ */
.faq {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: var(--bg2);
}

.faq-list {
    max-width: 700px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--tr);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item.open {
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--tr);
    text-align: left;
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--text3);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--purple-l);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 22px 18px;
    font-size: 0.88rem;
    color: var(--text2);
    line-height: 1.7;
}

/* ============================
   Footer
   ============================ */
/* ============================
   Footer (Rift Style)
   ============================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links-inline {
    display: flex;
    gap: 32px;
}

.footer-links-inline a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text3);
    text-transform: uppercase;
    transition: var(--tr);
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-disclaimer {
    padding-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .mods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mod-card.open {
        grid-column: span 2;
    }

    .card-body {
        flex-direction: column;
    }

    .mod-card.open .detail-screenshot {
        height: auto;
        aspect-ratio: 16 / 9;
        flex: none;
        width: 100%;
        margin-top: 20px;
    }
}

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

    .mod-card.open {
        grid-column: span 1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
    }

    .card-body {
        padding: 22px 22px 0;
        flex-direction: column;
    }

    .card-buttons {
        padding: 16px 22px 22px;
    }

    .details-content {
        grid-template-columns: 1fr;
        padding: 18px 22px 22px;
    }

    .footer-row {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 30px;
    }

    .footer-links-inline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}