/* ================================================================
   WETTBEWERB COCKPIT - MAIN STYLESHEET
   Unified styles for public pages (index.html, frameworks.html)
   ================================================================ */

/* Import design tokens */
@import 'tokens.css';

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-page);
}

img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading fade-in effect */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Image optimization defaults */
img {
    /* Prevent layout shift */
    content-visibility: auto;
}

/* Responsive images container */
.img-responsive {
    position: relative;
    overflow: hidden;
}

.img-responsive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    color: var(--color-slate-700);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-slate-900);
}

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section--sm {
    padding: var(--space-16) 0;
}

.section--first {
    padding-top: calc(var(--header-height) + var(--space-20));
}

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

.section-intro {
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section--first .section-intro .heading-2 {
    margin-top: 80px;
}

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
.heading-1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-2 {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-slate-800);
    margin-bottom: var(--space-4);
}

.heading-3 {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-slate-800);
}

.subheading {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   4. ICONS
   ========================================================================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: var(--color-emerald-600);
    color: var(--color-text-inverse);
    border-color: var(--color-emerald-600);
}

.btn--primary:hover {
    background: var(--color-emerald-700);
    border-color: var(--color-emerald-700);
    color: var(--color-text-inverse);
}

/* Focus state for accessibility */
.btn--primary:focus {
    outline: none;
}
.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-emerald-400);
}

.btn--secondary {
    background: transparent;
    color: var(--color-slate-700);
    border-color: var(--color-slate-300);
}

.btn--secondary:hover {
    background: var(--color-slate-100);
    border-color: var(--color-slate-400);
    color: var(--color-slate-800);
}

/* Focus state for accessibility */
.btn--secondary:focus {
    outline: none;
}
.btn--secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-slate-400);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ==========================================================================
   6. HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: none;
    padding: 0 var(--space-6);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-slate-800);
}

.header__logo .material-symbols-outlined {
    font-size: 28px;
    color: var(--color-slate-500);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header__nav a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--color-slate-800);
}

.header__nav .btn--primary {
    color: var(--color-text-inverse);
}

.header__nav .btn--primary:hover {
    color: var(--color-text-inverse);
}

/* Mobile Menu Toggle Button */
.header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-slate-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.header__menu-toggle:hover {
    background: var(--color-slate-100);
}

.header__menu-toggle .material-symbols-outlined {
    font-size: 24px;
}

/* Mobile Navigation Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-card);
    z-index: 99;
    flex-direction: column;
    padding: var(--space-6);
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav__links a:hover,
.mobile-nav__links a.active {
    background: var(--color-slate-100);
    color: var(--color-slate-900);
}

.mobile-nav__cta {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

.mobile-nav__cta .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer {
    background: var(--color-slate-900);
    color: var(--color-slate-400);
    padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
}

.footer__brand {
    color: white;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer__desc {
    font-size: var(--text-sm);
    line-height: 1.7;
}

.footer__title {
    color: white;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-2);
}

.footer__links a {
    color: var(--color-slate-400);
    font-size: var(--text-sm);
}

.footer__links a:hover {
    color: white;
}

.footer__links a:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-slate-900), 0 0 0 4px var(--color-emerald-400);
    border-radius: var(--radius-sm);
}

.footer__bottom {
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-slate-700);
    font-size: var(--text-sm);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ==========================================================================
   8. CARDS - Base
   ========================================================================== */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge--success {
    background: var(--color-emerald-100);
    color: var(--color-emerald-700);
}

.badge--warning {
    background: var(--color-amber-100);
    color: var(--color-amber-700);
}

.badge--error {
    background: var(--color-red-100);
    color: var(--color-red-700);
}

.badge--info {
    background: var(--color-blue-100);
    color: var(--color-blue-700);
}

.badge--neutral {
    background: var(--color-slate-100);
    color: var(--color-slate-600);
}

/* Badge with indicator dot */
.badge--dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge--success.badge--dot::before {
    background: var(--color-emerald-400);
}

.badge--warning.badge--dot::before {
    background: var(--color-amber-400);
}

.badge--error.badge--dot::before {
    background: var(--color-red-400);
}

.badge--info.badge--dot::before {
    background: var(--color-blue-400);
}

/* ==========================================================================
   10. TAGS
   ========================================================================== */
.tag {
    padding: var(--space-1) var(--space-3);
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-slate-600);
}

