/* Helvetica Now MT Text Font Family */
@font-face {
    font-family: 'Helvetica Now MT Text';
    src: url('HelveticaNowMTText.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now MT Text';
    src: url('HelveticaNowMTText_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Now MT Text';
    src: url('HelveticaNowMTText_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

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

body {
    font-family: 'Helvetica Now MT Text', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background-color: #ff2300;
}

/* Desktop Frame (1:2) - 1280x1396 */
.desktop-frame {
    position: relative;
    width: 100%;
    max-width: 1280px;
    min-height: 1396px;
    background-color: #ff2300;
    margin: 0 auto;
}

/* Logo (1:10) - 71x47 at (98, 63) */
.logo {
    position: absolute;
    left: 4%;
    top: 63px;
    width: 85px;
    height: 57px;
    z-index: 10;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation Container */
.navigation {
    position: absolute;
    top: 77px;
    right: 4%;
    display: flex;
    gap: 70px;
    align-items: center;
}

.nav-link {
    font-size: 40px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: 0%;
    line-height: 40px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
}

.nav-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Focus states for accessibility */
.nav-link:focus,
.connect-button-text:focus,
.service-section:focus {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 4px;
}

button:focus,
a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Line 1 (1:3) - 1084x2 at (98, 130) - STRETCH horizontal */
.line-1 {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 130px;
    width: auto;
    height: 2px;
    background-color: #ffffff;
}

/* Red Moon Title (1:6) - 579x428 at (77, 181) */
.title-redmoon {
    position: absolute;
    left: 3.5%;
    top: 181px;
    width: 650px;
    height: 428px;
    font-size: 280px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    line-height: 240px;
    color: #181818;
    text-align: left;
    /* Fixed text stroke for better rendering */
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    cursor: default;
}

/* Magnetic Letter Effect */
.magnetic-text .letter {
    display: inline-block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    letter-spacing: -0.1em;
}

.magnetic-text .word {
    display: inline-block;
    letter-spacing: -0.1em;
}

/* Ellipse 1 (1:7) - 34x34 at (656, 562) - vertical CENTER constraint */
.ellipse-1 {
    position: absolute;
    left: 54%;
    top: 562px;
    width: 40px;
    height: 40px;
    background-color: #d9d9d9;
    border-radius: 50%;
}

/* Tagline (1:9) - 735x85 at (88, 602) */
.tagline {
    position: absolute;
    left: 4%;
    top: 621px;
    width: 850px;
    height: auto;
    font-size: 68px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: -0.09em;
    line-height: 85px;
    color: #ffffff;
    text-align: left;
}

/* Service Section - Straight line design */
.service-section {
    position: absolute;
    right: 4%;
    top: 135px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-section:hover {
    opacity: 0.9;
    transform: translateX(5px);
}

/* Polygon Arrow (1:30) - Arrow pointing right */
.polygon-arrow {
    width: 30px;
    height: 30px;
    font-size: 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Service Title (1:29) - Inline with arrow */
.service-title {
    font-size: 52px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: -0.05em;
    color: #ffffff;
    white-space: nowrap;
}

/* Line 2 (1:31) - Underline on hover */
.line-2 {
    position: absolute;
    left: 45px;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.service-section:hover .line-2 {
    width: calc(100% - 45px);
}

/* CTA Section */
.cta-section {
    position: absolute;
    left: 4%;
    top: 702px;
}

/* CTA Text (1:25) - 899x184 at (94, 689) - horizontal STRETCH, vertical MAX */
.cta-text {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 1050px;
    height: 184px;
    font-size: 110px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 98px;
    color: #080808;
    text-align: left;
}

/* Connect Button Background (1:27) - 245x68 at (86, 896) */
.connect-button-bg {
    position: absolute;
    left: -8px;
    top: 220px;
    width: 280px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 100px;
}

/* Connect Button Text (1:28) - at (125, 909) */
.connect-button-text {
    position: absolute;
    left: 31px;
    top: 235px;
    width: 220px;
    height: 45px;
    font-size: 52px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: -0.09em;
    line-height: 45px;
    color: #000000;
    text-align: left;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.connect-button-text:hover {
    transform: scale(1.05);
}

/* Footer Background (1:33) - 1280x241 at (0, 1155) - STRETCH horizontal, MAX vertical */
.footer-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100vw;
    height: 241px;
    background-color: #1f1f1f;
}

/* Footer Tagline (1:39) - 648x29 at (263, 1206) - vertical MAX */
.footer-tagline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 51px;
    width: auto;
    max-width: 650px;
    height: auto;
    font-size: 39px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: -0.1em;
    line-height: 29px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Footer Logo (1:40) - 125x83 at (544, 1261) - vertical MAX */
.footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 106px;
    width: 125px;
    height: 83px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Social Links Container */
.social-links {
    position: absolute;
    right: 8%;
    top: 46px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.social-links a {
    font-size: 34px;
    font-family: 'Helvetica Now MT Text';
    font-weight: 400;
    letter-spacing: -0.1em;
    line-height: 34px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
    display: block;
    white-space: nowrap;
}

.social-links a:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .desktop-frame {
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* Navigation responsive */
    .navigation {
        right: 5%;
        gap: 30px;
    }

    /* Elements with horizontal STRETCH */
    .line-1 {
        left: 5%;
        right: 5%;
        width: auto;
    }

    .footer-bg {
        width: 100%;
        position: absolute;
        bottom: 0;
    }

    /* Responsive font sizing */
    .title-redmoon {
        font-size: clamp(100px, 19vw, 245px);
        line-height: clamp(90px, 16.7vw, 214px);
        left: 5%;
        width: auto;
        max-width: 60%;
    }

    .tagline {
        font-size: clamp(24px, 4.6vw, 59px);
        left: 5%;
        width: 70%;
    }

    .cta-text {
        font-size: clamp(32px, 7.5vw, 96px);
        line-height: clamp(30px, 6.7vw, 86px);
        left: 5%;
        width: 90%;
    }

    .service-section {
        right: 5%;
        top: auto;
        bottom: 350px;
    }

    .service-title {
        font-size: clamp(20px, 3.6vw, 46px);
    }

    .footer-tagline {
        font-size: clamp(18px, 3vw, 39px);
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 80%;
    }

    .footer-logo {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        right: 5%;
        gap: 5px;
    }

    .connect-button-text {
        font-size: clamp(22px, 3.6vw, 46px);
    }

    .nav-link {
        font-size: clamp(18px, 3vw, 38px);
    }

    .social-links a {
        font-size: clamp(14px, 2.3vw, 29px);
    }
}

/* Mobile Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .desktop-frame {
        width: 100%;
        min-height: 100vh;
        height: auto;
        padding: 0 0 0 0;
        margin: 0;
        display: block;
        position: relative;
    }

    .logo {
        left: 20px;
        top: 20px;
        width: 50px;
        height: 33px;
    }

    .navigation {
        top: 25px;
        right: 20px;
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
        line-height: 18px;
    }

    .line-1 {
        top: 70px;
        left: 20px;
        right: 20px;
        width: auto;
    }

    .title-redmoon {
        font-size: 70px;
        line-height: 60px;
        top: 100px;
        left: 20px;
        width: calc(100% - 40px);
        max-width: none;
        height: auto;
    }

    .ellipse-1 {
        display: none;
    }

    .tagline {
        font-size: 22px;
        line-height: 30px;
        top: 280px;
        left: 20px;
        width: calc(100% - 40px);
        height: auto;
    }

    .service-section {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 370px;
    }

    .service-title {
        font-size: 22px;
    }

    .polygon-arrow {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }

    .cta-section {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 450px;
        width: calc(100% - 40px);
    }

    .cta-text {
        font-size: 32px;
        line-height: 38px;
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }

    .connect-button-bg {
        position: relative;
        left: 0;
        top: 0;
        width: 180px;
        height: 50px;
        margin-bottom: -50px;
    }

    .connect-button-text {
        position: relative;
        left: 0;
        top: 0;
        width: 180px;
        height: 50px;
        font-size: 28px;
        line-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-bg {
        position: relative;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        margin-top: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none;
    }

    .footer-tagline {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        font-size: 16px;
        line-height: 22px;
        margin: 0 0 15px 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 60px;
        height: 40px;
        margin: 0 0 15px 0;
    }

    .social-links {
        position: relative;
        right: auto;
        top: 0;
        left: 0;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin: 0;
    }

    .social-links a {
        font-size: 14px;
        line-height: 18px;
    }
}
