/* --- Base Styles & Variables --- */
:root {
    --dark-blue: #0a192f;
    --mid-blue: #112240;
    --light-blue-transparent: rgba(20, 39, 69, 0.7);
    --light-gold: #f0c45c;
    --gold-hover: #ffdd88;
    --text-color: #ccd6f6;
    --light-text: #a8b2d1;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
    --hero-height: 75vh;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-blue);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero {
    min-height: var(--hero-height);
    position: relative;
    /* IMPORTANT: Replace 'images/bg.png' with your actual background image path */
    background: url('images/bg.png') no-repeat center center/cover;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    min-height:70vh
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Adjust if image is removed */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    min-height: calc(var(--hero-height) * 0.6);
}

/* Text Content and Form Combined Area */
.hero-text-and-optin {
    flex-basis: 100%; /* Adjust width as needed, or make 100% if no image */
    /* padding-right: 30px; Removed for easier centering */
    z-index: 10;
    text-align: center; /* Center align text and inline/block elements */
}

.logo {
    width:100%;
    text-align:center;
    display:block;
}
.logo img {
    max-width:100%;
    width:500px;
    margin-bottom:40px;
}

.hero-title {
    font-family: var(--heading-font);
    color: var(--light-gold);
    font-size: 3.5rem;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    line-height:3.6rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px; /* Space between subtitle and form */
    max-width: 550px; /* Limit width slightly */
    color: var(--text-color);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin-left: auto; /* Center within container */
    margin-right: auto; /* Center within container */
}

/* Opt-in form below text - Centered */
.hero-opt-in {
    display: flex;
    align-items: center;
    justify-content: center; /* Center form items horizontally */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 10px; /* Space between input and button */
    position: relative; /* For absolute positioning of message */
    margin-top: 20px; /* Space above form */
    max-width: 500px; /* Limit width of form area */
    margin-left: auto;
    margin-right: auto;
}

.hero-opt-in input[type="email"] {
    padding: 12px 15px;
    border: 1px solid var(--light-gold);
    background-color: rgba(10, 25, 47, 0.7); /* Input background */
    color: var(--text-color);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 250px; /* Ensure decent input width */
    flex-grow: 1; /* Allow input to take space */
}

.hero-opt-in input[type="email"]::placeholder {
    color: #8892b0;
}

.hero-opt-in .cta-button {
    padding: 12px 25px;
    background-color: var(--light-gold);
    color: var(--dark-blue);
    border: none;
    border-radius: 4px;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0; /* Prevent button from shrinking too much */
}

.hero-opt-in .cta-button:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

#form-message { /* Style message inside the form */
    width: 100%; /* Take full width below inputs when wrapped */
    margin-top: 8px;
    font-size: 0.9rem;
    min-height: 1.2em;
    text-align: center; /* Center message text */
    /* Color set by JS */
}

/* Hero Woman Image - Positioned on the right */
.hero-woman {
    flex-basis: 40%; /* Take up remaining space */
    max-width: 40%; /* Limit max width */
    height: auto;
    align-self: flex-end; /* Align to bottom of flex container */
    position: relative; /* Relative positioning within flex flow */
    bottom: -20px; /* Nudge down slightly */
    z-index: 8;
    /* Keep entry and float animation */
    animation: floatInWoman 1.2s ease-out 0.5s forwards, floatWomanSimple 6s ease-in-out 1.7s infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    /* Add a placeholder style if image is missing */
    content: ''; /* Required for pseudo-element */
    display: block; /* Or inline-block */
    background-color: #1a2d4a; /* Placeholder background */
    border: 1px dashed var(--light-text);
    min-height: 300px; /* Give it some size */
}

/* --- Star Animation --- */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.star {
    position: absolute;
    width: 1.5px;
    height: 1.5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white, 0 0 10px white;
    opacity: 0;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* --- Main Content Area Styling --- */
.content-area {
    padding: 80px 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.8) 0%, rgba(17, 34, 64, 0.95) 50%, rgba(10, 25, 47, 0.8) 100%), var(--dark-blue);
    border-radius: 15px 15px 0 0;
    margin-top: -50px;
    z-index: 3;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

/* --- Content Block Styling --- */
.content-block {
    margin-bottom: 70px;
}

.section-title {
    font-family: var(--heading-font);
    color: var(--light-gold);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-gold), transparent);
    opacity: 0.7;
}

