* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar for all browsers */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory; /* Enables slideshow-like snapping */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: #000000;
    color: #ffffff;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Removed noise texture body::after block */

/* Vignette effect to darken corners and focus center */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 9998;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.sticky-header.visible {
    transform: translateY(0);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 30px;
    width: auto;
}

.header-title {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000000;
}

#fgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Layer 2: Above background, below content */
    pointer-events: none; /* Allows clicking through to text */
    background: transparent;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20; /* Layer 3: Above particles */
}

.logo-container {
    animation: fadeIn 0s ease-in-out;
    position: relative;
    max-width: 125px;
    width: 100%;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    background: rgba(255, 255, 255, 1.0);
    mask-image: url('logo.png');
    -webkit-mask-image: url('logo.png');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    box-shadow: 
        0 8px 32px rgba(0, 200, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.content {
    position: relative;
    z-index: auto; /* Allow children to interleave with fixed elements */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: transparent; /* Moved to .content-bg */
    /* backdrop-filter moved to .content-bg */
}

.content-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(3px);
    z-index: 1; /* Layer 1: Below FG particles */
    pointer-events: none;
}

section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    scroll-snap-align: start; /* Snaps section to top of viewport */
    scroll-snap-stop: always; /* Forces stop at each section */
    z-index: 20; /* Layer 3: Above FG particles */
}

.private-disclaimer {
    text-align: center;
    justify-content: center;
}

.disclaimer-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ff3333;
    color: #ff3333;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    background: rgba(255, 51, 51, 0.1);
}

.section-title {
    font-size: 6rem;
    line-height: 1.15; /* Increased from 1.03 to prevent clipping */
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    padding-bottom: 0.1em; /* Added space for descenders */
    max-width: 1200px;
    text-align: center;
    /* Add a subtle glow to section titles for "cool" factor */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.section-desc {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #888;
    max-width: 700px;
    text-align: center;
    font-weight: 300;
}

.subtitle {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #00c8ff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Left Aligned Sections: Private, PEAD, TradeLine, Risk */
.private-disclaimer, .pead-section, .tradeline-section, .risk-section {
    align-items: flex-start;
    padding-left: 10%;
}

.section-title, .private-disclaimer .section-desc,
.pead-section .subtitle, .pead-section .section-title, .pead-section .section-desc,
.tradeline-section .subtitle, .tradeline-section .section-title, .tradeline-section .section-desc,
.risk-section .subtitle, .risk-section .section-title, .risk-section .section-desc {
    text-align: left;
}

/* Right Aligned Sections: Methodology, Pipeline, Engine, Markets */
.methodology, .pipeline-section, .engine-section, .markets-section {
    align-items: flex-end;
    padding-right: 10%;
}

.methodology .subtitle, .methodology .section-title, .methodology .section-desc,
.pipeline-section .subtitle, .pipeline-section .section-title, .pipeline-section .section-desc,
.engine-section .subtitle, .engine-section .section-title, .engine-section .section-desc,
.markets-section .subtitle, .markets-section .section-title, .markets-section .section-desc {
    text-align: right;
}

.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 150px;
    padding: 0 40px;
}

.grid-item h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.grid-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #a0a0a0;
}

.models-container {
    width: 100%;
    max-width: 1200px;
}

.models-title {
    font-size: 4rem;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
    letter-spacing: -1px;
}

.model-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.model-card:hover {
    border-color: rgba(0, 200, 255, 0.3);
    transform: translateY(-5px);
}

.model-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    margin-right: 10px;
    box-shadow: 0 0 10px #00ff88;
}

.status-dot.blink {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
    animation: blink 2s infinite;
}

.status-text {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #888;
}

.model-name {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.model-specs {
    display: flex;
    gap: 40px;
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec .label {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.spec .value {
    font-size: 1.5rem;
    color: #00c8ff;
    font-family: 'Courier New', monospace;
}

.viz-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, #00c8ff, transparent);
    transform: translateX(-100%);
    animation: scan 3s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    opacity: 0.5;
}

.training-model .viz-line {
    background: linear-gradient(90deg, transparent, #ffaa00, transparent);
    animation-duration: 2s;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    opacity: 0.6;
    animation: bounce 2s infinite, fadeIn 0.0s ease-in-out;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.scroll-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 4.5rem; /* Smaller than desktop (6rem), bigger than mobile */
    }

    .section-desc {
        font-size: 1.3rem; /* Smaller than desktop (1.5rem) */
        max-width: 800px;
    }

    .models-title {
        font-size: 3rem;
    }

    .model-name {
        font-size: 2rem;
    }
    
    /* Adjust padding for tablet layout */
    section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        max-width: 125px;
    }
    
    .logo {
        max-width: 250px;
    }

    /* Push content to bottom on mobile to make room for particles at top */
    section {
        justify-content: flex-end;
        padding-bottom: 120px;
    }

    /* Keep Hero centered or slightly adjusted */
    .hero {
        justify-content: center;
        padding-bottom: 0;
    }
    
    .text-container p {
        font-size: 1rem;
    }
    
    /* Reduce section description size on mobile */
    .section-desc {
        font-size: 1.3rem;
        line-height: 1.4;
        max-width: 90%; /* Ensure it doesn't touch edges */
    }
    
    .badge {
        max-width: 150px;
    }
    
    .scroll-arrow {
        bottom: 40px;
        right: 50%;
        transform: translateX(50%);
    }
    
    @keyframes bounce {
        0%, 100% {
            transform: translateX(50%) translateY(0);
        }
        50% {
            transform: translateX(50%) translateY(10px);
        }
    }
    
    .text-container h2 {
        font-size: 3rem;
    }
    
    .grid-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .model-name {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .private-disclaimer, .methodology, .pead-section, .pipeline-section, .tradeline-section, .engine-section, .markets-section, .risk-section {
        align-items: center;
        padding: 20px;
        text-align: center;
        padding-bottom: 100px;

    }
    
    .private-disclaimer .section-title, .private-disclaimer .section-desc,
    .methodology .subtitle, .methodology .section-title, .methodology .section-desc,
    .pead-section .subtitle, .pead-section .section-title, .pead-section .section-desc,
    .pipeline-section .subtitle, .pipeline-section .section-title, .pipeline-section .section-desc,
    .tradeline-section .subtitle, .tradeline-section .section-title, .tradeline-section .section-desc,
    .engine-section .subtitle, .engine-section .section-title, .engine-section .section-desc,
    .risk-section .subtitle, .risk-section .section-title, .risk-section .section-desc,
    .markets-section .subtitle, .markets-section .section-title, .markets-section .section-desc {
        text-align: center;
    }
    
    .risk-section, .tradeline-section {
        padding: 20px;
        align-items: center;
        padding-bottom: 100px;
    }
    .models-section {
        padding-bottom: 80px;
    }
}

footer {
    display: none; /* Hide old footer */
}

/* Final Slide Styles */
.final-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.final-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.final-title {
    font-size: 3rem;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
    letter-spacing: -1px;
    color: #fff;
}

.final-disclaimer {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    text-align: center;
}

.impressum-btn {
    color: #444;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impressum-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
