/* ====================================================
   Home.css — GD Demonlist Homepage
   Load this in your index.html alongside your other
   CSS files, e.g.: <link rel="stylesheet" href="css/Home.css">
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@300;400;500&family=Syne:wght@400;600;800&display=swap');

/* ── Variables scoped to .home so they can't bleed ── */
.home {
    --hbg:        #080b0f;
    --hbg-2:      #0d1117;
    --hsurface:   #161d27;
    --hborder:    rgba(255, 255, 255, 0.07);
    --haccent:    #e8ff00;
    --haccent-2:  #ff6b35;
    --hglow:      rgba(232, 255, 0, 0.18);
    --htext:      #f0f2f5;
    --hmuted:     #6b7a8d;
    --hdim:       #3d4a57;
    --hfont-d:    'Bebas Neue', sans-serif;
    --hfont-ui:   'Syne', sans-serif;
    --hfont-mono: 'DM Mono', monospace;
    --hr:         6px;
    --hr-lg:      12px;

    background:   var(--hbg);
    color:        var(--htext);
    font-family:  var(--hfont-ui);
    height:   100vh;
    position:     relative;
    overflow-x:   hidden;

    /* reset any page-level margin/padding that might fight us */
    margin: 0;
    padding: 0;
    display: block;
}

/* ── Noise ── */
.home .home-noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ════════════ HERO ════════════ */
.home .home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.home .home-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hborder) 1px, transparent 1px),
        linear-gradient(90deg, var(--hborder) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 30%, transparent 100%);
    pointer-events: none;
}

.home-hero-scroll {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.home-hero-track {
    display: flex;
    height: 100%;
    animation: scrollBg 60s linear infinite;
}

.home-hero-tile {
    width: 80rem;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    filter: brightness(0.2) blur(3px);
    margin-right: -80px; /* overlap */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 40%,
        black 60%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        black 40%,
        black 60%,
        transparent
    );
}

/* smooth infinite scroll */
@keyframes scrollBg {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.home .home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.home .home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--hfont-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--hmuted);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--hborder);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
}

.home .home-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--haccent);
    flex-shrink: 0;
    display: inline-block;
}

.home .home-dot-pulse {
    animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--hglow); opacity: 1; }
    50%       { box-shadow: 0 0 0 6px transparent; opacity: 0.5; }
}

.home .home-title {
    display: flex;
    flex-direction: column;
    font-family: var(--hfont-d);
    font-size: clamp(5rem, 18vw, 13rem);
    line-height: 0.88;
    letter-spacing: -0.01em;
    margin: 0 0 2rem;
    color: var(--htext);
}

.home .home-title-line {
    display: block;
    font-size: xx-large;
    font-style: italic;
    letter-spacing: 0.05em;
}

.home .home-title-accent {
    color: var(--haccent);
    font-size: 12rem;
    text-shadow: 0 0 60px var(--hglow), 0 0 120px var(--hglow);
}

.home .home-sub {
    font-size: 1rem;
    color: var(--hmuted);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto 2.5rem;
}

.home .home-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Rings */
.home .home-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.home .home-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--hborder);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.home .home-ring-1 { width: 480px; height: 480px; border-color: rgba(232,255,0,0.05); }
.home .home-ring-2 { width: 720px; height: 720px; animation: homeRing 40s linear infinite; }
.home .home-ring-3 { width: 960px; height: 960px; animation: homeRing 70s linear infinite reverse; }

@keyframes homeRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ════════════ BUTTONS ════════════ */
.home .home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--hfont-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--hr);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

.home .home-btn-primary {
    background: var(--haccent);
    color: #000;
}

.home .home-btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--hglow);
}

.home .home-btn-ghost {
    background: transparent;
    color: var(--hmuted);
    border: 1px solid var(--hborder);
}

.home .home-btn-ghost:hover {
    border-color: var(--haccent);
    color: var(--haccent);
}

.home .home-btn-lg {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
}

/* ════════════ STATS BAR ════════════ */
.home .home-stats-bar {
    border-top: 1px solid var(--hborder);
    border-bottom: 1px solid var(--hborder);
    background: var(--hbg-2);
}

.home .home-stats-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home .home-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--hborder);
    gap: 0.3rem;
    transition: background 0.2s;
}

.home .home-stat-item:last-child {
    border-right: none;
}

.home .home-stat-item:hover {
    background: rgba(232,255,0,0.03);
}

.home .home-stat-value {
    font-family: var(--hfont-d);
    font-size: 2.8rem;
    color: var(--haccent);
    line-height: 1;
    letter-spacing: 0.02em;
}

.home .home-stat-label {
    font-family: var(--hfont-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hmuted);
}

/* ════════════ MEMBERS SECTION ════════════ */
.home .home-members-section {
    padding: 6rem 2rem;
}

.home .home-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home .home-section-title {
    font-family: var(--hfont-d);
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
    color: var(--htext);
}

.home .home-section-sub {
    font-family: var(--hfont-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--hmuted);
    text-transform: uppercase;
    margin: 0;
}

/* ── Spotlight ── */
.home .home-spotlight {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--hr-lg);
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--hborder);
}

