/* --- CSS Reset & Variables --- */
:root {
    /* Color Palette */
    --color-bg: #050505;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-text-primary: #ffffff;
    --color-text-secondary: #888888;
    --color-accent-1: #6366f1;
    --color-accent-2: #a855f7;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Base Styles --- */
html {
    height: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    min-height: 100dvh; /* Handles mobile browser dynamic address bars */
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevents side-scrolling while allowing vertical scroll */
    overflow-y: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Layout --- */
.hero-container {
    flex: 1 0 auto; /* Ensures container stretches to push footer down */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-lg) var(--spacing-md);
    width: 100%;
    z-index: 1;
}

.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Ambient "Brewing" Effect (Fixed Position) --- */
.ambient-brewing-effect {
    position: fixed; /* Fixed prevents glow from stretching scrolling height */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    min-width: 250px;
    min-height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

/* --- Typography --- */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    color: var(--color-accent-2);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.headline {
    font-size: clamp(2.2rem, 8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.highlight-text {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheadline {
    font-size: clamp(0.95rem, 3vw, 1.125rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 2rem;
    padding: 0 var(--spacing-sm);
}

/* --- Form Styles --- */
.notify-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-group {
    display: flex;
    width: 100%;
    max-width: 480px;
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.35rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

input[type="text"],
input[type="email"] {
    flex: 1;
    min-width: 0; /* Keeps input from overflowing flex container */
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    padding: 0.85rem 1.25rem;
    font-size: 1rem; /* 16px minimum prevents iOS zoom */
    outline: none;
}

input::placeholder {
    color: #666;
}

.submit-btn {
    background: var(--color-text-primary);
    color: var(--color-bg);
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    font-size: 0.875rem;
    min-height: 1.25rem;
    margin-top: 0.75rem;
}

.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

/* --- Footer --- */
footer {
    flex-shrink: 0;
    text-align: center;
    padding: var(--spacing-md);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    z-index: 1;
}

/* --- Keyframe Animations --- */
@keyframes pulse-glow {
    0% { transform: scale(0.85); opacity: 0.4; }
    100% { transform: scale(1.25); opacity: 0.8; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Breakpoint (Mobile & Small Tablets) --- */
@media (max-width: 580px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
        border-radius: 0;
    }

    input[type="text"],
    input[type="email"] {
        width: 100%;
        background: var(--color-surface);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 100px;
        text-align: center;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
        border-radius: 100px;
    }
}