/* --- Global Reset and Typography --- */
:root {
    /* --- NEW CHARGED INTERACTION BRAND COLORS --- */
    /* Primary Accent: Electric Teal (High-Octane/Innovation) */
    --color-accent-teal: #00ADB5; 
    /* Primary Dark: Charcoal Grey (Trust/Premium/B2B) */
    --color-dark: #222831; 
    /* Gradient: A smooth blend using the new dark and a slightly lighter slate blue for depth */
    --color-gradient-start: #393E46; /* Lighter Slate Blue/Grey */
    --color-gradient-end: #222831;   /* Primary Charcoal Dark */
    
    --color-light-bg: #f8f9fa; /* Matches main-content background */
    --color-text-light: #fff;
    --color-gray: #6c757d; /* Standard subtle text color */
    
    --shadow-base: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Matches card shadow */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--color-dark);
}

h1 { font-size: 2.8em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

/* --- Gradient and Shadow Utilities --- */
.gradient-bg {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
}

.highlight-text {
    /* Uses the new Electric Teal accent for the underline */
    color: var(--color-dark); 
    border-bottom: 2px solid var(--color-accent-teal);
    display: inline-block;
}

/* --- Buttons and Links --- */
a {
    text-decoration: none;
    color: var(--color-accent-teal); /* Primary link color (Electric Teal) */
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 0.5rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

/* Primary Gradient Button (Charcoal/Slate) */
.btn-primary-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: var(--color-text-light);
}
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #4d545d 0%, #1a2027 100%); /* Slightly darker hover */
    color: var(--color-text-light);
}

/* Accent Button for main CTAs (Electric Teal) */
.btn-accent-fill {
    background-color: var(--color-accent-teal);
    color: var(--color-dark); /* Dark text on bright Teal background for contrast */
    border: 2px solid var(--color-accent-teal);
}
.btn-accent-fill:hover {
    background-color: #008f97; /* Darker teal on hover */
    color: var(--color-dark);
}

/* Secondary Outline Button (Charcoal/Slate Outline) */
.btn-secondary-outline {
    background-color: transparent;
    color: var(--color-gradient-end); /* Dark text */
    border: 2px solid var(--color-gradient-end);
    padding: 10px 25px;
}
.btn-secondary-outline:hover {
    background-color: var(--color-gradient-end);
    color: var(--color-text-light);
}

.btn-xl {
    padding: 15px 40px;
    font-size: 1.1em;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- 1. NAVIGATION (HEADER) --- */
.main-header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-base);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* NEW LOGO STYLING */
.logo-link {
    /* Ensures the logo link block maintains alignment in the nav */
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    /* Set max height for the image logo */
    height: 80px; 
    width: auto;
    background: transparent;
    border: none;
    outline: none;
    /* Ensure proper transparency display */
    mix-blend-mode: normal;
    opacity: 1;
}
/* END NEW LOGO STYLING */


.nav-links {
    list-style: none;
    display: flex;
    margin-bottom: 0;
}

.nav-links li a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--color-dark);
}
.nav-links li a:hover {
    color: var(--color-accent-teal); /* Hover uses the accent color */
}

.nav-actions .btn {
    margin-left: 10px;
}

/* --- 2. HERO SECTION --- */
.hero-section {
    padding: 100px 0 80px;
    background-color: white; 
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.sub-headline {
    font-size: 1.25em;
    color: var(--color-gray);
    margin-bottom: 30px;
}

.card-mockup {
    /* Mimics the style of your dashboard cards, now using the dark gradient */
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-light);
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

.card-mockup small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}


/* --- GENERAL SECTIONS --- */
.section {
    padding: 80px 0;
}

.section-title, .section-subtitle {
    text-align: center;
}

.section-title {
    margin-bottom: 10px;
    font-size: 2.5em;
}

.section-subtitle {
    font-size: 1.1em;
    color: var(--color-gray);
    margin-bottom: 50px;
}

.section-title-left {
    text-align: left;
}

.section-subtitle-left {
    text-align: left;
    color: var(--color-gray);
}

/* --- 3. KEY FEATURES --- */
.features-section {
    background-color: var(--color-light-bg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-base);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.icon-circle {
    font-size: 1.5em;
    color: var(--color-text-light);
    /* Icon circle now uses the Dark Gradient */
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    padding: 15px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--color-dark); /* Headings use the primary dark color */
}
.feature-card p {
    color: var(--color-gray);
}

/* --- 4. HOW IT WORKS --- */
.how-it-works-section {
    /* Entire section uses the new dark gradient */
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: var(--color-text-light);
}

.how-it-works-section .section-title, 
.how-it-works-section .section-subtitle,
.step-card h3 {
    color: var(--color-text-light);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.step-number {
    /* Step number uses the Electric Teal accent */
    font-size: 3em;
    font-weight: bold;
    color: var(--color-accent-teal);
    margin-bottom: 10px;
    line-height: 1;
}

.step-card h3 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.step-card p {
    color: rgba(255, 255, 255, 0.9);
}


/* --- 5. FOR YOUR USERS (MEDIA/PUBLISHER BENEFIT) --- */
.for-users-section {
    background-color: white;
}

.users-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.users-text ul {
    list-style: none;
    margin: 30px 0;
    padding-left: 0;
}

.users-text li {
    font-size: 1.05em;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: var(--color-dark);
}

.list-icon {
    font-size: 1.2em;
    color: var(--color-accent-teal); /* List icons use the Electric Teal accent */
    margin-right: 15px;
    font-weight: bold;
}

.small-mockup {
    height: 400px;
    background: var(--color-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- 6. FINAL CTA & INTEGRATION --- */
.cta-section {
    /* Entire CTA section uses the new dark gradient */
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    color: var(--color-text-light);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--color-text-light);
    font-size: 2.5em;
}

.cta-section p {
    font-size: 1.2em;
    margin: 20px auto 40px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

/* --- 7. FOOTER --- */
footer {
    background-color: var(--color-dark);
    padding: 30px 0;
    color: #ccc;
    font-size: 0.9em;
}

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

.footer-brand {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--color-text-light);
}

.footer-links a {
    color: #ccc;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent-teal); /* Hover uses the accent color */
}

/* --- MEDIA QUERIES (Mobile Responsiveness) --- */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .users-content {
        grid-template-columns: 1fr;
    }
    .users-text {
        order: 2;
        text-align: center;
    }
    .users-visual {
        order: 1;
    }
    .section-title-left, .section-subtitle-left {
        text-align: center;
    }
    .users-text li {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        display: none;
    }
    .nav-actions {
        margin-top: 15px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2em;
    }
    .hero-visual {
        order: -1;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .steps-container {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        margin: 10px 0;
    }
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .btn-xl {
        width: 100%;
        padding: 15px 0;
    }
}