@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Feast of Flesh BB';
    src: url('./FeastOfFleshBb-AVm.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Feast of Flesh BB';
    src: url('./FeastOfFleshBbItalic-qr0.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* ── Reset & Tokens ──────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff1e38; /* Vibrant Red */
    --primary-hover: #e0001a;
    --bg-base: #000000; /* Pure Black */
    --bg-surface: #0a0a0a; /* Darkest Gray */
    --bg-surface-hover: #141414;
    --border: #222222;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --white: #ffffff;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease-in-out;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Custom Scrollbar ────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ── Utility ─────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ── Loading Screen ──────────────────────────── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.no-js .loading-screen { display: none; }
.loading-screen.fade-out { opacity: 0; visibility: hidden; }

.loading-logo-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.6s ease both;
}
.loading-logo-wrap img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.loading-logo-wrap h1 {
    font-size: 2rem;
    font-family: 'Feast of Flesh BB', sans-serif;
    color: var(--white);
    letter-spacing: 2px;
}
.loading-logo-wrap h1 span { color: var(--primary); font-weight: 400; }

.loading-bar {
    width: 280px;
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
    animation: fadeSlideUp 0.6s ease 0.2s both;
}
.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.1s ease;
}
.loading-text {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    animation: fadeSlideUp 0.6s ease 0.4s both;
}

/* Main content */
.main-content { opacity: 1; transition: opacity 0.4s ease; }
.main-content.hidden { opacity: 0; pointer-events: none; }
.no-js .main-content { opacity: 1 !important; pointer-events: auto !important; }

/* ── Navbar ──────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.site-header.scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-link img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}
.logo-link .brand {
    font-size: 1.5rem;
    font-family: 'Feast of Flesh BB', sans-serif;
    color: var(--white);
    letter-spacing: 1px;
}
.logo-link .brand span { color: var(--primary); font-weight: 400; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}
.nav-links a {
    display: inline-block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: var(--bg-surface);
}

/* CTA nav button */
.nav-cta {
    margin-left: 8px;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-surface); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (index) ────────────────────────────── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 72px; /* Offset header */
    background: radial-gradient(circle at top center, var(--bg-surface) 0%, var(--bg-base) 100%);
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 24px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
    animation: fadeSlideUp 0.6s ease both;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s ease 0.1s both;
}
.hero-title .accent { color: var(--primary); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeSlideUp 0.6s ease 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.6s ease 0.3s both;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--text-secondary);
}
.btn-ghost {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px;
}
.btn-ghost:hover {
    background: rgba(225, 29, 72, 0.1);
}

/* ── Stats row ───────────────────────────────── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeSlideUp 0.6s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-item .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 4px;
}
.stat-item .lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Section Heading ─────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Features Section ────────────────────────── */
.features-section {
    padding: 100px 0;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
}

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

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition);
}
.feature-card:hover { 
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(225, 29, 72, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 24px;
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Games Showcase (Download page) ─────────── */
.games-section { padding: 80px 0 100px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.game-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-lg);
}

.game-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.game-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.game-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.game-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}
.game-card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 24px;
}
.game-card-body .btn { width: 100%; }

/* ── News Section ─────────────────────────────── */
.news-section { padding: 80px 0 100px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-md);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.news-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.news-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}
.news-date { font-size: 0.85rem; color: var(--text-secondary); }
.news-card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.4;
}
.news-card-body p { font-size: 0.95rem; color: var(--text-secondary); flex: 1; margin-bottom: 24px; }
.news-card-body .btn-ghost { align-self: flex-start; padding-left: 0; }

/* ── About Section ───────────────────────────── */
.about-section { padding: 80px 0 100px; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
}
.about-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.about-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.about-highlights { margin: 40px 0; display: flex; flex-direction: column; gap: 20px; }
.highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.highlight-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(225, 29, 72, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 4px;
}
.highlight-text h4 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.highlight-text p { font-size: 0.95rem; color: var(--text-secondary); }

.about-visual {
    position: relative;
}
.about-visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    box-shadow: var(--shadow-lg);
}
.about-stat-item {
    padding: 24px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}
.about-stat-item .val {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.about-stat-item .lbl { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }

/* ── CTA Banner ──────────────────────────────── */
.cta-section {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.cta-section p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 600px; margin-inline: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (inner pages) ─────────────────── */
.page-hero {
    padding: 140px 24px 80px;
    text-align: center;
    background: radial-gradient(circle at top center, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border);
}
.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
    animation: fadeSlideUp 0.5s ease both;
}
.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeSlideUp 0.5s ease 0.1s both;
}
.page-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeSlideUp 0.5s ease 0.2s both;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}
.footer-brand .logo-link { margin-bottom: 20px; }
.footer-brand p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; max-width: 320px; }
.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.social-row { display: flex; gap: 12px; }
.social-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    font-size: 1rem;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Divider ─────────────────────────────────── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Status Badges for Download Page */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    width: max-content;
}
.status-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-badge.coming-soon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.status-badge i { font-size: 0.6rem; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .about-grid { grid-template-columns: 1fr; gap: 64px; }
}
@media (max-width: 768px) {
    .nav-links { 
        display: none;
        position: fixed;
        top: 72px; left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; font-size: 1rem; width: 100%; text-align: center; }
    .nav-cta { margin-left: 0; margin-top: 8px; }
    .hamburger { display: flex; }
    .hero-content { padding: 40px 16px; }
    .stats-row { gap: 32px; flex-wrap: wrap; margin-top: 64px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .page-hero { padding: 100px 16px 60px; }
    .about-visual-card { grid-template-columns: 1fr; }
}