/* --- Variables matching the attached Logo --- */
:root {
    --bg-dark: #0B162C;          /* Match exactly the logo's background hex */
    --brand-blue: #3DA3E5;       /* Light blue matching the truss */
    --brand-blue-hover: #298cd1;
    --text-cream: #F4F1EA;       /* "MEGMAR" serif color */
    --text-muted: #94A3B8;
    --font-heading: 'Cinzel', 'Georgia', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-cream);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    /* Removed background gradient so the square boundaries of the raster image are absolutely invisible */
}

/* --- Subtle Background Elements --- */
.bg-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vh;
    height: 60vh;
    background: radial-gradient(circle, rgba(61, 163, 229, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* --- Layout --- */
.container {
    padding: 2rem;
    max-width: 750px;
    width: 100%;
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Logo Styling --- */
.logo-wrapper {
    margin-bottom: 2.5rem;
}

.official-logo {
    max-width: 100%;
    height: auto;
    width: 580px; 
    /* Soft drop shadow to give depth without disrupting the background color blend */
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.official-logo:hover {
    transform: scale(1.02);
}

/* --- Typography --- */
.headline {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--text-cream);
    /* Subtle text shadow */
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Form Styling --- */
.notify-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    display: flex;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.input-group:focus-within {
    border-color: rgba(61, 163, 229, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(61, 163, 229, 0.15);
}

.notify-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: var(--text-cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.notify-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.notify-btn {
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notify-btn:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 163, 229, 0.3);
}

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

.arrow-icon {
    transition: transform 0.3s ease;
}

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

.form-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success {
    color: #4ade80;
    opacity: 1;
}

.form-message.error {
    color: #f87171;
    opacity: 1;
}

/* --- Footer --- */
.footer {
    position: absolute;
    bottom: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(148, 163, 184, 0.4);
    text-transform: uppercase;
    z-index: 1;
}

/* --- Animations --- */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.animate-slide-up-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.animate-slide-up-delayed-more {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.7s;
}

.animate-fade-in-slow {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 1.2s;
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .official-logo { width: 90%; }
    .headline { font-size: 2rem; }
    .description { font-size: 1rem; padding: 0 1rem; }
    .input-group { flex-direction: column; border-radius: 20px; background: transparent; border: none; box-shadow: none; gap: 15px;}
    .input-group:focus-within { box-shadow: none; background: transparent; }
    .notify-input { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px; text-align: center; background: rgba(255, 255, 255, 0.03); padding: 16px;}
    .notify-btn { padding: 16px; justify-content: center; width: 100%; }
}