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

:root {
    --red: #ef4444;
    --black: #18181b;
    --cream: #fafafa;
    --bg: #09090b;
    --gold: #d4a520;
    --gold-light: #f5c842;
    --gold-dark: #a68316;
    --gold-glow: rgba(212, 165, 32, 0.4);
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 165, 32, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 41, 59, 0.3) 0%, transparent 50%),
        #000;
    color: #fff;
}

/* Background Cards */
.cards-bg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    perspective: 1500px;
    z-index: 1;
}

/* Cards */
.card {
    width: clamp(200px, 25vw, 320px);
    height: clamp(280px, 35vw, 448px);
    cursor: pointer;
}

.card-1 {
    animation: float1 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    transform: translateY(20px) rotate(-8deg);
}
.card-2 {
    animation: float2 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    animation-delay: -2s;
    transform: scale(1.05);
    z-index: 2;
}
.card-3 {
    animation: float3 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    animation-delay: -4s;
    transform: translateY(20px) rotate(8deg);
}

@keyframes float1 {
    0%, 100% { transform: translateY(10px) rotate(-8deg); }
    50% { transform: translateY(-10px) rotate(-7deg); }
}

@keyframes float2 {
    0%, 100% { transform: scale(1.05) translateY(7px); }
    50% { transform: scale(1.05) translateY(-12px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(10px) rotate(8deg); }
    50% { transform: translateY(-10px) rotate(7deg); }
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card:hover .card-back {
    background: linear-gradient(145deg, #2a3a5a 0%, #1a2744 50%, #0f172a 100%);
    box-shadow:
        0 0 40px rgba(212, 165, 32, 0.3),
        0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.card:hover .back-pattern {
    border-color: var(--gold);
    background: linear-gradient(145deg, #2a3a5a 0%, #1a2744 50%, #0f172a 100%);
}

.card-back,
.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.1);
}

/* Card Back - Minimalist */
.card-back {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 3px solid var(--gold);
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.back-pattern {
    position: absolute;
    inset: 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 32, 0.4);
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.back-pattern::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 165, 32, 0.25);
}

.back-pattern::after {
    display: none;
}

.back-ornament {
    display: none;
}

.back-corner {
    display: none;
}

/* Card Front - Shows on Hover */
.card-front {
    background: var(--cream);
    transform: rotateY(180deg);
    padding: clamp(12px, 2vw, 20px);
    display: flex;
    flex-direction: column;
}

.card-front.hearts, .card-front.diamonds { color: var(--red); }
.card-front.spades, .card-front.clubs { color: var(--black); }

.corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.corner .number {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
}

.corner .suit {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.top-left {
    align-self: flex-start;
}

.bottom-right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-suit {
    font-size: clamp(5rem, 12vw, 10rem);
    opacity: 0.9;
}

/* Content Overlay */
.content {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

h1 {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 80px var(--gold-glow);
}

h1 span {
    color: var(--gold);
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 var(--gold-glow);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 8px transparent;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .cards-bg {
        gap: 1.5rem;
    }

    .card {
        width: 160px;
        height: 224px;
    }

    .card-1 { transform: translateY(15px) rotate(-6deg); }
    .card-3 { transform: translateY(15px) rotate(6deg); }
}

@media (max-width: 600px) {
    .cards-bg {
        gap: 0.75rem;
    }

    .card {
        width: 110px;
        height: 154px;
    }

    .back-pattern::before {
        font-size: 3rem;
    }

    .content {
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%);
    }

    .tagline {
        margin-bottom: 2rem;
    }
}

@media (max-height: 600px) {
    .card {
        width: 140px;
        height: 196px;
    }

    h1 {
        font-size: 3rem;
    }

    .tagline {
        margin-bottom: 1.5rem;
    }
}
