@font-face {
    font-family: 'iakl';
    src: url('fonts/iakl.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'iakl';
    src: url('fonts/iakl_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

body {
    font-family: 'iakl', 'Courier New', monospace;
    background: url('images/background.png') center center fixed;
    background-size: cover;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.planet-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.planet {
    width: 500px;
    height: 500px;
    background-image: url('images/planet.png');
    background-size: 25000px 500px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.fade-container {
    position: fixed;
    width: 100%;
    top: 0;
    bottom: 10vh;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 9;
}

.title {
    position: absolute;
    width: 800px;
    height: auto;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    z-index: 11;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.subtitle {
    position: absolute;
    width: 700px;
    height: auto;
    top: calc(50% + 125px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Scale 0.7x — planet 350px, title 560px */
@media (max-width: 899px) {
    .planet {
        width: 350px;
        height: 350px;
        background-size: 17500px 350px;
    }

    .title {
        width: 560px;
        left: 52%;
    }

    .subtitle {
        width: 490px;
        top: calc(50% + 88px);
    }
}

/* Scale 0.5x — planet 250px, title 400px */
@media (max-width: 599px) {
    .planet {
        width: 250px;
        height: 250px;
        background-size: 12500px 250px;
    }

    .title {
        width: 400px;
    }

    .subtitle {
        width: 350px;
        top: calc(50% + 63px);
    }
}

/* Scale 0.4x — planet 200px, title 320px */
@media (max-width: 449px) {
    .planet {
        width: 200px;
        height: 200px;
        background-size: 10000px 200px;
    }

    .title {
        width: 320px;
    }

    .subtitle {
        width: 280px;
        top: calc(50% + 50px);
    }
}

/* Scale 0.3x — planet 150px, title 240px (pantallas muy pequeñas <360px) */
@media (max-width: 359px) {
    .planet {
        width: 150px;
        height: 150px;
        background-size: 7500px 150px;
    }

    .title {
        width: 240px;
    }

    .subtitle {
        width: 210px;
        top: calc(50% + 38px);
    }
}

/* Description Section */
.description-section {
    background: rgba(0, 0, 20, 0.85);
    /* border: 2px solid #b8b8b8; */
    border-radius: 10px;
    padding: 40px;
    margin: 60px 0;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
}

.description-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #4a90e2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.description-section p {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: center;
    color: #e0e0e0;
}

/* Beta Section */
.beta-section {
    background: rgba(0, 0, 20, 0.85);
    /* border: 2px solid #e24a4a; */
    border-radius: 10px;
    padding: 40px;
    margin: 60px 0 100px 0;
    box-shadow: 0 0 30px rgba(226, 74, 74, 0.3);
}

.beta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow:
        -2px -2px 0 #4a90e2,
        2px -2px 0 #4a90e2,
        -2px 2px 0 #4a90e2,
        2px 2px 0 #4a90e2,
        0 0 10px rgba(74, 144, 226, 0.5);
}

.beta-section>p {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.beta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.beta-form input,
.beta-form textarea {
    padding: 15px;
    border: 2px solid #4a90e2;
    border-radius: 5px;
    background: rgba(0, 0, 30, 0.7);
    color: #ffffff;
    font-family: 'iakl', 'Courier New', monospace;
    font-size: 1em;
}

.beta-form input:focus,
.beta-form textarea:focus {
    outline: none;
    border-color: #e24a4a;
    box-shadow: 0 0 10px rgba(226, 74, 74, 0.5);
}

.beta-form textarea {
    resize: vertical;
}

.beta-form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4a90e2, #e24a4a);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'iakl', 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.beta-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(226, 74, 74, 0.6);
}

.beta-form button:active {
    transform: scale(0.98);
}

.form-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.1em;
}

.form-message.success {
    background: rgba(74, 226, 74, 0.2);
    color: #4ae24a;
    border: 2px solid #4ae24a;
}

.form-message.error {
    background: rgba(226, 74, 74, 0.2);
    color: #e24a4a;
    border: 2px solid #e24a4a;
}

/* Responsive Design */
@media (max-width: 768px) {

    .description-section,
    .beta-section {
        padding: 30px 20px;
    }
}


/* Font sizes that scale with viewport width */
.description-section h2,
.beta-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5em);
}

.description-section p,
.beta-section>p {
    font-size: clamp(1.2rem, 3vw, 1.4em);
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}