/* mujun.cafe - Design Language Stylesheet */
/* Colors: #7a9e8e, #141418, #0a0a0f, #d4af37, #0f2a3d, #e8e0d0, #00e5cc, #c4483e */
/* Fonts: Space Grotesk (display), IBM Plex Mono (code), Inter (body), Lora (accent), Noto Serif JP (kanji) */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #0a0a0f;
    color: #e8e0d0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === LOADING OVERLAY === */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loading-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 120px;
    font-weight: 900;
    color: #d4af37;
    background: linear-gradient(135deg, #d4af37 0%, #f0d060 40%, #d4af37 60%, #a08020 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite, kanjiPulse 2s ease-in-out infinite;
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes kanjiPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* === NOISE OVERLAY === */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === BLOB LAYER === */
#blob-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    transition: transform 0.3s ease;
}

.blob-1 {
    top: -10%;
    right: -10%;
    animation: blobFloat1 20s ease-in-out infinite;
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    animation: blobFloat2 25s ease-in-out infinite;
}

.blob-3 {
    top: 40%;
    left: 30%;
    animation: blobFloat3 30s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(10deg); }
    66% { transform: translate(20px, -20px) rotate(-5deg); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -40px) rotate(-8deg); }
    66% { transform: translate(-25px, 15px) rotate(12deg); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -25px) scale(1.1); }
}

/* === TYPOGRAPHY === */
.mono-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.gold-shimmer {
    background: linear-gradient(135deg, #d4af37 0%, #f0d060 40%, #d4af37 60%, #a08020 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
}

/* === SECTIONS === */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
}

.section-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    width: 90%;
    padding: 60px 0;
}

/* === SECTION LABELS === */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    opacity: 0.5;
}

.label-number {
    font-size: 12px;
    color: #d4af37;
    letter-spacing: 0.15em;
}

.label-name {
    font-size: 11px;
    color: #7a9e8e;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* === SECTION HEADINGS === */
.section-heading {
    margin-bottom: 40px;
}

.heading-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 80px;
    font-weight: 700;
    color: #d4af37;
    display: block;
    line-height: 1.1;
    margin-bottom: 12px;
}

.heading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: -0.02em;
    line-height: 1.05;
    display: block;
}

/* === BODY TEXT === */
.body-text {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: #e8e0d0;
    margin-bottom: 24px;
    max-width: 680px;
}

.body-text em {
    font-family: 'Lora', serif;
    font-style: italic;
    color: #00e5cc;
}

.gold-quote {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 600;
    color: #d4af37;
    border-left: 3px solid #d4af37;
    padding: 16px 0 16px 28px;
    margin: 32px 0;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.9;
}

/* === BOTANICALS === */
.botanical {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.botanical-kelp {
    right: 5%;
    top: 0;
    height: 100%;
    width: auto;
    opacity: 0.4;
}

.botanical-coral {
    right: -5%;
    bottom: 0;
    height: 80%;
    width: auto;
}

.botanical-anemone {
    left: -5%;
    bottom: 10%;
    height: 50%;
    width: auto;
}

.botanical-lotus {
    right: 0;
    bottom: 0;
    height: 70%;
    width: auto;
}

/* === THE QUESTION === */
#the-question {
    background: #0a0a0f;
}

#the-question .section-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#kanji-container {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.kanji-char {
    font-family: 'Noto Serif JP', serif;
    font-size: 120px;
    font-weight: 900;
    color: #d4af37;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.kanji-char.visible {
    opacity: 1;
    transform: translateY(0);
}

#kanji-mao.visible {
    transition-delay: 0.3s;
}

#kanji-dun.visible {
    transition-delay: 0.6s;
}

.question-subtitle {
    font-size: 14px;
    color: #7a9e8e;
    letter-spacing: 0.08em;
    line-height: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease 1s, transform 1.5s ease 1s;
}

.question-subtitle.visible {
    opacity: 0.7;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 2s ease 2s;
}

