/* ==========================================================================
   rational.monster - Holographic Data Mountain
   Colors: #FFF5EB, #6B1D2A, #9E4A5A, #2A2A2A, #C4A84C, #F5D5C8
   Fonts: Playfair Display 700, Inter 400
   ========================================================================== */

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

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #2A2A2A;
    background: #FFF5EB;
    height: 100%;
    overflow: hidden;
}

/* --- Horizontal Scroll Panorama --- */
.panorama {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.panorama::-webkit-scrollbar {
    display: none;
}

.panorama {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Panel Base --- */
.panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Mountain Backgrounds --- */
.mountain-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mountain-bg--hero {
    background:
        linear-gradient(180deg, transparent 60%, #6B1D2A 60%, #6B1D2A 65%, transparent 65%),
        linear-gradient(180deg, transparent 70%, #9E4A5A 70%, #9E4A5A 74%, transparent 74%),
        linear-gradient(180deg, transparent 80%, #F5D5C8 80%);
    clip-path: polygon(
        0% 100%,
        0% 75%,
        5% 68%,
        10% 72%,
        15% 60%,
        20% 65%,
        25% 55%,
        30% 58%,
        35% 50%,
        40% 54%,
        45% 45%,
        50% 48%,
        55% 52%,
        60% 46%,
        65% 50%,
        70% 42%,
        75% 47%,
        80% 38%,
        85% 44%,
        90% 35%,
        95% 40%,
        100% 32%,
        100% 100%
    );
    opacity: 0.15;
}

.mountain-bg--landscape {
    background:
        linear-gradient(180deg, transparent 55%, #6B1D2A 55%, #6B1D2A 60%, transparent 60%),
        linear-gradient(180deg, transparent 65%, #9E4A5A 65%, #9E4A5A 70%, transparent 70%),
        linear-gradient(180deg, transparent 75%, #F5D5C8 75%);
    clip-path: polygon(
        0% 100%,
        0% 60%,
        8% 52%,
        15% 58%,
        22% 45%,
        30% 50%,
        38% 38%,
        45% 42%,
        52% 35%,
        60% 40%,
        68% 30%,
        75% 36%,
        82% 28%,
        88% 33%,
        95% 25%,
        100% 30%,
        100% 100%
    );
    opacity: 0.12;
}

.mountain-bg--analysis {
    background:
        linear-gradient(180deg, transparent 65%, #9E4A5A 65%, #9E4A5A 70%, transparent 70%),
        linear-gradient(180deg, transparent 75%, #F5D5C8 75%);
    clip-path: polygon(
        0% 100%,
        0% 65%,
        7% 55%,
        14% 62%,
        20% 48%,
        28% 55%,
        35% 40%,
        42% 47%,
        50% 35%,
        58% 42%,
        65% 32%,
        72% 38%,
        80% 28%,
        87% 34%,
        93% 22%,
        100% 28%,
        100% 100%
    );
    opacity: 0.1;
}

.mountain-bg--summit {
    background:
        linear-gradient(180deg, transparent 50%, #6B1D2A 50%, #6B1D2A 55%, transparent 55%),
        linear-gradient(180deg, transparent 60%, #9E4A5A 60%, #9E4A5A 65%, transparent 65%),
        linear-gradient(180deg, transparent 72%, #F5D5C8 72%);
    clip-path: polygon(
        0% 100%,
        0% 55%,
        10% 48%,
        18% 52%,
        25% 40%,
        33% 45%,
        40% 32%,
        48% 38%,
        50% 20%,
        52% 38%,
        60% 32%,
        67% 38%,
        75% 28%,
        82% 34%,
        90% 25%,
        100% 30%,
        100% 100%
    );
    opacity: 0.18;
}

/* --- Holographic Overlay --- */
.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(158, 74, 90, 0.03) 0%,
        rgba(196, 168, 76, 0.05) 25%,
        rgba(107, 29, 42, 0.03) 50%,
        rgba(245, 213, 200, 0.06) 75%,
        rgba(158, 74, 90, 0.03) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.holographic-overlay--alt {
    background: linear-gradient(
        225deg,
        rgba(196, 168, 76, 0.05) 0%,
        rgba(158, 74, 90, 0.04) 30%,
        rgba(245, 213, 200, 0.06) 60%,
        rgba(107, 29, 42, 0.03) 100%
    );
}

.holographic-overlay--shimmer {
    background: linear-gradient(
        45deg,
        rgba(196, 168, 76, 0.06) 0%,
        rgba(107, 29, 42, 0.04) 20%,
        rgba(158, 74, 90, 0.05) 40%,
        rgba(196, 168, 76, 0.07) 60%,
        rgba(245, 213, 200, 0.04) 80%,
        rgba(107, 29, 42, 0.03) 100%
    );
    animation: holoshimmer 8s ease-in-out infinite alternate;
}

.holographic-overlay--intense {
    background: linear-gradient(
        160deg,
        rgba(196, 168, 76, 0.08) 0%,
        rgba(158, 74, 90, 0.06) 25%,
        rgba(107, 29, 42, 0.05) 50%,
        rgba(196, 168, 76, 0.09) 75%,
        rgba(245, 213, 200, 0.05) 100%
    );
    animation: holoshimmer 6s ease-in-out infinite alternate;
}

@keyframes holoshimmer {
    0% {
        opacity: 0.6;
        background-position: 0% 50%;
    }
    100% {
        opacity: 1;
        background-position: 100% 50%;
    }
}

/* --- Path-Draw SVG Traces --- */
.path-trace {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.trace-line {
    fill: none;
    stroke: #C4A84C;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0.4;
    transition: stroke-dashoffset 2.5s ease-in-out;
}

.trace-line--secondary {
    stroke: #9E4A5A;
    stroke-width: 1.5;
    opacity: 0.25;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    transition: stroke-dashoffset 3s ease-in-out 0.3s;
}

.trace-line--tertiary {
    stroke: #6B1D2A;
    stroke-width: 1;
    opacity: 0.2;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    transition: stroke-dashoffset 3.5s ease-in-out 0.5s;
}

.panel.in-view .trace-line {
    stroke-dashoffset: 0;
}

.trace-dot {
    fill: #C4A84C;
    opacity: 0;
    transition: opacity 0.6s ease-in-out 2s;
}

.panel.in-view .trace-dot {
    opacity: 0.6;
}

/* --- Panel Content --- */
.panel-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    padding: 2rem 3rem;
}

.panel-content--hero {
    text-align: center;
    max-width: 900px;
}

.panel-content--summit {
    text-align: center;
    max-width: 750px;
}

/* --- Typography --- */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #6B1D2A;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title-dot {
    color: #C4A84C;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #2A2A2A;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.85;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #6B1D2A;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.section-title--summit {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.section-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #2A2A2A;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.85;
    max-width: 650px;
}

.section-text--summit {
    margin: 0 auto 2.5rem;
    max-width: 580px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0.6;
    animation: pulseRight 2s ease-in-out infinite;
}

.scroll-indicator-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #9E4A5A;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

@keyframes pulseRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

/* --- Data Cards --- */
.data-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.data-card {
    background: #F5D5C8;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1 1 200px;
    max-width: 260px;
    border: 1px solid rgba(107, 29, 42, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 29, 42, 0.12);
}

.data-card-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-bottom: 1rem;
    padding: 4px 0;
}

.data-card-chart--line {
    display: block;
    height: 60px;
}

.data-card-chart--line svg {
    width: 100%;
    height: 100%;
}

.card-line {
    fill: none;
    stroke: #9E4A5A;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-bar {
    flex: 1;
    background: linear-gradient(180deg, #9E4A5A, #6B1D2A);
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.data-card:hover .mini-bar {
    opacity: 1;
}

.data-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #6B1D2A;
    margin-bottom: 0.5rem;
}

.data-card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #2A2A2A;
    line-height: 1.6;
    opacity: 0.8;
}

/* --- Holo Grid --- */
.holo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 700px;
}

.holo-cell {
    background: rgba(245, 213, 200, 0.6);
    border: 1px solid rgba(196, 168, 76, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.holo-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C4A84C, #9E4A5A, #6B1D2A);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.holo-cell:hover {
    border-color: rgba(196, 168, 76, 0.6);
    background: rgba(245, 213, 200, 0.85);
}

.holo-cell:hover::before {
    opacity: 1;
}

.holo-cell-number {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 2rem;
    color: #C4A84C;
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.holo-cell-label {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #6B1D2A;
    margin-bottom: 0.4rem;
}

.holo-cell-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #2A2A2A;
    line-height: 1.6;
    opacity: 0.75;
}

/* --- Summit Metric --- */
.summit-metric {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem;
    background: rgba(245, 213, 200, 0.5);
    border: 2px solid #C4A84C;
    border-radius: 16px;
}

.summit-metric-value {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #6B1D2A;
    line-height: 1;
}

.summit-metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #9E4A5A;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}

/* --- Decorative Data-Viz Bars --- */
.dataviz-bars {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    z-index: 4;
    pointer-events: none;
}

.dataviz-bars--hero {
    right: 5%;
    height: 40%;
    width: 15%;
}

.dataviz-bars--summit {
    left: 5%;
    height: 50%;
    width: 18%;
}

.dataviz-bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(196, 168, 76, 0.25), rgba(107, 29, 42, 0.15));
    border-radius: 3px 3px 0 0;
    transition: height 1s ease-in-out;
}

/* --- Decorative Data-Viz Dots --- */
.dataviz-dots {
    position: absolute;
    bottom: 8%;
    left: 5%;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 250px;
    z-index: 4;
    pointer-events: none;
}

.dataviz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C4A84C;
    opacity: 0.2;
    animation: dotPulse 3s ease-in-out infinite;
}

.dataviz-dot:nth-child(2n) {
    background: #9E4A5A;
    animation-delay: 0.5s;
}

.dataviz-dot:nth-child(3n) {
    background: #6B1D2A;
    animation-delay: 1s;
}

.dataviz-dot:nth-child(4n) {
    width: 12px;
    height: 12px;
    animation-delay: 1.5s;
}

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

/* --- Mountain Dividers --- */
.mountain-divider {
    position: relative;
    flex: 0 0 80px;
    width: 80px;
    height: 100vh;
    z-index: 10;
}

.mountain-divider--1 {
    background: #FFF5EB;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        40% 85%,
        20% 70%,
        50% 55%,
        30% 40%,
        60% 25%,
        40% 10%,
        50% 0%
    );
    background: linear-gradient(180deg, #6B1D2A 0%, #9E4A5A 50%, #F5D5C8 100%);
    opacity: 0.3;
}

.mountain-divider--2 {
    background: linear-gradient(180deg, #9E4A5A 0%, #C4A84C 50%, #FFF5EB 100%);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        30% 80%,
        50% 65%,
        25% 50%,
        55% 35%,
        35% 20%,
        60% 5%,
        45% 0%
    );
    opacity: 0.25;
}

.mountain-divider--3 {
    background: linear-gradient(180deg, #C4A84C 0%, #6B1D2A 50%, #9E4A5A 100%);
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        45% 88%,
        20% 72%,
        55% 58%,
        25% 42%,
        50% 28%,
        35% 12%,
        55% 0%
    );
    opacity: 0.2;
}

/* --- Navigation Dots --- */
.panel-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(255, 245, 235, 0.85);
    border-radius: 30px;
    border: 1px solid rgba(107, 29, 42, 0.15);
    backdrop-filter: blur(8px);
}

.panel-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #9E4A5A;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.panel-nav-dot:hover {
    background: #F5D5C8;
    transform: scale(1.2);
}

.panel-nav-dot.active {
    background: #6B1D2A;
    border-color: #6B1D2A;
    transform: scale(1.15);
}

/* --- Panel-Specific Backgrounds --- */
.panel-hero {
    background: #FFF5EB;
}

.panel-landscape {
    background: linear-gradient(135deg, #FFF5EB 0%, #F5D5C8 100%);
}

.panel-analysis {
    background: linear-gradient(225deg, #FFF5EB 0%, rgba(245, 213, 200, 0.5) 100%);
}

.panel-summit {
    background: linear-gradient(180deg, #FFF5EB 0%, #F5D5C8 60%, rgba(196, 168, 76, 0.1) 100%);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .panel-content {
        padding: 1.5rem 2rem;
        max-width: 90vw;
    }

    .data-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .data-card {
        max-width: 100%;
    }

    .holo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dataviz-bars--hero,
    .dataviz-bars--summit {
        width: 20%;
        height: 30%;
    }

    .mountain-divider {
        flex: 0 0 40px;
        width: 40px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .panel-content {
        padding: 1rem 1.25rem;
    }

    .summit-metric {
        padding: 1.5rem 2rem;
    }

    .dataviz-bars--hero,
    .dataviz-bars--summit {
        display: none;
    }
}
