* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #2C3640;
    --dark-navy: #1A1F26;
    --slate: #3D4451;
    --blue-grey: #4A5464;
    --mid-grey: #6B7280;
    --light-grey: #9CA3AF;
    --accent-blue: #5B6B7A;
    --accent-cyan: #6B7A89;
    --accent-green: #6B8E7F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --border: #E5E7EB;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--blue-grey);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--navy);
}

.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.hero {
    padding: 0;
    margin-top: 73px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.90) 0%, rgba(30, 41, 59, 0.85) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #8B9199 0%, #6B7A89 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--white);
    color: var(--navy);
    padding: 1rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.value-props {
    padding: 4rem 2rem;
    background: var(--white);
}

.value-props-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-prop {
    text-align: center;
    padding: 2rem 1.5rem;
}

.value-prop-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border: 2px solid var(--slate);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
}

.value-prop h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.value-prop p {
    color: var(--mid-grey);
    line-height: 1.6;
    font-size: 0.975rem;
}

/* Client Logos Carousel */
.clients-section {
    padding: 4rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.clients-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.clients-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mid-grey);
    margin-bottom: 2.5rem;
}

.clients-carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-carousel {
    display: flex;
    flex-wrap: nowrap;
}

.clients-carousel.transitioning {
    transition: transform 0.50s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo {
    flex: 0 0 20%;
    min-width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.client-logo img {
    max-width: 120px;
    height: auto;
    max-height: 45px;
    filter: grayscale(100%);
    transition: filter 0.3s;
    object-fit: contain;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

@media (max-width: 1024px) {
    .client-logo {
        flex: 0 0 25%;
        min-width: 25%;
    }
}

@media (max-width: 768px) {
    .client-logo {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

@media (max-width: 480px) {
    .client-logo {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

section {
    padding: 6rem 2rem;
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-light {
    background: var(--off-white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.section-dark .section-label {
    color: var(--accent-cyan);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-dark .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--mid-grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: var(--light-grey);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.offering-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s;
    position: relative;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-blue);
}

.offering-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.offering-card p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.algo-link-btn {
    display: inline-block;
    color: var(--slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    margin-top: 1rem;
}

.algo-link-btn:hover {
    color: var(--navy);
}


.offering-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.offering-features li {
    padding: 0.625rem 0;
    color: var(--blue-grey);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offering-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.offering-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--light-grey);
    font-weight: 500;
}

.chart-container {
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    text-align: center;
    color: var(--light-grey);
}

.consulting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consulting-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.consulting-text p {
    color: var(--mid-grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.consulting-list {
    list-style: none;
    margin-top: 2rem;
}

.consulting-list li {
    padding: 1rem 0;
    color: var(--blue-grey);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    display: flex;
    gap: 1rem;
}

.consulting-list li::before {
    content: '→';
    color: var(--accent-blue);
    font-weight: 700;
}

.consulting-image {
    background: var(--off-white);
    border-radius: 12px;
    height: 450px;
    overflow: hidden;
}

.consulting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 2.5rem;
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    padding: 1rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

footer {
    background: var(--dark-navy);
    color: var(--light-grey);
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--light-grey);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--white);
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .offerings-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .value-props-container {
        grid-template-columns: 1fr;
    }

    .consulting-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Page Hero */
.page-hero {
    padding: 10rem 2rem 5rem;
    background: var(--slate);
    color: var(--white);
    text-align: center;
    margin-top: 73px;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 54, 64, 0.85);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Algorithm Detail Pages */
.algo-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.algo-detail-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.algo-detail-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
}

.algo-detail-content p {
    color: var(--mid-grey);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--blue-grey);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li::before {
    content: '→';
    color: var(--slate);
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.metric-box {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--off-white);
    border-radius: 8px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--mid-grey);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.algo-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.algo-info-box {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--slate);
}

.algo-info-box h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate);
    margin-bottom: 0.75rem;
}

.algo-info-box p {
    color: var(--mid-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .algo-detail-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Process Timeline */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 3rem auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--slate);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.process-step p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--mid-grey);
    line-height: 1.6;
    margin: 0;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.contact-form-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-page .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-page label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.925rem;
}

.contact-form-page input,
.contact-form-page textarea,
.contact-form-page select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.contact-form-page input:focus,
.contact-form-page textarea:focus,
.contact-form-page select:focus {
    outline: none;
    border-color: var(--slate);
}

.contact-form-page textarea {
    resize: vertical;
    min-height: 140px;
}

@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form-page .form-row {
        grid-template-columns: 1fr;
    }
}

/* Insights Page */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.insight-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.insight-image {
    width: 100%;
    height: 200px;
}

.insight-content {
    padding: 2rem;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.insight-category {
    color: var(--slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-date {
    color: var(--light-grey);
}

.insight-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.insight-card p {
    color: var(--mid-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--slate);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--navy);
}

@media (max-width: 968px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

.submit-button {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2.25rem;
    border-radius: 8px;
    border: 2px solid var(--navy);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-family: inherit;
}

.submit-button:hover {
    background: var(--slate);
    border-color: var(--slate);
    transform: translateY(-2px);
}

nav .logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav .logo {
    display: flex;
    align-items: center;
}