/* maljosim.com - Seapunk Opulent Grand */
/* Colors: #c0c8d4 #0d2b45 #1a8a9e #e8eff6 #134a6e #d4566a #0a1628 #b8a67e */
/* Fonts: Bebas Neue, Inter, Space Mono */

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1a8a9e #0a1628;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a1628;
    color: #e8eff6;
    overflow-x: hidden;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ===== BUBBLES CANVAS ===== */
.bubbles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== NAV SIGIL ===== */
.nav-sigil {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d2b45, #134a6e);
    border: 1px solid #c0c8d4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(26, 138, 158, 0.3);
}

.nav-sigil:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(26, 138, 158, 0.5);
}

.sigil-icon {
    width: 32px;
    height: 32px;
}

/* ===== NAV MENU ===== */
.nav-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-menu.active {
    pointer-events: all;
    opacity: 1;
}

.nav-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
}

.nav-menu-items {
    position: absolute;
    bottom: 100px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.nav-menu-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 0.08em;
    color: #c0c8d4;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    transform: translateX(20px);
    opacity: 0;
}

.nav-menu.active .nav-menu-item {
    transform: translateX(0);
    opacity: 1;
}

.nav-menu.active .nav-menu-item:nth-child(1) { transition-delay: 0.05s; }
.nav-menu.active .nav-menu-item:nth-child(2) { transition-delay: 0.1s; }
.nav-menu.active .nav-menu-item:nth-child(3) { transition-delay: 0.15s; }
.nav-menu.active .nav-menu-item:nth-child(4) { transition-delay: 0.2s; }
.nav-menu.active .nav-menu-item:nth-child(5) { transition-delay: 0.25s; }

.nav-menu-item:hover {
    color: #1a8a9e;
    border-color: #1a8a9e;
    background: rgba(26, 138, 158, 0.1);
}

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

.section-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 12vw, 200px);
    color: rgba(26, 138, 158, 0.08);
    position: absolute;
    top: 20px;
    left: 40px;
    line-height: 1;
    pointer-events: none;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    letter-spacing: 0.08em;
    color: #c0c8d4;
    text-align: center;
    margin-bottom: 48px;
}

/* ===== SECTION 1: THE DESCENT ===== */
.section-descent {
    background: radial-gradient(ellipse at center bottom, #0d2b45 0%, #0a1628 70%);
    flex-direction: column;
    overflow: hidden;
}

.descent-content {
    text-align: center;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.depth-indicator {
    position: fixed;
    top: 32px;
    left: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
    opacity: 0.7;
}

.depth-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #1a8a9e;
    text-transform: uppercase;
}

.depth-value {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: #c0c8d4;
}

.domain-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 144px);
    letter-spacing: 0.08em;
    color: #c0c8d4;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.title-letter {
    display: inline-block;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.title-dot {
    color: #1a8a9e;
    font-size: 0.8em;
}

.descent-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: clamp(12px, 1.5vw, 18px);
    letter-spacing: 0.3em;
    color: #1a8a9e;
    text-transform: uppercase;
    opacity: 0.8;
}

.descent-anchor-svg {
    margin-top: 20px;
    opacity: 0.6;
}

.anchor-illustration {
    width: 80px;
    height: auto;
}

.anchor-wave, .anchor-wave-2 {
    animation: waveMotion 3s ease-in-out infinite;
}

.anchor-wave-2 {
    animation-delay: 0.5s;
}

