/*
 * Galaxy Stage — Slide Engine CSS
 *
 * Reusable layout and component styles for presentation decks.
 * Each deck imports this stylesheet and only defines its own
 * customizations (cover backgrounds, canvas styles, color schemes).
 *
 * Usage:
 *   <link rel="stylesheet" href="/slides/engine/engine.css">
 */

/* ============================================================================
 * Base / Reset
 * ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #f5f5f7;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.1s ease;
}

/* ============================================================================
 * Navigation — Fixed top frosted-glass nav bar
 * ============================================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f5f5f7;
}

/* ============================================================================
 * Section — Full-viewport slide section
 * ============================================================================ */

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 50px;
    position: relative;
    overflow: hidden;
}

/* ============================================================================
 * Section Header — Label + Title combo
 * ============================================================================ */

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.9rem;
    color: #00d4aa;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

/* ============================================================================
 * Stat Cards — Data display grid
 * ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.1);
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #86868b;
}

/* ============================================================================
 * Stats Section — Section-level wrapper for stat cards
 * ============================================================================ */

.stats-section {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 40px;
}

.stats-section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #86868b;
}

/* ============================================================================
 * Highlight Cards — Feature / emphasis cards
 * ============================================================================ */

.highlights-section {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 80px;
}

.highlights-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: #00d4aa;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 168, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.15);
}

.highlight-icon {
    margin-bottom: 20px;
}

.highlight-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.highlight-card h4 {
    font-size: 1.3rem;
    color: #00d4aa;
    margin-bottom: 15px;
}

.highlight-card p {
    color: #a1a1a6;
    line-height: 1.7;
}

/* Negative / warning variant */
.highlight-card.bad {
    border-color: #d4a574;
    background: linear-gradient(145deg, #3d3530, #2a2520);
}

.highlight-card.bad .highlight-icon {
    color: #e8a860;
}

.highlight-card.bad .highlight-icon svg {
    stroke-width: 1.8;
}

.highlight-card.bad h4 {
    color: #f0c090;
}

.highlight-card.bad p {
    color: #c0a890;
}

/* ============================================================================
 * Change Items — Icon + text alternating layout
 * ============================================================================ */

.changes-content {
    max-width: 1000px;
    width: 100%;
}

.change-item {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
}

.change-item:nth-child(even) {
    flex-direction: row-reverse;
}

.change-icon {
    flex-shrink: 0;
}

.change-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.change-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1e3a5f;
}

.change-text p {
    font-size: 1.1rem;
    color: #2c4a6e;
    line-height: 1.8;
}

/* ============================================================================
 * Problem Cards — Reflection / issue display
 * ============================================================================ */

.problems-section {
    margin-top: 100px;
    max-width: 1000px;
    width: 100%;
}

.problems-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #ff6b6b;
}

.problem-card {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
}

.problem-card h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.problem-card p {
    color: #a1a1a6;
}

/* ============================================================================
 * Data Links — Navigation pills to analysis pages
 * ============================================================================ */

.data-links {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.data-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    color: #00d4aa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.data-link:hover {
    background: rgba(0, 212, 170, 0.2);
    transform: scale(1.05);
}

/* ============================================================================
 * Products — Product showcase grid
 * ============================================================================ */

.products-section {
    max-width: 900px;
    width: 100%;
    margin-bottom: 60px;
}

.products-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #00d4aa;
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-card {
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 170, 0.3));
}

.product-name {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f5f7;
}

.product-desc {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #86868b;
}

/* ============================================================================
 * Review Hero — Full-width hero image
 * ============================================================================ */

.review-hero {
    width: 100%;
    max-width: 900px;
    margin-bottom: 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.review-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
 * Scroll Indicator — "Scroll down" hint at cover bottom
 * ============================================================================ */

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: #86868b;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid #86868b;
    border-bottom: 2px solid #86868b;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(10px) rotate(45deg); }
    60% { transform: translateY(5px) rotate(45deg); }
}

/* ============================================================================
 * Outlook — Final section with CTA
 * ============================================================================ */

.outlook-content {
    text-align: center;
    max-width: 800px;
}

.outlook-emoji {
    margin-bottom: 30px;
}

.outlook-emoji svg {
    width: 120px;
    height: 120px;
    stroke-width: 1.2;
}

.outlook-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 30px;
}

.outlook-text {
    font-size: 1.3rem;
    color: #a1a1a6;
    line-height: 2;
}

.outlook-cta {
    margin-top: 50px;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(90deg, #00d4aa, #00a8ff);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

/* ============================================================================
 * Footer
 * ============================================================================ */

.footer {
    display: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a1a1a6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00d4aa;
}

.footer-copyright {
    color: #86868b;
    font-size: 0.9rem;
}

/* ============================================================================
 * Pin Spacer — ScrollTrigger pin support
 * ============================================================================ */

.pin-spacer {
    pointer-events: none;
}

.pin-spacer > * {
    pointer-events: auto;
}

/* ============================================================================
 * Responsive
 * ============================================================================ */

@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 80px 20px;
    }

    .change-item,
    .change-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

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