:root {
    --color-marketing: #228B22;
    /* Forest Green */
    --bg-color: #000000;
    /* Pure black background */
    --text-color: #f0f0f0;
    --text-secondary: #a0a0a0;

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spotlight Colors */
    --spotlight-color: #fffbe6;
    --spotlight-warm: #f5d742;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: exclusion;
}

.header-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.header-branding .brand-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: -0.2rem;
}

.header-branding .logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-color);
}

/* Main Content */
.marketing-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-top: 150px;
    min-height: 100vh;
    overflow: hidden;
}

/* Background Blob - SMALL, only behind title area */
.bg-blob-container {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 300px;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.marketing-blob {
    width: 400px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-marketing);
    border-radius: 50%;
}

/* Content Wrapper */
.content-wrapper {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    z-index: 10;
    position: relative;
}

.marketing-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    transition: text-shadow 0.5s ease;
}

.marketing-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    transition: text-shadow 0.5s ease;
}

/* Text Shadows when Spotlight Active */
.spotlight-active .marketing-title {
    text-shadow:
        4px 8px 15px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 251, 230, 0.4);
}

.spotlight-active .marketing-subtitle {
    text-shadow:
        3px 6px 10px rgba(0, 0, 0, 0.8);
}

/* Trigger Zone - Smaller area below description */
.trigger-zone {
    width: 300px;
    height: 150px;
    margin: 0 auto;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spotlight Void Text - Hidden until lit */
.spotlight-void-text {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 5vw, 4.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    /* Hidden by default */
    color: transparent;
    opacity: 0;

    position: relative;
    z-index: 50;

    transition: all 0.8s ease;
}

/* When spotlight is active, reveal Spotlight text as void */
.spotlight-active .spotlight-void-text {
    opacity: 1;
    color: #000000;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
}

/* Spotlight Overlay */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-active .spotlight-overlay {
    opacity: 1;
}

/* Spotlight Cone - Tilted higher to hit title/description */
.spotlight-cone {
    position: absolute;
    bottom: -50%;
    left: -30%;
    width: 200vw;
    height: 200vh;

    /* Conic gradient for spotlight cone + Bottom Glow */
    background:
        radial-gradient(circle at 0% 100%, rgba(255, 251, 230, 0.4) 0%, transparent 15%),
        conic-gradient(from calc(var(--spotlight-angle, 22.5deg) - (var(--spotlight-width, 40deg) / 2)) at 0% 100%,
            transparent 0deg,
            rgba(245, 215, 66, 0.6) calc(var(--spotlight-width, 40deg) * 0.125),
            rgba(255, 251, 230, 0.95) calc(var(--spotlight-width, 40deg) * 0.375),
            rgba(255, 251, 230, 0.95) calc(var(--spotlight-width, 40deg) * 0.625),
            rgba(245, 215, 66, 0.6) calc(var(--spotlight-width, 40deg) * 0.875),
            transparent var(--spotlight-width, 40deg),
            transparent 360deg);

    transform-origin: 0% 100%;
    animation: none;
}

/* Flickering Animation */
@keyframes flicker {

    0%,
    100% {
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    10% {
        opacity: 0.2;
    }

    15% {
        opacity: 0.9;
    }

    20% {
        opacity: 0.1;
    }

    25% {
        opacity: 0.7;
    }

    30% {
        opacity: 0.3;
    }

    35% {
        opacity: 0.85;
    }

    40% {
        opacity: 0.4;
    }

    45% {
        opacity: 0.95;
    }

    50% {
        opacity: 0.6;
    }

    55% {
        opacity: 1;
    }

    60%,
    100% {
        opacity: 1;
    }
}

.spotlight-flickering .spotlight-cone {
    animation: flicker 1.5s ease-out forwards;
}

/* Steady Glow after flicker */
.spotlight-steady .spotlight-cone {
    opacity: 1;
    animation: spotlight-sway 8s ease-in-out infinite;
}

@keyframes spotlight-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

/* Dust Canvas - Will be clipped via JS to spotlight cone */
.dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 1s ease;
}

/* Contrast Fixes for Spotlight */
.spotlight-active .marketing-title {
    color: #000000;
    text-shadow: none;
    transition: color 0.5s ease;
}

.spotlight-active .marketing-subtitle {
    color: #1a1a1a;
    /* Dark gray for distinction */
    text-shadow: none;
    transition: color 0.5s ease;
}

.spotlight-active .header-branding .logo,
.spotlight-active .header-branding .brand-sub {
    color: #000000 !important;
    opacity: 1;
    transition: color 0.5s ease;
}

.spotlight-active .dust-canvas {
    opacity: 1;
}

/* Footer */
.sub-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: auto;
    position: relative;
    z-index: 20;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .marketing-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .spotlight-void-text {
        font-size: clamp(1.5rem, 10vw, 3rem);
    }

    .trigger-zone {
        width: 200px;
        height: 100px;
    }

    .marketing-blob {
        width: 300px;
        height: 150px;
    }
}