/* ===== WHITE BOX LAB - PRODUCTION STYLES ===== */

/* RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Typography Scale - Golden Ratio */
    --text-xs: 0.618rem;
    --text-sm: 0.75rem;
    --text-base: 1rem;
    --text-lg: 1.236rem;
    --text-xl: 1.618rem;
    --text-2xl: 2.058rem;
    --text-3xl: 2.618rem;
    --text-4xl: 4.236rem;
    --text-5xl: 5.652rem;
    
    /* Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #000000;
    
    /* Spacing */
    --unit: 8px;
    --rhythm: calc(var(--unit) * 3);
    
    /* Animation */
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* DOCUMENT ENHANCEMENT */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.618;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

/* LAYOUT COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--unit) * 3);
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    transition: all var(--duration-normal) var(--ease-out);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--unit) * 10);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: calc(var(--unit) * 2);
    text-decoration: none;
    color: var(--gray-900);
}

.logo-img {
    width: calc(var(--unit) * 4);
    height: calc(var(--unit) * 4);
    object-fit: contain;
}

.logo-text {
    font-weight: 600;
    font-size: var(--text-lg);
}

.main-nav {
    display: flex;
    gap: calc(var(--unit) * 4);
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gray-900);
}

.nav-link.nav-cta {
    background: var(--gray-900);
    color: var(--white);
    padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
    border-radius: calc(var(--unit) * 0.5);
}

.nav-link.nav-cta:hover {
    background: var(--gray-800);
    color: var(--white);
}

/* BACKGROUND LOGO */
.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.025;
    pointer-events: none;
}

.background-logo img {
    width: 80vmin;
    height: 80vmin;
    object-fit: contain;
}

/* MAIN CONTENT */
.main-content {
    padding-top: calc(var(--unit) * 10);
}

/* HERO SECTION */
.hero-section {
    padding: calc(var(--unit) * 12) 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: calc(var(--unit) * 1) calc(var(--unit) * 2);
    border-radius: calc(var(--unit) * 3);
    margin-bottom: calc(var(--unit) * 3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: calc(var(--unit) * 4);
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: calc(var(--unit) * 6);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: calc(var(--unit) * 3);
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: calc(var(--unit) * 0.75);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn.large {
    padding: calc(var(--unit) * 2) calc(var(--unit) * 4);
    font-size: var(--text-lg);
}

.btn-primary {
    background: var(--gray-900);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* CONTENT SECTIONS */
.content-section {
    padding: calc(var(--unit) * 12) 0;
}

.content-section.alternate {
    background: var(--gray-50);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: calc(var(--unit) * 4);
    color: var(--gray-900);
}

.section-title.centered {
    text-align: center;
    margin-bottom: calc(var(--unit) * 8);
}

.section-text {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: calc(var(--unit) * 3);
}

.section-text.large {
    font-size: var(--text-xl);
    line-height: 1.6;
}

.section-content.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* GRIDS */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--unit) * 8);
    align-items: center;
}

.mission-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--unit) * 4);
    margin-top: calc(var(--unit) * 6);
}

.principle-card {
    text-align: center;
    padding: calc(var(--unit) * 4);
    background: var(--white);
    border-radius: calc(var(--unit) * 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.principle-card h3,
.principle-card h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: calc(var(--unit) * 2);
    color: var(--gray-900);
}

.principle-card p {
    color: var(--gray-600);
    font-size: var(--text-base);
}

/* PROGRAM DETAILS & STATS */
.program-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--unit) * 3);
    margin-top: calc(var(--unit) * 4);
}

.program-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: calc(var(--unit) * 4);
    margin-top: calc(var(--unit) * 6);
}

.stat {
    text-align: center;
    padding: calc(var(--unit) * 3);
    background: var(--white);
    border-radius: calc(var(--unit) * 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: calc(var(--unit) * 1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: calc(var(--unit) * 2) 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-label {
    color: var(--gray-600);
    font-weight: 500;
}

.detail-value {
    color: var(--gray-900);
    font-weight: 600;
}

/* TIMELINE */
.program-timeline {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 3);
}

.timeline-phase {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--unit) * 3);
}

.phase-number {
    background: var(--gray-900);
    color: var(--white);
    width: calc(var(--unit) * 5);
    height: calc(var(--unit) * 5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.phase-content h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: calc(var(--unit) * 1);
    color: var(--gray-900);
}

.phase-content p {
    color: var(--gray-600);
}

/* RESEARCH GRID */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--unit) * 4);
}

