/* =============================================================
   WESTFALEN MODDING – PREMIUM MAIN STYLESHEET
   Ultra-smooth, high-end, glassmorphism, dark farming theme
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === ROOT VARIABLES === */
:root {
    --bg-deep: #060b15;
    --bg-surface: #0a0f1d;
    --bg-elevated: #0f172a;
    --glass-strong: rgba(15, 23, 42, 0.85);
    --glass-medium: rgba(15, 23, 42, 0.55);
    --glass-light: rgba(30, 41, 59, 0.45);
    --brand-400: #4ade80;
    --brand-500: #22c55e;
    --brand-600: #16a34a;
    --brand-dim: rgba(34, 197, 94, 0.12);
    --brand-glow: rgba(34, 197, 94, 0.25);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(71, 85, 105, 0.25);
    --border-hover: rgba(34, 197, 94, 0.35);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.5s var(--ease-out-expo);
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* === SELECTION === */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #fff;
}

/* === ORB DECORATIONS === */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: #166534;
    top: -20%;
    right: -15%;
    opacity: 0.10;
    animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #15803d;
    bottom: -15%;
    left: -10%;
    opacity: 0.08;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #22c55e;
    top: 45%;
    left: 45%;
    opacity: 0.05;
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-25px, 25px) scale(1.04);
    }

    66% {
        transform: translate(15px, -15px) scale(0.96);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.08);
    }
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 30%, #16a34a 60%, #4ade80 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* === GLASS PREMIUM === */
.glass {
    background: var(--glass-medium);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: all var(--transition-smooth);
}

.glass:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-card {
    background: var(--glass-medium);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%, transparent 60%, rgba(34, 197, 94, 0.08));
    -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;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 197, 94, 0.12);
    background: rgba(15, 23, 42, 0.65);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #16a34a, #22c55e, #15803d);
    background-size: 200% 200%;
    color: #fff;
    animation: gradientShift 5s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(71, 85, 105, 0.4);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--brand-400);
    background: rgba(34, 197, 94, 0.04);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.08);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-green {
    background: var(--brand-dim);
    color: var(--brand-400);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* === FORM INPUTS === */
.input-field {
    width: 100%;
    background: var(--glass-medium);
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.06);
    background: rgba(15, 23, 42, 0.8);
}

.input-field::placeholder {
    color: #475569;
}

textarea.input-field {
    min-height: 130px;
    resize: vertical;
}

/* === NAVIGATION === */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #e2e8f0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--brand-400);
    border-radius: 1px;
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 55%;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 16px;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    padding: 8px 16px;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    padding: 10px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.logo:hover .logo-icon {
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

.logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.6rem;
    color: var(--brand-400);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

/* === MOBILE MENU === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), opacity 0.4s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
    border-radius: var(--radius-lg);
}

.mobile-menu.open {
    max-height: 550px;
    opacity: 1;
    margin-top: 8px;
}

.mobile-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

/* === PAGE LAYOUT === */
.page-section {
    padding: 100px 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === CARDS GRID === */
.card-grid {
    display: grid;
    gap: 20px;
}

.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === MOD CARD === */
.mod-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a2235, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mod-thumb i {
    font-size: 3rem;
    color: var(--brand-500);
    transition: transform var(--transition-smooth);
}

.glass-card:hover .mod-thumb i {
    transform: scale(1.15);
}

.mod-thumb .mod-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === STAT CARDS === */
.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-400);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === TIMELINE (ROADMAP) === */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #22c55e 0%, #22c55e 45%, #334155 45%, #334155 100%);
    transition: background 0.5s ease;
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #334155;
    border: 2px solid #475569;
}

.timeline-dot.done {
    background: #22c55e;
    border-color: #4ade80;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.timeline-dot.active {
    background: #fbbf24;
    border-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* === PROGRESS BAR === */
.progress-bar {
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    transition: width 0.8s var(--ease-out-expo);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(71, 85, 105, 0.3);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.pagination a:hover,
.pagination .active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

/* === FOOTER === */
.site-footer {
    background: #030712;
    border-top: 1px solid rgba(71, 85, 105, 0.15);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--brand-400);
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.filter-tab {
    padding: 8px 22px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(71, 85, 105, 0.3);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--brand-dim);
    border-color: var(--brand-500);
    color: var(--brand-400);
}

/* === SEARCH === */
.search-wrap {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 36px;
}

.search-wrap .input-field {
    flex: 1;
}

/* === FAQ === */
.faq-item {
    margin-bottom: 8px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: var(--glass-medium);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    border-color: var(--border-hover);
    background: rgba(15, 23, 42, 0.7);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), padding 0.3s ease;
    padding: 0 22px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 16px 22px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.4s var(--ease-out-expo);
    font-size: 1.2rem;
    color: var(--brand-400);
}

/* === LIGHTBOX === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-in {
    animation: fadeInUp 0.7s var(--ease-out-expo) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {

    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-section {
        padding: 80px 0 40px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-desktop {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 11px 22px;
        font-size: 0.85rem;
    }
}