@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --background: #F7F5F2; /* Light background */
    --text-primary: #2C3E50; /* Dark text */
    --text-secondary: rgba(44, 62, 80, 0.75); /* Slightly lighter dark text */
    --accent: #5C90A8; /* New accent */
    --accent-dark: #4A7B8F; /* Darker accent */
    --surface-light: rgba(44, 62, 80, 0.1); /* Subtle dark shade on light background */
    --surface-dark: #FFFFFF; /* Light surface for contrast */
    --gradient-primary: linear-gradient(135deg, #5C90A8 0%, #4A7B8F 100%); /* New accent gradient */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor Styling */
.cursor {
    display: none; /* Hidden by default, shown on desktop */
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent); /* Use brand accent color */
    border-radius: 50%;
    position: fixed;
    pointer-events: none; /* Allows clicking through the cursor */
    z-index: 9999; /* High z-index */
    transition: transform 0.15s ease-out, background-color 0.15s ease-out, opacity 0.3s ease-out;
    transform: translate(-50%, -50%);
    opacity: 1; /* Make sure it's visible */
}

@media (min-width: 1025px) { /* Only show custom cursor on desktop */
    body {
        cursor: none; /* Hide system cursor */
    }
    .cursor {
        display: block;
    }
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--accent); /* Use brand accent color for hover fill */
    opacity: 0.5; /* Slight transparency on hover */
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(247, 245, 242, 0.85); /* Light background with blur */
    backdrop-filter: blur(20px);
    padding: 1rem 4rem;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.1); /* Subtle shadow for scrolled nav */
}

.logo {
    /* Base styles for .logo container. Specifics for nav/footer will be separate. */
    display: flex; 
    align-items: center;
    /* No specific width/height here, let content or specific rules dictate */
}

.logo img {
    display: block;
    height: auto; /* Base: will be overridden by specific rules */
    width: auto;  /* Base: let width adjust to maintain aspect ratio based on height */
    /* max-width: 100%; is removed as direct height is set, and parent container will be constrained if needed */
}

/* Navigation Bar Logo */
nav.main-nav .logo {
    display: inline-block; /* Allow it to sit inline with other nav items if any, and not take full width */
    vertical-align: middle; /* Align nicely with other nav items */
}

nav.main-nav .logo img {
    height: 40px; /* Updated height */
    width: auto;   /* Maintain aspect ratio */
    display: block; /* Ensure it behaves as a block within its container */
}

/* Footer Logo */
footer .logo { 
    display: block;
    width: auto; /* Let width be determined by the image content */
    max-width: 250px; /* Set a reasonable max-width for the logo container in the footer */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

footer .logo img {
    height: 55px;  /* Updated height */
    width: auto;    /* Maintain aspect ratio */
    display: block; /* Ensure it behaves as a block */
    margin-left: auto; /* Center img if parent is wider than img */
    margin-right: auto;/* Center img if parent is wider than img */
}

.nav-cta {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section {
    background: var(--background); /* Use main light background */
    text-align: center;
    padding-top: 8rem;
}

.hero-content {
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.pre-title {
    display: inline-block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.main-title {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary); /* Main text color for title */
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 200px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--surface-light); /* This will be a subtle dark line on light bg */
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    margin: 0 auto 1rem auto;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 8rem 6rem;
    align-items: center;
}

.feature-section.light {
    background: var(--background); /* Default light background */
}

.feature-section.dark {
    background: #EDEDED; /* A slightly darker grey for contrast */
}

.feature-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(92, 144, 168, 0.1); /* Light accent tint */
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.feature-content {
    opacity: 0;
    transform: translateX(-50px);
}

.feature-section.in-view .feature-content {
    animation: fadeInLeft 1s ease forwards;
}

.feature-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary); /* Main text color */
}

.feature-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
}

.feature-section.in-view .feature-visual {
    animation: fadeInRight 1s ease forwards;
}

.social-proof {
    background: #EDEDED; /* Light grey, similar to .feature-section.dark */
    padding: 6rem 4rem;
    text-align: center;
}

