/* Palette: #2D3561, #9B4DCA, #FFD6CC, #FFF8F0, #4A4E69, #FF6B6B */
/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #FFF8F0;
    color: #2D3561;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
}

/* === Atmosphere Blobs (fixed background) === */
.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.atmo-blob {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    animation: blobMorph 12s ease-in-out infinite;
    will-change: border-radius, transform;
}

.atmo-blob--coral {
    width: 600px;
    height: 500px;
    background: rgba(255, 107, 107, 0.08);
    top: -10%;
    right: -10%;
    animation-duration: 12s;
}

.atmo-blob--indigo {
    width: 500px;
    height: 600px;
    background: rgba(45, 53, 97, 0.06);
    bottom: -15%;
    left: -10%;
    animation-duration: 15s;
}

/* === Tower (main column) === */
.tower {
    position: relative;
    z-index: 1;
    max-width: min(720px, 90vw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === Inflated Shading System === */
.inflated {
    background: #FFF8F0;
    border-radius: 32px;
    box-shadow:
        inset 4px 4px 12px rgba(255, 214, 204, 0.6),
        inset -4px -4px 12px rgba(45, 53, 97, 0.15),
        0 8px 32px rgba(45, 53, 97, 0.2),
        0 2px 8px rgba(45, 53, 97, 0.1);
    transition: box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Entrance animation initial state */
    opacity: 0;
    transform: scale(0.92) translateY(20px);
}

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

.inflated:hover {
    box-shadow:
        inset 6px 6px 16px rgba(255, 214, 204, 0.8),
        inset -3px -3px 10px rgba(45, 53, 97, 0.1),
        0 16px 48px rgba(45, 53, 97, 0.25),
        0 4px 12px rgba(255, 107, 107, 0.15);
    transform: translateY(-6px) scale(1.02);
}

/* === Hero Bubble === */
.hero-bubble {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pulse-rings {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
}

.pulse-rings::before,
.pulse-rings::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid #FFD6CC;
    animation: pulseRing 4s ease-out infinite;
}

.pulse-rings::before {
    width: 300px;
    height: 300px;
}

.pulse-rings::after {
    width: 420px;
    height: 420px;
    animation-delay: 1.5s;
}

@keyframes pulseRing {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

.inflated--massive {
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem);
    border-radius: 48px;
    background: #FF6B6B;
    color: #FFF8F0;
}

.inflated--massive .hero-text {
    text-align: center;
}

.spear-shield-icons {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.icon-spear {
    animation: hoverBob 3s ease-in-out infinite alternate;
    flex-shrink: 0;
}

.icon-shield {
    animation: hoverBob 3s ease-in-out infinite alternate-reverse;
    flex-shrink: 0;
}

@keyframes hoverBob {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}

.hero-bubble h1 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: #FFF8F0;
}

.hero-bubble .jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #FFD6CC;
    margin-top: 0.5rem;
}

/* === Paradox Stack === */
.paradox-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 8vh, 6rem);
    padding: clamp(3rem, 8vh, 6rem) 0;
}

.paradox {
    width: var(--width, 70%);
    transform: scale(0.92) translateY(20px) rotate(var(--tilt, 0deg));
    padding: clamp(2rem, 4vw, 3rem);
    position: relative;
}

.paradox.visible {
    transform: scale(1) translateY(0) rotate(var(--tilt, 0deg));
}

.paradox:hover {
    transform: translateY(-6px) scale(1.02) rotate(var(--tilt, 0deg));
}

/* Micro-bubble decorations */
.paradox::before,
.paradox::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: rise 8s ease-in-out infinite;
}

.paradox::before {
    width: 16px;
    height: 16px;
    background: #FF6B6B;
    top: -8px;
    right: 20%;
}

.paradox::after {
    width: 12px;
    height: 12px;
    background: #2D3561;
    bottom: -6px;
    left: 15%;
    animation-delay: 2s;
}

@keyframes rise {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 0.1; }
}

.paradox h2 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: -0.015em;
    color: #2D3561;
    margin-bottom: 1rem;
}

.paradox p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: #4A4E69;
    line-height: 1.65;
}

/* === Duality River === */
.duality-river {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: clamp(300px, 50vh, 500px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(3rem, 8vh, 6rem);
    margin-bottom: clamp(3rem, 8vh, 6rem);
}

.duality-blob {
    position: absolute;
    width: clamp(280px, 40vw, 500px);
    height: clamp(280px, 40vw, 500px);
    animation: blobMorph 12s ease-in-out infinite;
    will-change: border-radius;
}

.duality-blob--coral {
    background: #FF6B6B;
    left: calc(50% - clamp(160px, 22vw, 300px));
    animation-duration: 12s;
}

.duality-blob--indigo {
    background: #2D3561;
    right: calc(50% - clamp(160px, 22vw, 300px));
    mix-blend-mode: multiply;
    animation-duration: 15s;
}

@keyframes blobMorph {
    0%   { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
    25%  { border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%; }
    50%  { border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; }
    75%  { border-radius: 60% 40% 45% 55% / 40% 55% 45% 60%; }
    100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
}

/* === Idea Bubbles === */
.idea-bubbles {
    width: 100%;
    min-height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(3rem, 8vh, 6rem) 0;
}

.bubble {
    position: absolute;
    width: var(--size, 100px);
    height: var(--size, 100px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: #2D3561;
    left: calc(50% + var(--offset-x, 0px) - var(--size, 100px) / 2);
    top: calc(50% + var(--offset-y, 0px) - var(--size, 100px) / 2);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
    cursor: default;
}

.bubble:hover {
    transform: translateY(-6px) scale(1.15);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* === Resolution === */
.resolution {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(3rem, 8vh, 6rem) 0 clamp(4rem, 10vh, 8rem);
}

.inflated--large {
    width: 88%;
    padding: clamp(2.5rem, 5vw, 4rem);
}

.resolution-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #2D3561;
    line-height: 1.65;
    text-align: center;
}

.footer-name {
    margin-top: clamp(2rem, 5vh, 4rem);
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #4A4E69;
    letter-spacing: -0.015em;
}

/* === Responsive adjustments === */
@media (max-width: 600px) {
    .paradox {
        width: 92% !important;
    }

    .bubble {
        --offset-x: 0px !important;
        position: relative;
        left: auto;
        top: auto;
    }

    .idea-bubbles {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .spear-shield-icons svg {
        width: 32px;
        height: 32px;
    }
}
