* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.header::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

.company-badge, .breakthrough-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.header .subtitle {
    font-size: 1.8rem;
    opacity: 0.9;
    margin-bottom: 16px;
    font-weight: 300;
}

.header .description {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cta-button.primary {
    background: white;
    color: #667eea;
}

.cta-button.primary:hover {
    background: #f0f0f0;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Value Proposition */
.value-proposition {
    background: white;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.value-card {
    background: linear-gradient(135deg, #eeeeee 0%, #dddddd 100%);            
    text-align: center;
    padding: 40px;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.value-card p {
    color: #666;
    font-size: 1.1rem;
}

/* Algorithms Showcase */
.algorithms-section {
    background: #f8faff;
}

.algorithms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.algorithm-card {
    border: 1px solid;
    border-color: #dddddd;
    background: #e9e9f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    color: black;
}

.algorithm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.algorithm-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    position: relative;
}

.algorithm-category {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.algorithm-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.algorithm-year {
    font-size: 0.9rem;
    opacity: 0.8;
}

.algorithm-content {
    padding: 30px;
}

.algorithm-description {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.algorithm-impact {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    color: #ffffff;
}

.impact-metric {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: #eaeaea;
    border-radius: 8px;
}

.impact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #aaaaaa;
    display: block;
}

.impact-label {
    font-size: 0.8rem;
    color: #dadada;
    margin-top: 4px;
}

.algorithm-cta {
    display: block;
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.algorithm-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 67, 147, 0.4);
}

.coming-soon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Services Section */
.services-section {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    margin: 20px 0;
}

.service-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 24px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Case Studies Preview */
.case-studies-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.case-studies-section .section-header h2 {
    color: white;
}

.case-studies-section .section-header p {
    color: #dadfff;
    text-shadow: 0 0 10px rgba(200, 200, 255, 0.3);
    font-weight: 700;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-study {
    background: rgba(155, 155, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-study-company {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.case-study-result {
    font-size: 2.3rem;
    font-weight: 700;
    color: #dadfff;
    margin: 16px 0;
    text-shadow: 0 0 10px rgba(0, 255, 159, 0.3);
}

.case-study-description {
    opacity: 1;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Contact Section */
.contact-section {
    background: white;
    text-align: center;
}

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

.contact-form {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #667eea;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #667eea;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #888;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    opacity: 0.7;
}

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

.trust-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.trust-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Theory Section (Williams specific) */
.theory-section {
    background: white;
}

.theory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.theory-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.theory-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 24px;
}

.formula-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(240, 147, 251, 0.3);
}

.formula-box h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.formula {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
}

/* Comparison Section (Williams specific) */
.comparison-section {
    background: #f8faff;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.comparison-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.comparison-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.comparison-card.traditional {
    border-left: 5px solid #ff6b6b;
}

.comparison-card.williams {
    border-left: 5px solid #4ecdc4;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.metric {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Applications Section (Williams specific) */
.applications-section {
    background: white;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.application-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.application-card:hover::before {
    opacity: 1;
}

.application-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.application-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.application-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Impact Section (Williams specific) */
.impact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.impact-stat {
    text-align: center;
    padding: 40px 20px;
}

.impact-number {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.impact-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Implementation Section (Williams specific) */
.implementation-section {
    background: white;
}

.implementation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-line;
}

.highlight {
    background: linear-gradient(120deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    padding: 2px 8px;
    border-radius: 4px;
}

.languages-list, .use-cases-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.languages-list li, .use-cases-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* CTA Section (Williams specific) */
.cta-section {
    background: white;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.8rem;
    }

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

    .nav-links {
        display: none;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 20px;
    }
    
    .trust-stat {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }

    .theory-content,
    .comparison-grid,
    .implementation-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Additional styles for navigation active state */
.nav-links a.active {
    color: #667eea;
    font-weight: 600;
}

/* Enhanced hover effects */
.algorithm-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Loading states */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}