.proof-content h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: var(--surface-dark); /* White background for testimonials */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.08); /* Subtle shadow */
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-size: 1.25rem;
    color: var(--text-primary); /* Dark text on light background */
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-attr {
    color: var(--accent);
    font-size: 0.9rem;
}

.cta-section {
    background: #EDEDED; /* Light grey contrast background */
    text-align: center;
    padding: 8rem 4rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.exclusive-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #FFFFFF; /* White text on accent background */
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.cta-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none; /* Remove default browser list style */
    padding-left: 0;  /* Remove default padding */
    display: block;   /* Change from flex to block for a vertical list */
    max-width: 400px; /* Constrain width */
    margin: 2rem auto; /* Center the block and keep vertical margin */
    text-align: left;  /* Align text to the left */
}

.benefits-list li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    padding-left: 28px; /* 16px icon width + 12px space */
    margin-bottom: 0.75rem; 
}

.benefits-list li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C90A8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    position: absolute;
    left: 0;
    top: 4px; /* Adjust for vertical alignment */
    width: 16px; 
    height: 16px;
    opacity: 0; /* Initially hidden */
    transform: scale(0.5); /* Initially smaller */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out; /* Smooth transition for appearance */
}

/* Animation for checkmarks when CTA section is in view */
.cta-section.in-view .benefits-list li::before {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animation delays for checkmarks */
.cta-section.in-view .benefits-list li:nth-child(1)::before {
    transition-delay: 0.5s;
}
.cta-section.in-view .benefits-list li:nth-child(2)::before {
    transition-delay: 1.5s;
}
.cta-section.in-view .benefits-list li:nth-child(3)::before {
    transition-delay: 3.0s;
}
/* Add more if there are more benefits - currently 3 */

/* Optional: Keyframes definition (not strictly necessary with current transition approach) */
@keyframes appearCheck {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 3rem auto 1rem;
    background: var(--surface-dark); /* White background for input group */
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.08); /* Subtle shadow */
}

.form-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary); /* Dark text for input */
    font-family: inherit;
    font-size: 1rem;
}

input[type="email"]::placeholder {
    color: var(--text-secondary); /* Secondary dark text for placeholder */
}

button {
    background: var(--accent);
    color: #FFFFFF; /* White text on accent buttons */
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 144, 168, 0.2); /* Shadow with new accent color */
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

footer {
    padding: 4rem;
    text-align: center;
    background: var(--background); /* Main light background */
    border-top: 1px solid var(--surface-light); /* Subtle separator line */
}

footer p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
    .main-title {
        font-size: 5rem;
    }
    
    .feature-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }
    
    .feature-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
        padding: 6rem 4rem;
    }
    
    .feature-content {
        order: 1;
    }
    
    .feature-content p {
        margin: 0 auto 2rem;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1.5rem 2rem;
    }

    .main-nav.scrolled {
        padding: 1rem 2rem;
    }
    
    nav.main-nav .logo {
        margin-right: 15px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 2rem;
        min-height: auto;
    }

    /* Hide scroll indicator on mobile to prevent overlap */
    .scroll-indicator {
        display: none;
    }
    
    .feature-content h2 {
        font-size: 2.5rem;
    }
    
    .feature-content p {
        font-size: 1.1rem;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 15px;
        padding: 1rem;
        gap: 1rem;
        margin: 2rem auto 1rem;
    }

    input[type="email"] {
        text-align: center;
        padding: 0.75rem;
        border-radius: 25px;
        background: rgba(44, 62, 80, 0.05); /* Subtle dark input background on mobile */
    }
    
    button {
        width: 100%;
        padding: 0.75rem;
    }

    button:hover {
        transform: none;
        box-shadow: none;
    }

    button:active {
        transform: scale(0.98);
    }

    .benefits-list {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .proof-content h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.25rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .feature-section {
        padding: 3rem 1rem;
    }

    .pre-title {
        font-size: 0.9rem;
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    .testimonial p {
        font-size: 1.1rem;
    }

    .form-note {
        padding: 0 1rem;
    }
}

/* Fix for iPhone notch */
@supports (padding: max(0px)) {
    .main-nav {
        padding-left: max(2rem, env(safe-area-inset-left));
        padding-right: max(2rem, env(safe-area-inset-right));
    }

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
