/* ============================================
   maljosim.com — Deep-Sea Verification Interface
   Colors from DESIGN.md:
     Deep Ocean:        #0A1020
     Abyss:             #0A0818
     Panel Blue:         #182838
     Bioluminescent Teal:#00E8CC
     Electric Pink:      #E84AFF
     Acid Yellow:        #E8FF4A
     Ocean Haze:         #A0B8C8
     Crystalline White:  #E0F0F8
   ============================================ */

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

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    color: #A0B8C8;
    background: linear-gradient(180deg, #0A1020 0%, #0A0818 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #00E8CC;
}

h2 {
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

h4 {
    font-weight: 500;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    margin-bottom: 0.5rem;
}

.korean-text {
    font-family: 'Noto Sans KR', sans-serif;
}

.section-heading {
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 0.05em;
}

/* ============================================
   Caustic Light Overlay
   ============================================ */
#caustic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.caustic-light {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.07;
}

.caustic-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #00E8CC 0%, transparent 70%);
    top: -10%;
    left: 20%;
    animation: causticDrift1 18s ease-in-out infinite;
}

.caustic-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #E84AFF 0%, transparent 70%);
    top: 30%;
    right: -5%;
    animation: causticDrift2 22s ease-in-out infinite;
}

.caustic-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #00E8CC 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation: causticDrift3 25s ease-in-out infinite;
}

@keyframes causticDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 50px) scale(1.1); }
    66% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes causticDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -40px) scale(1.15); }
    66% { transform: translate(50px, -70px) scale(0.9); }
}

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

/* ============================================
   Bubble Container
   ============================================ */
#bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 232, 204, 0.15);
    border: 1px solid rgba(0, 232, 204, 0.1);
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) translateX(var(--drift-x, 20px));
        opacity: 0;
    }
}

/* ============================================
   Crystal Decorations
   ============================================ */
#crystal-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.crystal {
    position: absolute;
    opacity: 0.05;
}

.crystal-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    right: 8%;
    animation: crystalSpin 60s linear infinite;
}

.crystal-2 {
    width: 150px;
    height: 150px;
    top: 45%;
    left: 5%;
    animation: crystalSpin 80s linear infinite reverse;
}

.crystal-3 {
    width: 280px;
    height: 280px;
    bottom: 20%;
    right: 15%;
    animation: crystalSpin 100s linear infinite;
}

.crystal-4 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 20%;
    animation: crystalSpin 70s linear infinite reverse;
}

.crystal-5 {
    width: 180px;
    height: 180px;
    top: 5%;
    left: 40%;
    animation: crystalSpin 90s linear infinite;
}

@keyframes crystalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

#hero-content {
    opacity: 0;
    animation: heroFadeIn 2s ease-out 0.5s forwards;
}

#hero-title-kr {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: #00E8CC;
    text-shadow: 0 0 60px rgba(0, 232, 204, 0.4), 0 0 120px rgba(0, 232, 204, 0.15);
    letter-spacing: 0.1em;
    margin-bottom: 0.2em;
    animation: neonPulse 4s ease-in-out infinite;
}

#hero-title-en {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #E0F0F8;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroSubFadeIn 1.5s ease-out 1.5s forwards;
}

#hero-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    color: #A0B8C8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: heroSubFadeIn 1.5s ease-out 2.2s forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroSubFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 60px rgba(0, 232, 204, 0.4), 0 0 120px rgba(0, 232, 204, 0.15); }
    50% { text-shadow: 0 0 80px rgba(0, 232, 204, 0.6), 0 0 160px rgba(0, 232, 204, 0.25); }
}

/* ============================================
   Floating Panels (Hover-Lift Cards)
   ============================================ */
.floating-panel {
    background: rgba(24, 40, 56, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 232, 204, 0.1);
    border-radius: 12px;
    padding: 40px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    will-change: transform;
}

.floating-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 232, 204, 0.08), 0 0 40px rgba(0, 232, 204, 0.04);
    border-color: rgba(0, 232, 204, 0.25);
}

/* ============================================
   About Section
   ============================================ */
#about {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px 120px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.panel-offset-left {
    margin-right: auto;
    max-width: 600px;
    transform: translateX(-20px);
    opacity: 0;
}

.panel-offset-right {
    margin-left: auto;
    max-width: 600px;
    transform: translateX(20px);
    opacity: 0;
}

.panel-offset-left.visible,
.panel-offset-right.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ============================================
   Verification Flow Section
   ============================================ */
#verification-flow {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

/* Comment Cards */
.comment-card {
    background: rgba(24, 40, 56, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 232, 204, 0.1);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.comment-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.comment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 232, 204, 0.06);
}

.comment-card.verified {
    border-color: rgba(0, 232, 204, 0.2);
    box-shadow: 0 0 30px rgba(0, 232, 204, 0.05);
}

