:root {
    --primary: #0052cc;
    --primary-dark: #0747a6;
    --accent: #00d2ff;
    --text-main: #172b4d;
    --text-muted: #5e6c84;
    --bg-light: #f4f5f7;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0052cc 0%, #00d2ff 100%);
    --shadow: 0 10px 30px rgba(0, 82, 204, 0.1);
}

.accent {
    color: var(--primary);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

input, textarea, [contenteditable="true"] {
    user-select: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

/* Navbar */
.navbar {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 40px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.logo .accent {
    color: var(--primary);
}

.by-trustwork {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-contact { display: flex; align-items: center; gap: 15px; margin: 0 20px; }
.nav-contact a { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-main); text-decoration: none; transition: all .3s ease; padding: 6px 12px; background: #f3f4f7; border-radius: 50px; border: 1px solid transparent; white-space: nowrap; }
.nav-contact a:hover { color: var(--primary); background: #ffffff; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,82,204,0.15); }
.nav-contact a i { color: var(--primary); font-size: 12px; }
.nav-contact-sep { display: none; }

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    background: transparent;
}

.btn-outline:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(0, 82, 204, 0.05);
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.1);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.05), transparent);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Visuals */
.visual-wrapper {
    position: relative;
}

.mockup {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 8px solid white;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    animation: float 4s ease-in-out infinite;
    transition: all 0.3s;
    z-index: 10;
    white-space: nowrap;
}

.floating-card:hover {
    transform: scale(1.1);
    z-index: 20;
}

.floating-card i {
    color: #00c853;
    font-size: 18px;
}

.c1 { bottom: 25%; left: -5%; animation-delay: 0s; } /* ESI & PF */
.c2 { top: 20%; left: -8%; animation-delay: 2s; }    /* Salary Structure */
.c3 { top: 15%; right: -5%; animation-delay: 1s; }   /* Onboarding Hub */
.c4 { top: 45%; right: -8%; animation-delay: 3s; }   /* Statutory Hub */
.c6 { bottom: 15%; right: -5%; animation-delay: 4s; } /* Auto-Disburse */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--bg-light);
    z-index: 1;
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.pulse-icon {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 82, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 82, 204, 0); }
}

.step-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
}

/* Security Fortress */
.security-fortress {
    padding: 120px 0;
    background: #091e42;
    color: white;
    overflow: hidden;
}

.fortress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge-dark {
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent);
}

.security-list {
    list-style: none;
    margin-top: 40px;
}

.security-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.security-list i {
    font-size: 24px;
    color: var(--accent);
    margin-top: 5px;
}

.security-list h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.security-list p {
    color: #97a0af;
    font-size: 15px;
}

.fortress-visual {
    display: flex;
    justify-content: center;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.main-shield {
    font-size: 120px;
    color: var(--accent);
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4));
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    animation: scan 3s ease-in-out infinite;
}

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

@keyframes scan {
    0%, 100% { top: 10%; opacity: 0; }
    50% { top: 90%; opacity: 1; }
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 82, 204, 0.1);
    border-color: rgba(0, 82, 204, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.3s ease;
    background: #f8fbff;
    color: var(--primary);
}

