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

body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
}

/* --- Fullscreen Geometric Canvas Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    pointer-events: none; 
    display: block;
    opacity: 0; /* Handled smoothly via main setup timeline engine transitions */
    will-change: opacity;
}

/* --- Typography & Custom Headers --- */
h1, h2, h3 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* --- Layout Container --- */
.container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6.5rem; 
    z-index: 1;  
}

/* --- Header Section (Top Left Aligned) --- */
header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.5rem;
    margin-top: 1rem;
}

.logo-container {
    display: block;
    max-width: 160px;
    height: auto;
    opacity: 0;
    transform: translateY(15px);
    will-change: opacity, transform;
}

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

.hero-title {
    font-size: clamp(2.3rem, 5.5vw, 4.2rem); 
    line-height: 1.1;                        
    letter-spacing: -0.02em;
    font-weight: 400;
    text-align: left;
    max-width: 800px;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    letter-spacing: -0.01em;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

#dynamic-job-title {
    color: #00FFCC;
    font-weight: 500;
    border-right: 2px solid #00FFCC;
    padding-right: 4px;
    white-space: nowrap;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00FFCC; }
}

/* --- Hero CTA Button Block Styling --- */
.hero-cta-container {
    margin-top: -1.5rem; /* Pulls button nicely tight against the hero header design */
    opacity: 0;
    transform: translateY(15px);
    will-change: opacity, transform;
}

/* --- Typewriter Character Tokens --- */
.char-token {
    display: inline-block;
    white-space: pre-wrap; 
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.char-token.revealed {
    opacity: 1;
}

/* --- Integrations Card & Infinite Logo Slider Loop --- */
.integrations-card {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
    /* Initial Hidden Loading State Contexts */
    opacity: 0;
    transform: translateY(25px);
    will-change: opacity, transform;
}

.integrations-card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* --- Optimized Marquee Layout & Spacing Configuration --- */
.ticker-viewport {
    width: 100%;
    overflow: hidden;
    padding: 0.5rem 0;     
    position: relative;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.logo-item {
    display: inline-flex;  
    align-items: center;   
    gap: 8px;              
    margin: 0;
    padding: 0 1.25rem;    
}

.logo-item img {
    height: 24px;          
    width: auto;           
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

/* --- Responsive Desktop Adjustments --- */
@media (min-width: 768px) {
    .ticker-viewport {
        padding: 0.35rem 0; 
    }

    .logo-item {
        padding: 0 2.5rem;  
        gap: 12px;          
    }

    .logo-item img {
        height: 32px;      
    }

    .logo-item span {
        font-size: 0.95rem; 
    }
}

/* --- Interactive Focus Transitions --- */
.logo-item:hover img {
    opacity: 1.0;
}

.logo-item:hover span {
    color: #FFFFFF;
}

/* --- Seamless Infinitum Core Animation --- */
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Content Blocks & Entry Classes --- */
.content-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
    /* Initial Hidden Loading State Contexts */
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.block-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block-text h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

.block-text p {
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.95rem;
    max-width: 900px;
}

/* --- Interactive Links & Hover States --- */
.green-link {
    color: #00FFCC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.green-link:hover, .green-link:focus {
    color: #FFFFFF;
    text-decoration: underline;
    outline: none;
}

/* --- Universal 16:9 Widescreen Box with Frost Glass Effect --- */
.media-showcase {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: shimmer-load 2.5s infinite linear;
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

@keyframes shimmer-load {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.media-showcase img, .media-showcase video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Call To Action Section --- */
.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 0;
    margin-top: 2rem;
    
    /* Initial Hidden Loading State Contexts */
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
}

.cta-title {
    font-size: clamp(2.3rem, 5.5vw, 4.2rem); 
    line-height: 1.1;                        
    letter-spacing: -0.02em;
    font-weight: 400;
    max-width: 700px;
}

.cta-button {
    background-color: #FFFFFF;
    color: #000000;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #00FFCC;
    transform: scale(1.03);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 0 1rem 0;
    color: #444446;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* --- Premium Engine Cinematic Transition Trigger Token --- */
.cinematic-reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --- CTA Block Actions & Modal Overlay --- */
.block-actions {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.action-btn, .action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #00FFCC;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.action-btn:hover, .action-link:hover {
    color: #FFFFFF;
}

.action-btn .btn-icon, .action-link .btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.action-btn:hover .btn-icon {
    transform: scale(1.15);
}

.action-link:hover .btn-icon {
    transform: translateX(3px);
}

.action-separator {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
    user-select: none;
}



/* --- Mobile Optimization Adjustments --- */
@media (max-width: 768px) {
    body { padding: 1.5rem 1rem; }
    .container { gap: 4.5rem; }
    header { gap: 2.5rem; }
    .logo-container { max-width: 130px; }
    .hero-cta-container { margin-top: -1rem; }
    .integrations-card { border-radius: 24px; padding: 1.5rem; gap: 1rem; }
    .ticker-track { gap: 3rem; }
    .media-showcase { border-radius: 24px; }
    .cta-section { gap: 2rem; }
}