/* ------------------- */
/* GLOBAL STYLES & VARIABLES */
/* ------------------- */

:root {
    --color-background: #1A1A1A;
    --color-text: #EAEAEA;
    --color-text-secondary: #A0A0A0;
    --color-accent: #F97316; /* A nice, vibrant orange */
    --color-form-bg: #2C2C2C;
    --color-form-border: #444444;
    --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-section {
    padding: 6rem 0;
}

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

h1, h2 {
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 50ch; /* Improves readability */
}

/* ------------------- */
/* HEADER & NAVIGATION */
/* ------------------- */

.navbar {
    padding: 1.5rem 0;
    margin-bottom: 4rem;
}

/* ------------------- */
/* NEW LOGO STYLES */
/* ------------------- */

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    height: 82px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
}


/* ------------------- */
/* HERO SECTION */
/* ------------------- */

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text p {
    margin-bottom: 2.5rem;
}

/* ------------------- */
/* CTA FORM */
/* ------------------- */

.cta-form {
    display: flex;
    max-width: 480px;
    background-color: var(--color-form-bg);
    border: 1px solid var(--color-form-border);
    border-radius: 9999px; /* Pill shape */
    padding: 0.5rem;
    padding-left: 1.5rem;
}

.cta-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-family-main);
}

.cta-form input::placeholder {
    color: var(--color-text-secondary);
}

.cta-form button {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.cta-form button:hover {
    opacity: 0.9;
}


/* ------------------- */
/* FEATURE SECTIONS */
/* ------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-text p {
    max-width: 45ch;
}

.feature-image img {
    border-radius: 12px;
    border: 1px solid #2f2f2f;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ------------------- */
/* FINAL CTA SECTION */
/* ------------------- */
.final-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.final-cta-section p {
    margin-bottom: 2.5rem;
}

/* ------------------- */
/* FOOTER */
/* ------------------- */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

/* Specific styles for the footer logo to make it slightly larger */
.footer-content .logo-icon {
    height: 40px;
}

.footer-content .logo-text {
    font-size: 1.75rem;
}


.tagline {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin: 0;
}

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

.social-links a {
    color: var(--color-text-secondary);
    transition: color 0.2s ease-in-out;
}

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

.copyright {
    font-size: 0.875rem;
    color: #666;
    margin-top: 1rem;
}

/* ------------------- */
/* RESPONSIVE STYLES (Desktop) */
/* ------------------- */

@media (min-width: 768px) {
    .page-section {
        padding: 8rem 0;
    }

    /* Add this new rule to your CSS file */

header.page-section {
    padding-top: 2rem; /* Or any smaller value you prefer, like 1.5rem or 3rem */
}

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid.layout-reversed .feature-image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .feature-grid.layout-reversed .feature-text {
        grid-column: 2 / 3;
    }
}