* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    /* Prevent scrolling */
    background-color: #000;
    /* Start black */
    user-select: none;
    /* Disable text selection */
    -webkit-user-select: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
    /* Above everything */
    pointer-events: none;
    font-weight: 500;
}

.heart-icon {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Background: Blue (top right) + Pink/Purple (bottom left) */
    background:
        radial-gradient(circle at top right, #3b82f6 0%, transparent 40%),
        radial-gradient(circle at bottom left, #5e1b48 0%, #000000 50%);
    z-index: 1;
    opacity: 0;
    /* Initial state: hidden */
    transition: opacity 2s ease-in-out;
}

.background.visible {
    opacity: 1;
}

#rainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Behind content, in front of background */
    pointer-events: none;
    opacity: 0.6;
    /* Slight transparency */
}

/* Main Layout Container */
.main-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    /* Ensure above rain */
}

/* Logo Styles */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Smooth eased movement */
    z-index: 10;
}

.logo {
    height: 60px;
    /* Slightly larger initially */
    width: auto;
    object-fit: contain;
    opacity: 0;
    /* Start hidden */
    transition: opacity 1s ease;
}

.logo.visible {
    opacity: 1;
}

/* Layout Active State (Split View) */
.layout-active .logo-container {
    left: 25%;
    /* Move to left quarter */
    transform: translate(-50%, -50%);
    /* Keep centered on that point */
}

/* Card Styles */
.card {
    width: 90%;
    max-width: 550px;
    background-color: rgba(30, 30, 30, 0.4);
    /* More transparent for blur to show */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Frosted Glass Enhancements */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    /* Highlight top edge */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    /* Highlight left edge */
    border-radius: 24px;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.03),
        /* Inner glow */
        0 20px 40px rgba(0, 0, 0, 0.4);
    /* Drop shadow */
    color: white;
    padding: 48px 32px;
    text-align: center;

    /* Position for split layout */
    position: absolute;
    right: 15%;
    /* Position on the right */
    top: 50%;
    transform: translateY(-50%);

    opacity: 0;
    /* Start hidden */
    visibility: hidden;
    transition: all 1s ease;
}

/* Show card when layout is active */
.layout-active .card {
    opacity: 1;
    visibility: visible;
    right: 15%;
    /* Ensure it stays put */
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    .layout-active .logo-container {
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .card {
        width: 90%;
        right: 50%;
        transform: translate(50%, -50%);
        /* Center it manually since right: 50% puts edge at center */
    }

    .layout-active .card {
        top: 60%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .logo {
        height: 40px;
        /* Keep smaller on mobile */
    }
}

/* Features Grid */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 16px;
}


/* Content Styles */
h1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: #ffffff;
}

p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* Discord Button */
.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding: 14px 28px;
    background-color: #5865F2;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    width: 24px;
    height: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: rgba(30, 30, 30, 0.9);
    /* Opaque for modal */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    /* Reset for inner structure */
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;

    /* Visual properties (copied from .card but opaque) */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-card .top-bar {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
}

.modal-card .logo {
    opacity: 1;
    /* Always visible in modal */
    height: 24px;
    width: auto;
}

.modal-content {
    padding: 24px;
    text-align: center;
}

.modal-content p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-content strong {
    color: #5865F2;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-yes {
    background-color: #2ecc71;
    color: white;
}

.btn-no {
    background-color: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.modal-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 0.02em;
}

/* View Counter */
.separator {
    opacity: 0.3;
    font-size: 10px;
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-variant-numeric: tabular-nums;
}