/* ============================================================
   QHire Platform Stylesheet
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --q-primary: #1e3a5f;
    --q-primary-dark: #0f172a;
    --q-accent: #3b82f6;
    --q-accent-light: #60a5fa;
    --q-secondary: #06b6d4;
    --q-gradient: linear-gradient(135deg, #1e3a5f, #3b82f6);
    --q-gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1e40af 100%);
    --q-gradient-cta: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    --q-surface: #f8fafc;
    --q-surface-alt: #f1f5f9;
    --q-text: #0f172a;
    --q-text-light: #334155;
    --q-muted: #64748b;
    --q-border: #e2e8f0;
    --q-success: #10b981;
    --q-warning: #f59e0b;
    --q-white: #ffffff;
    --q-radius: 0.75rem;
    --q-radius-lg: 1.25rem;
    --q-radius-xl: 1.5rem;
    --q-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --q-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --q-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --q-shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);
    --q-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --q-font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

body.q-platform {
    font-family: var(--q-font);
    color: var(--q-text);
    background: var(--q-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

/* --- Navbar --- */
.q-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--q-border);
    transition: box-shadow var(--q-transition);
    z-index: 1040;
}
.q-navbar.scrolled { box-shadow: var(--q-shadow); }

.q-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--q-primary);
}
.q-brand svg { flex-shrink: 0; }
.q-brand-text { letter-spacing: -0.02em; }

.q-nav-link {
    color: var(--q-text-light);
    font-weight: 500;
    font-size: 0.925rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--q-radius);
    transition: color var(--q-transition), background var(--q-transition);
}
.q-nav-link:hover { color: var(--q-accent); background: rgba(59, 130, 246, 0.06); }

/* --- Buttons --- */
.q-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--q-radius);
    padding: 0.7rem 1.75rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--q-transition);
    text-decoration: none;
    line-height: 1.4;
}
.q-btn-primary {
    background: var(--q-gradient);
    color: var(--q-white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.q-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
    color: var(--q-white);
}
.q-btn-outline {
    background: transparent;
    color: var(--q-primary);
    border-color: var(--q-border);
}
.q-btn-outline:hover {
    border-color: var(--q-accent);
    color: var(--q-accent);
    background: rgba(59, 130, 246, 0.04);
}
.q-btn-white {
    background: var(--q-white);
    color: var(--q-primary);
    border-color: transparent;
    box-shadow: var(--q-shadow);
}
.q-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: var(--q-shadow-lg);
    color: var(--q-accent);
}
.q-btn-lg { padding: 0.85rem 2.25rem; font-size: 1.05rem; }
.q-btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* --- Hero --- */
.q-hero {
    background: var(--q-gradient-hero);
    color: var(--q-white);
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.q-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.q-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.q-hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--q-success);
    border-radius: 50%;
    animation: q-pulse 2s ease-in-out infinite;
}
.q-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.q-hero h1 span { color: var(--q-accent-light); }
.q-hero .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    line-height: 1.6;
}

/* Hero Dashboard Mockup */
.q-hero-mockup {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--q-radius-xl);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}
.q-hero-mockup-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
}
.q-hero-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.q-hero-mockup-row {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--q-radius);
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}
.q-hero-mockup-row:last-child { margin-bottom: 0; }
.q-hero-mockup-value { font-weight: 700; color: var(--q-accent-light); }

/* --- Stats Bar --- */
.q-stats {
    background: var(--q-white);
    border-bottom: 1px solid var(--q-border);
    padding: 2.5rem 0;
}
.q-stat {
    text-align: center;
    padding: 0.5rem;
}
.q-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--q-primary);
    letter-spacing: -0.02em;
}
.q-stat-label {
    font-size: 0.875rem;
    color: var(--q-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* --- Section --- */
.q-section {
    padding: 5rem 0;
}
.q-section-alt { background: var(--q-surface); }
.q-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.q-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--q-accent);
    margin-bottom: 0.75rem;
}
.q-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--q-text);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.q-section-subtitle {
    font-size: 1.1rem;
    color: var(--q-muted);
    line-height: 1.6;
}

/* --- Feature Cards --- */
.q-feature-card {
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: var(--q-radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--q-transition);
    position: relative;
    overflow: hidden;
}
.q-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--q-gradient);
    opacity: 0;
    transition: opacity var(--q-transition);
}
.q-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--q-shadow-lg);
    border-color: transparent;
}
.q-feature-card:hover::after { opacity: 1; }
.q-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--q-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--q-accent);
}
.q-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--q-text);
}
.q-feature-card p {
    font-size: 0.925rem;
    color: var(--q-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- How It Works --- */
.q-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}
.q-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--q-gradient);
    color: var(--q-white);
    font-size: 1.25rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
.q-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.q-step p {
    font-size: 0.925rem;
    color: var(--q-muted);
    line-height: 1.6;
}
.q-step-connector {
    position: absolute;
    top: 3.75rem;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--q-border);
}

