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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0d0d1a 0%, #121224 50%, #1a1040 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e4e4e7;
    overflow-x: hidden;
    overflow-y: auto;
}

.background-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.18;
    pointer-events: none;
}

.glow-1 {
    top: -200px;
    left: -200px;
    background: #2096D9;
}

.glow-2 {
    bottom: -200px;
    right: -200px;
    background: #5C35EE;
}

.container {
    text-align: center;
    padding: 3rem;
    max-width: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-container {
    margin-bottom: 2rem;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

/* Animated gradient border glow */
.logo::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(from 0deg, #2096D9, #5C35EE, #9333ea, #2096D9);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.8;
    animation: spin 3s linear infinite;
}

/* Ambient glow pulse behind logo */
.logo::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(32, 150, 217, 0.3), rgba(92, 53, 238, 0.15), transparent 70%);
    border-radius: 40px;
    z-index: -2;
    animation: glow-pulse 4s ease-in-out infinite;
}

/* Shimmer sweep across logo */
.logo svg {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    position: relative;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

/* Light sweep overlay */
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 28px;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 55%
    );
    background-size: 250% 100%;
    animation: shimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes shimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -50% center; }
}

/* Title */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.05rem;
    color: #71717a;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Description card */
.description {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.description p {
    color: #a1a1aa;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.description p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: #60a5fa;
    font-weight: 500;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(32, 150, 217, 0.08);
    border-color: rgba(32, 150, 217, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.85rem;
    color: #a1a1aa;
    font-weight: 500;
}

/* Version card */
.version-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 120px;
}

.version-info {
    text-align: left;
}

.version-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #71717a;
    margin-bottom: 0.25rem;
}

.version-tag {
    font-size: 1.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2096D9 0%, #5C35EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-date {
    font-size: 0.8rem;
    color: #52525b;
    margin-top: 0.25rem;
}

.version-loading {
    color: #52525b;
    font-size: 0.9rem;
}

.version-error {
    color: #71717a;
    font-size: 0.85rem;
}

.version-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #2096D9 0%, #5C35EE 100%);
    box-shadow: 0 2px 12px rgba(32, 150, 217, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.version-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(92, 53, 238, 0.35);
}

.version-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.version-changelog {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a1a1aa;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.version-changelog:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e4e4e7;
    transform: translateY(-1px);
}

/* Buttons */
.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2096D9 0%, #5C35EE 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(32, 150, 217, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(92, 53, 238, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Status badge */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem 1.25rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4ade80;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-indicator.status-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.status-indicator.status-error .status-dot {
    background: #f87171;
}

.status-indicator.status-checking {
    background: rgba(161, 161, 170, 0.1);
    border-color: rgba(161, 161, 170, 0.2);
    color: #a1a1aa;
}

.status-indicator.status-checking .status-dot {
    background: #a1a1aa;
}

/* Footer */
.footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #52525b;
}

.footer a {
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #2096D9;
}

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #2096D9;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .links {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .version-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .version-actions {
        width: 100%;
    }

    .version-download,
    .version-changelog {
        flex: 1;
        justify-content: center;
    }
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo { animation: none; }
    .logo::before { animation: none; }
    .logo::after { animation: none; }
    .logo-container::after { animation: none; }
    .status-dot { animation: none; }
    .feature { transition: none; }
}
