@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@800&family=Inter:wght@400;600&display=swap');

:root {
    --midnight-navy: #0A192F; /* A deeper, richer navy */
    --thinking-blue: #88C0D0; /* A slightly softer, more sophisticated blue */
    --slate-gray: #8892b0;
    --light-slate: #ccd6f6;
    --soft-white: #E6F1FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-navy);
    color: var(--soft-white);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 10;
}

.panel {
    padding: 2rem;
    text-align: center;
    max-width: 800px; /* <-- INCREASED FROM 700px */
    width: 90%;
}

.panel__content {
    /* Elements with data-depth will have smooth transitions for parallax */
    transition: transform 0.3s ease-out;
}

.logo {
    width: clamp(70px, 12vw, 90px);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 15px rgba(136, 192, 208, 0.25));
}

.main-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--light-slate);
    margin-bottom: 3rem;
}

.main-heading span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    /* Animation: name duration timing-function delay fill-mode */
    animation: fadeIn-up 0.8s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.main-heading span:nth-child(1) {
    animation-delay: 0.5s;
    white-space: nowrap; /* <-- ADDED THIS RULE TO PREVENT LINE BREAKS */
}

.main-heading span:nth-child(2) {
    animation-delay: 0.7s;
}

.main-heading span:last-child::after {
    content: '.';
    color: var(--thinking-blue);
}

@keyframes fadeIn-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn-up 0.8s 1.0s forwards;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin: 0 auto 2.5rem auto;
    max-width: 50ch;
    color: var(--slate-gray);
}

.form-container label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--light-slate);
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background-color: #162B47;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #24486b;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: box-shadow 0.3s ease;
}
.form-group:focus-within {
    box-shadow: 0 0 0 2px var(--thinking-blue);
}

input[type="email"] {
    flex-grow: 1;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: transparent;
    color: var(--soft-white);
    outline: none;
    min-width: 0;
}

input[type="email"]::placeholder {
    color: var(--slate-gray);
}

button[type="submit"] {
    padding: 1rem 1.75rem;
    border: none;
    background: var(--thinking-blue);
    color: var(--midnight-navy);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
button[type="submit"]:hover {
    background-color: #A3D5E8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px var(--thinking-blue);
}

/* --- Responsive (Mobile) Design --- */
@media (max-width: 768px) {
    .main-heading {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }
    /* On smaller screens, allow the text to wrap again if needed */
    .main-heading span:nth-child(1) {
        white-space: normal;
    }
    .form-group {
        flex-direction: column;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    input[type="email"] {
        border-radius: 8px;
        margin-bottom: 1rem;
        text-align: center;
        border: 1px solid #24486b;
        background-color: #162B47;
    }
    button[type="submit"] {
        border-radius: 8px;
    }
}

/* --- reCAPTCHA Styling --- */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
    transform: scale(0.9); /* adjust size */
    transform-origin: center;
}