:root {
    --primary-color: #10b981;
    /* Emerald 500 */
    --primary-dark: #047857;
    /* Emerald 700 */
    --accent-color: #f59e0b;
    /* Amber 500 - Gold */
    --text-color: #1f2937;
    /* Gray 800 - distinct from bg */
    --text-light: #f3f4f6;
    --bg-overlay: rgba(255, 255, 255, 0.1);
    /* Very subtle light overlay */
    --card-bg: rgba(255, 255, 255, 0.85);
    /* Light parchment-like glass */
    --card-border: rgba(255, 255, 255, 0.6);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: #d1d5db;
    --error-color: #dc2626;
    --success-color: #059669;
}

.hp-54809 {
    display: none !important;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sunny warm gradient overlay */
    background: linear-gradient(to bottom,
            rgba(255, 253, 240, 0.2) 0%,
            rgba(16, 185, 129, 0.1) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-header {
    text-align: center;
    margin-bottom: 0;
    /* Removed to let banner control spacing */
    animation: fadeInDown 1s ease-out;
}

/* Hero Motto Styles */
.hero-motto-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    /* Approx 32px from form */
}

h1.glitch {
    font-family: 'Cinzel', serif;
    /* Medieval font */
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    /* Strong shadow for readability on bright background */
    text-shadow: 2px 2px 0px var(--primary-dark), 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Removing the sci-fi glitch effect, replacing with a noble reveal */
.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
    margin-top: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.05rem;
}

.registration-panel {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Golden accent top border */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.glass-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--primary-dark);
}

.glass-card p {
    text-align: center;
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background: #fff;
}

.cta-button {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(to bottom, #10b981, #059669);
    border: 1px solid #047857;
    border-radius: 6px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    letter-spacing: 0.05rem;
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    background: linear-gradient(to bottom, #34d399, #059669);
}

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

.message-area {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.message-area.success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.message-area.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

.hidden {
    display: none;
}

.main-footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsiveness */
@media (max-width: 600px) {
    h1.glitch {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }
}



.early-access-message {
    text-align: center;
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.success-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Hero Motto Styles */
.hero-motto-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* Roman Red Sash Background */
    background: linear-gradient(180deg,
            #991b1b 0%,
            #b91c1c 20%,
            #991b1b 50%,
            #7f1d1d 100%);
    border-top: 4px solid #f59e0b;
    /* Gold accent */
    border-bottom: 4px solid #f59e0b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    padding: 1rem 0 0.8rem 0;
    /* Top: 50% less (1rem), Bottom: 60% less (0.8rem) */
    text-align: center;
    margin-bottom: 2rem;
    /* Reduced to approx 32px away from form */
}

.motto-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
    /* Reduced by 50% from 0.5rem */
}

.motto-line:last-child {
    margin-bottom: 0;
}

.motto-word {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.motto-final {
    display: inline-block;
    color: #ffffff;
    /* White - High contrast */
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;

    opacity: 0;
    transform: scale(1.5);
    filter: blur(10px);

    animation: dramaticReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.5s;

    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Removed fadeInBackground animation */

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

@keyframes dramaticReveal {
    0% {
        opacity: 0;
        transform: scale(1.5);
        filter: blur(10px);
    }

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

/* Responsive adjustments for motto */
@media (max-width: 600px) {
    .hero-motto {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .motto-final {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .motto-final::before {
        display: none;
        /* Hide ellipsis on mobile if it breaks layout looks */
    }
}