/* CSS Reset, Base Styles & Theme Variables */
:root {
    --brand-dark: #0B1221;    
    --brand-primary: #1D4ED8;
    --brand-light: #38BDF8;  
    --brand-pale: #F8FAFC;    
    
    --text-main: #334155;   
    --bg-white: #F8FAFC;     
    --border-light: #E2E8F0; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 { font-size: clamp(3rem, 5vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem; color: var(--brand-dark); }
h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--brand-dark); }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--brand-dark); }
p { font-size: 1.125rem; max-width: 600px; margin-bottom: 2rem; }

/* Layout & Grid */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; border-bottom: 1px solid var(--border-light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Themed Background Sections */
.bg-tint { background-color: var(--brand-pale); border-bottom: none; }

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* Navigation */
nav { 
    position: -webkit-sticky; /* Safari support */
    position: sticky; 
    top: 0; 
    left: 0;
    width: 100%; /* Prevents layout shifting */
    z-index: 1000;
    padding: 1rem 2rem; 
    background-color: var(--bg-white); 
    border-bottom: 1px solid var(--border-light); 
    
    /* CSS Grid Implementation */
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    
    /* Hardware acceleration to eliminate scroll jitter */
    transform: translateZ(0);
}

.nav-links { 
    display: grid; 
    grid-auto-flow: column; 
    gap: 2rem; 
    align-items: center; 
    justify-self: end;
}

.nav-links a:not(.btn) { color: var(--brand-dark); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:not(.btn):hover { color: var(--brand-primary); }

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    justify-self: end;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--brand-dark);
    position: relative;
    transition: background-color 0.2s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--brand-dark);
    transition: transform 0.2s ease;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

/* Toggle Animation */
.menu-toggle.is-active .hamburger { background-color: transparent; }
.menu-toggle.is-active .hamburger::before { transform: translateY(0) rotate(45deg); }
.menu-toggle.is-active .hamburger::after { transform: translateY(0) rotate(-45deg); }


/* Images & Media */
.logo-img { 
    height: 60px;
    width: auto; 
    display: block; 
    object-fit: contain; 
}

.feature-img {
    width: 100%; height: auto; display: block;
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    box-shadow: 0 10px 30px rgba(44, 94, 173, 0.05);
}


/* Responsive Grid & Mobile Menu */
@media (max-width: 900px) {
    /* Main Layout Grids */
    .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
    
    /* Mobile Logo */
    .logo-img { height: 45px; } /* Slightly smaller for mobile, but bigger than original */

    /* Mobile Navigation Override */
    nav { grid-template-columns: 1fr auto; padding: 1rem; }
    .menu-toggle { display: block; }
    
    .nav-links {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        grid-auto-flow: row; /* Stacks links vertically */
        justify-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-bottom: 1px solid var(--border-light);
    }
    
    /* Class added by JavaScript to show the menu */
    .nav-links.active {
        display: grid;
    }
}

/* Buttons */
.btn-group { display: flex; gap: 1rem; }
.centered-btns { justify-content: center; margin-bottom: 2rem; }
.btn {
    display: inline-block;
    background-color: var(--brand-primary);
    color: var(--bg-white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--brand-primary);
    transition: all 0.2s ease;
}
.btn:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: var(--bg-white); }
.btn-ghost {
    background-color: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}
.btn-ghost:hover { background-color: var(--brand-pale); border-color: var(--brand-primary); }

/* Trust Signals */
.trust-list { display: flex; gap: 4rem; flex-wrap: wrap; list-style: none; margin-top: 1rem; }
.trust-list li { font-size: 1.25rem; font-weight: 600; color: var(--brand-dark); }
.trust-list span { display: block; font-size: 0.875rem; color: var(--text-main); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 400; }

/* Data Table */
table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
th, td { padding: 1.5rem 1rem; text-align: left; border-bottom: 1px solid var(--brand-light); }
th { font-weight: 600; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.05em; color: var(--brand-dark); background-color: var(--brand-pale); }
td:first-child { font-weight: 600; font-size: 1.25rem; color: var(--brand-dark); }

/* Lists */
ul.clean-list { list-style: none; margin-bottom: 2rem; }
ul.clean-list li { padding: 1rem 0; border-bottom: 1px solid var(--border-light); }
ul.clean-list li strong { display: block; margin-bottom: 0.25rem; color: var(--brand-dark); }

