/* ============================================
   scire.bar -- Y2K-Futurism Data Crystal
   ============================================ */

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

:root {
    --soft-amber: #FFF5E0;
    --deep-bronze: #3A2A10;
    --warm-brown: #6A5030;
    --honey-gold: #E8A830;
    --coral-red: #E86A4A;
    --cream: #FFF8EC;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--warm-brown);
    background: var(--soft-amber);
}

/* --- Horizontal Scroll Container --- */
.scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    height: 100vh;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

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

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    text-align: center;
}

/* --- Typography --- */
h1, h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--deep-bronze);
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    background: linear-gradient(135deg, var(--deep-bronze), var(--honey-gold), var(--coral-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--deep-bronze);
    font-size: 1.15rem;
    margin-bottom: 0.3em;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--honey-gold);
    margin-bottom: 0.5em;
}

.sub {
    font-size: 1.05rem;
    color: var(--warm-brown);
    max-width: 480px;
    margin: 0 auto 1.5em;
}

.body-text {
    font-size: 1.05rem;
    color: var(--warm-brown);
    margin-bottom: 1.5em;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.quote {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--honey-gold);
    margin-top: 1.5em;
}

/* --- Stagger Animation --- */
.stagger {
    opacity: 0;
    transform: translateY(24px);
    animation: staggerIn 0.6s ease-out forwards;
    animation-delay: calc(var(--i) * 0.12s);
}

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

/* --- Crystalline Motifs --- */
.crystal {
    position: absolute;
    z-index: 1;
    opacity: 0.18;
    animation: crystalShimmer 6s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.8s);
}

.crystal-sm {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--honey-gold), var(--coral-red));
    top: 15%;
    right: 12%;
}

.crystal-md {
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(225deg, var(--coral-red), var(--honey-gold), var(--cream));
    bottom: 20%;
    left: 8%;
}

.crystal-lg {
    width: 200px;
    height: 200px;
    clip-path: polygon(50% 0%, 85% 25%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 15% 25%);
    background: linear-gradient(160deg, var(--honey-gold) 0%, var(--cream) 40%, var(--coral-red) 100%);
    top: 10%;
    left: 5%;
}

.crystal-xl {
    width: 300px;
    height: 300px;
    clip-path: polygon(50% 0%, 80% 20%, 100% 50%, 80% 80%, 50% 100%, 20% 80%, 0% 50%, 20% 20%);
    background: linear-gradient(135deg, var(--honey-gold) 0%, var(--soft-amber) 30%, var(--coral-red) 60%, var(--honey-gold) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
}

.crystal-rotate {
    animation: crystalRotate 20s linear infinite;
}

@keyframes crystalShimmer {
    0% {
        opacity: 0.12;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.22;
    }
    100% {
        opacity: 0.16;
        filter: hue-rotate(15deg);
    }
}

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

/* --- Panel Backgrounds --- */
.panel-hero {
    background: linear-gradient(135deg, var(--soft-amber) 0%, var(--cream) 60%, #FFE8B8 100%);
}

.panel-insights {
    background: linear-gradient(225deg, var(--cream) 0%, var(--soft-amber) 50%, #FFECC8 100%);
}

.panel-prism {
    background: linear-gradient(180deg, var(--soft-amber) 0%, #FFE4B0 50%, var(--cream) 100%);
}

.panel-core {
    background: linear-gradient(315deg, #FFE8B8 0%, var(--soft-amber) 40%, var(--cream) 100%);
}

.panel-terminus {
    background: linear-gradient(135deg, var(--cream) 0%, var(--soft-amber) 50%, #FFDFAA 100%);
}

/* --- Scroll Hint --- */
.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1.5em;
    font-size: 0.9rem;
    color: var(--honey-gold);
    font-weight: 500;
}

.arrow-right {
    display: inline-block;
    animation: arrowPulse 1.5s ease-in-out infinite;
    font-size: 1.3rem;
}

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

/* --- Cards --- */
.card-grid {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5em;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: var(--cream);
    border: 1px solid rgba(232, 168, 48, 0.25);
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    width: 190px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(58, 42, 16, 0.1);
}

.card p {
    font-size: 0.88rem;
    color: var(--warm-brown);
    line-height: 1.5;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Mini Data-Viz in Cards --- */
.mini-pie {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        var(--honey-gold) 0% 35%,
        var(--coral-red) 35% 65%,
        var(--warm-brown) 65% 85%,
        var(--cream) 85% 100%
    );
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.mini-bars span {
    width: 10px;
    height: var(--h);
    background: var(--honey-gold);
    border-radius: 2px 2px 0 0;
    transition: height 0.4s ease;
}

.mini-bars span:nth-child(2) {
    background: var(--coral-red);
}

.mini-diamond {
    width: 36px;
    height: 36px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--honey-gold), var(--coral-red));
}

/* --- Data-Viz Decorations --- */
.data-viz-decoration {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
}

.deco-pie {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        var(--honey-gold) 0% 30%,
        var(--coral-red) 30% 55%,
        var(--deep-bronze) 55% 75%,
        var(--cream) 75% 100%
    );
    bottom: 8%;
    right: 10%;
}

.deco-pie-alt {
    top: 10%;
    left: 6%;
    bottom: auto;
    right: auto;
    width: 100px;
    height: 100px;
}

.deco-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    bottom: 12%;
    left: 8%;
    height: 120px;
}

.deco-bars .bar {
    width: 14px;
    height: 0;
    background: var(--honey-gold);
    border-radius: 3px 3px 0 0;
    animation: barGrow 0.8s ease-out forwards;
    animation-delay: calc(var(--i) * 0.15s);
}

.deco-bars .bar:nth-child(even) {
    background: var(--coral-red);
}

.deco-bars-bottom {
    bottom: 6%;
    right: 8%;
    left: auto;
}

@keyframes barGrow {
    to {
        height: var(--h);
    }
}

/* --- Prism Display --- */
.prism-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 2em 0;
}

.prism-facet {
    width: 50px;
    height: 80px;
    clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
    background: var(--facet-color);
    opacity: 0.85;
    animation: facetGlow 3s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.3s);
    transition: transform 0.3s ease;
}

