@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Plus+Jakarta+Sans:wght@400;500;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Brand Foundation */
    --primary: #ffcc00; /* Sakamoto Yellow */
    --primary-rgb: 255, 204, 0;
    --accent: #ff3300;  /* Action Red */
    --accent-rgb: 255, 51, 0;
    
    /* Surface Colors */
    --bg: #030303;
    --surface-1: #0a0a0a;
    --surface-2: #121212;
    --surface-3: #1a1a1a;
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-dim: rgba(255, 255, 255, 0.25);
    
    /* Interaction */
    --glass: rgba(0, 0, 0, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    /* Fonts */
    --font-heading: 'Bangers', cursive;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Layout */
    --container-max: 1440px;
    --reader-width: 900px;
    
    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s var(--ease-out-expo);
    --transition-fast: 0.3s var(--ease-out-expo);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    cursor: none; /* Controlled by custom cursor */
}

/* --- Global Overlays --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.scanlines {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        transparent 50%, 
        rgba(255, 255, 255, 0.01) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9998;
}

/* --- Custom Cursor --- */
#custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

#custom-cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), opacity 0.3s;
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
.bangers { font-family: var(--font-heading); }
.mono { font-family: var(--font-mono); }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-fast);
}

.nav.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.3));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.cta-nav {
    background: var(--primary);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
    background: #fff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 850px;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    padding-top: 100px; /* Offset for fixed nav */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    opacity: 0.7;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 2s var(--ease-out-expo);
}

.hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(3, 3, 3, 0.9) 20%, transparent 60%);
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, transparent 0%, var(--bg) 95%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.8em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-subtitle::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--primary);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.85;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

.hero-title .letter {
    display: inline-block;
    color: var(--primary);
    position: relative;
    z-index: 5;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

/* Store Receipt Header */
.receipt {
    background: #fff;
    color: #000;
    padding: 2rem;
    font-family: var(--font-mono);
    max-width: 350px;
    transform: rotate(-2deg);
    box-shadow: 20px 20px 0 rgba(255, 204, 0, 0.8);
    position: relative;
    margin-top: 4rem;
}

.receipt-divider {
    border-top: 1px dashed #000;
    margin: 1rem 0;
}

/* --- Search UI --- */
.search-box {
    position: relative;
    max-width: 500px;
    flex: 1;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(20px);
    transition: var(--transition-fast);
    font-family: var(--font-mono);
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.15);
}

/* --- Mission grid --- */
.grid-section {
    padding: 10rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    text-transform: uppercase;
    color: var(--text-main);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
}

.chapter-card {
    position: relative;
    border-radius: 2rem;
    background: var(--surface-1);
    aspect-ratio: 16/10;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: var(--transition-slow);
}

.chapter-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: var(--transition-slow);
}

.chapter-card:hover .card-img {
    opacity: 0.9;
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 70%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mission-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.chapter-card:hover .card-title {
    color: var(--primary);
}

/* --- Reader Interface --- */
.reader-header {
    padding: 8rem 0 4rem;
    text-align: center;
}

.reader-container {
    max-width: var(--reader-width);
    margin: 0 auto;
    background: #000;
}

.reader-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    filter: brightness(0.9) contrast(1.1);
}

.reader-nav {
    position: sticky;
    bottom: 2rem;
    width: fit-content;
    margin: 4rem auto;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    border-radius: 4rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    z-index: 100;
}

.nav-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: var(--primary);
    color: #000;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* --- Custom Cursor Hover state --- */
.cursor-hover {
    width: 80px !important;
    height: 80px !important;
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: var(--primary) !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 8rem; }
    .section-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-title { font-size: 6rem; }
    .chapter-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .receipt { display: none; }
}