@keyframes waveMotion {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.scroll-indicator {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bobDown 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #1a8a9e;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== SECTION 2: THE WEIGHT ===== */
.section-weight {
    background: linear-gradient(180deg, #0a1628 0%, #0d2b45 50%, #0a1628 100%);
    padding: 80px 20px;
}

.weight-content {
    max-width: 1000px;
    width: 100%;
    position: relative;
}

.weight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.weight-card {
    background: rgba(13, 43, 69, 0.6);
    border: 1px solid rgba(192, 200, 212, 0.15);
    border-radius: 4px;
    padding: 32px;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.weight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 200, 212, 0.3);
}

.word-bubble {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bubble-outline {
    transition: r 0.4s ease;
}

.word-text {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    color: #e8eff6;
    position: relative;
    z-index: 2;
}

.word-weight {
    margin-bottom: 16px;
}

.weight-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #1a8a9e;
    display: block;
    margin-bottom: 8px;
}

.weight-bar {
    width: 100%;
    height: 4px;
    background: rgba(192, 200, 212, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.weight-fill {
    height: 100%;
    background: #1a8a9e;
    border-radius: 2px;
    transition: width 1s ease;
}

.weight-bar-warning .weight-fill {
    background: #b8a67e;
}

.weight-bar-danger .weight-fill {
    background: #d4566a;
}

.word-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(232, 239, 246, 0.6);
    line-height: 1.6;
}

.weight-illustration {
    text-align: center;
}

.scale-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0.5;
}

/* ===== SECTION 3: THE MIRROR ===== */
.section-mirror {
    background: linear-gradient(180deg, #0a1628 0%, #134a6e 100%);
    padding: 80px 20px;
}

.mirror-content {
    max-width: 700px;
    width: 100%;
    position: relative;
    text-align: center;
}

.mirror-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: #1a8a9e;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.mirror-interface {
    margin-bottom: 40px;
}

.mirror-textarea-container {
    margin-bottom: 24px;
}

.mirror-chrome-border {
    border: 1px solid rgba(192, 200, 212, 0.3);
    border-radius: 4px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(192, 200, 212, 0.05), rgba(26, 138, 158, 0.05));
    transition: border-color 0.3s ease;
}

.mirror-chrome-border:focus-within {
    border-color: #1a8a9e;
    box-shadow: 0 0 20px rgba(26, 138, 158, 0.15);
}

.mirror-textarea {
    width: 100%;
    background: rgba(10, 22, 40, 0.8);
    border: none;
    border-radius: 3px;
    padding: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    color: #e8eff6;
    resize: none;
    outline: none;
    line-height: 1.8;
}

.mirror-textarea::placeholder {
    color: rgba(192, 200, 212, 0.3);
}

.mirror-char-count {
    text-align: right;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(192, 200, 212, 0.4);
    margin-top: 8px;
}

.mirror-analyze-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: #1a8a9e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.1em;
    color: #0a1628;
}

.mirror-analyze-btn:hover {
    background: #c0c8d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 138, 158, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.mirror-visualization {
    position: relative;
    width: 100%;
    height: 300px;
    border: 1px solid rgba(192, 200, 212, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(10, 22, 40, 0.5);
}

.viz-water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    transition: height 1s ease;
    overflow: hidden;
}

.viz-water {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(26, 138, 158, 0.3) 0%, rgba(26, 138, 158, 0.05) 100%);
}

.viz-words-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 16px;
    gap: 8px;
}

.viz-word {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid;
    transition: all 0.5s ease;
    animation: wordDrop 0.8s ease forwards;
}

.viz-word.positive {
    color: #1a8a9e;
    border-color: rgba(26, 138, 158, 0.4);
    background: rgba(26, 138, 158, 0.08);
}

.viz-word.neutral {
    color: #c0c8d4;
    border-color: rgba(192, 200, 212, 0.2);
    background: rgba(192, 200, 212, 0.05);
}

.viz-word.warning {
    color: #b8a67e;
    border-color: rgba(184, 166, 126, 0.4);
    background: rgba(184, 166, 126, 0.08);
}

.viz-word.negative {
    color: #d4566a;
    border-color: rgba(212, 86, 106, 0.4);
    background: rgba(212, 86, 106, 0.08);
}

