/* Variables */
:root {
    /* Color palette */
    --bg-dark: #333333; /* Lighter background */
    --bg-card: #262626; /* Lighter card background */
    --bg-dark-accent: #111111; /* Darker accent background */
    --primary-blue: #008CC8;
    --primary-blue-dark: #0A455D;
    --primary-blue-light: #29BDFF;
    --primary-green: #65B899;
    --primary-green-dark: #487F6C;
    --accent-red: #FC5D5A;
    --text-light: #FFFFFF;
    --text-medium: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: #454545;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 36px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 1.5em;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-blue-light), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text-light);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.modal-content p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 140, 200, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(52, 52, 52, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-light);
}

/* Dropdown styling */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    color: var(--text-medium);
    text-decoration: none;
    padding: 10px 20px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.dropdown-item:hover {
    background-color: rgba(0, 140, 200, 0.1);
    color: var(--text-light);
}

.nav-cta {
    margin-left: 20px;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-accent) 100%);
}

.hero::after {
    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" width="400" height="400" viewBox="0 0 800 800"><g fill="none" stroke="rgba(0, 140, 200, 0.1)" stroke-width="1"><path d="M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63"/><path d="M-31 229L237 261 390 382 731 737M520 660L309 538 295 764 40 599 -197 493 102 382 -31 229 126.5 79.5 -69 -63"/><path d="M520 660L309 538 40 599 295 764 126.5 879.5 40 599 -197 493 102 382 -31 229 126.5 79.5 -69 -63"/><path d="M520 660L309 538 295 764 40 599 -197 493 102 382 -31 229 126.5 79.5 -69 -63"/></g></svg>');
    background-position: center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 700px;
    z-index: 0;
    opacity: 0.8;
}

#hero-animation-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Platform Section */
.platform {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 16px;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.platform-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-blue);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.card-description {
    color: var(--text-muted);
    font-size: 15px;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background-color: var(--bg-dark-accent);
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.solution-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.solution-content {
    padding: 32px;
}

.solution-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

.solution-audience {
    font-size: 14px;
    color: var(--primary-blue);
    margin-bottom: 16px;
    display: block;
}

.solution-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

.solution-link svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.solution-link:hover svg {
    transform: translateX(4px);
}

/* Virtualized Analysis Section */
.analysis {
    padding: 120px 0;
    position: relative;
}

.analysis-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.analysis-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.analysis-column {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.analysis-title {
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-title span {
    margin-left: 12px;
}

.analysis-steps {
    list-style-type: none;
}

.analysis-steps li {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
}

.analysis-steps li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-time {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 14px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 50px;
}

.peregrine-column .step-time {
    background-color: var(--primary-green);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.peregrine-column .step-number {
    background-color: var(--primary-green);
}

/* Social Proof Section */
.social-proof {
    padding: 80px 0;
    background-color: var(--bg-dark-accent);
    text-align: center;
}

.social-proof-title {
    margin-bottom: 40px;
}

.companies {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.company-logo {
    height: 30px; /* Increased from 20px to 30px */
    max-width: 160px; /* Increased from 120px to maintain proportions */
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1); /* Force white logos */
}

.company-logo:hover {
    opacity: 1;
    filter: none; /* Show original colors on hover */
}

/* CTA Section */
.cta {
    padding: 120px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
footer {
    background-color: var(--bg-dark-accent);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    display: block;
    margin-bottom: 16px;
    height: 28px;
}

.footer-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 24px;
}

.footer-links {
    list-style-type: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.social-icon:hover {
    color: var(--text-light);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .hero-image {
        width: 45%;
        right: -5%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .platform-cards, .solutions-grid {
        grid-template-columns: 1fr;
    }

    .analysis-comparison {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-socials {
        justify-content: center;
    }
    #hero-animation-container {
        height: 300px;
    }
    
    .animation-loader {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .platform, .solutions, .analysis, .cta {
        padding: 60px 0;
    }

    .hero-buttons, .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }
}