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

:root {
    --bg: #e8d5f5;
    --btn: #7c4dff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #555;
    --glass-bg: rgba(255,255,255,0.35);
    --glass-border: rgba(255,255,255,0.5);
    --branding-color: rgba(0,0,0,0.3);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background-color: var(--bg);
    color: #2d2d2d;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle background texture */
.page-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 48px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- Logo ---- */
.logo-section {
    margin-bottom: 28px;
}

.logo-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    box-shadow:
        0 8px 32px rgba(124, 77, 255, 0.15),
        0 0 0 1px rgba(255,255,255,0.3);
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: white;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-wrapper.no-logo {
    background: linear-gradient(135deg, #7c4dff, #b47cff);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ---- Content ---- */
.content {
    text-align: center;
    margin-bottom: 32px;
    max-width: 400px;
}

h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
    font-weight: 400;
}

.extra-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
    white-space: pre-line;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* ---- Links ---- */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 40px;
}

.link-button {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    border-radius: 16px;
    padding: 18px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.link-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.link-button:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.35);
}

.link-button:active {
    transform: translateY(0) scale(0.98);
}

.link-icon {
    font-size: 1.35rem;
    margin-right: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.link-title {
    flex: 1;
    text-align: center;
    padding-right: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.link-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 0.8rem;
    transition: opacity 0.2s, transform 0.2s;
}

.link-button:hover .link-arrow {
    opacity: 0.9;
    transform: translateY(-50%) translateX(3px);
}

/* ---- Branding ---- */
.branding {
    text-align: center;
    font-size: 0.72rem;
    color: var(--branding-color);
    padding-bottom: 24px;
}

.branding strong {
    font-weight: 700;
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Link stagger animation (set by JS) */
.link-button {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.4s ease forwards;
}

/* ---- Responsive ---- */
@media (min-width: 600px) {
    .container {
        padding-top: 64px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .logo-ring {
        width: 140px;
        height: 140px;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .container {
        padding: 32px 16px 32px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .link-button {
        padding: 15px 18px;
        font-size: 0.82rem;
    }

    .logo-ring {
        width: 110px;
        height: 110px;
    }
}
