:root {
    --primary-color: #0c1222; /* Total Depth Navy */
    --accent-action: #f59e0b; /* Safety Orange */
    --bg-light: #f1f5f9;
    --text-main: #0c1222;
    --text-muted: #5e6d8a;
    --border-color: #cbd5e1;
    --white: #ffffff;
    
    /* Refined Design System */
    --border-radius-lg: 12px;
    --border-radius-sm: 6px;
    --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-floating: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-premium: all 0.3s ease;
    
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0),
        linear-gradient(to right, #f1f5f9 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 40px 40px, 80px 80px, 80px 80px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain & Grid Feature */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- Header --- */
.header {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-premium);
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-premium);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    height: 38px;
    width: auto;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-color);
    line-height: 1;
}

.brand-text .sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-action);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.nav a:hover {
    color: var(--accent-action);
}

/* --- Buttons (Premium Pill) --- */
.btn-elite-primary, .nav a.btn-elite-primary {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    color: var(--white) !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #1e3a8a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-decoration: none;
}

.btn-elite-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.4);
    background: #1e40af;
}

.btn-elite-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: #1e3a8a !important;
    color: white !important;
}

.btn-elite-primary:focus {
    outline: 2px solid rgba(30, 58, 138, 0.5);
    outline-offset: 2px;
}

.btn-elite-secondary, .nav a.btn-elite-secondary {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-color) !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-elite-secondary:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

/* Orange variant for specific CTAs */
.btn-orange {
    background: var(--accent-action);
    color: var(--white);
}

.btn-orange:hover {
    background: #d97706;
}

/* --- Hero Section --- */
.hero-elite {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: transparent;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-img-col {
    height: 500px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-floating);
}

.hero-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-elite-content {
    position: relative;
    z-index: 2;
}

.hero-elite h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-sub-elite {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    font-weight: 400;
}

/* --- Sections --- */
.section-premium {
    padding: 40px 0;
    position: relative;
    background-image: 
        radial-gradient(circle at 2px 2px, #cbd5e1 0.7px, transparent 0),
        linear-gradient(to right, rgba(203, 213, 225, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(203, 213, 225, 0.4) 1px, transparent 1px);
    background-size: 30px 30px, 90px 90px, 90px 90px;
}

/* Add technical lines to sections */
.section-premium::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%; width: 1px; height: 100px;
    background: linear-gradient(to bottom, var(--accent-action), transparent);
}

.section-header-elite {
    margin-bottom: 2rem;
}

.section-header-elite.center {
    text-align: center;
}

.section-header-elite h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.section-header-elite p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

/* Dark section overrides */
section[style*="var(--primary-color)"] .section-header-elite h2,
section[style*="#1e3a8a"] .section-header-elite h2 {
    color: white;
}

section[style*="var(--primary-color)"] .section-header-elite p,
section[style*="#1e3a8a"] .section-header-elite p {
    color: rgba(255,255,255,0.7);
}

/* --- Trust Strip --- */
.trust-strip {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: white;
    overflow: hidden;
}

.trust-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0.5;
    filter: grayscale(1);
}

.trust-logos span {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* --- Hero Floating Stats --- */


/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.bento-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition-premium);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    box-shadow: var(--shadow-floating);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.module-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-action);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.crm-bento { grid-column: span 7; }
.scrubber-bento { grid-column: span 5; }
.vsm-bento { grid-column: span 5; }
.sap-bento { grid-column: span 7; }

/* --- Footer --- */
.footer-elite {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 40px;
}

.footer-grid-elite {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-elite h4 { color: white; margin-bottom: 20px; }
.footer-links-elite h4 { color: white; margin-bottom: 20px; }
.footer-links-elite a { color: rgba(255,255,255,0.6); text-decoration: none; display: block; margin-bottom: 10px; }
.footer-links-elite a:hover { color: white; }

/* --- Utilities --- */
.gold-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    background: var(--white);
    margin-bottom: 24px;
}

/* Auth Modal Re-skin */
.modal {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: #0f172a;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.auth-card-elite {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    padding: 50px;
    text-align: center;
}

.form-group-elite label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group-elite input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    margin-bottom: 20px;
}
/* --- Service Pillars Section --- */
.pillars-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pillar-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-floating);
    border-color: var(--primary-color);
}

.pillar-icon-box {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: var(--shadow-premium);
}

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

.pillar-features li {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pillar-features li i {
    color: #10b981;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    

    .hero-elite {
        background-position: center right;
    }
    
    .video-overlay {
        background: rgba(255, 255, 255, 0.95); /* Nearly solid white for readability */
    }
    
    .section-header-elite h2 {
        font-size: 2rem;
    }
}

/* --- Impact Cases Section --- */
.impact-section {
    padding: 120px 0;
    background: #ffffff;
}

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

.impact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.impact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.impact-img-box {
    width: 100%;
    height: 300px;
    background: #1e293b;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.impact-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.impact-content {
    padding: 30px;
}

.impact-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.impact-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-img-box {
        height: 250px;
    }
}


/* --- Tech Stack --- */
.tech-stack-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    opacity: 0.6;
    filter: grayscale(1);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tech-item i {
    font-size: 1rem;
}

/* --- Dual Pillars --- */
.dual-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .dual-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-card-navy {
    background: var(--primary-color);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-floating);
    transition: var(--transition-premium);
}

.pillar-card-navy:hover {
    transform: translateY(-8px);
    border-color: var(--accent-action);
}

.pillar-card-light {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-premium);
}

.pillar-card-light:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.benchmark-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-action);
    margin-bottom: 30px;
}

.benchmark-badge {
    background: var(--accent-action);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    float: right;
}
