/* css/main.css - Core styles and variables */

:root {
    /* Color Scheme - CBC-Logic Studio: Academic Authority, Epistemic Justice, Computational Thinking */
    
    /* Primary - Deep Academic Blue */
    --color-primary-900: #081A2B;
    --color-primary-800: #0F2B4A;
    --color-primary-700: #1A3D66;
    --color-primary-600: #2A507A;
    --color-primary-500: #3A648E;
    --color-primary-400: #5A82A5;
    --color-primary-300: #8AACCA;
    --color-primary-200: #B4CCE3;
    --color-primary-100: #DCE8F2;
    --color-primary-50: #F0F5FA;
    
    /* Secondary - Epistemic Gold */
    --color-secondary-900: #7A6220;
    --color-secondary-800: #A5842B;
    --color-secondary-700: #B8942E;
    --color-secondary-600: #D4A437;
    --color-secondary-500: #E0B54A;
    --color-secondary-400: #E8C46A;
    --color-secondary-300: #F0D48A;
    --color-secondary-200: #F5E4B0;
    --color-secondary-100: #FAF2D6;
    --color-secondary-50: #FDF8EC;
    
    /* Accent - Computing Teal */
    --color-accent-900: #0D4A40;
    --color-accent-800: #156B5E;
    --color-accent-700: #1D8C7C;
    --color-accent-600: #2A9D8F;
    --color-accent-500: #4CB8A8;
    --color-accent-400: #70CCBD;
    --color-accent-300: #94DDD1;
    --color-accent-200: #B8EDE5;
    --color-accent-100: #DCF6F2;
    --color-accent-50: #F0FBF9;
    
    /* Neutral Grayscale */
    --color-gray-900: #0D1117;
    --color-gray-800: #161B22;
    --color-gray-700: #1F242F;
    --color-gray-600: #30363D;
    --color-gray-500: #484F58;
    --color-gray-400: #6E7681;
    --color-gray-300: #8B949E;
    --color-gray-200: #B1BAC4;
    --color-gray-150: #D0D7DE;
    --color-gray-100: #E6EDF4;
    --color-gray-50: #F0F6FC;
    
    /* Semantic Colors */
    --color-success: #2EA043;
    --color-success-bg: #DAFBE1;
    --color-warning: #D29922;
    --color-warning-bg: #FEF2D5;
    --color-error: #DA3633;
    --color-error-bg: #FDE2E2;
    --color-info: #58A6FF;
    --color-info-bg: #E1F0FF;
    
    /* Background & Surface */
    --color-background: #FFFFFF;
    --color-background-alt: var(--color-gray-50);
    --color-surface: #FFFFFF;
    --color-surface-alt: var(--color-gray-50);
    --color-surface-hover: var(--color-gray-100);
    
    /* Text */
    --color-text-primary: var(--color-gray-900);
    --color-text-secondary: var(--color-gray-700);
    --color-text-tertiary: var(--color-gray-500);
    --color-text-inverse: #FFFFFF;
    --color-text-link: var(--color-primary-600);
    
    /* Borders */
    --color-border: var(--color-gray-200);
    --color-border-light: var(--color-gray-150);
    --color-border-dark: var(--color-gray-300);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Inter', 'Source Serif Pro', Georgia, serif;
    
    /* Font Sizes - Clamped for responsiveness */
    --text-4xl: clamp(2.5rem, 5vw, 4rem);
    --text-3xl: clamp(2rem, 3.5vw, 3rem);
    --text-2xl: clamp(1.5rem, 2.5vw, 2rem);
    --text-xl: clamp(1.25rem, 1.8vw, 1.5rem);
    --text-lg: clamp(1.125rem, 1.2vw, 1.25rem);
    --text-base: clamp(1rem, 1vw, 1.125rem);
    --text-sm: clamp(0.875rem, 0.8vw, 0.95rem);
    --text-xs: clamp(0.75rem, 0.6vw, 0.85rem);
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    
    /* Spacing Scale - 8px base */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;
    
    /* Containers */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Section Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --section-padding-sm: clamp(3rem, 5vw, 4rem);
    
    /* Component Spacing */
    --component-gap: clamp(1.5rem, 3vw, 3rem);
    --component-padding: clamp(1.5rem, 2.5vw, 2.5rem);
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    line-height: var(--leading-relaxed);
    background-color: var(--color-background);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-3);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary-600);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-secondary-600);
    color: white;
    border-color: var(--color-secondary-600);
}

