/* Modern CSS Reset & Variables */
:root {
    /* Premium Navy & Gold Palette */
    --bg-primary: #020617;
    /* Deep Navy */
    --bg-secondary: #0f172a;
    /* Slightly lighter navy for cards */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    /* Light slate */
    --accent-primary: #d97706;
    /* Amber-600 (Goldish) */
    --accent-glow: rgba(217, 119, 6, 0.4);
    --success: #10b981;
    --error: #ef4444;

    /* Typography */
    --font-sans: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ... utilities ... */

/* Hero Section */
.hero {
    padding: 6rem 0 2rem;
    /* Reduced from 8rem 0 4rem */
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Add min-height to help vertical centering but allowing shrink */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter overlay to let image show through */
    background-image: linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.8)), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(217, 119, 6, 0.15);
    /* Slight accent tint */
    border: 1px solid var(--accent-primary);
    /* Solid accent border */
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 1.1rem;
    /* Larger */
    margin-bottom: 2rem;
    /* Reduced margin */
    color: var(--accent-primary);
    font-weight: 700;
    /* Bolder */
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.2);
    /* Glow */
}

.hero h1 {
    font-size: 3.5rem;
    /* Slightly smaller to fit */
    margin-bottom: 1rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1rem;
    /* Slightly smaller */
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.location {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    font-size: 1rem;
}

/* Newsletter Section */
.newsletter {
    padding: 2rem 0;
    /* Drastically reduced from 6rem */
}

.card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    /* Reduced padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    /* Constrain width */
    margin: 0 auto;
}

.card h2 {
    font-size: 1.75rem;
    /* Reduced */
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.email-form {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    align-items: stretch;
    /* Ensure equal height */
    gap: 1rem;
    /* Increased separation */
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent-primary);
}

.input-group input {
    flex: 1;
    /* Critical for Flexbox shrinking */
    min-width: 0;
    background: transparent;
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
    /* Remove default iOS/Safari styles */
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    margin: 0;
}

.input-group button {
    padding: 0 1.5rem;
    /* Remove vertical padding, let flex stretch assume height */
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
    /* Explicit margin just in case */
    /* Fix Safari button appearance */
    appearance: none;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hosts Section */
.hosts {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.hosts-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hosts-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.separator {
    color: var(--accent-primary);
    opacity: 0.5;
}

/* Footer */
footer {
    margin-top: 0;
    /* Remove auto margin since we have specific structure */
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
}

.form-feedback.success {
    color: #34d399;
    /* Emerald Green */
}

.form-feedback.error {
    color: #f87171;
    /* Soft Red */
}

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

    .hero h1 {
        font-size: 2.25rem;
        /* Slight adjust for smaller screens */
    }

    .card {
        padding: 2rem 1rem;
        /* Further reduce horizontal padding to fit text */
    }

    .input-group input {
        font-size: 0.9rem;
        /* Slightly smaller text to fit placeholder */
        padding: 0.75rem 0.5rem;
        /* Reduce input padding */
    }

    .badge {
        display: inline-flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 1.5rem;
        line-height: 1.3;
    }

    .badge-label {
        display: block;
        font-size: 0.8rem;
        font-weight: 500;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .badge-date {
        display: block;
        font-size: 1.25rem;
        font-weight: 700;
    }
}