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

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
    background-size: 280% 280%;
    animation: backgroundShift 18s ease infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--cursorX, 50%) var(--cursorY, 50%), rgba(99, 102, 241, 0.18), transparent 70%);
    transition: background-position 0.2s ease;
    mix-blend-mode: screen;
}

header {
    text-align: center;
    color: #ffffff;
    margin: 2rem 0 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

header h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
}

.tagline {
    font-size: 1.1rem;
    color: #b8b8d1;
    letter-spacing: 0.08rem;
}

.header-icon {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.5));
    animation: floatPulse 4s ease-in-out infinite;
}

.header-divider {
    width: 120px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(167, 139, 250, 0.7));
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.6);
}

main {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.card-grid {
    display: grid;
    width: 100%;
    gap: 1.5rem;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-note {
    color: #8f9ae8;
    font-size: 0.95rem;
    letter-spacing: 0.05rem;
}

.card {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.9), rgba(45, 45, 68, 0.95));
    border-radius: 20px;
    padding: 2rem;
    margin: 0;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease, border 0.4s ease, background 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(32px);
    will-change: transform, opacity;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.22), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card.is-visible:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3),
                0 0 0 1px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.card.is-visible:hover::before {
    opacity: 1;
}

.card h3 {
    color: #818cf8;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card p {
    color: #b8b8d1;
    line-height: 1.6;
    font-size: 1rem;
}

.button {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.button:hover {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.button:focus-visible {
    outline: 2px solid rgba(129, 140, 248, 0.8);
    outline-offset: 4px;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    transform-origin: center;
    background: rgba(255, 255, 255, 0.4);
    animation: rippleWave 0.6s ease-out;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
}

footer {
    width: 100%;
    color: #b8b8d1;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.95), rgba(30, 30, 46, 0.95));
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.foot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.foot p {
    margin: 0;
    font-weight: 500;
}

.foot a {
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-flex;
}

.foot a:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.social-link {
    color: #c7cbff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(167, 139, 250, 0.2));
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.22);
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.08);
    filter: none;
    box-shadow: 0 10px 26px rgba(129, 140, 248, 0.4);
}

.footer-icon {
    width: 22px;
    height: 22px;
}

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

@keyframes rippleWave {
    0% {
        transform: scale(0);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes floatPulse {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .card-grid {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }

    body::after {
        transition: none;
    }

    .header-icon {
        animation: none;
    }

    .card {
        transition: none;
    }

    .card::before {
        transition: none;
    }

    .button,
    .button:hover {
        transition: none;
        transform: none;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
}