:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #8a8a8a;
    --accent: #ccff00;
    /* Neon Lime representing 'bright, high-contrast' */
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grain texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    /* Fixed 15s LCP: lightweight base64 PNG instead of feTurbulence filter */
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAABVVVVaWlphYWFra2t1dXV+fn6JiYlEabpQAAAAS0lEQVQ4y2NgQAX8DIxgCgkzMDCgC/IwMECVMDCASPgZEMWBEpgYEMWBEphwiEAVMOESQVQBExbhkIAqYMImAuEAqgBUAQsQEgB/vB+Y7/D9YQAAAABJRU5ErkJggg==");
    background-repeat: repeat;
    opacity: 0.04;
}

/* Base glowing gradient strictly around the hero */
body::before {
    content: '';
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 8rem 2rem 4rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-bottom: 6rem;
    animation: fadeUp 1s ease-out forwards;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.highlight {
    /* Style specifically for 'MF' */
    color: var(--bg-color);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    /* 8-point shadow emulating 2px text-stroke to completely bypass sharp WebKit miter spikes while retaining the exact original tight aesthetics */
    text-shadow: 
        -2px -2px 0 var(--accent),
         0   -2px 0 var(--accent),
         2px -2px 0 var(--accent),
         2px  0   0 var(--accent),
         2px  2px 0 var(--accent),
         0    2px 0 var(--accent),
        -2px  2px 0 var(--accent),
        -2px  0   0 var(--accent),
         0    0  40px rgba(204, 255, 0, 0.4);
}

.supremacy {
    color: var(--text-main);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.2s forwards;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.project-card:hover .card-arrow {
    transform: translate(6px, -6px);
    color: var(--accent);
}

.store-badges {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.store-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.store-badge svg {
    width: 22px;
    height: 22px;
}

.store-badge:hover {
    color: var(--accent);
    border-color: rgba(204, 255, 0, 0.4);
    background: rgba(204, 255, 0, 0.08);
    box-shadow: 0 0 16px rgba(204, 255, 0, 0.15);
    transform: scale(1.1);
}

.project-card:hover .store-badge {
    border-color: rgba(255, 255, 255, 0.15);
}

.card-content {
    position: relative;
    z-index: 1;
}

.project-number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: block;
    letter-spacing: 0.05em;
}

.project-card h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.project-card p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 90%;
}

.card-arrow {
    font-size: 1.75rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 5rem 1.5rem 3rem;
    }

    .hero {
        margin-bottom: 4rem;
    }

    .project-card {
        padding: 2rem;
    }

    .project-card h2 {
        font-size: 1.75rem;
    }
}

.card-policy-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--accent);
    opacity: 0.6;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid transparent;
}

.card-policy-link:hover {
    opacity: 1;
    border-bottom-color: var(--accent);
}