/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}


/* =========================
   CONTENT
========================= */

.content {
    position: relative;
    z-index: 10;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    padding: 42px 55px;
}


/* =========================
   LOGO
========================= */

.logo {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #fff;

    animation: fadeDown 1s ease forwards;
}


/* =========================
   MAIN MESSAGE
========================= */

.message {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: min(1000px, 90%);

    text-align: center;
}


/* Small heading */

.eyebrow {
    margin-bottom: 24px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 6px;

    color: #777;

    animation: fadeUp 1s ease 0.2s both;
}


/* Main heading */

h1 {
    font-size: clamp(70px, 11vw, 170px);

    line-height: 0.9;

    font-weight: 800;

    letter-spacing: -8px;

    color: #fff;

    animation: fadeUp 1s ease 0.4s both;
}

h1 span {
    color: #e50914;
}


/* Line */

.line {
    width: 90px;
    height: 2px;

    margin: 35px auto 25px;

    background: #e50914;

    animation:
        lineExpand 1s ease 0.8s both,
        pulseLine 3s ease-in-out 2s infinite;
}


/* Description */

.description {
    font-size: 13px;

    letter-spacing: 5px;

    text-transform: uppercase;

    color: #555;

    animation: fadeUp 1s ease 1s both;
}


/* =========================
   AI BACKGROUND
========================= */

.ai-background {
    position: absolute;

    inset: 0;

    pointer-events: none;
}


/* =========================
   TECH GRID
========================= */

.grid {
    position: absolute;

    inset: -100%;

    opacity: 0.15;

    background-image:
        linear-gradient(
            rgba(255, 0, 20, 0.18) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 0, 20, 0.18) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    transform: perspective(600px) rotateX(65deg);

    animation: gridMove 18s linear infinite;
}


/* =========================
   GLOWING ORBS
========================= */

.orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.25;
}

.orb-1 {
    width: 500px;
    height: 500px;

    top: -200px;
    left: -150px;

    background: #e50914;

    animation: floatOne 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;

    right: -150px;
    bottom: -150px;

    background: #550005;

    animation: floatTwo 15s ease-in-out infinite;
}

.orb-3 {
    width: 250px;
    height: 250px;

    left: 45%;
    top: 40%;

    background: #8b0000;

    filter: blur(100px);

    opacity: 0.12;

    animation: floatThree 10s ease-in-out infinite;
}


/* =========================
   PARTICLES
========================= */

.particles span {
    position: absolute;

    width: 2px;
    height: 2px;

    background: #e50914;

    border-radius: 50%;

    box-shadow: 0 0 10px #e50914;

    opacity: 0;

    animation: particleFloat 7s linear infinite;
}


/* Individual particle positions */

.particles span:nth-child(1) {
    left: 5%;
    top: 80%;
    animation-delay: 0s;
}

.particles span:nth-child(2) {
    left: 12%;
    top: 40%;
    animation-delay: 1s;
}

.particles span:nth-child(3) {
    left: 20%;
    top: 70%;
    animation-delay: 2s;
}

.particles span:nth-child(4) {
    left: 28%;
    top: 20%;
    animation-delay: 3s;
}

.particles span:nth-child(5) {
    left: 35%;
    top: 85%;
    animation-delay: 1.5s;
}

.particles span:nth-child(6) {
    left: 43%;
    top: 30%;
    animation-delay: 4s;
}

.particles span:nth-child(7) {
    left: 50%;
    top: 75%;
    animation-delay: 2.5s;
}

.particles span:nth-child(8) {
    left: 58%;
    top: 15%;
    animation-delay: 5s;
}

.particles span:nth-child(9) {
    left: 65%;
    top: 65%;
    animation-delay: 1s;
}

.particles span:nth-child(10) {
    left: 72%;
    top: 35%;
    animation-delay: 3.5s;
}

.particles span:nth-child(11) {
    left: 80%;
    top: 80%;
    animation-delay: 2s;
}

.particles span:nth-child(12) {
    left: 88%;
    top: 25%;
    animation-delay: 4.5s;
}

.particles span:nth-child(13) {
    left: 94%;
    top: 60%;
    animation-delay: 1.2s;
}

.particles span:nth-child(14) {
    left: 15%;
    top: 90%;
    animation-delay: 5.2s;
}

.particles span:nth-child(15) {
    left: 25%;
    top: 50%;
    animation-delay: 2.8s;
}

.particles span:nth-child(16) {
    left: 40%;
    top: 10%;
    animation-delay: 4.2s;
}

.particles span:nth-child(17) {
    left: 60%;
    top: 90%;
    animation-delay: 1.8s;
}

.particles span:nth-child(18) {
    left: 75%;
    top: 10%;
    animation-delay: 3.8s;
}

.particles span:nth-child(19) {
    left: 85%;
    top: 50%;
    animation-delay: 5.5s;
}

.particles span:nth-child(20) {
    left: 97%;
    top: 90%;
    animation-delay: 2.2s;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 90px;
        opacity: 1;
    }
}


@keyframes pulseLine {
    0%,
    100% {
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.2);
    }

    50% {
        box-shadow:
            0 0 20px rgba(229, 9, 20, 0.8),
            0 0 40px rgba(229, 9, 20, 0.3);
    }
}


@keyframes gridMove {
    from {
        transform:
            perspective(600px)
            rotateX(65deg)
            translateY(0);
    }

    to {
        transform:
            perspective(600px)
            rotateX(65deg)
            translateY(80px);
    }
}


@keyframes floatOne {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(120px, 80px);
    }
}


@keyframes floatTwo {
    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-100px, -100px);
    }
}


@keyframes floatThree {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, -50px) scale(1.3);
    }
}


@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
        transform: translateY(-120px);
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .content {
        padding: 28px 25px;
    }

    .logo {
        font-size: 21px;
    }

    h1 {
        font-size: 17vw;
        letter-spacing: -4px;
    }

    .eyebrow {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .description {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .grid {
        background-size: 50px 50px;
    }
}