.home .home-spotlight-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.22) saturate(0.5);
    transform: scale(1.06);
    transition: background-image 0.5s ease;
}

.home .home-spotlight-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8,11,15,0.93) 0%,
        rgba(8,11,15,0.68) 55%,
        rgba(8,11,15,0.88) 100%
    );
}

/* Pills */
.home .home-pills {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--hborder);
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home .home-pills::-webkit-scrollbar {
    display: none;
}

.home .home-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--hborder);
    background: rgba(255,255,255,0.04);
    color: var(--hmuted);
    font-family: var(--hfont-ui);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.home .home-pill:hover {
    border-color: rgba(232,255,0,0.3);
    color: var(--htext);
}

.home .home-pill.home-pill-active {
    background: var(--haccent);
    border-color: var(--haccent);
    color: #000;
}

.home .home-pill-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    image-rendering: pixelated;
    display: block;
}

/* Card */
.home .home-card {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: flex-start;
}

.home .home-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    flex-shrink: 0;
}

.home .home-yt-link {
    position: relative;
    display: block;
    text-decoration: none;
    transition: transform 0.2s;
}

.home .home-yt-link:hover {
    transform: scale(1.04);
}

.home .home-yt-avatar,
.home .home-icon-wrap img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--hborder);
    display: block;
    image-rendering: pixelated;
}

.home .home-yt-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #ff0000;
    color: #fff;
    font-size: 0.55rem;
    font-family: var(--hfont-mono);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.05em;
}

.home .home-card-name {
    font-family: var(--hfont-d);
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--htext);
    text-align: center;
}

.home .home-card-role {
    font-family: var(--hfont-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--haccent);
    margin: 0;
    text-align: center;
}

.home .home-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 0.5rem;
}

.home .home-cstats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home .home-cstat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--hborder);
    border-radius: var(--hr);
    background: rgba(255,255,255,0.03);
    min-width: 90px;
}

.home .home-cstat-val {
    font-family: var(--hfont-d);
    font-size: 1.6rem;
    color: var(--htext);
    line-height: 1;
}

.home .home-cstat-key {
    font-family: var(--hfont-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hmuted);
}

.home .home-hardest {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.home .home-hardest-label {
    font-family: var(--hfont-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hdim);
}

.home .home-hardest-name {
    font-family: var(--hfont-d);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--haccent-2);
    text-shadow: 0 0 40px rgba(255,107,53,0.3);
}

.home .home-hardest-rank {
    font-family: var(--hfont-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hdim);
    margin-top: 0.1rem;
}

/* Nav arrows */
.home .home-nav {
    position: absolute;
    bottom: 1.5rem;
    z-index: 4;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--hborder);
    color: var(--hmuted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.home .home-nav:hover {
    background: var(--haccent);
    color: #000;
    border-color: var(--haccent);
}

.home .home-nav-left  { right: 5rem; }
.home .home-nav-right { right: 1.5rem; }

/* Transition */
.home-card-fade-enter-active,
.home-card-fade-leave-active {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.home-card-fade-enter-from { opacity: 0; transform: translateY(10px); }
.home-card-fade-leave-to   { opacity: 0; transform: translateY(-8px); }

/* ════════════ FUN FACTS ════════════ */
.home .home-facts {
    padding: 4rem 2rem 6rem;
    max-width: 1100px;
    margin: 0 auto;
}

.home .home-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--hborder);
    border-radius: var(--hr-lg);
    overflow: hidden;
    background: var(--hborder);
}

.home .home-fact-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem;
    background: var(--hbg-2);
    transition: background 0.2s;
}

.home .home-fact-card:hover {
    background: var(--hsurface);
}

.home .home-fact-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.home .home-fact-text {
    font-size: 0.85rem;
    color: var(--hmuted);
    line-height: 1.65;
    margin: 0;
}

/* ════════════ FOOTER CTA ════════════ */
.home .home-footer-cta {
    text-align: center;
    padding: 6rem 2rem;
    border-top: 1px solid var(--hborder);
    background: var(--hbg-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.home .home-footer-heading {
    font-family: var(--hfont-d);
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0;
    letter-spacing: 0.04em;
    color: var(--htext);
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 768px) {
    .home .home-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .home .home-stat-item:nth-child(2) { border-right: none; }
    .home .home-stat-item:nth-child(3) { border-top: 1px solid var(--hborder); }
    .home .home-stat-item:nth-child(4) { border-top: 1px solid var(--hborder); border-right: none; }

    .home .home-card {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .home .home-card-left {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        min-width: unset;
        width: 100%;
    }

    .home .home-card-name,
    .home .home-card-role { text-align: left; }

    .home .home-facts-grid { grid-template-columns: 1fr; }
    .home .home-nav-left { right: 4rem; }
    .home .home-ring { display: none; }
}

@media (max-width: 480px) {
    .home .home-title   { font-size: 4.5rem; }
    .home .home-pills   { padding: 0.75rem 1rem; }
    .home .home-card    { padding: 1.25rem; }
    .home .home-cstats  { gap: 0.5rem; }
    .home .home-cstat   { padding: 0.6rem 0.8rem; min-width: 76px; }
}