@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

body.selector-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #121214;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    position: relative;
}

#blockchainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.red-layer {
    background: linear-gradient(90deg, rgba(230, 0, 0, 0.807) 0%, rgba(230, 0, 0, 0.533) 40%, transparent 100%);
    transform: translateX(-5%);
}

.blue-layer {
    background: linear-gradient(270deg, rgba(0, 87, 179, 0.74) 0%, rgba(0, 87, 179, 0.521) 40%, transparent 100%);
    transform: translateX(5%);
}

body.selector-page:has(.res-card:hover) .red-layer {
    opacity: 1;
    transform: translateX(0);
}

body.selector-page:has(.corp-card:hover) .blue-layer {
    opacity: 1;
    transform: translateX(0);
}

.selector-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.selector-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-logo {
    max-width: 200px;
    margin: 0 auto 30px auto;
    display: block;
}

.main-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px;
    letter-spacing: -1px;
}

.sub-title {
    font-size: 1.0rem;
    color: #bbbbbb;
    margin: 0;
    font-weight: 500;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.choice-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px 20px;
    width: 100%;
    max-width: 380px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.choice-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.res-card:hover {
    box-shadow: 0 25px 50px rgba(230, 0, 0, 0.15);
}

.corp-card:hover {
    box-shadow: 0 25px 50px rgba(0, 86, 179, 0.15);
}

.icon-box {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    color: #ffffff;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.choice-card:hover .organic-shape {
    animation: morph 3s ease-in-out infinite;
}

.res-card:hover .icon-box {
    background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(230, 0, 0, 0.3);
}

.corp-card:hover .icon-box {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.3);
}

.icon-box svg {
    width: 45px;
    height: 45px;
}

.card-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px;
    transition: color 0.3s ease;
}

.card-text p {
    font-size: 1rem;
    color: #bbbbbb;
    line-height: 1.6;
    margin: 0 0 30px;
}

.card-arrow {
    margin-top: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.res-card:hover .card-arrow {
    background: #e60000;
    color: #ffffff;
}

.corp-card:hover .card-arrow {
    background: #0056b3;
    color: #ffffff;
}

@media (max-width: 992px) {
    .cards-wrapper {
        gap: 30px;
    }
    
    .choice-card {
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    .selector-header {
        margin-bottom: 40px;
    }

    .main-logo {
        max-width: 160px;
    }

    .main-title {
        font-size: 2.2rem;
    }
    
    .cards-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .choice-card {
        padding: 40px 30px;
        max-width: 100%;
    }
}