/* ============================================
   mujun.works - Glassmorphism Urban Serenity
   Colors: #E8F4F8, #F0E8F4, #FFFFFF, #00D9FF, #FF6B9D, #FFD700, #1A1A2E
   Fonts: Inter (headlines), Outfit (subheadings), Lato (body)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #1A1A2E;
    background: linear-gradient(135deg, #E8F4F8 0%, #F0E8F4 50%, #E8F4F8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* --- Background Urban Shapes --- */
#urban-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.urban-shape {
    position: absolute;
    width: 100%;
    opacity: 0.08;
}

#city-skyline-1 {
    bottom: 0;
    left: 0;
    opacity: 0.1;
    animation: urbanDrift1 12s ease-in-out infinite alternate;
}

#city-skyline-2 {
    bottom: 5%;
    right: 0;
    opacity: 0.06;
    transform: scaleX(-1);
    animation: urbanDrift2 10s ease-in-out infinite alternate;
}

#window-grid {
    top: 10%;
    right: 5%;
    width: 40%;
    opacity: 0.05;
    animation: windowFade 8s ease-in-out infinite alternate;
}

@keyframes urbanDrift1 {
    0% { transform: translateY(0); opacity: 0.1; }
    100% { transform: translateY(-8px); opacity: 0.12; }
}

@keyframes urbanDrift2 {
    0% { transform: scaleX(-1) translateY(0); opacity: 0.06; }
    100% { transform: scaleX(-1) translateY(-5px); opacity: 0.08; }
}

@keyframes windowFade {
    0% { opacity: 0.04; }
    100% { opacity: 0.07; }
}

/* --- Accent Dots --- */
#accent-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.6;
}

.dot-large {
    width: 12px;
    height: 12px;
}

.dot-small {
    width: 6px;
    height: 6px;
}

.dot-pink {
    background: #FF6B9D;
    animation: dotFloat 6s ease-in-out infinite alternate;
}

.dot-cyan {
    background: #00D9FF;
    animation: dotFloat 7s ease-in-out infinite alternate-reverse;
}

.dot-gold {
    background: #FFD700;
    animation: dotPulse 5s ease-in-out infinite;
}

@keyframes dotFloat {
    0% { transform: translateY(0); opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20px); opacity: 0.5; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

/* --- Glass Card Base --- */
.glass-card {
    background: linear-gradient(135deg, rgba(232, 244, 248, 0.7), rgba(240, 232, 244, 0.7));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 48px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                backdrop-filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: translateY(24px);
}

.glass-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
    transform: translateY(-4px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 48px rgba(26, 26, 46, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass-card.revealed:hover {
    transform: translateY(-4px);
}

/* --- Animated Border --- */
.animated-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 18px;
    background: linear-gradient(90deg,
        #FF6B9D 0%,
        transparent 20%,
        transparent 40%,
        #FF6B9D 50%,
        transparent 70%,
        transparent 90%,
        #FF6B9D 100%
    );
    background-size: 200% 100%;
    animation: borderFlow 5s linear infinite;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease, animation-duration 0.3s ease;
}

.animated-border:hover::before {
    animation-duration: 2.5s;
    opacity: 1;
}

.animated-border--cyan::before {
    background: linear-gradient(90deg,
        #00D9FF 0%,
        transparent 20%,
        transparent 40%,
        #00D9FF 50%,
        transparent 70%,
        transparent 90%,
        #00D9FF 100%
    );
    background-size: 200% 100%;
}

.animated-border--gold::before {
    background: linear-gradient(90deg,
        #FFD700 0%,
        transparent 20%,
        transparent 40%,
        #FFD700 50%,
        transparent 70%,
        transparent 90%,
        #FFD700 100%
    );
    background-size: 200% 100%;
}

@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* --- Typography --- */
.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1A1A2E;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;
    color: #1A1A2E;
    opacity: 0.75;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1A1A2E;
    margin-bottom: 24px;
}

.card-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;
    color: #1A1A2E;
    margin-bottom: 16px;
}

.section-body,
.card-body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: #1A1A2E;
    opacity: 0.85;
}

.section-body--secondary {
    margin-top: 16px;
    opacity: 0.7;
    font-style: italic;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 48px 24px;
}

.glass-card--hero {
    max-width: 700px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: hintFade 1s ease 1.2s forwards;
}

@keyframes hintFade {
    to { opacity: 0.6; }
}

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

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