.prism-facet:hover {
    transform: scale(1.15);
}

@keyframes facetGlow {
    0% { opacity: 0.6; filter: brightness(0.9); }
    100% { opacity: 1; filter: brightness(1.2); }
}

/* --- Stats Row --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1em;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--honey-gold);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--warm-brown);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Core Visual --- */
.core-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2em auto;
}

.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--honey-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-outer {
    width: 200px;
    height: 200px;
    border-color: rgba(232, 168, 48, 0.3);
    animation-delay: 0s;
}

.ring-middle {
    width: 140px;
    height: 140px;
    border-color: rgba(232, 106, 74, 0.4);
    animation-delay: 0.5s;
}

.ring-inner {
    width: 80px;
    height: 80px;
    border-color: rgba(232, 168, 48, 0.6);
    animation-delay: 1s;
}

.core-center {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--honey-gold), var(--coral-red));
    animation: coreSpin 8s linear infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes coreSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- CTA Buttons --- */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2em;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8em 2em;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.cta-primary {
    background: linear-gradient(135deg, var(--honey-gold), var(--coral-red));
    color: #fff;
    box-shadow: 0 4px 16px rgba(232, 168, 48, 0.35);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 168, 48, 0.5);
}

.cta-secondary {
    background: transparent;
    color: var(--honey-gold);
    border: 2px solid var(--honey-gold);
}

.cta-secondary:hover {
    background: var(--honey-gold);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Footer Bar --- */
.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(106, 80, 48, 0.2);
    font-size: 0.82rem;
    color: var(--warm-brown);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Panel Navigation Dots --- */
.panel-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 100;
    background: rgba(255, 248, 236, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(232, 168, 48, 0.2);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--honey-gold);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.nav-dot.active {
    background: var(--honey-gold);
    transform: scale(1.25);
}

.nav-dot:hover {
    background: var(--coral-red);
    border-color: var(--coral-red);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .card-grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 85%;
        max-width: 280px;
    }

    .stats-row {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .prism-facet {
        width: 36px;
        height: 60px;
    }

    .footer-bar {
        flex-direction: column;
        gap: 0.3em;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .crystal-lg,
    .crystal-xl {
        display: none;
    }
}
