:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --badge-bg: rgba(255, 255, 255, 0.05);
    --badge-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    text-align: center;
}

body.home {
    justify-content: center;
    align-items: center;
}

body.legal {
    justify-content: flex-start;
    align-items: center;
}

/* Canvas for stars */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Planet horizon effect at the bottom */
.horizon-container {
    position: fixed;
    bottom: -10vw;
    left: 50%;
    transform: translateX(-50%);
    width: 150vw;
    height: 30vw;
    z-index: 2;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.horizon-glow {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    background: radial-gradient(ellipse at top, rgba(200, 230, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
}

.horizon-planet {
    position: absolute;
    bottom: -5vw;
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 0 0;
    box-shadow: inset 0 2px 20px rgba(255, 255, 255, 0.5), 
                0 -20px 100px rgba(180, 220, 255, 0.2);
    background: #000;
}

/* Main Content Overlay */
.content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    margin-top: -10vh; /* Shift up a bit from center */
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* Increased spacing */
}

.badge {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.headline em {
    font-style: italic;
    font-weight: 400; /* slightly thinner or same as standard for an elegant look */
}

.description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* Footer layout */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Legal Pages Styling */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: left;
    position: relative;
    z-index: 10;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.legal-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.legal-container p, .legal-container ul {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-container ul {
    padding-left: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Responsive planet adjustments and Layout */
@media (max-width: 1024px) {
    .horizon-container {
        width: 180vw;
        height: 35vw;
        bottom: -15vw;
    }
}

@media (max-width: 768px) {
    .horizon-container {
        width: 250vw;
        height: 50vw;
        bottom: -20vw;
    }
    .headline {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    .horizon-container {
        width: 300vw;
        height: 60vw;
        bottom: -25vw;
    }
    .content {
        padding: 1rem;
    }
    .footer {
        flex-direction: column;
        gap: 0.75rem;
        bottom: 1.5rem;
    }
    .separator {
        display: none;
    }
}
