:root {
            --primary: #E31837;
            --secondary: #ffffff;
            --dark: #1a1a1a;
            --glass: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
        }

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

        body {
            font-family: 'Montserrat', sans-serif;
            background: url('bg-portal.png') no-repeat center center fixed;
            background-size: cover;
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--secondary);
            overflow: hidden;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(227, 24, 55, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
            z-index: 0;
        }

        .container {
            position: relative;
            z-index: 1;
            text-align: center;
            width: 100%;
            max-width: 1500px;
            height: 100vh;
            padding: 2vh 1.5rem 3vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        header {
            margin-bottom: 4vh;
            animation: fadeInDown 1.2s ease-out;
        }

        .logo-placeholder {
            font-size: 1.67rem;
            font-weight: 800;
            letter-spacing: 5px;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .logo-placeholder span {
            background: var(--primary);
            padding: 5px 15px;
            border-radius: 4px;
        }

        h1 {
            font-size: clamp(1.97rem, 3.8vh, 2.97rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 0.4rem;
            text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            line-height: 1.1;
        }

        .subtitle {
            font-size: 1.12rem;
            font-weight: 300;
            opacity: 0.9;
            letter-spacing: 5px;
            text-transform: uppercase;
            position: relative;
            display: inline-block;
        }

        .subtitle::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--primary);
        }

        .grid {
            display: grid;
            grid-template-columns: minmax(420px, 520px);
            gap: 2rem;
            width: 100%;
            margin-top: 1vh;
            max-width: 640px;
            justify-content: center;
            justify-items: center;
            place-content: center;
            flex: 0 1 auto;
        }

        .card {
            background:
                radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 48%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            border: 1px solid rgba(255, 255, 255, 0.26);
            border-radius: 30px;
            padding: 2rem 1.75rem 1.9rem;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            text-decoration: none;
            color: white;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 420px;
            height: min(48vh, 520px);
            max-height: 520px;
            cursor: pointer;
            box-shadow:
                0 30px 80px rgba(0, 0, 0, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.24),
                0 0 0 1px rgba(255, 255, 255, 0.05);
            animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) both;
            position: relative;
            overflow: hidden;
            width: min(100%, 520px);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(227, 24, 55, 0.2), transparent);
            transform: translateX(-100%);
            transition: 0.8s;
        }

        .card::after {
            content: '';
            position: absolute;
            inset: 14px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            pointer-events: none;
        }

        .card:hover::before {
            transform: translateX(100%);
        }

        .card:nth-child(1) { animation-delay: 0.3s; }
        .card:nth-child(2) { animation-delay: 0.45s; }
        .card:nth-child(3) { animation-delay: 0.6s; }

        .card:hover {
            transform: translateY(-16px) scale(1.02);
            border-color: rgba(227, 24, 55, 0.55);
            box-shadow:
                0 36px 90px rgba(0, 0, 0, 0.5),
                0 0 50px rgba(227, 24, 55, 0.22);
        }

        .icon-container {
            width: 92px;
            height: 92px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.4rem;
            position: relative;
            transition: all 0.5s ease;
            box-shadow:
                inset 0 0 24px rgba(255, 255, 255, 0.08),
                0 18px 45px rgba(0, 0, 0, 0.24);
        }

        .icon-container svg {
            width: 42px;
            height: 42px;
            stroke-width: 1.5;
            color: white;
            filter: drop-shadow(0 0 14px rgba(227, 24, 55, 0.55));
        }

        .card:hover .icon-container {
            background: var(--primary);
            transform: scale(1.08) rotate(4deg);
            box-shadow: 0 0 50px rgba(227, 24, 55, 0.62);
        }

        .card h2 {
            font-size: 1.75rem;
            font-weight: 800;
            margin-bottom: 0.95rem;
            text-align: center;
            letter-spacing: 1.5px;
            text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
        }

        .card p {
            font-size: 1rem;
            opacity: 0.92;
            text-align: center;
            line-height: 1.7;
            font-weight: 400;
            max-width: 30ch;
            margin-bottom: 1.8rem;
        }

        .btn-enter {
            padding: 1rem 2.9rem;
            background: linear-gradient(135deg, #ff284d 0%, #e31837 55%, #a80d24 100%);
            color: white;
            border-radius: 14px;
            font-weight: 800;
            font-size: 0.92rem;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            transition: all 0.4s ease;
            border: 1px solid rgba(255, 255, 255, 0.28);
            box-shadow: 0 18px 38px rgba(227, 24, 55, 0.34);
        }

        .card:hover .btn-enter {
            background: rgba(255, 255, 255, 0.08);
            color: white;
            box-shadow: 0 0 24px rgba(227, 24, 55, 0.34);
            letter-spacing: 0.26em;
        }

        .portal-links {
            display: grid;
            grid-template-columns: repeat(2, minmax(240px, 300px));
            gap: 1rem;
            width: 100%;
            max-width: 640px;
            margin-top: 1.25rem;
            justify-content: center;
        }

        .portal-link {
            position: relative;
            overflow: hidden;
            text-decoration: none;
            color: white;
            padding: 1.15rem 1.2rem;
            border-radius: 22px;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            box-shadow:
                0 18px 48px rgba(0, 0, 0, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.16);
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }

        .portal-link::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
            transform: translateX(-100%);
            transition: transform 0.7s ease;
        }

        .portal-link:hover {
            transform: translateY(-6px);
            border-color: rgba(255, 255, 255, 0.32);
            box-shadow:
                0 24px 56px rgba(0, 0, 0, 0.3),
                0 0 28px rgba(227, 24, 55, 0.16);
        }

        .portal-link:hover::before {
            transform: translateX(100%);
        }

        .portal-link-label {
            position: relative;
            z-index: 1;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            color: rgba(255, 255, 255, 0.68);
            margin-bottom: 0.55rem;
        }

        .portal-link-title {
            position: relative;
            z-index: 1;
            font-size: 1.12rem;
            font-weight: 800;
            letter-spacing: 0.03em;
            margin-bottom: 0.45rem;
        }

        .portal-link-apex .portal-link-title {
            color: #ff5a6f;
        }

        .portal-link-arsa .portal-link-title {
            color: #39d98a;
        }

        .portal-link-quote {
            position: relative;
            z-index: 1;
            font-size: 0.84rem;
            color: rgba(255, 255, 255, 0.82);
            font-style: italic;
        }

        footer {
            position: relative;
            z-index: 1;
            margin-top: 2.5vh;
            opacity: 0.6;
            font-size: 0.85rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        @keyframes fadeInDown {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 768px) {
            .container { padding: 4rem 1.5rem; }
            h1 { font-size: 2.5rem; }
            .grid { grid-template-columns: 1fr; gap: 2rem; }
            .card { min-height: 380px; height: auto; padding: 3.5rem 2rem 2.5rem; width: min(100%, 460px); }
            .portal-links { grid-template-columns: 1fr; max-width: 460px; }
        }