/* Footer */
footer { padding: 6rem 0; background-color: var(--brand-dark); color: var(--bg-white); text-align: center; }
footer h2 { color: var(--bg-white); }
footer p { color: var(--brand-pale); margin: 0 auto 2rem auto; }
footer .btn { background-color: var(--bg-white); color: var(--brand-dark); border-color: var(--bg-white); }
footer .btn:hover { background-color: var(--brand-pale); border-color: var(--brand-pale); }
footer .btn-ghost { background-color: transparent; color: var(--bg-white); border-color: var(--bg-white); }
footer .btn-ghost:hover { background-color: rgba(255,255,255,0.1); }
.footer-links { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--brand-primary); display: flex; justify-content: center; gap: 2rem; font-size: 0.875rem; color: var(--brand-pale); }

/* Unified Background */
.bg-tint {
    background-color: transparent; /* Removes the blocky color to unify the page */
    width: 100%;
    padding: 3rem 0; 
}

/* Ensure text remains visible on the unified background */
.bg-tint h2, .bg-tint p, .bg-tint .clean-list {
    color: var(--text-main);
}
.bg-tint h2 {
    color: var(--brand-dark); /* Keeps headings authoritative */
}

/* Trust Signals Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trust-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    border-top: 4px solid var(--brand-primary);
}

.trust-card:hover {
    transform: translateY(-5px);
}

/* Card Accent Colors */
.card-orange { border-top-color: var(--brand-primary); } /* Precision Blue */
.card-yellow { border-top-color: var(--brand-light); }   /* Electric Cyan */
.card-red { border-top-color: var(--brand-dark); }       /* Midnight Slate */     

.trust-metric {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.trust-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Tech Blue Card Accent for Team */
.card-blue { border-top-color: var(--brand-primary); }

/* Privacy Modal Styles */
.modal {
    border: none;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    padding: 0;
    max-width: 600px;
    width: 90%;
    margin: auto;
}

/* Blurs the background when open */
.modal::backdrop {
    background: rgba(11, 18, 33, 0.85); /* Deep slate transparent */
    backdrop-filter: blur(4px);
}

.modal-content {
    padding: 2.5rem;
    background-color: var(--bg-white);
    color: var(--text-main);
    position: relative;
}

.modal-content h2, .modal-content h3 {
    color: var(--brand-dark);
    margin-top: 1.5rem;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--brand-primary);
}

/* --- Typographic Hero Section --- */
.hero-text-only {
    text-align: center;
    padding: 6rem 1rem 4rem; /* Large breathing room for impact */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Deep Tech Badge */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(29, 78, 216, 0.08); /* Transparent version of your tech blue */
    color: var(--brand-primary);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Main Headline */
.hero-text-only h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.text-highlight {
    color: var(--brand-primary);
}

.hero-text-only p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* Data Stats Ticker */
.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
    max-width: 900px;
}

.stat-item {
    font-size: 0.95rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--brand-dark);
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

/* Mobile Responsiveness for the Hero */
@media (max-width: 768px) {
    .hero-text-only { padding: 4rem 1rem 2rem; }
    .hero-text-only h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 3rem; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { flex-direction: column; gap: 2rem; align-items: center; border-top: none; padding-top: 0; }
}

.btn-ghost:hover {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important; 
    border-color: var(--brand-primary) !important;
    transition: all 0.3s ease;
}

footer .btn:hover,
.footer-cta .btn:hover {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4); /* Adds a subtle tech-blue glow */
    transition: all 0.3s ease;
}

/* --- Navbar & Logo Refinements --- */
.nav-logo img {
    height: 3.2rem; /* Slightly larger and more commanding */
    width: auto;
    transition: transform 0.2s ease;
}

.nav-logo:hover img {
    transform: scale(1.05); /* Subtle interaction on hover */
}

/* --- Abstract Logistics Flow Animation --- */
.nav-path-container {
    flex: 1; /* Fills empty space */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 200px;
}

.path-line {
    width: 100%;
    height: 1px;
    background: rgba(56, 189, 248, 0.2); /* Faint electric cyan */
}

.path-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--brand-cyan);
    border-radius: 50%;
    animation: flow-path 4s infinite ease-in-out;
}

@keyframes flow-path {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* --- Footer Logo --- */
.footer-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-large-logo {
    height: 8rem;
    background-color: #ffffff;
    padding: 1rem 2rem; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}