/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6; /* Slightly brighter blue */
    --primary-dark: #2563eb;
    --primary-light: #eff6ff; /* Lighter blue for backgrounds */
    --secondary: #6b7280; /* Cool gray */
    --dark: #111827; /* Near black */
    --gray: #4b5563;
    --light-gray: #9ca3af;
    --lighter-gray: #e5e7eb;
    --lightest-gray: #f9fafb; /* Off-white background */
    --text: #374151; /* Dark gray text */
    --white: #ffffff;
    --green: #10b981; /* Accent green for success/checks */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --btn-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    --transition: all 0.2s ease-in-out;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white); /* Cleaner white background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1140px; /* Slightly wider max-width */
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 6rem 0;
    overflow: hidden; /* Prevent horizontal scroll from animations/overlaps */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Button styles */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.8rem; /* Slightly adjusted padding */
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
}

.primary-btn, .cta-btn, .cta-button, .plan-btn {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--btn-shadow);
}

.primary-btn:hover, .cta-btn:hover, .cta-button:hover, .plan-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--lighter-gray);
    box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.text-btn {
    color: var(--primary);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.text-btn i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.text-btn:hover i {
    transform: translateX(3px);
}

/* Header styles */
header {
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.6rem; /* Slightly larger */
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem; /* Increased gap */
}

.nav-links li a {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn {
    font-weight: 600;
    color: var(--gray);
    padding: 0.5rem 0; /* Add padding for easier click */
}

.login-btn:hover {
    color: var(--primary);
}

.cta-btn {
    padding: 0.6rem 1.5rem; /* Adjusted padding */
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px; /* Thinner lines */
    background-color: var(--dark);
    margin: 3px 0; /* Slightly more space */
    transition: var(--transition);
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    padding: 6rem 0 8rem 0; /* More padding */
    background: linear-gradient(180deg, var(--white) 0%, var(--lightest-gray) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1.1; /* Give slightly more space to text */
    z-index: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

/* Optional: Add a subtle background shape behind the hero image */
.hero-image::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,0) 60%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -5%;
    left: -5%;
    z-index: 0;
    opacity: 0.6;
}

h1 {
    font-size: 3.2rem; /* Larger */
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -1px;
}

h2 {
    font-size: 1.2rem; /* Slightly smaller */
    font-weight: 400; /* Lighter weight */
    color: var(--gray);
    margin-bottom: 2.5rem; /* More space */
    max-width: 550px;
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem; /* Adjusted space */
    letter-spacing: -0.5px;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Pain Point Section */
.pain-point-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.pain-point {
    background-color: transparent; /* Remove background */
    padding: 0;
    border-radius: 0;
    box-shadow: none; /* Remove shadow */
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.pain-point p {
    font-size: 1.3rem; /* Slightly larger */
    color: var(--gray);
    line-height: 1.8;
}

/* Trusted Clients */
.trusted-clients {
    padding: 4rem 0;
    background-color: var(--lightest-gray);
    text-align: center;
}

.trusted-clients h3 {
    font-size: 1rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.client-logo {
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo img {
    height: 35px; /* Control height */
    width: auto;
    filter: grayscale(100%);
    transition: var(--transition);
}

.client-logo:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* How it works section */
.how-it-works {
    background-color: var(--white);
    padding: 6rem 0;
}

.steps {
    display: grid; /* Use grid for better alignment */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.step {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: left; /* Align text left */
    border: 1px solid var(--lighter-gray);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-icon {
    font-size: 1.8rem; /* Slightly smaller */
    color: var(--primary);
    margin-bottom: 1.5rem;
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-text {
    font-weight: 600; /* Slightly less bold */
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features/Benefits Section */
.features {
    padding: 6rem 0;
    background-color: var(--lightest-gray); /* Revert to light gray */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 4rem; /* Slightly reduced gap */
    position: relative; /* For potential pseudo-elements */
}

/* Alternate layout for second feature if needed */
.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    padding-right: 2rem; /* Add padding to prevent text collision */
}

.feature-item:nth-child(even) .feature-content {
    padding-right: 0;
    padding-left: 2rem;
}

.feature-image {
    flex: 0 0 50%; /* Give image fixed proportion */
    text-align: center;
}

.feature-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    /* Add a subtle perspective effect */
    transform: perspective(1200px) rotateY(-4deg) scale(0.95);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.feature-item:nth-child(even) .feature-image img {
    transform: perspective(1200px) rotateY(4deg) scale(0.95);
}

.feature-image:hover img {
    transform: perspective(1200px) rotateY(0deg) scale(1);
    box-shadow: var(--shadow-lg);
}

.feature-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-list {
    margin-top: 2.5rem; /* Add space above list */
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem; /* Reduced gap */
}

.feature-list li {
    margin-bottom: 0;
    display: flex;
    align-items: center; /* Center align items vertically */
    background-color: var(--white); /* White background for card */
    padding: 1rem 1.2rem; /* Adjusted padding */
    border-radius: var(--border-radius);
    border: 1px solid var(--lighter-gray);
    border-left: 4px solid var(--primary); /* Prominent left border */
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-list li:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: var(--shadow);
    border-color: var(--lighter-gray);
    border-left-color: var(--primary-dark);
}

.feature-list li i {
    color: var(--primary); /* Use primary color for icon */
    background-color: var(--primary-light); /* Light primary background */
    border-radius: 50%;
    width: 32px; /* Fixed size */
    height: 32px;
    display: inline-flex; /* Use inline-flex */
    align-items: center;
    justify-content: center;
    margin-right: 1rem; /* More space */
    margin-top: 0; /* Reset margin-top */
    flex-shrink: 0;
    font-size: 0.9rem; /* Slightly smaller icon */
}

.feature-list li strong {
    color: var(--dark);
    margin-right: 4px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--lightest-gray) 100%);
    padding: 6rem 0;
}

.cta {
    background-color: var(--white);
    padding: 3rem; /* More padding */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 650px; /* Slightly wider */
    margin: 0 auto;
    text-align: center;
}

.cta h3 {
    font-size: 2rem;
    margin-top: 0.5rem; /* Space after tag */
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

input, select {
    width: 100%;
    padding: 0.9rem 1.1rem; /* Adjusted padding */
    border: 1px solid var(--lighter-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
    background-color: var(--lightest-gray);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

input::placeholder {
    color: var(--light-gray);
}
/* Style select dropdown arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1em;
    padding-right: 2.5rem;
}

.cta-button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem; /* Larger button text */
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.form-footer {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 1.5rem;
}

.form-response {
    margin-top: 1.5rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.form-response.success {
    background-color: #e0fdf4; /* Light green background */
    color: #059669; /* Darker green text */
}

.form-response.error {
    background-color: #fee2e2; /* Light red background */
    color: #dc2626; /* Darker red text */
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light-gray); /* Lighter text for footer */
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column:first-child {
    grid-column: span 1 / span 1; /* Allow logo column to be narrower */
}

@media (min-width: 768px) {
    .footer-column:first-child {
        grid-column: span 2 / span 2; /* Make logo column wider on larger screens */
    }
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.footer-column p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--light-gray);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--light-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px; /* Subtle hover effect */
}

.footer-bottom {
    border-top: 1px solid #374151; /* Darker border */
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    .hero .container {
        gap: 3rem;
    }
    .feature-item:nth-child(even) .feature-content {
        padding-left: 0;
    }
    .feature-image {
        margin-top: 3rem; /* More space when stacked */
        flex-basis: auto; /* Reset basis when stacked */
    }
    /* Ensure image rotation is reset when stacked */
    .feature-image img,
    .feature-item:nth-child(even) .feature-image img {
        transform: perspective(1200px) rotateY(0deg) scale(1);
        box-shadow: var(--shadow-md); /* Reset shadow */
    }
}

/* ============================================= */
/* Responsive Styles for Mobile (e.g., <= 768px) */
/* ============================================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show the hamburger icon */
        z-index: 1001; /* Ensure hamburger is clickable over nav */
    }

    .nav-links {
        position: fixed; /* Use fixed for full screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center; /* Center links vertically */
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        transform: translateX(100%); /* Hide off-screen to the right */
        transition: transform 0.3s ease-in-out;
        z-index: 999; /* Below header */
    }

    .nav-links.active {
        transform: translateX(0); /* Slide the menu in */
    }

    .nav-links li a {
        font-size: 1.2rem; /* Larger font for mobile menu */
    }

    .nav-buttons {
        /* Can optionally hide or move into mobile nav */
        display: none; /* Hide the desktop buttons (Login/Join) */
    }

    /* Prevent potential horizontal overflow on main sections */
    section {
        overflow-x: hidden;
    }

    /* --- Hero Section Adjustments --- */
    .hero .container {
        flex-direction: column; /* Stack content and image vertically */
        text-align: center;     /* Center-align text content */
        gap: 3rem;              /* Adjust gap for vertical stacking */
    }

    .hero-content {
        order: 2; /* Display text content below the image */
        max-width: 100%; /* Ensure text container doesn't overflow */
    }

    .hero-image {
        order: 1; /* Display image above the text content */
        margin-bottom: 0; /* Reset bottom margin if any */
        max-width: 80%; /* Optional: constrain image width slightly */
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 2.2rem; /* Optional: Adjust headline size */
    }

    .hero h2 {
        font-size: 1.1rem; /* Optional: Adjust subheadline size */
        margin-left: auto; /* Center subheadline if it had a max-width */
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center; /* Center button(s) */
        margin-top: 2rem;      /* Adjust top margin */
    }

    /* Optional: If buttons should also stack */
    /*
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    */


    /* --- "How It Works" Section Adjustments --- */
    .steps {
        grid-template-columns: 1fr; /* Force a single column layout */
        gap: 2rem;                 /* Ensure vertical space between steps */
    }

    .step {
        text-align: center; /* Center text within each step card */
    }

    /* Center icon if it's not already centered within the step */
    .step-icon {
        margin-left: auto;
        margin-right: auto;
    }


    /* --- Testimonials Section Adjustments --- */
    /* Adjust selector based on your actual testimonials container */
    .testimonial-slider,
    .testimonials-grid { /* Use the correct class for your layout */
        flex-direction: column; /* If using Flexbox */
        grid-template-columns: 1fr; /* If using Grid */
        align-items: center;    /* Center items horizontally */
        gap: 2rem;              /* Add space between stacked testimonials */
    }

    /* Ensure individual testimonials don't exceed screen width */
    .testimonial {
        max-width: 95%; /* Adjust as needed */
        width: 100%;
    }


    /* --- General Mobile Readability --- */
    /* You might adjust base font sizes or padding */
    body {
        /* font-size: 15px; /* Example: Slightly smaller base font */
    }

    .container {
         padding: 0 15px; /* Ensure consistent padding */
    }

}

/* Optional: Further adjustments for very small screens */
@media (max-width: 480px) {
     h1, .hero h1 { /* Target h1 specifically if needed */
        font-size: 2rem;
     }
     /* Make hero buttons stack */
     .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
} 