.tag--sm {
    padding: var(--space-1) var(--space-2);
    font-weight: 500;
}

/* ==========================================================================
   11. TABS
   ========================================================================== */
.tabs {
    display: flex;
    gap: var(--space-1);
    background: var(--color-slate-100);
    padding: var(--space-1);
    border-radius: var(--radius-md);
    width: fit-content;
}

.tab {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tab.active {
    background: var(--color-bg-card);
    color: var(--color-slate-800);
    box-shadow: var(--shadow-sm);
}

.tab:hover:not(.active) {
    color: var(--color-slate-700);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==========================================================================
   12. VIEW TOGGLE
   ========================================================================== */
.view-toggle {
    display: flex;
    background: var(--color-slate-100);
    border-radius: var(--radius-md);
    padding: var(--space-1);
}

.view-toggle__btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.view-toggle__btn.active {
    background: var(--color-bg-card);
    color: var(--color-slate-800);
    box-shadow: var(--shadow-sm);
}

.view-toggle__btn:hover:not(.active) {
    color: var(--color-slate-700);
}

/* ==========================================================================
   13. FILTER BUTTON
   ========================================================================== */
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-slate-300);
    color: var(--color-slate-700);
    background: var(--color-slate-50);
}

.filter-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ==========================================================================
   14. PRICING CARDS
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.pricing-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.pricing-card--selected {
    border-color: var(--color-slate-900);
}

.pricing-card--selected:hover {
    border-color: var(--color-slate-900);
}

.pricing-card--featured {
    border-color: var(--color-slate-800);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card--featured.pricing-card--selected {
    border-color: var(--color-slate-900);
}

/* When another card is selected, reset featured card's border */
.pricing-grid--has-selection .pricing-card--featured:not(.pricing-card--selected) {
    border-color: var(--color-border);
    box-shadow: none;
}

.pricing-grid--has-selection .pricing-card--featured:not(.pricing-card--selected):hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
    align-self: flex-start;
    padding: var(--space-1) var(--space-3);
    background: var(--color-slate-800);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}

.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: var(--space-2);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
}

.pricing-card__price {
    margin-bottom: var(--space-6);
}

.pricing-card__amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-slate-900);
}

.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--space-6);
    flex: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.pricing-card__features .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-emerald-500);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   15. RESPONSIVE - Base breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

/* ==========================================================================
   16. HERO SECTION (index.html)
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-24);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%),
                url('../assets/images/Hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Performance optimizations */
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduced motion: disable parallax-like effects */
@media (prefers-reduced-motion: reduce) {
    .hero {
        will-change: auto;
    }
}

.hero__content {
    max-width: 800px;
}

.hero__title {
    margin-bottom: var(--space-6);
    color: #ffffff;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.hero__actions .btn--secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero__actions .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* ==========================================================================
   17. VALUE CARDS (index.html)
   ========================================================================== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
}

.value-card {
    text-align: center;
    padding: var(--space-10) var(--space-6);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.value-card__icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--color-slate-500);
}

.value-card__title {
    margin-bottom: var(--space-2);
    color: var(--color-slate-800);
}

.value-card__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   18. STEPS / PROCESS
   ========================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    background: var(--color-slate-800);
    color: var(--color-text-inverse);
    border-radius: 50%;
    font-weight: 600;
    font-size: var(--text-lg);
}

.step__title {
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-slate-800);
}

.step__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Process variant (frameworks.html) */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 60%;
    right: -40%;
    height: 2px;
    background: var(--color-border);
}

.process-step:last-child::after {
    display: none;
}

.process-step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    background: var(--color-slate-800);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.process-step__title {
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
}

.process-step__desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   19. CONCEPT CARDS
   ========================================================================== */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.concept-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.concept-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.concept-card__icon--quantitative {
    background: var(--color-emerald-100);
    color: var(--color-emerald-600);
}

.concept-card__icon--qualitative {
    background: var(--color-blue-100);
    color: var(--color-blue-600);
}

/* Violet variant for frameworks page */
.concept-card__icon--qualitative-alt {
    background: var(--color-violet-100);
    color: var(--color-violet-600);
}

.concept-card__icon .material-symbols-outlined {
    font-size: 24px;
}

.concept-card__title {
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: var(--space-2);
}

.concept-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.concept-card__examples {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.example-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-slate-600);
}

/* ==========================================================================
   20. FRAMEWORK CARDS (both pages)
   ========================================================================== */
