/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* 
   GLITCH & DUOTONE BACKGROUND
   We use an image placeholder colored with the duotone SVG filter.
   Since we don't have the specific image, we use an unsplash placeholder 
   with an industrial/urban feel to mimic the mockup.
*/
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: url(#duotone);
    background-color: #111;
}

/* Video Background */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* VIDEO GLITCH LAYERS */

/* Glitch layer 1 — top band */
.bg-video-glitch-1 {
    clip-path: inset(8% 0 82% 0);
    opacity: 0.9;
    animation: video-glitch-1 3.5s infinite steps(1);
}

/* Glitch layer 2 — middle band */
.bg-video-glitch-2 {
    clip-path: inset(42% 0 43% 0);
    opacity: 0.85;
    animation: video-glitch-2 2.8s infinite steps(1);
}

/* Glitch layer 3 — lower band */
.bg-video-glitch-3 {
    clip-path: inset(72% 0 8% 0);
    opacity: 0.9;
    animation: video-glitch-3 4.2s infinite steps(1);
}

@keyframes video-glitch-1 {

    0%,
    85% {
        transform: translate(-50%, -50%);
        clip-path: inset(8% 0 82% 0);
    }

    86% {
        transform: translate(calc(-50% - 18px), -50%);
        clip-path: inset(6% 0 84% 0);
    }

    88% {
        transform: translate(calc(-50% + 12px), -50%);
        clip-path: inset(10% 0 80% 0);
    }

    90% {
        transform: translate(calc(-50% - 8px), -50%);
    }

    92%,
    100% {
        transform: translate(-50%, -50%);
        clip-path: inset(8% 0 82% 0);
    }
}

@keyframes video-glitch-2 {

    0%,
    78% {
        transform: translate(-50%, -50%);
        clip-path: inset(42% 0 43% 0);
    }

    79% {
        transform: translate(calc(-50% + 20px), -50%);
        clip-path: inset(40% 0 45% 0);
    }

    81% {
        transform: translate(calc(-50% - 14px), -50%);
        clip-path: inset(43% 0 42% 0);
    }

    83% {
        transform: translate(calc(-50% + 6px), -50%);
    }

    85%,
    100% {
        transform: translate(-50%, -50%);
        clip-path: inset(42% 0 43% 0);
    }
}

@keyframes video-glitch-3 {

    0%,
    90% {
        transform: translate(-50%, -50%);
        clip-path: inset(72% 0 8% 0);
    }

    91% {
        transform: translate(calc(-50% - 22px), -50%);
        clip-path: inset(70% 0 10% 0);
    }

    93% {
        transform: translate(calc(-50% + 10px), -50%);
        clip-path: inset(74% 0 6% 0);
    }

    95% {
        transform: translate(calc(-50% - 5px), -50%);
    }

    97%,
    100% {
        transform: translate(-50%, -50%);
        clip-path: inset(72% 0 8% 0);
    }
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-15px);
    }

    80% {
        transform: translateX(5px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-5px);
    }
}

@keyframes glitch-3 {

    0%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-8px);
    }

    70% {
        transform: translateX(12px);
    }
}


/* HEADER & LOGO */
.header {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo-img {
    width: 360px;
    height: auto;
}

/* MAIN CONTENT */
.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

.headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 8vw, 7.5rem);
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    letter-spacing: 2px;
    line-height: 1.1;
}

.subheadline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-top: 10px;
    margin-bottom: 40px;
}

/* SUBSCRIBE FORM */
.subscribe-form {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    background: rgba(255, 120, 0, 0.4);
    /* Translucent orange/brown background */
    border: none;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-form button {
    background: #ff8c00;
    /* Solid orange */
    border: none;
    padding: 0 30px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.subscribe-form button:hover {
    background: #e67e00;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header {
        top: 20px;
        right: 20px;
    }

    .valvula-text {
        font-size: 2.5rem;
    }

    .valvula-text {
        font-size: 2.5rem;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 10px;
        max-width: 300px;
    }

    .subscribe-form button {
        padding: 15px;
    }

    .headline {
        white-space: normal;
        line-height: 1;
    }
}