.section-content {
    max-width: 750px; /* Default max width */
    margin: 0 auto;
    text-align: center;
    color: var(--light-text);
}

.section-content p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.decorative-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-hover), transparent);
    margin: 60px auto 0;
    opacity: 0.6;
}
#whats-inside .decorative-line { /* Hide if inside last block */
     display: none;
}


/* --- Section 1: Why Subscribe / Redesigned --- */
#why-subscribe .section-content.why-intro-container { /* Specific container */
    max-width: 850px; /* Allow slightly wider for grid */
}

.why-intro-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-align: center;
}

.why-items-container {
    /* display: flex; */ /* REMOVED Flexbox */
    /* flex-wrap: wrap; */ /* REMOVED Flexbox */
    /* justify-content: center; */ /* REMOVED Flexbox */
    display: grid;                     /* ADDED Grid */
    grid-template-columns: 1fr 1fr;    /* ADDED Grid: Two equal columns */
    /* You can also use: grid-template-columns: repeat(2, 1fr); */
    gap: 30px; /* Adjust gap between items - works for Grid too */
    margin-top: 40px;
    /* Removed justify-content - grid columns will fill space */
}

.why-item {
    /* flex: 1 1 200px; */ /* REMOVED Flexbox */
    /* max-width: 250px; */ /* REMOVED Flexbox (optional: could add back if needed) */
    background-color: var(--mid-blue);
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(240, 196, 92, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* For scroll animation */
    transform: translateY(20px); /* For scroll animation */
    /* Add max-width back if you want to prevent extreme stretching on wide screens */
    /* max-width: 300px;  <-- Example */
}
/* Stagger animation for items within the section */
#why-subscribe.visible .why-item:nth-child(1) { transition-delay: 0.1s; }
#why-subscribe.visible .why-item:nth-child(2) { transition-delay: 0.2s; }
#why-subscribe.visible .why-item:nth-child(3) { transition-delay: 0.3s; }
#why-subscribe.visible .why-item:nth-child(4) { transition-delay: 0.4s; }

.why-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.why-icon-container {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--light-blue-transparent) 0%, var(--dark-blue) 80%);
    border: 1px solid rgba(240, 196, 92, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between icon and text */
    flex-shrink: 0; /* Prevent icon shrinking */
}

.why-icon i {
    font-size: 2rem; /* Slightly larger icon */
    color: var(--light-gold);
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.why-item:hover .why-icon i {
    transform: scale(1.1);
}

.why-text h4 {
    font-family: var(--heading-font);
    color: var(--light-gold);
    font-size: 1.2rem; /* Heading for the item */
    margin-bottom: 8px;
    font-weight: 700;
}

.why-text p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0; /* Remove default p margin */
    line-height: 1.5;
}


/* --- Section 2: Statistics --- */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-gold);
    line-height: 1.1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Section 3: What's Inside --- */
.inside-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.inside-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--light-blue-transparent);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--light-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inside-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.inside-icon i {
    font-size: 1.8rem;
    color: var(--light-gold);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.inside-text h3 {
    font-family: var(--heading-font);
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.inside-text p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--light-text);
}

footer a {
    color: var(--light-gold);
}

/* --- Animations --- */