.frameworks-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Mini framework cards for index.html */
.frameworks-grid--mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-5);
}

.framework-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.framework-card:hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-md);
}

/* Mini variant */
.framework-card--mini {
    background: var(--color-bg-page);
    padding: var(--space-6);
    text-align: center;
}

.framework-card--custom {
    border-style: dashed;
    background: var(--color-bg-card);
}

.framework-card--custom .framework-card__logo {
    color: var(--color-slate-400);
}

.framework-card__header {
    padding: var(--space-5);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.framework-card__header:hover {
    background: var(--color-slate-50);
}

.framework-card__info {
    flex: 1;
    min-width: 0;
}

.framework-card__logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-slate-700);
    margin-bottom: var(--space-1);
}

/* Mini logo variant */
.framework-card--mini .framework-card__logo {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.framework-card__name {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.framework-card--mini .framework-card__name {
    margin-bottom: 0;
}

.framework-card__meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.framework-card__stat {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.framework-card__stat .material-symbols-outlined {
    font-size: 16px;
}

.framework-card__toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
    color: var(--color-slate-500);
    transition: all var(--transition-fast);
}

.framework-card.expanded .framework-card__toggle {
    background: var(--color-slate-800);
    color: white;
}

.framework-card__toggle .material-symbols-outlined {
    font-size: 20px;
    transition: transform var(--transition-fast);
}

.framework-card.expanded .framework-card__toggle .material-symbols-outlined {
    transform: rotate(180deg);
}

/* Expanded content */
.framework-card__content {
    display: none;
    border-top: 1px solid var(--color-border);
}

.framework-card.expanded .framework-card__content {
    display: block;
}

.framework-card__description {
    padding: var(--space-4) var(--space-5);
    background: var(--color-slate-50);
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.framework-card__description a {
    color: var(--color-blue-700);
}

/* ==========================================================================
   21. TYPE BADGES (frameworks.html)
   ========================================================================== */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.type-badge--quantitative {
    background: var(--color-emerald-50);
    color: var(--color-emerald-700);
}

.type-badge--qualitative {
    background: var(--color-violet-50);
    color: var(--color-violet-700);
}

.type-badge .material-symbols-outlined {
    font-size: 14px;
}

/* ==========================================================================
   22. CRITERIA LIST (frameworks.html)
   ========================================================================== */
.criteria-list {
    max-height: 400px;
    overflow-y: auto;
}

.criteria-group {
    border-bottom: 1px solid var(--color-border);
}

.criteria-group:last-child {
    border-bottom: none;
}

.criteria-group__header {
    padding: var(--space-3) var(--space-5);
    background: var(--color-slate-50);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-slate-600);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.criteria-group__header .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-slate-400);
}

.criterion {
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border-bottom: 1px solid var(--color-slate-100);
    font-size: var(--text-sm);
}

.criterion:last-child {
    border-bottom: none;
}

.criterion:hover {
    background: var(--color-slate-50);
}

.criterion__type {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.criterion__type--quantitative {
    background: var(--color-emerald-100);
    color: var(--color-emerald-600);
}

.criterion__type--qualitative {
    background: var(--color-violet-100);
    color: var(--color-violet-600);
}

.criterion__type .material-symbols-outlined {
    font-size: 14px;
}

.criterion__name {
    flex: 1;
    color: var(--color-slate-700);
}

.criterion__unit {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    background: var(--color-slate-100);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   23. PROJECT CARDS (showcase section)
   ========================================================================== */
.showcase__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.showcase__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.project-card {
    background: var(--color-bg-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-slate-300);
}

.project-card__image {
    aspect-ratio: 16/10;
    background: var(--color-slate-100);
    position: relative;
    overflow: hidden;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__image img {
    transform: scale(1.05);
}

.project-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-slate-100);
}

.project-card__placeholder .material-symbols-outlined {
    font-size: 48px;
    color: var(--color-slate-300);
}

.project-card__status {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-emerald-100);
    color: var(--color-emerald-700);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.project-card__status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-emerald-400);
    border-radius: 50%;
}

.project-card__status--in-progress {
    background: var(--color-amber-100);
    color: var(--color-amber-700);
}

.project-card__status--in-progress::before {
    background: var(--color-amber-400);
}

.project-card__body {
    padding: var(--space-5);
}

.project-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-slate-800);
}

