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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #3b82f6;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #6b7280;
    margin: 5px 0;
    transition: 0.3s;
}

/* Main Content Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin: 0 -24px 60px -24px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.cta-button.primary {
    background: #ffffff;
    color: #3b82f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Table of Contents */
.toc {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    margin: 0 0 60px 0;
    border: 1px solid #e2e8f0;
}

.toc-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1e293b;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list li a {
    color: #64748b;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
    line-height: 1.4;
}

.toc-list li a:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateX(4px);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Section Styling */
.section {
    margin-bottom: 80px;
    padding: 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #374151;
    margin: 40px 0 20px 0;
}

.section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin: 24px 0 12px 0;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 20px;
}

.section ul {
    margin: 20px 0 20px 20px;
}

.section li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #6b7280;
}

.section strong {
    color: #374151;
}

/* Model Specifications */
.model-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.spec-item {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.spec-item h4 {
    color: #3b82f6;
    margin-bottom: 16px;
}

.spec-item ul {
    margin: 0;
    list-style: none;
}

.spec-item li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
}

.spec-item li:last-child {
    border-bottom: none;
}

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

.capability-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.capability-item h4 {
    color: #3b82f6;
    margin-bottom: 12px;
}

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

.arch-item {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.arch-item h4 {
    color: #3b82f6;
    margin-bottom: 16px;
}

/* Performance Metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.metric-category {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-category h4 {
    color: #3b82f6;
    margin-bottom: 12px;
}

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

.access-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.access-item:hover {
    transform: translateY(-2px);
}

.access-item h4 {
    color: #3b82f6;
    margin-bottom: 12px;
}

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

.use-case-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.use-case-item:hover {
    transform: translateY(-2px);
}

.use-case-item h4 {
    color: #3b82f6;
    margin-bottom: 12px;
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 32px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
    background: #f8fafc;
    padding: 20px;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.comparison-row:hover {
    background: #f8fafc;
}

.comparison-row:last-child {
    border-bottom: none;
}

.model-name {
    font-weight: 600;
    color: #3b82f6;
}

.model-size, .model-performance, .model-access, .model-cost {
    color: #6b7280;
}

/* Comparison Highlights */
.comparison-highlights {
    background: #f0f9ff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #bae6fd;
    margin: 32px 0;
}

.comparison-highlights h3 {
    color: #0369a1;
    margin-bottom: 16px;
}

/* Future Developments */
.future-developments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.future-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.future-item:hover {
    transform: translateY(-2px);
}

.future-item h4 {
    color: #3b82f6;
    margin-bottom: 12px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
}

.highlight-box h4 {
    color: #92400e;
    margin-bottom: 12px;
}

.highlight-box p {
    color: #78350f;
    margin: 0;
}

/* Call to Action */
.call-to-action {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    margin: 60px 0;
}

.call-to-action h3 {
    color: white;
    margin-bottom: 16px;
}

.call-to-action p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.call-to-action .cta-button {
    background: white;
    color: #3b82f6;
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.call-to-action .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 40px 0;
    margin: 80px -24px 0 -24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-content p {
    color: #d1d5db;
    margin-bottom: 16px;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .model-specs,
    .capabilities-grid,
    .architecture-details,
    .performance-metrics,
    .access-options,
    .use-cases-grid,
    .future-developments {
        grid-template-columns: 1fr;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .comparison-header {
        display: none;
    }
    
    .comparison-row {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .comparison-row::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        margin-bottom: 4px;
        display: block;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .section h3 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero {
        margin: 0 -16px 60px -16px;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .footer {
        margin: 80px -16px 0 -16px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .toc {
        padding: 24px;
    }
    
    .call-to-action {
        padding: 32px 24px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .toc,
    .reading-progress,
    .footer {
        display: none;
    }
    
    main {
        box-shadow: none;
        padding: 0;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        margin: 0;
        padding: 40px 0;
    }
    
    .hero-title {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}
