/* marketFit.me - High-Contrast Light Theme 
   Palette: Champagne, Gold, and Deep Amber
*/

:root {
    /* ACCESSIBLE GOLD TONES (Use for Text/Buttons) */
    --gold-deep: #92400E;
    /* AAA contrast for small text */
    --gold-primary: #B45309;
    /* Bold headers and accents */
    --gold-action: #D97706;
    /* Buttons and interactive elements */

    /* SOFT TONES (Use for Backgrounds/UI Fills) */
    --gold-surface: #FEF3C7;
    /* The "Yellow/Gold" highlight color */
    --gold-mist: #FFFBEB;
    /* Very soft tint for card backgrounds */

    /* NEUTRALS */
    --white: #FFFFFF;
    --bg-light: #FAFAF9;
    /* Warm page background */
    --text-main: #1C1917;
    /* Near-black stone for primary reading */
    --text-muted: #57534E;
    /* Soft gray-brown for secondary text */
    --border: #E7E5E4;

    /* SYSTEM */
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.2s ease-in-out;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVIGATION --- */
.navbar {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand .dot {
    color: var(--gold-action);
}

/* --- HERO SECTION --- */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top, #FFFFFF 0%, var(--bg-light) 100%);
}

.slogan {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.badge {
    display: inline-block;
    background: var(--gold-surface);
    color: var(--gold-deep);
    /* Dark amber for readability */
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 24px;
    border: 1px solid rgba(180, 83, 9, 0.15);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.highlight {
    /* Thick underline style highlight */
    background: linear-gradient(120deg, var(--gold-surface) 0%, var(--gold-surface) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.35em;
    background-position: 0 90%;
}

.sub-headline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}

/* --- FORM --- */
.cta-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 12px;
}

input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gold-action);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gold-primary);
    transform: translateY(-1px);
}

/* --- COMPETITIVE EDGE (CARDS) --- */
.competitive-edge {
    padding: 100px 0;
    background: var(--white);
}

.edge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.edge-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.highlight-card {
    border-color: var(--gold-action);
    background: var(--gold-mist);
}

.edge-icon {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    opacity: 0.2;
    /* Subdued look but readable anchor */
    margin-bottom: 10px;
}

.edge-content h3 {
    color: var(--gold-deep);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- SUCCESS EQUATION (MATH) --- */
.edge-math {
    margin-top: 60px;
    background: var(--gold-surface);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.math-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-weight: 800;
    flex-wrap: wrap;
}

.math-label {
    background: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--gold-action);
}

.math-plus,
.math-equals {
    color: var(--gold-deep);
    font-size: 1.5rem;
}

.math-result {
    color: var(--gold-deep);
    font-size: 1.6rem;
    text-decoration: underline;
    text-underline-offset: 8px;
}


/* Problem-Solution Section Enhancement */
.problem-solution {
    padding: 100px 0;
    text-align: center;
}

.section-header {
    margin-bottom: 50px;
}

.card-status {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.status-gold {
    color: var(--gold-deep);
}

.comparison-list {
    text-align: left;
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.comparison-list li {
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-muted);
}

/* Red "X" for Problem, Gold Check for Solution */
.problem-card .comparison-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #EF4444;
    /* Soft Red */
    font-weight: bold;
}

.solution-card .comparison-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-action);
    font-weight: bold;
}

.solution-card li {
    color: var(--text-main);
}

/* Connector Arrow for Desktop */
.connector-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-surface);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .connector-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .math-item {
        gap: 10px;
    }
}

/* Specific Grid for Problem-Solution to accommodate the arrow */
.transformation-grid {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    /* Two cards with a small arrow in middle */
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.connector-arrow {
    text-align: center;
    color: var(--gold-action);
    font-size: 2rem;
    opacity: 0.5;
}

/* Responsive: Stack them on mobile and rotate arrow */
@media (max-width: 850px) {
    .transformation-grid {
        grid-template-columns: 1fr;
    }

    .connector-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

/* Comparison List Styling */
.comparison-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.comparison-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    font-size: 0.95rem;
}

.problem-card .comparison-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    /* Alert Red */
    font-weight: bold;
}

.solution-card .comparison-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-action);
    font-weight: bold;
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

/* Make the link look like a button */
.btn-large {
    display: inline-block;
    text-decoration: none;
    padding: 20px 48px;
    font-size: 1.1rem;
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.2);
}

.form-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 400px;
    margin: 0 auto;
}

.form-description strong {
    color: var(--gold-deep);
}


/* --- ENHANCED NAVIGATION --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Style for the active/highlighted state */
li.active .nav-link {
    color: var(--gold-action);
    font-weight: bold;
    border-bottom: 2px solid var(--gold-action);
}

.nav-link:hover {
    color: var(--gold-action);
}

.btn-nav {
    background: var(--gold-surface);
    color: var(--gold-deep);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.btn-nav:hover {
    background: var(--gold-action);
    color: white;
}

/* Mobile Menu Toggle Logic */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-main);
    height: 2px;
    width: 20px;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 7px;
}

.nav-toggle-label span::after {
    top: 7px;
}


/* --- FOOTER --- */
.footer {
    background: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .brand {
    margin-bottom: 15px;
}

.footer-tagline {
    color: var(--text-muted);
    max-width: 250px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--gold-deep);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-action);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- RESPONSIVE UPDATES --- */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: block;
    }

/* 1. Ensure the parent container allows the menu to be seen */
    .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow: visible !important; /* CRITICAL: prevents menu from being clipped */
    }

    /* 2. The Menu Styling */
    .nav-menu {
        /* Reset defaults */
        display: none; 
        list-style: none;
        margin: 0;
        padding: 20px 0;
        gap: 0;

        /* Positioning */
        position: absolute;
        top: 100%; /* Sits exactly at the bottom of the navbar */
        left: 0;
        width: 100%;
        
        /* Visuals */
        background-color: #ffffff;
        border-bottom: 2px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 9999; /* Ensures it stays on top of everything */
    }

    /* 3. The Logic - This must be exact */
    #nav-toggle:checked ~ .nav-menu {
        display: flex !important;
        flex-direction: column;
    }

    /* 4. Individual Link Styling for tap-friendliness */
    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 25px;
        width: 100%;
        text-align: left;
        color: #333;
        text-decoration: none;
    }

    /* 5. The "Early Access" Button adjustment */
    .btn-nav {
        display: none;
    }

    /* .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        z-index: 100;
    } */

    .nav-toggle:checked~.nav-menu {
        transform: scale(1, 1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }
}

.brand-link {
    text-decoration: none;
    /* Removes the underline */
    color: inherit;
    /* Keeps your existing black/gold colors */
    display: inline-block;
    /* Ensures the hit area matches the logo size */
    transition: var(--transition);
}

.brand-link:hover {
    opacity: 0.8;
    /* Gives a subtle visual cue when hovered */
}