* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.035) 0px,
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 10;
}

#main-logo {
    height: 34px;
}

.status {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.15em;
    text-decoration: none;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Hero - alineado a la izquierda para no tapar el rostro */
.hero {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 4rem 4rem;
}

.hero-content {
    width: 45%;
    max-width: 520px;
}

.hero-prefix {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    cursor: default;
}

.title-word {
    display: block;
    width: fit-content;
    white-space: nowrap;
}

.hero-sub {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
    min-height: 1.4em;
    color: rgba(255,255,255,0.7);
    max-width: none;
    white-space: nowrap;
    margin-bottom: 3rem;
}

.type-cursor {
    display: inline-block;
    width: 0.55em;
    height: 0.9em;
    margin-left: 0.15em;
    vertical-align: -0.1em;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
    animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* Capabilities */
.capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.cap-item {
    white-space: nowrap;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.85);
    cursor: default;
}

/* Contact: bottom-right viewfinder frame */
.contact-frame {
    position: fixed;
    right: 4rem;
    bottom: 3rem;
    z-index: 6;
    padding: 1.1rem 1.6rem;
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.4rem;
}

.contact-link {
    display: inline-block;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.25s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-link::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .status, .type-cursor, .contact-link::after {
        animation: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .video-container {
        height: 100vh;
        height: 100lvh;
    }

    .top-bar {
        padding: 1.25rem 1.5rem;
    }

    #main-logo {
        height: 28px;
    }

    .status {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 6rem 1.5rem 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .contact-frame {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 0.5rem;
        padding: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .hero-sub {
        white-space: normal;
        font-size: 0.85rem;
        min-height: 2.8em;
        margin-bottom: 2rem;
    }

    .capabilities {
        margin-bottom: 2rem;
    }

    .cap-item {
        white-space: normal;
        font-size: 0.65rem;
        letter-spacing: 0.06em;
        padding: 0.7rem 0.5rem;
    }
}
