@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2330;
    --bg-accent: rgba(56, 189, 248, 0.05);

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --text-accent: #58a6ff;

    --neon-cyan: #38bdf8;
    --neon-amber: #f59e0b;
    --neon-red: #ef4444;
    --neon-green: #22c55e;
    --neon-purple: #a78bfa;

    --border-color: rgba(56, 189, 248, 0.15);
    --border-glow: rgba(56, 189, 248, 0.3);

    --glow-cyan: 0 0 20px rgba(56, 189, 248, 0.3), 0 0 40px rgba(56, 189, 248, 0.1);
    --glow-amber: 0 0 20px rgba(245, 158, 11, 0.3), 0 0 40px rgba(245, 158, 11, 0.1);
    --glow-red: 0 0 20px rgba(239, 68, 68, 0.3), 0 0 40px rgba(239, 68, 68, 0.1);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --transition-slow: 0.8s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ===== HEADER / HERO ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: saturate(0.6) contrast(1.2);
}

.hero__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 12, 16, 0.4) 0%,
        rgba(10, 12, 16, 0.7) 50%,
        var(--bg-primary) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-amber);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
    background: rgba(245, 158, 11, 0.08);
    animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--neon-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--neon-cyan), transparent);
    margin: 0.8rem auto 0;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.content {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ===== SECTION ===== */
.section {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section__icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    flex-shrink: 0;
}

.section__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section__title-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ===== NARRATIVE TEXT ===== */
.narrative {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.narrative strong {
    color: var(--text-primary);
    font-weight: 500;
}

.narrative em {
    color: var(--neon-cyan);
    font-style: normal;
}

/* ===== CALLOUT / CAGE QUOTE ===== */
.cage-quote {
    position: relative;
    background: var(--bg-card);
    border-left: 3px solid var(--neon-amber);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.cage-quote::before {
    content: 'CAGE';
    position: absolute;
    top: -10px;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--neon-amber);
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

/* MIRA quote */
.mira-quote {
    position: relative;
    background: rgba(56, 189, 248, 0.04);
    border-left: 3px solid var(--neon-cyan);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--neon-cyan);
}

.mira-quote::before {
    content: 'MIRA // DM777';
    position: absolute;
    top: -10px;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--neon-cyan);
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

/* ===== FULL BLEED IMAGE ===== */
.full-image {
    width: 100%;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.full-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.8) contrast(1.1);
    transition: filter var(--transition-med), transform var(--transition-slow);
}

.full-image:hover img {
    filter: saturate(1) contrast(1.15);
    transform: scale(1.02);
}

.full-image__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 0%, transparent 100%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ===== STAT CARD ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--glow-cyan);
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card__value--red { color: var(--neon-red); }
.stat-card__value--amber { color: var(--neon-amber); }
.stat-card__value--green { color: var(--neon-green); }

.stat-card__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ===== WARNING BANNER ===== */
.warning-banner {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-banner__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.warning-banner__text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--neon-red);
}

/* ===== DIVIDER ===== */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-color) 20%,
        var(--border-glow) 50%,
        var(--border-color) 80%,
        transparent 100%
    );
    margin: 4rem 0;
    position: relative;
}

.divider::after {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer__text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.footer__text a {
    color: var(--neon-cyan);
    text-decoration: none;
}

/* ===== GLITCH TEXT EFFECT ===== */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--neon-red);
    animation: glitch-1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px);
    opacity: 0.8;
}

.glitch::after {
    color: var(--neon-cyan);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(2px);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 1px); }
    40% { transform: translate(1px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(2px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -1px); }
    40% { transform: translate(-1px, 2px); }
    60% { transform: translate(1px, -1px); }
    80% { transform: translate(-2px, 1px); }
}

/* ===== INFO PANEL ===== */
.info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-panel__title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-panel__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.05);
}

.info-panel__row:last-child {
    border-bottom: none;
}

.info-panel__key {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.info-panel__val {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
}

/* ===== IMAGE PAIR ===== */
.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.image-pair .full-image {
    margin: 0;
}

/* ===== JOURNALIST NOTE ===== */
.journalist-note {
    position: relative;
    background: rgba(34, 197, 94, 0.04);
    border-left: 3px solid var(--neon-green);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-primary);
    font-style: italic;
}

.journalist-note::before {
    content: 'REPORTER\'S NOTE';
    position: absolute;
    top: -10px;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--neon-green);
    background: var(--bg-primary);
    padding: 0 0.5rem;
    font-style: normal;
}

/* ===== RESIDENT QUOTE (renamed from cage-quote) ===== */
.resident-quote {
    position: relative;
    background: var(--bg-card);
    border-left: 3px solid var(--neon-amber);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.resident-quote::before {
    content: attr(data-speaker);
    position: absolute;
    top: -10px;
    left: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--neon-amber);
    background: var(--bg-primary);
    padding: 0 0.5rem;
    text-transform: uppercase;
}

/* ===== EDITOR NOTE ===== */
.editor-note {
    position: relative;
    background: rgba(239, 68, 68, 0.04);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--neon-red);
}

.editor-note::before {
    content: '⚠ EDITOR\'S NOTE';
    display: block;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.profile-card__info {
    flex: 1;
}

.profile-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.profile-card__title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--neon-green);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.profile-card__bio {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== NSFW/ADULT CONTENT SECTION ===== */
.section--adult .section__icon {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.3);
}

.section--adult .section__title {
    color: #ec4899;
}

.section--adult .section__title-sub {
    color: rgba(236, 72, 153, 0.6);
}

.nsfw-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(236, 72, 153, 0.08);
    margin-left: 0.8rem;
    vertical-align: middle;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-grid .full-image {
    margin: 0;
}

.gallery-grid .full-image img {
    height: 300px;
    object-fit: cover;
}

/* ===== PULL QUOTE ===== */
.pull-quote {
    text-align: center;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pull-quote__text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
}

.pull-quote__attr {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 1rem;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1rem; }
    .content { padding: 0 1rem 3rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .image-pair { grid-template-columns: 1fr; }
    .section { margin-bottom: 3rem; }
    .cage-quote, .mira-quote { padding: 1rem 1rem 1rem 1.5rem; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .section__header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .hero { min-height: 80vh; }
}
