:root {
    --primary-color: #000000;
    --accent-color: #CCA893;
    /* Use for button or subtle accents only if needed */
    --bordeaux-color: #710101;
    --text-color: #FFFFFF;
    /* Enforce white */
}

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

body {
    font-family: 'Inter', sans-serif;
    /* App uses Inter for body */
    color: var(--text-color);
    background-color: transparent;
    /* Transparent to show fixed background */
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    position: relative;
    /* Removed flex centering from body to allow scrolling on long pages */
}

#galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('night.PNG');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Font Face for BDScript */
@font-face {
    font-family: 'BDScript';
    src: url('fonts/BDScript.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Main Landing Page Wrapper - Centers Content */
.content-wrapper {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    /* Center horizontal content */
    margin: 0 auto;
    /* Center the wrapper itself */
    /* Vertical centering for Landing Page Only */
    min-height: 100vh;
    justify-content: center;
}

/* Header Layout */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    max-width: 156px;
    height: auto;
    margin-bottom: 0;
    /* Reduced to 0 */
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInScale 1.5s ease-out forwards;
}

/* Brand Script Container */
.brand-script-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.brand-script-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Header / Brand */
.brand-title {
    /* Container for the title image */
    margin-bottom: 2.9rem;
    /* Reduced by ~10px */
    margin-top: -20px;
    /* Moved down by 10px (was -30px) */
    text-align: center;
    display: block;
    width: 100%;
    opacity: 0;
    animation: fadeInScale 1.5s ease-out forwards;
}

.brand-title-image {
    max-width: 164px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.brand-script-text {
    font-family: 'BDScript', cursive;
    font-size: 65px !important;
    /* Reduced to 65px for mobile */
    color: var(--accent-color);
    line-height: 1.0;
    text-shadow:
        0 0 5px var(--accent-color),
        0 0 20px rgba(204, 168, 147, 0.8),
        0 0 50px rgba(204, 168, 147, 0.4);
    opacity: 0;
    /* Animation handled by classes */
}

/* ... (keep existing animations) ... */

/* Media Query for Desktop adjustments */
@media (min-width: 768px) {
    .brand-script-text {
        font-size: 65px !important;
        /* Force reduced size for desktop */
    }

    .brand-title {
        margin-top: -15px;
        /* Lowered by 5px for desktop */
    }

    .content-text {
        margin-top: -5px;
        /* Lifted by 5px for desktop */
    }
}

/* Animation Delays matching user request */
.anim-delay-1 {
    animation: fadeIn 0.8s ease-out 1.5s forwards;
}

/* "Die" starts after logo (1.5s) */
.anim-delay-2 {
    animation: fadeIn 0.8s ease-out 2.3s forwards;
}

/* "Intelligenz" +800ms */
.anim-delay-3 {
    animation: fadeIn 0.8s ease-out 3.1s forwards;
}

/* "deines" +800ms */
.anim-delay-4 {
    animation: fadeIn 0.8s ease-out 3.9s forwards;
}

/* "Seins" +800ms */

.sub-headline {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    /* Set to 12px as requested */
    color: var(--text-color);
    margin-top: 2rem;
    text-align: center;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 1s ease-out 4.5s forwards;
    letter-spacing: 1px;
}

/* Text Container to constrain width for fluid typography */
/* Text Container to constrain width for fluid typography on Landing Page */
.content-wrapper main {
    width: 100%;
    /* Removed restrictive max-width to allow content-text to control width */
    margin: 0 auto;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main Text - Sync with Logo (Immediate) */
.content-text {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    opacity: 0;
    /* Match logo animation style and duration exactly */
    animation: fadeInScale 1.5s ease-out forwards;
}

/* Main Text */
.hero-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    /* Reduced font size */
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
    max-width: 380px;
    /* Reduced to match photo */
    padding: 0 20px;
    /* Increased to 20px */
    margin: 0 auto;
    text-align: justify;
    text-align-last: left;
}

.waitlist-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    /* Reduced font size */
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 600;
    /* Bolder for emphasis */
    margin-top: 1rem;
    max-width: 380px;
    /* Reduced to match photo */
    padding: 0 20px;
    /* Increased to 20px */
    margin: 0 auto;
    text-align: justify;
    text-align-last: left;
}

/* Launch Info */
.launch-info {
    font-family: 'Inter', sans-serif;
    font-size: 4.5cqi;
    /* Fluid typography: proportional to container width */
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    width: 100%;
}

.launch-info p {
    margin: 0;
}

.launch-info .highlight {
    color: var(--text-color);
    font-weight: 600;
}

/* Button - Sync with Content (Inherit fade from parent, or explicit sync) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--bordeaux-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
    line-height: 1.2;
    /* Visible by default, fades in with parent .content-text */
    opacity: 1;
    animation: none;
}

.cta-button:hover {
    background-color: #8a0202;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Responsive Adjustments */
@media (max-height: 700px) {
    .content-wrapper {
        gap: 1.5rem;
    }

    .logo {
        max-width: 180px;
    }

    .brand-title {
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .brand-script-text {
        font-size: 3rem;
        /* Smaller script text on mobile */
    }

    .brand-script-row {
        gap: 10px;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {

    /* Responsive Scaling */
    .brand-title {
        font-size: 3rem;
        /* Slightly smaller on mobile but still prominent */
    }

    /* REMOVED FIXED FONT SIZES FOR TEXT TO ALLOW FLUID TYPOGRAPHY TO WORK */
    .launch-info {
        /* font-size handled by cqi units above */
        max-width: 100%;
        /* Allow container to define width */
    }

    .logo {
        max-width: 160px;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .legal-page {
        padding: 1rem;
    }
}

/* Legal Pages Styling */
.legal-page {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    background-color: rgba(0, 0, 0, 0.7);
    /* Darker background for readability */
    min-height: 100vh;
}

.legal-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.legal-page header {
    margin-bottom: 2rem;
}

.back-link {
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.legal-content h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: left;
}

.legal-content h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.legal-content p,
.legal-content ul {
    font-family: 'Inter', sans-serif;
    font-size: 12.375px;
    /* Exact match to landing page fluid size */
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Site Footer */
.site-footer {
    margin-top: 3rem;
    padding-bottom: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--accent-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 1.5rem;
    z-index: 1000;
    display: none;
    /* Hidden by default, shown via JS */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
}

.cookie-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-btn.accept-all {
    background: linear-gradient(135deg, #CBA792, #946B54);
    color: #fff;
}

.cookie-btn.settings {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}