/* Keyframes */
@keyframes floatWomanSimple { /* Simpler float for relative position */
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatInWoman { /* Woman image entry */
     from { opacity: 0; transform: translateY(40px); } /* Slide up */
     to { opacity: 1; transform: translateY(0); }
}

/* Removed constellation specific keyframes: popInStar, pulseGlow, fadeInCenter */

/* Animation Trigger Classes & Application */
.animate-on-load {
    opacity: 0; /* Initial state */
    animation-fill-mode: forwards;
}
/* Apply specific load animations */
.hero-title.animate-on-load {
    animation-name: fadeInUp; animation-duration: 1s; animation-timing-function: ease-out; animation-delay: 0.2s;
}
.hero-subtitle.animate-on-load {
    animation-name: fadeInUp; animation-duration: 1s; animation-timing-function: ease-out; animation-delay: 0.4s;
}
.hero-opt-in.animate-on-load { /* Apply to the form */
    animation-name: fadeInUp; animation-duration: 1s; animation-timing-function: ease-out; animation-delay: 0.6s;
}
/* Hero Woman animation applied directly in its rule */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Trigger item animations when section is visible */
.animate-on-scroll.visible .why-item {
    opacity: 1;
    transform: translateY(0);
    /* transition-delay is handled inline in the .why-item rule */
}

/* Stagger examples for other sections */
.stats-container .stat-item { transition-delay: 0.1s; }
.inside-content .inside-item { transition-duration: 0.7s; }


/* --- Responsiveness --- */

/* Tablet */
@media (max-width: 992px) {
    :root { --hero-height: auto; }
    .hero { min-height: auto; padding: 60px 5% 40px; }

     .hero-content-wrapper {
        flex-direction: column; /* Stack elements */
        text-align: center;
        min-height: auto;
    }
     .hero-text-and-optin {
        flex-basis: auto; /* Reset basis */
        order: 1; /* Text and form first */
        width: 100%;
        max-width: 600px; /* Limit width */
        margin-bottom: 40px; /* Space below text/form block */
    }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { /* Already centered */ }
    .hero-opt-in { /* Already centered */ }
    #form-message { text-align: center; } /* Center message */

    .hero-woman {
        order: 2; /* Image second */
        flex-basis: auto; /* Reset basis */
        align-self: center; /* Center align */
        position: relative;
        bottom: auto; /* Reset nudge */
        max-height: 350px;
        max-width: 60%; /* Allow slightly wider */
        margin: 0 auto; /* Center horizontally */
         /* Use simple entry animation */
        animation: floatInWoman 1.2s ease-out 0.5s forwards;
    }

    .content-area { margin-top: 0; border-radius: 0; padding: 60px 15px 40px; }
    .section-title { font-size: 2.2rem; }

    /* Why Subscribe Tablet Adjustments */
    .why-items-container {
        gap: 25px;
        /* grid-template-columns: 1fr 1fr; <-- Already set */
    }

    .why-item {
        /* flex-basis: calc(50% - 25px); */ /* REMOVED Flexbox */
        /* max-width: none; */ /* REMOVED Flexbox */
        /* Grid handles column width */
    }
}


/* Mobile */
@media (max-width: 576px) {
     .hero { padding: 40px 5% 30px; }

     .hero-text-and-optin { margin-bottom: 30px; } /* Adjust space */
     .hero-title { font-size: 2.2rem; line-height: 1.3; } /* Reduced size */
     .hero-subtitle { font-size: 1rem; margin-bottom: 25px;}
     .hero-opt-in {
         flex-direction: column; /* Stack form elements */
         align-items: stretch; /* Make elements full width */
         margin-top: 15px;
         max-width: 320px; /* Further constrain form width */
     }
     .hero-opt-in input[type="email"] { min-width: auto; width: 100%; }
     .hero-opt-in .cta-button { width: 100%; }

     .hero-woman {
         max-height: 250px;
         max-width: 70%;
     }

    .content-area { padding: 40px 10px 30px; }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; padding-bottom: 10px; }
    .section-title::after { width: 60px; }
    .section-content { text-align: center; } /* Center text content by default */
    .section-content p { font-size: 1rem; }

    /* Why Subscribe Mobile */
    .why-intro-text { font-size: 1rem; margin-bottom: 30px;}

    .why-items-container {
        grid-template-columns: 1fr; /* CHANGED: Single column for mobile */
        gap: 20px;
        justify-items: center; /* Center items within the grid column */
    }

    .why-item {
        /* flex-basis: 85%; */ /* REMOVED Flexbox */
        max-width: 300px; /* Keep max-width for single column */
        width: 90%; /* Ensure it doesn't hit edges completely */
        padding: 20px 15px;
         /* Delays still apply via section visibility */
    }
    .why-icon-container { width: 60px; height: 60px; margin-bottom: 15px; }
    .why-icon i { font-size: 1.8rem; }
    .why-text h4 { font-size: 1.1rem; }
    .why-text p { font-size: 0.9rem; }

    /* Statistics Mobile */
    .stats-container { flex-direction: column; gap: 25px; align-items: center; }
    .stat-item { text-align: center; }
    .stat-number { font-size: 2.8rem; }

    /* What's Inside Mobile */
    .inside-content { gap: 25px; }
    .inside-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        border-left: none;
        border-top: 3px solid var(--light-gold);
    }
    .inside-icon i { margin-top: 0; margin-bottom: 10px;}
    .inside-text h3 { font-size: 1.2rem; }
    .inside-text p { text-align: center;} /* Ensure inside p is centered */
}