.scroll-indicator.visible {
    opacity: 0.5;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #d4af37);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.scroll-text {
    font-size: 10px;
    color: #d4af37;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* === DIAGONAL SECTIONS === */
.diagonal-section {
    position: relative;
}

.diagonal-bg {
    position: absolute;
    top: -10%;
    left: -5%;
    right: -5%;
    bottom: -10%;
    z-index: 1;
}

.spear-bg {
    background: linear-gradient(165deg, #0f2a3d 0%, #1A1A1A 40%, #141418 60%, #0a0a0f 100%);
    clip-path: polygon(0 8%, 100% 0%, 100% 92%, 0 100%);
}

.shield-bg {
    background: linear-gradient(195deg, #141418 0%, #0f2a3d 50%, #0a0a0f 100%);
    clip-path: polygon(0 0%, 100% 8%, 100% 100%, 0 92%);
}

.spear-content {
    padding-left: 10%;
}

.shield-content {
    padding-left: 10%;
}

/* === THE COLLISION === */
#the-collision {
    background: #0a0a0f;
}

.collision-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(196, 72, 62, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.collision-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.collision-kanji-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
}

.collision-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 96px;
    font-weight: 700;
    transition: transform 0.6s ease, color 0.6s ease;
}

.collision-mao {
    color: #d4af37;
}

.collision-dun {
    color: #00e5cc;
}

.collision-kanji.colliding {
    animation: collisionShake 0.5s ease-in-out;
}

@keyframes collisionShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px) rotate(-2deg); }
    40% { transform: translateX(6px) rotate(1deg); }
    60% { transform: translateX(-4px) rotate(-1deg); }
    80% { transform: translateX(2px) rotate(0.5deg); }
}

.collision-x {
    width: 40px;
    height: 40px;
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: opacity 0.4s ease, transform 0.5s ease;
}

.collision-x.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.collision-x svg {
    width: 100%;
    height: 100%;
}

.collision-heading .heading-text {
    color: #c4483e;
    font-size: 48px;
}

.collision-text {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#collision-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* === THE RESOLUTION === */
#the-resolution {
    background: #0a0a0f;
}

.resolution-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    z-index: 1;
}

.resolution-heading {
    text-align: center;
}

.resolution-heading .heading-kanji {
    font-size: 100px;
    display: block;
    margin-bottom: 16px;
}

.resolution-heading .heading-text {
    font-size: 36px;
    color: #e8e0d0;
    font-weight: 400;
    font-family: 'Lora', serif;
    font-style: italic;
}

.resolution-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resolution-body {
    text-align: left;
}

.resolution-body .body-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* === THE MENU === */
#the-menu {
    background: #141418;
    min-height: auto;
    padding: 120px 0;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0f 0%, #141418 10%, #141418 90%, #0a0a0f 100%);
    z-index: 1;
}

.menu-content {
    max-width: 1100px;
}

.menu-heading .heading-text {
    font-size: 48px;
    margin-bottom: 60px;
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.menu-item {
    background: rgba(15, 42, 61, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.3s ease;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(15, 42, 61, 0.35);
    transform: translateY(-4px);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.menu-item-icon svg {
    width: 100%;
    height: 100%;
}

.menu-item-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.menu-item-desc {
    font-size: 13px;
    color: #7a9e8e;
    line-height: 1.6;
    margin-bottom: 16px;
}

.menu-item-price {
    font-size: 14px;
    color: #e8e0d0;
    opacity: 0.6;
}

/* === THE END (FOOTER) === */
#the-end {
    background: #0D0D0D;
    min-height: 80vh;
}

.end-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.end-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 24px;
}

.end-tagline {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-style: italic;
    color: #F0E6C8;
    opacity: 0.7;
    margin-bottom: 60px;
}

.end-details {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.end-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 10px;
    color: #7a9e8e;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #e8e0d0;
}

.end-line {
    width: 60px;
    height: 1px;
    background: #d4af37;
    opacity: 0.3;
    margin-bottom: 24px;
}

.end-copyright {
    font-size: 12px;
    color: #7a9e8e;
    opacity: 0.4;
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .heading-text {
        font-size: 40px;
    }

    .heading-kanji {
        font-size: 60px;
    }

    .kanji-char {
        font-size: 80px;
    }

    .collision-kanji {
        font-size: 64px;
    }

    .end-details {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }

    .heading-text {
        font-size: 32px;
    }

    .kanji-char {
        font-size: 60px;
    }

    .collision-kanji {
        font-size: 48px;
    }

    .gold-quote {
        font-size: 18px;
    }

    .resolution-heading .heading-kanji {
        font-size: 70px;
    }

    .menu-heading .heading-text {
        font-size: 36px;
    }

    .spear-content,
    .shield-content {
        padding-left: 5%;
    }
}
