@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Goldman', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000000;
    background-image: url('./images/background.png');
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0;
    animation: bgFadeIn 3s ease-out forwards;
}

@keyframes bgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1919px) {
    .page-bg {
        background-size: 1920px auto;
    }
}

@media (min-width: 1920px) {
    .page-bg {
        background-size: 100% auto;
    }
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
}

@keyframes revealUpElastic {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.main .hero,
.main .cards,
.main .cta-wrap,
.main .footer-social,
.footer .footer-union {
    opacity: 0;
    animation: revealUpElastic 0.5s ease-out forwards;
}

.main .hero { animation-delay: 0s; }
.main .cards { animation-delay: 0.08s; }
.main .cta-wrap { animation-delay: 0.28s; }
.main .footer-social { animation-delay: 0.38s; }
.footer .footer-union { animation-delay: 0.48s; }

.cards .card {
    opacity: 0;
    animation: revealUpElastic 0.5s ease-out forwards;
}
.cards .card:nth-child(1) { animation-delay: 0.12s; }
.cards .card:nth-child(2) { animation-delay: 0.18s; }
.cards .card:nth-child(3) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .main .hero,
    .main .cards,
    .main .cta-wrap,
    .main .footer-social,
    .footer .footer-union,
    .cards .card {
        opacity: 1;
        animation: none;
    }
}

.main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    text-align: center;
    margin-bottom: 0;
}

.hero-title {
    font-family: 'Goldman', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.8vw, 48px);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
    display: inline-block;
    background-image: linear-gradient(180deg, #FFFFFF 0%, #929292 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not (background-clip: text) {
    .hero-title {
        color: #FFFFFF;
        background-image: none;
        -webkit-text-fill-color: inherit;
    }
}

.hero-logo {
    display: inline-block;
    margin-bottom: 24px;
}

.hero-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 48px;
    width: 100%;
}

.card {
    flex: 1 1 0;
    min-width: 280px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: 16px;
    text-align: center;
}

.card-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.card-title {
    width: 100%;
    min-width: 0;
    font-family: 'Goldman', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    text-transform: lowercase;
    color: #FFFFFF;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-title::first-letter {
    text-transform: uppercase;
}

.card-desc {
    width: 100%;
    min-width: 0;
    font-family: 'Goldman', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-wrap {
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 62px;
    border-radius: 100px;
    background-color: #021B0F;
    color: #FFFFFF;
    font-family: 'Goldman', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    position: relative;
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.cta-btn span {
    position: relative;
    z-index: 1;
    transition: color 0.25s ease, background 0.25s ease, background-clip 0.25s ease;
}
.cta-btn span::first-letter {
    text-transform: uppercase;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: none;
    background-color: #032a14;
}
.cta-btn:hover span {
    background: linear-gradient(90deg, #9AFF00, #B6FF00, #FFFF00, #FFFF99, #FFFF00, #B6FF00, #9AFF00);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: flowBorderReverse 2.4s linear infinite;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 102px;
    padding: 2px;
    background: conic-gradient(from var(--border-angle), #9AFF00, #B6FF00, #FFFF00, #FFFF99, #FFFF00, #B6FF00, #9AFF00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cta-btn:hover::before {
    opacity: 1;
    animation: rotateConicAngle 2.4s linear infinite;
}

.cta-btn:focus-visible {
    outline: 2px solid #9AFF00;
    outline-offset: 2px;
}

@keyframes rotateConicAngle {
    to { --border-angle: 360deg; }
}

@keyframes flowBorderReverse {
    0% { background-position: 300% 50%; }
    100% { background-position: 0% 50%; }
}

.footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 0;
    width: 100%;
}

.footer-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 44px;
    width: 220px;
    margin-top: 40px;
    margin-bottom: 24px;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

.social-link img {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    object-fit: contain;
    transition: filter 0.25s ease;
}

.social-link:hover img {
    filter: brightness(0);
}

.social-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.social-link:not(.social-link-x) img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

.footer-union {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

.footer-union img {
    display: block;
    width: 306px;
    height: 120px;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 900px) {
    .main {
        padding: 60px 16px 32px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
        margin-bottom: 32px;
    }

    .card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-logo img {
        max-width: 240px;
    }

    .cta-btn {
        width: 200px;
        height: 56px;
        font-size: 18px;
    }

    .footer-social {
        gap: 40px;
        width: 180px;
    }

    .footer-union {
        position: static;
    }

    .footer-union img {
        max-width: 260px;
    }

    .page {
        padding-bottom: 0;
    }
}

@supports not ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
    .social-link {
        background: rgba(255, 255, 255, 0.12);
    }
}
