:root {
    --primary: #007AFF;
    --bg-dark: #000000;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* FIXED: Allow vertical scrolling for mobile, prevent horizontal shifting */
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Changed from center to prevent top-clipping */
    padding: 2rem 1rem;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1e 0%, #0a0a0b 100%);
    z-index: -1;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin-top: auto; /* Vertically centers container if space allows */
    margin-bottom: auto;
}

/* --- Section Logo & Titre --- */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.brand-logo {
    height: 200px; 
    width: auto;
    display: block;
}

/* --- Content Styling --- */
.badge {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 1.5rem 0;
    line-height: 1.1;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- Form Logic --- */
#notify-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

input[type="email"] {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: white;
    flex-grow: 1;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#form-status {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 1.2rem; /* Prevents layout jump when text appears */
}

/* --- Weather Widget Logic --- */
.weather {
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    max-width: 300px;
}

#weather-container h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

#temp {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

#condition {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    margin-top: 4rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.socials a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--primary);
}