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

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --light-blue: #3b82f6;
    --dark-blue: #1e3a8a;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border: #e5e7eb;
    --success-green: #10b981;
    --accent-orange: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 26px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease;
}

.site-header .logo:hover {
    opacity: 0.9;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-header nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 5px 0;
    position: relative;
}

.site-header nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.2s ease;
}

.site-header nav a:hover::after {
    width: 100%;
}

.site-header nav li:last-child a {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.site-header nav li:last-child a:hover {
    background: rgba(255, 255, 255, 0.25);
}

.site-header nav li:last-child a::after {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.case-study-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Metrics Preview */
.metrics-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.metric {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.case-study-article {
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.content-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-section p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Highlight Box */
.highlight-box {
    background: var(--background-light);
    border-left: 4px solid var(--primary-blue);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight-box p {
    margin-bottom: 12px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Lists */
.challenge-list,
.content-section ul {
    margin: 24px 0;
    padding-left: 24px;
}

.challenge-list li,
.content-section ul li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Testimonial */
.testimonial {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 32px;
    margin: 40px 0;
    border-radius: 8px;
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary);
}

.testimonial cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Timeline */
.implementation-timeline {
    margin: 32px 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 44px;
    width: 2px;
    height: calc(100% + 16px);
    background: var(--border);
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Code Block */
.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.tool-card {
    background: var(--background-light);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.tool-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tool-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.result-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 2px solid var(--border);
    text-align: center;
}

.result-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-metric {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.result-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Insight Box */
.insight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--accent-orange);
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.insight-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.insight-author {
    margin-top: 12px;
    font-size: 14px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Roadmap */
.roadmap {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.roadmap-item {
    background: var(--background-light);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.roadmap-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.roadmap-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 48px;
    border-radius: 12px;
    margin: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-box {
    background: white;
    padding: 48px;
    border-radius: 8px;
    margin-top: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-box h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.cta-box ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box ul li {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Related Resources */
.related-resources {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.resource-card {
    background: var(--background-light);
    padding: 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.resource-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.resource-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}

.site-footer a {
    color: var(--light-blue);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .metrics-preview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-header nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .site-header .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .tools-grid,
    .results-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 32px 20px;
    }
    
    .cta-box {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
}