.research-card {
    background: var(--white);
    padding: calc(var(--unit) * 4);
    border-radius: calc(var(--unit) * 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all var(--duration-normal) var(--ease-out);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.research-icon {
    font-size: var(--text-3xl);
    margin-bottom: calc(var(--unit) * 2);
    display: block;
}

.research-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: calc(var(--unit) * 2);
    color: var(--gray-900);
}

.research-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* BELIEFS GRID */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--unit) * 4);
    margin-top: calc(var(--unit) * 6);
}

.belief-card {
    background: var(--white);
    padding: calc(var(--unit) * 4);
    border-radius: calc(var(--unit) * 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.belief-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: calc(var(--unit) * 2);
    color: var(--gray-900);
}

.belief-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* VISION QUOTE */
.vision-quote {
    margin-top: calc(var(--unit) * 6);
    padding: calc(var(--unit) * 4);
    background: var(--gray-100);
    border-radius: calc(var(--unit) * 1);
}

.vision-quote blockquote {
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.6;
}

/* APPLICATION SECTION */
.apply-section {
    background: var(--gray-50);
    padding: calc(var(--unit) * 12) 0;
}

.apply-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.apply-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: calc(var(--unit) * 3);
    color: var(--gray-900);
}

.apply-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: calc(var(--unit) * 8);
}

/* FORM */
.apply-form {
    text-align: left;
    max-width: 600px;
    margin: 0 auto calc(var(--unit) * 6);
}

.form-group {
    margin-bottom: calc(var(--unit) * 4);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: calc(var(--unit) * 2);
    font-size: var(--text-lg);
}

.form-input {
    width: 100%;
    padding: calc(var(--unit) * 2);
    border: 2px solid var(--gray-200);
    border-radius: calc(var(--unit) * 0.75);
    font-size: var(--text-base);
    font-family: inherit;
    transition: border-color var(--duration-fast) var(--ease-out);
    resize: vertical;
    min-height: calc(var(--unit) * 6);
}

.form-input:focus {
    outline: none;
    border-color: var(--gray-400);
    box-shadow: 0 0 0 3px rgba(163, 163, 163, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    min-height: calc(var(--unit) * 12);
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    margin-top: calc(var(--unit) * 4);
}

.apply-note {
    margin-top: calc(var(--unit) * 4);
    font-style: italic;
    color: var(--gray-600);
}

/* FILTER SECTION */
.filter-section {
    padding: calc(var(--unit) * 8) 0;
    text-align: center;
    background: var(--gray-100);
}

.filter-content p {
    font-size: var(--text-xl);
    color: var(--gray-700);
    line-height: 1.6;
    font-style: italic;
}

/* CTA SECTION */
.cta-section {
    background: var(--gray-900);
    color: var(--white);
    padding: calc(var(--unit) * 12) 0;
    text-align: center;
}

.cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: calc(var(--unit) * 3);
}

.cta-subtitle {
    font-size: var(--text-xl);
    margin-bottom: calc(var(--unit) * 6);
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--gray-900);
}

.cta-section .btn-primary:hover {
    background: var(--gray-100);
}

/* FOOTER */
.site-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: calc(var(--unit) * 8) 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--unit) * 2);
    margin-bottom: calc(var(--unit) * 4);
}

.footer-logo-img {
    width: calc(var(--unit) * 5);
    height: calc(var(--unit) * 5);
    object-fit: contain;
}

.footer-logo-text {
    font-size: var(--text-xl);
    font-weight: 600;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* PAGE HERO */
.page-hero {
    padding: calc(var(--unit) * 16) 0 calc(var(--unit) * 8);
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
}

/* RESPONSIVE DESIGN */
@media (max-width: 968px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 6);
    }
    
    .program-details {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 3rem;
        --text-3xl: 2rem;
        --text-2xl: 1.5rem;
    }
    
    .container {
        padding: 0 calc(var(--unit) * 2);
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-section {
        padding: calc(var(--unit) * 8) 0;
    }
    
    .content-section {
        padding: calc(var(--unit) * 8) 0;
    }
    
    .research-grid,
    .mission-principles,
    .beliefs-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 3);
    }
    
    .hero-actions {
        gap: calc(var(--unit) * 2);
    }
    
    .btn.large {
        padding: calc(var(--unit) * 1.5) calc(var(--unit) * 3);
        font-size: var(--text-base);
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

@media (prefers-contrast: high) {
    :root {
        --gray-600: var(--gray-700);
        --gray-400: var(--gray-600);
    }
}

/* FOCUS INDICATORS */
.btn:focus,
.nav-link:focus,
.form-input:focus {
    outline: 2px solid var(--gray-900);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .site-header,
    .background-logo,
    .hero-actions,
    .cta-section,
    .apply-section,
    .filter-section,
    .site-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-title,
    .section-title {
        page-break-after: avoid;
    }
}