/* Color Themes */
.card-blue .icon-box { background: rgba(0, 82, 204, 0.08); color: #0052cc; }
.card-blue:hover .icon-box { background: #0052cc; color: #fff; }
.card-blue:hover { border-color: rgba(0, 82, 204, 0.2); }
.card-blue::before { background: #0052cc; }

.card-purple .icon-box { background: rgba(108, 71, 255, 0.08); color: #6c47ff; }
.card-purple:hover .icon-box { background: #6c47ff; color: #fff; }
.card-purple:hover { border-color: rgba(108, 71, 255, 0.2); }
.card-purple::before { background: #6c47ff; }

.card-green .icon-box { background: rgba(0, 200, 83, 0.08); color: #00c853; }
.card-green:hover .icon-box { background: #00c853; color: #fff; }
.card-green:hover { border-color: rgba(0, 200, 83, 0.2); }
.card-green::before { background: #00c853; }

.card-orange .icon-box { background: rgba(255, 171, 0, 0.08); color: #ffab00; }
.card-orange:hover .icon-box { background: #ffab00; color: #fff; }
.card-orange:hover { border-color: rgba(255, 171, 0, 0.2); }
.card-orange::before { background: #ffab00; }

.icon-box i {
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Step Layout */
.step-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    margin-top: 40px;
}

.step-box {
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    padding: 20px;
    border-radius: 12px;
}

.step-box:hover {
    background: rgba(0, 82, 204, 0.02);
    transform: translateY(-5px);
}

.step-num-circle {
    width: 70px;
    height: 70px;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-weight: 700;
    border: 2px solid var(--primary);
    font-size: 24px;
    position: relative;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.05);
}

.step-box:hover .step-num-circle {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.step-box:not(:last-child) .step-num-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% + 40px - 70px);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--primary) 0, var(--primary) 5px, transparent 5px, transparent 10px);
    z-index: -1;
}

.step-box h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--text-main);
}

.step-box p {
    font-size: 15px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .step-box:not(:last-child) .step-num-circle::after {
        display: none;
    }
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #091e42;
    color: white;
}

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

.footer-brand .logo-text {
    color: white;
    display: block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #97a0af;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 16px;
    color: white;
}

.link-group a {
    display: block;
    color: #97a0af;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: #97a0af;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .nav-links { gap: 20px; }
    .nav-contact a { padding: 6px 10px; font-size: 11px; }
}

@media (max-width: 968px) {
    .nav-contact { display: none; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin: 0 auto 40px; }
    .hero-stats { justify-content: center; }
    .hero h1 { font-size: 40px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    
    .fortress-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .fortress-visual { margin-top: 20px; }
    .security-list { text-align: left; }

    .visual-wrapper { position: relative; margin-top: 30px; }
    .mockup, .mockup-container { width: 100%; margin-bottom: 20px; }
    .floating-card {
        position: absolute;
        font-size: 11px;
        padding: 6px 12px;
        white-space: nowrap;
        z-index: 10;
        animation: float 4s ease-in-out infinite;
    }
    .c1 { bottom: 10%; left: 0; }
    .c2 { top: 10%; left: 0; }
    .c3 { top: 5%; right: 0; }
    .c4 { top: 40%; right: 0; }
    .c6 { bottom: 5%; right: 0; }
}

/* Mobile Bottom Nav */
@media (max-width: 768px) {
    .nav-links { display: none; }
    body { padding-bottom: 70px; }
    .mobile-bottom-nav { display: flex; }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 12px 5px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 25px rgba(0,0,0,0.08);
    border-radius: 20px 20px 0 0;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s;
}
.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}
.mobile-nav-item:active i {
    transform: scale(0.9);
}
.mobile-nav-item.active {
    color: var(--primary);
}

/* MOBILE QUICK CONTACT BAR */
@media (max-width: 768px) {
    .mobile-quick-contact {
        display: flex;
        position: fixed;
        bottom: calc(75px + env(safe-area-inset-bottom)); /* Positioned above bottom nav */
        right: 20px;
        flex-direction: column;
        gap: 12px;
        z-index: 999;
    }
    .contact-fab {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        border: 1px solid rgba(0,0,0,0.05);
        transition: all 0.2s;
    }
    .contact-fab i {
        font-size: 20px;
    }
    .fab-call { color: var(--primary); }
    .fab-whatsapp { color: #25D366; }
    .fab-mail { color: #ea4335; }
    .contact-fab:active {
        transform: scale(0.9);
    }
}
@media (min-width: 769px) {
    .mobile-quick-contact { display: none; }
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.breadcrumb:hover {
    color: var(--primary);
}
.breadcrumb i {
    font-size: 10px;
}

@media (max-width: 768px) {
    .mobile-back {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: var(--bg-light);
        border-radius: 50%;
        color: var(--primary);
        font-size: 14px;
    }
}
