:root {
    --bg-dark: #0F172A;
    --bg-dark-alt: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --primary: #10B981;
    --primary-hover: #059669;
    --secondary: #2563EB;
    --border-color: #334155;
    --card-hover-border: #475569;
    --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout Containers */
.header-container, .hero-container, .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-dark-alt {
    background-color: var(--bg-dark-alt);
}

/* Header styling */
.app-header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.logo span {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Typography & Interactive Elements */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3.5rem;
}

.btn {
    font-family: var(--font-stack);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-card {
    width: 100%;
    background-color: var(--bg-dark-alt);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    margin-top: auto;
}

.btn-card:hover {
    background-color: var(--border-color);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero UI */
.hero-section {
    padding: 7.5rem 0;
    background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, var(--bg-dark) 70%);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.cta-form-container {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    max-width: 620px;
    margin: 0 auto 3rem auto;
}

.cta-form-container input {
    flex: 1;
    background-color: #020617;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 1rem;
    border-radius: 0.375rem;
    outline: none;
}

.cta-form-container input:focus {
    border-color: var(--primary);
}

.live-metrics {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.live-metrics .divider {
    color: var(--border-color);
}

/* Layout Grid Templates */
.grid-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Pathway Cards */
.pathway-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pathway-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pathway-card .quote {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.card-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.card-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.card-list li::before {
    content: "⚡";
    margin-right: 0.5rem;
    color: var(--primary);
    font-size: 0.85rem;
}

.highlighted-card {
    border-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.03);
}

.badge-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
}

/* Skill Hubs UI */
.hub-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
}

.hub-card:hover {
    border-color: var(--card-hover-border);
}

.hub-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.hub-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.hub-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Connecting Match Flow UI */
.flow-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.flow-step {
    flex: 1;
    background-color: rgba(30, 41, 59, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.25rem auto;
}

.flow-step h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.flow-arrow {
    padding: 0 1.5rem;
    color: var(--border-color);
    font-size: 1.5rem;
}

.center-cta {
    text-align: center;
}

/* Modal Windows Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 17, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--bg-dark-alt);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 680px;
    border-radius: 0.75rem;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-window h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.modal-body textarea {
    width: 100%;
    height: 160px;
    background-color: #020617;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: 0.95rem;
    outline: none;
    resize: none;
    margin-bottom: 1.25rem;
}

.modal-body textarea:focus {
    border-color: var(--primary);
}

/* Live Diagnostic Output UI components */
.diagnostic-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 0.375rem;
    background-color: #020617;
    border-left: 4px solid var(--primary);
    max-height: 240px;
    overflow-y: auto;
}

.diagnostic-box h6 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.diagnostic-box p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.diagnostic-box ul {
    list-style: none;
    padding-left: 0.25rem;
}

.diagnostic-box ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Footer layout */
.app-footer-bottom {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Adaptive Controls */
@media (max-width: 968px) {
    .grid-three-col, .flow-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 1.5rem;
    }
    .flow-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .cta-form-container {
        flex-direction: column;
    }
}