/* --- Pricing Cards --- */
.q-pricing-card {
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: var(--q-radius-xl);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all var(--q-transition);
    position: relative;
}
.q-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--q-shadow-lg);
}
.q-pricing-card.featured {
    border: 2px solid var(--q-accent);
    box-shadow: var(--q-shadow-lg);
}
.q-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--q-gradient);
    color: var(--q-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.q-pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--q-text);
    margin-bottom: 0.5rem;
}
.q-pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--q-text);
    letter-spacing: -0.03em;
    line-height: 1;
}
.q-pricing-period {
    font-size: 1rem;
    color: var(--q-muted);
    font-weight: 400;
}
.q-pricing-desc {
    font-size: 0.9rem;
    color: var(--q-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.q-pricing-divider {
    border: none;
    border-top: 1px solid var(--q-border);
    margin: 1.5rem 0;
}
.q-pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; }
.q-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--q-text-light);
}
.q-pricing-features li svg { flex-shrink: 0; margin-top: 2px; }
.q-pricing-features .q-check { color: var(--q-success); }
.q-pricing-features .q-cross { color: #cbd5e1; }
.q-pricing-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--q-muted);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

/* --- CTA Banner --- */
.q-cta {
    background: var(--q-gradient-cta);
    padding: 5rem 0;
    text-align: center;
    color: var(--q-white);
    position: relative;
    overflow: hidden;
}
.q-cta::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 60%;
    height: 220%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.q-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.q-cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
.q-footer {
    background: var(--q-primary-dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}
.q-footer h5 {
    color: var(--q-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.q-footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--q-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.q-footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}
.q-footer-links { list-style: none; padding: 0; margin: 0; }
.q-footer-links li { margin-bottom: 0.6rem; }
.q-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--q-transition);
}
.q-footer-links a:hover { color: var(--q-white); }
.q-footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

/* --- Cards (Forms) --- */
.q-card {
    background: var(--q-white);
    border: 1px solid var(--q-border);
    border-radius: var(--q-radius-lg);
    box-shadow: var(--q-shadow);
    overflow: hidden;
}
.q-card-body { padding: 2rem; }

/* --- Form Styles --- */
.q-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--q-text);
    margin-bottom: 0.4rem;
}
.q-form-control {
    border: 1.5px solid var(--q-border);
    border-radius: var(--q-radius);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color var(--q-transition), box-shadow var(--q-transition);
}
.q-form-control:focus {
    border-color: var(--q-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    outline: none;
}

/* --- Plan Selector (Register) --- */
.q-plan-option {
    cursor: pointer;
    border: 2px solid var(--q-border);
    border-radius: var(--q-radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--q-transition);
    background: var(--q-white);
}
.q-plan-option:hover { border-color: var(--q-accent-light); }
.q-plan-radio:checked + .q-plan-option {
    border-color: var(--q-accent);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 1px var(--q-accent);
}
.q-plan-name { font-weight: 700; font-size: 1rem; color: var(--q-text); }
.q-plan-price { font-size: 0.9rem; color: var(--q-muted); margin-top: 0.25rem; }

/* --- Register Split --- */
.q-register-hero {
    background: var(--q-gradient-hero);
    color: var(--q-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    border-radius: var(--q-radius-xl) 0 0 var(--q-radius-xl);
    min-height: 100%;
}
.q-register-hero h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.q-register-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}
.q-register-benefit svg { flex-shrink: 0; color: var(--q-secondary); margin-top: 2px; }

/* --- Success Page --- */
.q-success-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.q-success-icon svg { color: var(--q-success); }
.q-next-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1rem 0;
}
.q-next-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--q-gradient);
    color: var(--q-white);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.q-next-step-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.q-next-step-text p { font-size: 0.9rem; color: var(--q-muted); margin-bottom: 0; }

/* --- Login Page --- */
.q-login-bg {
    min-height: 100vh;
    background: var(--q-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.q-login-card {
    width: 100%;
    max-width: 420px;
}
.q-login-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.q-login-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--q-primary);
    text-decoration: none;
}

/* --- FAQ --- */
.q-faq-item {
    border: 1px solid var(--q-border);
    border-radius: var(--q-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--q-white);
}
.q-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.15rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--q-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--q-transition);
}
.q-faq-question:hover { background: var(--q-surface); }
.q-faq-question svg {
    transition: transform var(--q-transition);
    flex-shrink: 0;
    color: var(--q-muted);
}
.q-faq-item.open .q-faq-question svg { transform: rotate(180deg); }
.q-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.q-faq-item.open .q-faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.15rem;
}
.q-faq-answer p {
    font-size: 0.925rem;
    color: var(--q-muted);
    line-height: 1.65;
    margin: 0;
}

/* --- Animations --- */
@keyframes q-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes q-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.q-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.q-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .q-hero { padding: 5rem 0 3.5rem; }
    .q-hero h1 { font-size: 2.25rem; }
    .q-step-connector { display: none; }
    .q-register-hero { border-radius: var(--q-radius-xl) var(--q-radius-xl) 0 0; padding: 2.5rem 2rem; }
}

@media (max-width: 767.98px) {
    .q-hero { padding: 4rem 0 3rem; }
    .q-section { padding: 3.5rem 0; }
    .q-pricing-card { padding: 2rem 1.5rem; }
    .q-footer { padding: 3rem 0 1.5rem; }
}
