/* Design Tokens & Custom Variables */
:root {
    --bg-dark: #070708;
    --bg-card: rgba(15, 15, 18, 0.6);
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A059;
    --gold-light: #FFEFA6;
    --gold-dark: #8A640F;
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    --text-primary: #F5F5F7;
    --text-muted: #9E9E9F;
    --text-dark: #1D1D1F;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas Layer */
#interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto; /* Allow interactivity */
}

/* Ambient glow blobs in the background */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: screen;
}

.glow-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(138, 100, 15, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: -10%;
    left: -10%;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: -20%;
    right: -10%;
    animation: floatGlow 20s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Main Container Layout */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.5rem;
    pointer-events: none; /* Let canvas receive interactions outside card */
}

.container > * {
    pointer-events: auto; /* Enable clicks on visible UI elements */
}

/* Header styling */
.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    user-select: none;
}

.logo img {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.5));
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ampersand {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--gold-primary);
    -webkit-text-fill-color: initial;
}

/* Hero Card Styling */
.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 680px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin: auto 0;
    transition: border-color 0.5s ease;
}

.hero-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: rgba(212, 175, 55, 0.05);
    margin-bottom: 2rem;
    animation: pulseBorder 3s infinite ease-in-out;
}

@keyframes pulseBorder {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
    50% {
        box-shadow: 0 0 8px 1px rgba(212, 175, 55, 0.15);
    }
}

.headline {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--gold-primary);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.15));
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* Countdown Timer Styling */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 75px;
}

.time-num {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.time-divider {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(212, 175, 55, 0.4);
    transform: translateY(-8px);
}

/* Signup Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .signup-form {
        flex-direction: row;
        align-items: stretch;
    }
}

.input-group {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.input-group label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Floating Label Effects */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--gold-primary);
    background: #0f0f12; /* Matches fallback background opacity solid representation */
    padding: 0 0.4rem;
}

.input-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Feedback message */
.form-feedback {
    margin-top: 1rem;
    font-size: 0.85rem;
    height: 20px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.form-feedback.success {
    color: #4BB543;
    opacity: 1;
}

.form-feedback.error {
    color: #ff3333;
    opacity: 1;
}

/* Footer Styling */
.footer {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .hero-card {
        padding: 2.5rem 1.5rem;
    }
    
    .headline {
        font-size: 1.85rem;
    }
    
    .countdown-container {
        gap: 0.75rem;
    }
    
    .time-block {
        min-width: 55px;
    }
    
    .time-num {
        font-size: 1.85rem;
    }
    
    .time-divider {
        font-size: 1.5rem;
        transform: translateY(-5px);
    }
}