@keyframes wordDrop {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION 4: THE TRIBUNAL ===== */
.section-tribunal {
    background: linear-gradient(180deg, #134a6e 0%, #0d2b45 50%, #0a1628 100%);
    padding: 80px 20px;
}

.tribunal-content {
    max-width: 700px;
    width: 100%;
    position: relative;
}

.tribunal-panel {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(192, 200, 212, 0.15);
    border-radius: 4px;
    padding: 48px 32px;
    min-height: 300px;
}

.tribunal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 200px;
}

.tribunal-icon {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

.tribunal-placeholder {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: rgba(192, 200, 212, 0.4);
    text-align: center;
}

.verdict-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.verdict-icon {
    width: 48px;
    height: 48px;
}

.verdict-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 0.08em;
    color: #c0c8d4;
}

.verdict-meter {
    margin-bottom: 32px;
}

.meter-track {
    width: 100%;
    height: 8px;
    background: rgba(192, 200, 212, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease, background 1.5s ease;
}

.meter-indicator {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #c0c8d4;
    background: #0a1628;
    transform: translateX(-50%);
    transition: left 1.5s ease;
    left: 0%;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.meter-label-light, .meter-label-heavy {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
}

.meter-label-light {
    color: #1a8a9e;
}

.meter-label-heavy {
    color: #d4566a;
}

.verdict-breakdown {
    margin-bottom: 24px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(192, 200, 212, 0.08);
}

.breakdown-word {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #e8eff6;
}

.breakdown-score {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}

.breakdown-score.positive {
    color: #1a8a9e;
    background: rgba(26, 138, 158, 0.1);
}

.breakdown-score.neutral {
    color: #c0c8d4;
    background: rgba(192, 200, 212, 0.1);
}

.breakdown-score.warning {
    color: #b8a67e;
    background: rgba(184, 166, 126, 0.1);
}

.breakdown-score.negative {
    color: #d4566a;
    background: rgba(212, 86, 106, 0.1);
}

.verdict-advice {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(232, 239, 246, 0.7);
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(192, 200, 212, 0.1);
    line-height: 1.7;
    font-style: italic;
}

/* ===== SECTION 5: THE SURFACING ===== */
.section-surfacing {
    background: linear-gradient(180deg, #0a1628 0%, #0d2b45 100%);
    padding: 80px 20px;
    text-align: center;
}

.surfacing-content {
    max-width: 700px;
    width: 100%;
    position: relative;
}

.surfacing-message {
    margin-bottom: 48px;
}

.surfacing-quote {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 2.5vw, 28px);
    color: rgba(232, 239, 246, 0.8);
    font-weight: 300;
    line-height: 1.6;
}

.surfacing-quote-indent {
    padding-left: 40px;
}

.surfacing-attribution {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #b8a67e;
    margin-top: 16px;
    letter-spacing: 0.1em;
}

.surfacing-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.surfacing-chrome-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c0c8d4, transparent);
    opacity: 0.3;
}

.surfacing-text {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: #1a8a9e;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

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

.surfacing-domain-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 72px);
    letter-spacing: 0.08em;
    color: #c0c8d4;
}

.surfacing-domain-sub {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1a8a9e;
    opacity: 0.7;
}

.surfacing-waves {
    position: absolute;
    bottom: -40px;
    left: -40px;
    right: -40px;
    height: 120px;
    pointer-events: none;
}

.waves-svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    animation: waveFloat 4s ease-in-out infinite;
}

.wave-2 { animation-delay: 0.5s; }
.wave-3 { animation-delay: 1s; }

@keyframes waveFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.weight-card,
.mirror-content,
.tribunal-panel,
.surfacing-message,
.surfacing-cta,
.surfacing-domain {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.weight-card.visible,
.mirror-content.visible,
.tribunal-panel.visible,
.surfacing-message.visible,
.surfacing-cta.visible,
.surfacing-domain.visible {
    opacity: 1;
    transform: translateY(0);
}

.weight-card:nth-child(2) { transition-delay: 0.15s; }
.weight-card:nth-child(3) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-sigil {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .depth-indicator {
        top: 20px;
        left: 20px;
    }

    .section-number {
        left: 20px;
    }

    .weight-grid {
        grid-template-columns: 1fr;
    }

    .surfacing-cta {
        flex-direction: column;
    }

    .surfacing-text {
        white-space: normal;
        text-align: center;
    }

    .tribunal-panel {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .domain-title {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu-items {
        right: 20px;
    }
}
