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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a1628;
    color: #c0c8d4;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    line-height: 1.85;
    overflow-x: hidden;
}

/* === HERO === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1628;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(192,200,212,0.04) 0px, rgba(192,200,212,0.04) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(192,200,212,0.04) 0px, rgba(192,200,212,0.04) 1px, transparent 1px, transparent 80px);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #c0c8d4;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
    user-select: none;
}

/* === LENS FLARE === */
.lens-flare {
    position: absolute;
    top: 20%;
    right: 25%;
    width: 200px;
    height: 60px;
    transform: rotate(35deg);
    z-index: 1;
    animation: flarePulse 6s ease-in-out infinite, flareDrift 20s ease-in-out infinite;
}

.flare-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse, rgba(212,224,240,0.12) 0%, transparent 70%);
    filter: blur(20px);
}

.flare-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, #d4e0f0, transparent);
}

@keyframes flarePulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.30; }
}

@keyframes flareDrift {
    0%, 100% { transform: rotate(35deg) translate(0, 0); }
    50% { transform: rotate(35deg) translate(7px, -7px); }
}

/* === SCROLL NAVIGATION === */
.scroll-nav {
    position: fixed;
    right: 12px;
    top: 30vh;
    height: 40vh;
    width: 4px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-nav.visible {
    opacity: 1;
}

.scroll-track {
    position: absolute;
    inset: 0;
    background: #2a3a52;
    border-radius: 2px;
}

.scroll-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7b8fa8;
    top: 0;
    transition: top 0.15s ease-out;
}

/* === CONTENT SECTIONS === */
.content-section {
    position: relative;
    min-height: 80vh;
    padding: 12vh 0;
    overflow: hidden;
}

.section-odd {
    background: #0a1628;
}

.section-even {
    background: #132038;
}

.section-inner {
    position: relative;
    z-index: 2;
    margin-left: 15%;
    max-width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    color: #4a5a72;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.section-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #c0c8d4;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: #8a95a8;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.section-body:last-child {
    margin-bottom: 0;
}

/* === SECTION DIVIDERS === */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 50%;
    height: 1px;
    background: #2a3a52;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.content-section.in-view .section-divider {
    opacity: 1;
}

/* === FLARE FRAGMENTS === */
.flare-fragment {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, #d4e0f0, transparent);
    margin-bottom: 2rem;
    opacity: 0.4;
}

/* === KANJI WATERMARKS === */
.kanji-watermark {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: clamp(8rem, 20vw, 16rem);
    color: rgba(26,32,48,0.6);
    z-index: 1;
    user-select: none;
    line-height: 1;
    pointer-events: none;
}

/* === MOIRE GRID === */
.moire-grid {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(42,58,82,0.15) 0px, rgba(42,58,82,0.15) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(2deg, rgba(42,58,82,0.15) 0px, rgba(42,58,82,0.15) 1px, transparent 1px, transparent 41px);
    z-index: 0;
    pointer-events: none;
}

/* === DOT MATRIX === */
.dot-matrix {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #2a3a52 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    z-index: 0;
    pointer-events: none;
}

/* === RIPPLE === */
.ripple-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.ripple {
    position: absolute;
    border: 1px solid #5a7090;
    border-radius: 50%;
    width: 0;
    height: 0;
    opacity: 0.4;
    transform: translate(-50%, -50%);
    animation: rippleExpand 800ms ease-out forwards;
    pointer-events: none;
}

@keyframes rippleExpand {
    to {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .section-inner {
        margin-left: 8%;
        margin-right: 8%;
        max-width: 84%;
        text-align: center;
    }

    .kanji-watermark {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .section-divider {
        left: 8%;
        width: 84%;
    }

    .flare-fragment {
        margin-left: auto;
        margin-right: auto;
    }

    .section-label {
        text-align: center;
    }

    .moire-grid {
        display: none;
    }

    .scroll-nav {
        top: auto;
        bottom: 12px;
        left: 20%;
        right: 20%;
        width: 60%;
        height: 4px;
    }

    .scroll-track {
        border-radius: 2px;
    }

    .scroll-dot {
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        transition: left 0.15s ease-out;
    }
}