.btn-primary:hover {
    background-color: var(--color-secondary-700);
    border-color: var(--color-secondary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary-600);
    color: var(--color-primary-600);
}

.btn-secondary:hover {
    background-color: var(--color-primary-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-primary-800);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: var(--text-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header.light {
    color: white;
}

.section-header.light .section-title {
    color: white;
}

.section-header.light .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-tertiary);
    margin-top: -var(--space-2);
    margin-bottom: var(--space-3);
}

.title-highlight {
    color: var(--color-secondary-600);
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-secondary-600));
    margin: var(--space-3) auto 0;
    border-radius: 2px;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 820px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.6rem; }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    
    .section-title {
        font-size: 1.8rem;
    }
}
/* ===== NEW HERO PATTERN UTILITIES ===== */

/* Hero Background Effects */
.hero-accent-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-accent-blob.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: rgba(212, 164, 55, 0.08);
}

.hero-accent-blob.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: rgba(42, 157, 143, 0.06);
}

/* Hero Grid Background */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    opacity: 0.5;
}

/* Hero Stats */
.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

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

.hero-stat .stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-secondary-400);
    line-height: 1.2;
}

.hero-stat .stat-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero CTA Group - Improved */
.hero-actions-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.hero-actions-group .hero-actions-primary {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-actions-group .hero-actions-secondary {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

.hero-actions-group .hero-actions-secondary a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-actions-group .hero-actions-secondary a:hover {
    color: white;
}

.hero-actions-group .hero-actions-secondary .action-divider {
    color: rgba(255, 255, 255, 0.15);
}

/* Dropdown Improvements */
.dropdown-menu-improved {
    min-width: 240px;
    padding: var(--space-2);
}

.dropdown-menu-improved .dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.6rem 0.875rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
}

.dropdown-menu-improved .dropdown-link:hover {
    background: var(--color-gray-50);
    color: var(--color-primary-700);
}

.dropdown-menu-improved .dropdown-link i {
    width: 18px;
    color: var(--color-secondary-500);
    font-size: 0.9rem;
}

.dropdown-menu-improved .dropdown-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: var(--space-2) 0;
}

.dropdown-menu-improved .dropdown-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-tertiary);
    padding: 0.4rem 0.875rem;
    margin-bottom: var(--space-1);
}

/* Responsive Hero Adjustments */
@media (max-width: 820px) {
    .hero-stats-row {
        gap: var(--space-4);
    }
    
    .hero-actions-group .hero-actions-primary {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }
    
    .hero-actions-group .hero-actions-primary .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions-group .hero-actions-secondary {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2);
    }
    
    .hero-actions-group .hero-actions-secondary .action-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-stat .stat-number {
        font-size: var(--text-xl);
    }
}

/* ===== IMPROVED FOOTER ===== */

.improved-footer {
    background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-900));
    padding: var(--space-16) 0 var(--space-6);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-6);
    border-top: 4px solid var(--color-secondary-600);
}

.improved-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.improved-footer .footer-brand {
    max-width: 320px;
}

.improved-footer .footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin: var(--space-4) 0;
}

.improved-footer .footer-trust-badges {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}

.improved-footer .footer-trust-badges .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.2rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
}

.improved-footer .footer-trust-badges .trust-badge i {
    color: var(--color-secondary-400);
}