.project-card__location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.project-card__location .material-symbols-outlined {
    font-size: 16px;
}

.project-card__frameworks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.framework-badge {
    padding: var(--space-1) var(--space-2);
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-slate-600);
}

/* List View */
.showcase__list {
    display: none;
    flex-direction: column;
    gap: var(--space-3);
}

.project-row {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-4) var(--space-5);
    background: var(--color-bg-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.project-row:hover {
    border-color: var(--color-slate-300);
    background: var(--color-slate-50);
}

.project-row__image {
    width: 120px;
    height: 80px;
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.project-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-row__info {
    min-width: 0;
}

.project-row__title {
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: var(--space-1);
}

.project-row__location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.project-row__frameworks {
    display: flex;
    gap: var(--space-2);
}

.project-row__status {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--color-emerald-100);
    color: var(--color-emerald-700);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.project-row__status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-emerald-400);
    border-radius: 50%;
}

/* Map View */
.showcase__map {
    display: none;
    height: 500px;
    background: var(--color-slate-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

#map {
    width: 100%;
    height: 100%;
}

.map-marker {
    width: 32px;
    height: 32px;
    background: var(--color-slate-700);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.map-marker:hover {
    transform: scale(1.15);
}

.mapboxgl-popup-content {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   24. FEATURES GRID (index.html)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    row-gap: var(--space-10);
}

.feature {
    display: flex;
    gap: var(--space-4);
}

.feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature__icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-slate-500);
}

.feature__title {
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-slate-800);
}

.feature__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ==========================================================================
   25. CTA SECTION (index.html)
   ========================================================================== */
.cta {
    background: var(--color-slate-800);
    color: var(--color-text-inverse);
    text-align: center;
}

.cta .heading-2 {
    margin-bottom: var(--space-4);
    color: var(--color-text-inverse);
}

.cta .subheading {
    color: var(--color-slate-300);
    margin-bottom: var(--space-8);
}

.cta .btn--primary {
    background: white;
    color: var(--color-emerald-700);
    border-color: white;
}

.cta .btn--primary:hover {
    background: var(--color-emerald-50);
    border-color: var(--color-emerald-50);
    color: var(--color-emerald-800);
}

.cta .btn--secondary {
    color: white;
    border-color: var(--color-slate-500);
}

.cta .btn--secondary:hover {
    background: var(--color-slate-700);
    border-color: var(--color-slate-400);
}

.cta__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

/* ==========================================================================
   26. CHOICE CARDS (frameworks.html)
   ========================================================================== */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.choice-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.choice-card:hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.choice-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.choice-card__icon--frameworks {
    background: var(--color-blue-100);
    color: var(--color-blue-600);
}

.choice-card__icon--custom {
    background: var(--color-emerald-100);
    color: var(--color-emerald-600);
}

.choice-card__icon .material-symbols-outlined {
    font-size: 28px;
}

.choice-card__title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: var(--space-3);
}

.choice-card__desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.choice-card__features {
    list-style: none;
    margin-bottom: var(--space-6);
    flex: 1;
}

.choice-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.choice-card__features .material-symbols-outlined {
    font-size: 18px;
    color: var(--color-emerald-500);
}

.choice-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-slate-700);
    font-size: var(--text-sm);
}

.choice-card__link .material-symbols-outlined {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.choice-card:hover .choice-card__link {
    color: var(--color-slate-900);
}

.choice-card:hover .choice-card__link .material-symbols-outlined {
    transform: translateX(4px);
}

/* ==========================================================================
   27. SECTION HEADER
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.frameworks-section {
    margin-top: var(--space-8);
}

/* ==========================================================================
   28. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .value-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps::before {
        display: none;
    }

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

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

    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step::after {
        display: none;
    }

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

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

@media (max-width: 768px) {
    .heading-1 {
        font-size: var(--text-3xl);
    }

    .heading-2 {
        font-size: var(--text-2xl);
    }

    /* Mobile Navigation */
    .header__nav {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
    }

    /* Prevent body scroll when mobile menu is open */
    body.mobile-nav-open {
        overflow: hidden;
    }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-16));
    }

    .value-grid,
    .features-grid,
    .steps {
        grid-template-columns: 1fr;
    }

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

    .project-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .project-row__image {
        width: 100%;
        height: 160px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .frameworks-grid--mini {
        grid-template-columns: repeat(2, 1fr);
    }
}