.comment-card.verified:hover {
    box-shadow: 0 0 50px rgba(0, 232, 204, 0.1), 0 20px 60px rgba(0, 232, 204, 0.06);
}

.comment-card.flagged {
    border-color: rgba(232, 74, 255, 0.2);
    box-shadow: 0 0 30px rgba(232, 74, 255, 0.05);
}

.comment-card.flagged:hover {
    box-shadow: 0 0 50px rgba(232, 74, 255, 0.1), 0 20px 60px rgba(232, 74, 255, 0.06);
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.comment-avatar svg {
    width: 100%;
    height: 100%;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-user {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #E0F0F8;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.comment-text {
    color: #A0B8C8;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
}

.comment-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #A0B8C8;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-icon {
    width: 22px;
    height: 22px;
}

.status-verified {
    color: #00E8CC;
}

.status-flagged {
    color: #E84AFF;
}

#incoming-comments,
#verified-comments {
    max-width: 700px;
    margin: 0 auto;
}

#incoming-comments {
    margin-bottom: 80px;
}

#verified-comments {
    margin-top: 80px;
}

/* Filter Band */
#filter-band {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}

.filter-crystal {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 232, 204, 0.1), rgba(232, 74, 255, 0.1));
    border: 1px solid rgba(0, 232, 204, 0.15);
    transform: rotate(45deg);
    animation: filterPulse 3s ease-in-out infinite;
}

.filter-crystal:nth-child(2) { animation-delay: 0.3s; }
.filter-crystal:nth-child(3) { animation-delay: 0.6s; }
.filter-crystal:nth-child(4) { animation-delay: 0.9s; }
.filter-crystal:nth-child(5) { animation-delay: 1.2s; }
.filter-crystal:nth-child(6) { animation-delay: 1.5s; }
.filter-crystal:nth-child(7) { animation-delay: 1.8s; }

@keyframes filterPulse {
    0%, 100% {
        border-color: rgba(0, 232, 204, 0.15);
        box-shadow: 0 0 10px rgba(0, 232, 204, 0.05);
    }
    50% {
        border-color: rgba(0, 232, 204, 0.4);
        box-shadow: 0 0 25px rgba(0, 232, 204, 0.15);
    }
}

.filter-label {
    position: absolute;
    bottom: -8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: rgba(0, 232, 204, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================================
   Stats Section
   ============================================ */
#stats {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

#stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-panel {
    background: rgba(24, 40, 56, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 232, 204, 0.1);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.stat-panel.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stat-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 232, 204, 0.08);
    border-color: rgba(0, 232, 204, 0.25);
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #E8FF4A;
    display: inline;
    line-height: 1;
}

.stat-unit {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #E8FF4A;
    display: inline;
    opacity: 0.7;
    margin-left: 4px;
}

.stat-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #A0B8C8;
    margin-top: 12px;
    letter-spacing: 0.05em;
}

/* ============================================
   How It Works Section
   ============================================ */
#how-it-works {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

#process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.process-step {
    background: rgba(24, 40, 56, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 232, 204, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 300px;
    flex: 1;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 232, 204, 0.08);
    border-color: rgba(0, 232, 204, 0.25);
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(0, 232, 204, 0.4);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
}

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

.process-step p {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #A0B8C8;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 100px;
    flex-shrink: 0;
}

.process-connector svg {
    width: 40px;
    height: 20px;
    opacity: 0.5;
}

/* ============================================
   Wisdom Section
   ============================================ */
#wisdom {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px;
}

.wisdom-panel {
    text-align: center;
    padding: 60px 50px;
    opacity: 0;
    transform: translateY(20px);
}

.wisdom-panel.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.wisdom-quote {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #E8FF4A;
    margin-bottom: 20px;
    line-height: 1.5;
}

.wisdom-translation {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #E0F0F8;
    font-style: italic;
    margin-bottom: 20px;
}

.wisdom-explanation {
    font-weight: 300;
    font-size: 0.95rem;
    color: #A0B8C8;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
#site-footer {
    position: relative;
    z-index: 2;
    padding: 80px 20px 60px;
    text-align: center;
    border-top: 1px solid rgba(0, 232, 204, 0.08);
}

.footer-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-kr {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00E8CC;
}

.footer-en {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #E0F0F8;
    letter-spacing: 0.3em;
}

.footer-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #A0B8C8;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-depth {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: rgba(0, 232, 204, 0.3);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    #stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #process-flow {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .process-step {
        max-width: 100%;
    }
}

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

    .comment-card {
        flex-direction: column;
        gap: 12px;
    }

    .comment-status {
        align-self: flex-end;
    }

    .floating-panel {
        padding: 28px 20px;
    }

    .wisdom-panel {
        padding: 40px 24px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    #hero-title-kr {
        font-size: clamp(3rem, 12vw, 5rem);
    }
}