.improved-footer .footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.improved-footer .footer-links h4 {
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.improved-footer .footer-links ul {
    list-style: none;
    padding: 0;
}

.improved-footer .footer-links ul li {
    margin-bottom: var(--space-2);
}

.improved-footer .footer-links ul li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.improved-footer .footer-links ul li a:hover {
    color: white;
    transform: translateX(4px);
}

.improved-footer .footer-connect h4 {
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.improved-footer .connect-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.improved-footer .connect-item i {
    width: 18px;
    color: var(--color-secondary-400);
    flex-shrink: 0;
}

.improved-footer .connect-item a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.improved-footer .connect-item a:hover {
    color: white;
}

.improved-footer .footer-cta {
    display: inline-block;
    margin-top: var(--space-4);
    color: var(--color-secondary-400);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.improved-footer .footer-cta:hover {
    color: white;
    transform: translateX(4px);
}

.improved-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.improved-footer .footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.improved-footer .footer-legal a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.improved-footer .footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.improved-footer .footer-legal .separator {
    color: rgba(255, 255, 255, 0.1);
}

/* Footer Social */
.improved-footer .footer-social {
    display: flex;
    gap: var(--space-3);
}

.improved-footer .footer-social .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.improved-footer .footer-social .social-link:hover {
    background: var(--color-secondary-600);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .improved-footer .footer-grid {
        grid-template-columns: 1fr 2fr;
        gap: var(--space-6);
    }
    
    .improved-footer .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 820px) {
    .improved-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .improved-footer .footer-links-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .improved-footer {
        padding: var(--space-8) 0 var(--space-4);
    }
    
    .improved-footer .footer-links-group {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .improved-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
    
    .improved-footer .footer-legal {
        justify-content: center;
    }
}

/* ===== SHARED PAGE HERO SYSTEM ===== */

.page-anchor {
    scroll-margin-top: 7rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(212, 164, 55, 0.12), transparent 32%),
        radial-gradient(circle at bottom left, rgba(42, 157, 143, 0.14), transparent 28%),
        linear-gradient(145deg, #0a1d30 0%, #102b47 52%, #15385e 100%);
    color: white;
}

.page-hero--home {
    min-height: clamp(520px, 76vh, 680px);
    display: flex;
    align-items: center;
    padding: clamp(8rem, 11vw, 10rem) 0 clamp(5rem, 8vw, 6.5rem);
}

.page-hero--internal {
    padding: clamp(7rem, 8vw, 8rem) 0 clamp(3.25rem, 5vw, 4rem);
}

.page-hero__backdrop,
.page-hero__grid,
.page-hero__glow {
    position: absolute;
    inset: 0;
}

.page-hero__backdrop {
    z-index: 1;
}

.page-hero__grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));`r`n    opacity: 0.28;
}

.page-hero__glow {
    filter: blur(96px);
    opacity: 0.52;
}

.page-hero__glow--gold {
    inset: auto -6rem 52% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(212, 164, 55, 0.18);
}

.page-hero__glow--teal {
    inset: 54% auto auto -5rem;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: rgba(42, 157, 143, 0.16);
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.page-hero__content {
    width: 100%;
    max-width: 46rem;
    text-align: center;
}

.page-hero--internal .page-hero__content {
    max-width: 40rem;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.38rem 0.82rem;
    margin-bottom: var(--space-4);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero__eyebrow i,
.page-hero__meta-item i {
    color: var(--color-secondary-400);
}

.page-hero__title {
    margin-bottom: var(--space-3);
    color: white;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.2vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero--internal .page-hero__title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.page-hero__title-emphasis {
    color: var(--color-secondary-400);
}

.page-hero__description {
    max-width: 36rem;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--text-base);
    line-height: 1.65;
}

.page-hero--internal .page-hero__description {
    max-width: 33rem;
    font-size: var(--text-sm);
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.page-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.46rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    line-height: 1.2;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.page-hero .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: white;
}

.page-hero .btn-secondary:hover {
    background: white;
    border-color: white;
    color: var(--color-primary-800);
}

.page-hero__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.page-hero__links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-sm);
    text-decoration: none;
}

.page-hero__links a:hover {
    color: white;
}

.page-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.page-hero__stat {
    padding: var(--space-3);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.page-hero__stat-value {
    display: block;
    color: white;
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: 1.1;
}

.page-hero__stat-label {
    display: block;
    margin-top: var(--space-2);
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .page-hero {
        text-align: center;
    }

    .page-hero__actions .btn {
        width: 100%;
        justify-content: center;
        max-width: 20rem;
    }

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

@media (max-width: 640px) {
    .page-hero--home {
        min-height: auto;
        padding: 7rem 0 4rem;
    }

    .page-hero--internal {
        padding: 6.6rem 0 3.4rem;
    }

    .page-hero__eyebrow {
        margin-bottom: var(--space-3);
    }

    .page-hero__meta,
    .page-hero__links {
        gap: var(--space-2);
    }

    .page-hero__meta-item {
        width: 100%;
        justify-content: center;
    }
}



