/* ============================================
   CSS DESIGN SYSTEM - GHL AUTOMATION LANDING
   Jobescape-inspired dark mode aesthetic
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #12172e;
    --accent: #b4ff39;
    --accent-dark: #9de62f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 64px;
    --space-2xl: 96px;

    /* Typography */
    --font-headline: 64px;
    --font-subheadline: 20px;
    --font-body: 18px;
    --font-small: 14px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 8px 32px rgba(180, 255, 57, 0.2);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 80px;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-body);
    transition: var(--transition);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(180, 255, 57, 0.1);
}

/* ===== LAYOUT ===== */
.screen {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.headline {
    font-size: var(--font-headline);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.headline .highlight {
    color: var(--accent);
    position: relative;
}

.subheadline {
    font-size: var(--font-subheadline);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

/* ===== BUTTONS ===== */
.cta-button {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 18px 48px;
    font-size: var(--font-body);
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(180, 255, 57, 0.3);
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--accent-dark);
}

.cta-button:active {
    transform: translateY(0);
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--space-md);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-body);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: var(--font-body);
    margin-bottom: 2px;
}

.author-title {
    font-size: var(--font-small);
    color: var(--text-muted);
}

.testimonial-quote {
    font-size: var(--font-body);
    color: var(--text-secondary);
    font-style: italic;
}

/* Stat Badges */
.stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    width: 100%;
}

.badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    backdrop-filter: blur(10px);
    min-width: 180px;
}

.badge-icon {
    font-size: 32px;
}

.badge-content {
    flex: 1;
}

.badge-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.badge-label {
    font-size: var(--font-small);
    color: var(--text-muted);
    line-height: 1.2;
}

.badge-highlight {
    font-size: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.badge.guarantee {
    border-color: rgba(180, 255, 57, 0.3);
}

/* ===== QUIZ SECTION ===== */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: var(--transition);
}

.progress-dot.active {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(180, 255, 57, 0.5);
}

.quiz-content {
    text-align: center;
}

.quiz-intro {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

#question-container {
    margin-bottom: var(--space-lg);
}

.question {
    animation: fadeIn 0.4s ease;
}

.question-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 600px;
    margin: 0 auto;
}

.option-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 32px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: var(--font-body);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.option-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(180, 255, 57, 0.15);
}

.option-card.selected {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ===== BOOKING SECTION ===== */
.booking-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.success-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.booking-headline {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.booking-subheadline {
    font-size: var(--font-subheadline);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.booking-benefits {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: left;
    backdrop-filter: blur(10px);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--font-body);
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.check-icon {
    color: var(--accent);
    font-weight: 700;
    font-size: 24px;
}

.booking-cta {
    margin-bottom: var(--space-md);
}

.booking-prompt {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.booking-placeholder {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: var(--space-xl);
    margin-top: var(--space-md);
}

.placeholder-text {
    font-size: 24px;
    margin-bottom: var(--space-sm);
}

.placeholder-instruction {
    font-size: var(--font-small);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.booking-footer {
    font-size: var(--font-small);
    color: var(--text-muted);
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    :root {
        --font-headline: 42px;
        --font-subheadline: 18px;
        --font-body: 16px;
        --space-lg: 32px;
        --space-xl: 48px;
        --space-2xl: 64px;
    }

    .headline {
        font-size: 42px;
    }

    .cta-button {
        width: 100%;
        padding: 16px 32px;
    }

    .stat-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .badge {
        min-width: auto;
    }

    .quiz-intro {
        font-size: 24px;
    }

    .question-text {
        font-size: 22px;
    }

    .booking-headline {
        font-size: 36px;
    }

    .option-card {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 36px;
    }

    .screen {
        padding: var(--space-sm);
    }

    .quiz-intro {
        font-size: 20px;
    }

    .question-text {
        font-size: 20px;
    }

    .booking-headline {
        font-size: 28px;
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ===== ACCESSIBILITY ===== */
/* Skip Link */
.skip-link:focus {
    left: 0;
    top: 0;
    z-index: 10000;
}

/* Focus Styles */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.option-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
@supports (backdrop-filter: blur(10px)) {
    /* Modern browsers with backdrop-filter support */
}

@supports not (backdrop-filter: blur(10px)) {

    /* Fallback for browsers without backdrop-filter */
    .nav,
    .testimonial-card,
    .badge,
    .option-card,
    .booking-benefits {
        background: var(--bg-secondary);
    }
}