:root {
    --primary-blue: #3b82f6;
    --dark-bg: #0b0f1a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at 50% -20%, #1e293b 0%, #0b0f1a 100%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* --- Header & Navigation --- */
.header { 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(11, 15, 26, 0.8);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo img { height: 41px; filter: brightness(1.35); }
.main-nav ul { list-style: none; display: flex; gap: 32px; }
.main-nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.main-nav a:hover { color: var(--primary-blue); }

/* --- Hero Section --- */
.hero { padding: 120px 0 80px; text-align: center; }
.hero h1 { 
    font-size: clamp(2.5rem, 5vw, 3.8rem); 
    font-weight: 800; 
    line-height: 1.1; 
    letter-spacing: -0.03em; 
    margin-bottom: 24px; 
    color: #fff;
}
.hero .highlight { color: var(--primary-blue); }
.hero .subtitle { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 0 auto 40px; 
    color: var(--text-muted); 
}

/* --- Button Styling --- */
.btn { 
    display: inline-block; 
    padding: 14px 32px; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none; 
    transition: var(--transition); 
}
.btn-primary { 
    background: var(--primary-blue); 
    color: white; 
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4); 
    filter: brightness(1.1);
}

/* --- Bento Grid --- */
.section-title { font-size: 2.2rem; margin-bottom: 48px; text-align: center; letter-spacing: -0.02em; color: #fff; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
}

.card.featured { grid-column: span 2; }

/* Fixed featured-inner grid to prevent squashing/one-line text */
.featured-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
}

.card-icon { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 24px; display: block; }
.card-title { font-size: 1.5rem; margin-bottom: 16px; color: #fff; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Advanced Faux UI Visual --- */
.faux-ui-box {
    position: relative;
    height: 260px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    padding: 20px;
    gap: 10px;
}

.terminal-stream {
    font-size: 0.65rem;
    color: var(--primary-blue);
    opacity: 0.4;
    line-height: 1.4;
    white-space: pre;
    pointer-events: none;
    overflow: hidden;
}

.compliance-orbitals {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-1 { width: 180px; height: 180px; animation: spin 20s linear infinite; border-top-color: var(--primary-blue); }
.orbit-2 { width: 130px; height: 130px; animation: spin 15s linear infinite reverse; border-right-color: var(--primary-blue); }
.orbit-3 { width: 80px; height: 80px; animation: spin 10s linear infinite; border-bottom-color: var(--primary-blue); }

.status-center {
    font-size: 0.6rem;
    text-align: center;
    color: #fff;
    font-weight: 800;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scan-text {
    position: absolute;
    bottom: 12px;
    left: 20px;
    font-size: 0.65rem;
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Endpoint Detection Animated Graphic --- */
.node-network {
    margin-top: auto;
    height: 120px;
    position: relative;
    width: 100%;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.node-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-blue);
    z-index: 5;
    transform: translate(-50%, -50%);
}

.node-pulse {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: nodePulse 3s ease-out infinite;
    z-index: 4;
}

@keyframes nodePulse {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.scan-bar {
    position: absolute;
    top: 0;
    left: -10%;
    width: 50px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.1), transparent);
    border-right: 2px solid rgba(59, 130, 246, 0.4);
    box-shadow: 10px 0 20px rgba(59, 130, 246, 0.1);
    z-index: 6;
    animation: scanPulse 4s linear infinite;
}

@keyframes scanPulse {
    0% { left: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.node-line {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    height: 1px;
    transform-origin: left;
    z-index: 3;
    overflow: hidden;
}

.data-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--primary-blue), transparent);
    animation: flowLine 2s linear infinite;
}

@keyframes flowLine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* --- Trust Bar --- */
.partners { border-top: 1px solid var(--glass-border); padding: 80px 0; }
.partner-marquee {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.partner-logo { 
    max-height: 35px; 
    width: auto; 
    filter: brightness(0) invert(1);
    opacity: 0.45;
    transition: var(--transition); 
}
.partner-logo:hover { 
    opacity: 0.95;
    transform: translateY(-2px);
}

/* --- Certifications --- */
.certifications { padding-bottom: 100px; }
.cert-grid { 
    display: flex; 
    justify-content: center; 
    gap: 80px; 
    flex-wrap: wrap; 
    align-items: flex-start;
}

.cert-item {
    text-align: center;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-logo-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 24px;
}

.cert-item img {
    max-width: 100%;
    max-height: 100%; 
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.05));
}

.cert-item:hover img { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3)); }
.cert-label { 
    font-size: 0.85rem; 
    font-weight: 800; 
    color: var(--text-main); 
    letter-spacing: 0.08em; 
    display: block;
    text-transform: uppercase;
}

/* Identifier Badges */
.identifier-row { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    margin-top: 50px; 
    padding-top: 30px;
    border-top: 1px dashed var(--glass-border);
}
.id-badge { font-family: 'Inter', monospace; font-size: 0.8rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 4px; border: 1px solid var(--glass-border); }
.id-badge strong { color: var(--primary-blue); }

/* --- Footer --- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--glass-border); background: rgba(0,0,0,0.2); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer-social a { font-size: 1.5rem; color: var(--text-muted); margin-right: 20px; transition: 0.3s; }
.footer-social a:hover { color: var(--primary-blue); }

/* --- Legacy Classes --- */
.section-padding { padding: 80px 0; }
.bg-light { background: transparent; }
.bg-dark { background: transparent; }
.subsection-title { 
    font-size: 1.2rem; 
    margin-bottom: 24px; 
    text-align: center; 
    color: var(--text-muted); 
    font-weight: 600; 
}
.partner-logos { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    flex-wrap: wrap; 
    margin-bottom: 40px; 
}
.cert-logos { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
    margin-top: 40px; 
}
.cert-logos .cert-item { 
    text-align: center; 
    padding: 20px; 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    border-radius: 16px; 
}
.cert-logos .cert-item img { 
    max-height: 80px; 
    margin-bottom: 16px; 
}
.cert-logos .cert-item span { 
    display: block; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}
.cert-icon { 
    font-size: 2rem; 
    color: var(--primary-blue); 
    margin-bottom: 16px; 
}
.footer-copy { 
    grid-column: 1 / -1; 
    text-align: center; 
    padding-top: 40px; 
    border-top: 1px solid var(--glass-border); 
    margin-top: 40px; 
    width: 100%;
}
.footer-copy p { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}

/* Mobile Navigation */
.mobile-nav-toggle { 
    display: none; 
    background: none; 
    border: none; 
    color: var(--text-main); 
    font-size: 1.5rem; 
    cursor: pointer; 
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr; }
    .card.featured { grid-column: span 1; }
    .card.featured .featured-inner { grid-template-columns: 1fr !important; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .cert-grid { gap: 40px; }
    .compliance-orbitals { display: none; }
    .faux-ui-box { grid-template-columns: 1fr; }
    
    /* Mobile Menu Fix */
    .main-nav ul { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        gap: 20px;
        z-index: 10;
        backdrop-filter: blur(12px);
    }
    
    .main-nav.active ul { 
        display: flex; 
    }
    
    .mobile-nav-toggle { display: block; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    .card { padding: 24px; }
    .partner-marquee { gap: 30px; }
    .partner-logo { max-height: 25px; }
    .cert-grid { gap: 24px; }
    .identifier-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
    .certifications { padding-bottom: 80px; }
    .footer { padding: 60px 0 30px; }
    .footer-content { gap: 30px; }
}