.scroll-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1A1A2E;
    opacity: 0.5;
}

/* --- City Dividers --- */
.city-divider {
    position: relative;
    z-index: 2;
    height: 40px;
    margin: -8px 0;
    overflow: hidden;
}

.city-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.city-divider svg path {
    fill: #FF6B9D;
    opacity: 0.3;
}

.city-divider--2 svg path {
    opacity: 0.2;
}

.city-divider--3 svg path {
    opacity: 0.25;
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    z-index: 2;
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section--offset {
    padding-left: 48px;
}

/* --- Section Grids (Broken Grid) --- */
.section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.section-grid--reverse {
    grid-template-columns: 1fr 2fr;
}

.section-grid--trio {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.section-grid--asymmetric {
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

/* Broken grid offsets */
.section-grid .glass-card--narrow {
    margin-top: 48px;
}

.section-grid--reverse .glass-card--narrow {
    margin-top: 0;
}

.section-grid--reverse .glass-card--wide {
    margin-top: 32px;
}

.section-grid--trio .glass-card:nth-child(2) {
    margin-top: 40px;
}

.section-grid--trio .glass-card:nth-child(3) {
    margin-top: 16px;
}

.glass-card--full {
    grid-column: 1 / -1;
}

.glass-card--offset-left {
    margin-left: -24px;
}

.glass-card--float-right {
    margin-top: 60px;
    margin-right: -16px;
}

/* --- Card Step Indicators --- */
.card-step-indicator {
    margin-bottom: 20px;
}

.step-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #FF6B9D;
    opacity: 0.2;
    line-height: 1;
    letter-spacing: -0.04em;
}

.step-number--cyan {
    color: #00D9FF;
}

.step-number--gold {
    color: #FFD700;
}

/* --- Card Accent Lines --- */
.card-accent {
    margin-top: 24px;
}

.card-accent-line {
    display: block;
    width: 40px;
    height: 2px;
    border-radius: 1px;
}

.card-accent-line--pink {
    background: #FF6B9D;
}

.card-accent-line--cyan {
    background: #00D9FF;
}

.card-accent-line--gold {
    background: #FFD700;
}

/* --- Depth Metrics --- */
.depth-metrics {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.metric-value {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #00D9FF;
    letter-spacing: -0.02em;
}

.metric-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1A1A2E;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Closing Section --- */
.glass-card--closing {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.closing-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1A1A2E;
    margin-bottom: 24px;
}

.closing-body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: #1A1A2E;
    opacity: 0.85;
    margin-bottom: 40px;
}

.closing-accent {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.accent-bar {
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

.accent-bar--pink {
    background: #FF6B9D;
    animation: barPulse 3s ease-in-out infinite;
}

.accent-bar--cyan {
    background: #00D9FF;
    animation: barPulse 3s ease-in-out 0.5s infinite;
}

.accent-bar--gold {
    background: #FFD700;
    animation: barPulse 3s ease-in-out 1s infinite;
}

@keyframes barPulse {
    0%, 100% { opacity: 0.5; width: 40px; }
    50% { opacity: 1; width: 60px; }
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 2;
    padding: 48px 24px;
    text-align: center;
}

.footer-glass {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(232, 244, 248, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 16px 32px;
}

.footer-domain {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1A1A2E;
}

.footer-divider {
    display: block;
    width: 1px;
    height: 16px;
    background: #FF6B9D;
    opacity: 0.5;
}

.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1A1A2E;
    opacity: 0.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-grid,
    .section-grid--reverse,
    .section-grid--asymmetric {
        grid-template-columns: 1fr;
    }

    .section-grid--trio {
        grid-template-columns: 1fr;
    }

    .section-grid .glass-card--narrow,
    .section-grid--reverse .glass-card--wide,
    .section-grid--trio .glass-card:nth-child(2),
    .section-grid--trio .glass-card:nth-child(3) {
        margin-top: 0;
    }

    .glass-card--offset-left {
        margin-left: 0;
    }

    .glass-card--float-right {
        margin-top: 0;
        margin-right: 0;
    }

    .content-section--offset {
        padding-left: 24px;
    }

    .glass-card {
        padding: 32px 24px;
    }

    .depth-metrics {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-glass {
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
    }

    .footer-divider {
        width: 24px;
        height: 1px;
    }

    #window-grid {
        display: none;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 24px 16px;
    }

    .content-section {
        padding: 64px 16px;
    }
}
