/* Modern Glassmorphism Design System */
:root {
    /* Core Colors */
    --bg-dark: #05070a;
    --bg-deep: #0b0f1a;
    --text-main: #e6eaf4;
    --text-muted: #94a3b8;

    /* Accents */
    --primary: #7aa2ff;
    --primary-glow: rgba(122, 162, 255, 0.4);
    --secondary: #9d7aff;
    --secondary-glow: rgba(157, 122, 255, 0.4);
    --success: #21c07a;
    --danger: #ff5d5d;
    --warning: #ffb020;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --backdrop-blur: blur(12px);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(122, 162, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(157, 122, 255, 0.08), transparent 25%);
    color: var(--text-main);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid;
    place-items: center;
    box-shadow: 0 0 20px var(--primary-glow);
}

.menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.menu a:hover,
.menu a.active {
    color: var(--text-main);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.cta-button::after {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    position: relative;
}

/* Ambient Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--secondary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-content .sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-item small {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 8px 20px var(--primary-glow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(4px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-highlight);
    transform: translateY(-2px);
}

/* Hero Orbit/Card Visual */
.hero-visual {
    position: relative;
}

.orbit-container {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
}

.orbit-card {
    background: rgba(11, 15, 26, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.orbit-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.orbit-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.orbit-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(33, 192, 122, 0.1);
    border: 1px solid rgba(33, 192, 122, 0.2);
    border-radius: var(--radius-full);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(33, 192, 122, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        box-shadow: 0 0 0 0 rgba(33, 192, 122, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(33, 192, 122, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 192, 122, 0);
    }
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
    text-align: left;
}

.section-header h2 {
    font-size: 2rem;
    margin: 0 0 10px;
}

.section-header p {
    color: var(--text-muted);
    margin: 0;
}

/* Cards Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

/* Redesigned Glass Card */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.03) 30%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-card:hover {
    border-color: rgba(122, 162, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.glass-card:hover::before {
    transform: translateX(100%);
}

.glass-card h3 {
    margin: 10px 0;
    font-size: 1.35rem;
    background: linear-gradient(90deg, #fff, #e6eaf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

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

.tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* Workflow Steps */
.workflow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
}

.step-card {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px var(--primary-glow);
}

/* Trust Gallery - JS COMPATIBILITY */
/* JS uses .grid.trust, so we target that */
.grid.trust {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.trust-item {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.trust-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trust-item:hover .trust-image {
    transform: scale(1.05);
}

.trust-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-item:hover .trust-meta {
    opacity: 1;
}

.trust-item button {
    position: absolute;
    inset: 0;
    background: transparent;
    border: none;
    cursor: zoom-in;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-bottom: 50px;
}

/* Redesigned Member Card */
.member-card {
    text-align: center;
    padding: 24px 20px;
    background: rgba(11, 15, 26, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    transition: transform 0.3s ease;
    will-change: transform;
}

.member-card:hover .member-avatar {
    transform: scale(1.05);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-deep);
    background: var(--bg-deep);
}

.member-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

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

    /* Mobile Menu - JS targets #nav.open */
    .menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-deep);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    #nav.open .menu {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0 40px;
    }

    .grid-3,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 24px 20px;
    }

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

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Helper for JS-less skeleton */
.skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Discord Popup */
.discord-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    place-items: center;
    justify-content: center;
}

.discord-popup-overlay.is-active {
    display: flex;
}

.discord-popup {
    background: #1e2124;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.discord-btn {
    display: inline-block;
    background: #5865F2;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-top: 16px;
    transition: transform 0.2s;
}

.discord-btn:hover {
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

/* Facebook Button */
.facebook-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    border: none;
    cursor: pointer;
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    color: white;
}

.discord-social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #5865F2, #7289da);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    border: none;
    cursor: pointer;
}

.discord-social-btn:hover {
    background: linear-gradient(135deg, #4752c4, #5b6eae);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    color: white;
}