:root {
    --bg-color: #0b0f19; /* Deeper Slate */
    --surface-color: #1A202C;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent: #007AFF; /* Vibrant Electric Blue */
    --accent-hover: #005bb5;
    --glass-bg: rgba(26, 32, 44, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 55px; /* Natural logo presentation */
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: #1A202C; /* Dark text for light header */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.nav-portal-btn {
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.nav a:hover {
    color: var(--accent);
    background: rgba(0, 122, 255, 0.05); /* Highlight block on hover */
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.pulse-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pulse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
    filter: brightness(1.1);
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
section {
    padding: 100px 5%;
    min-height: auto;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background: url('hero_bg.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(11,15,25,0.95) 0%, rgba(11,15,25,0.7) 50%, rgba(11,15,25,0.3) 100%);
}

.hero-content {
    position: relative;
    max-width: 750px;
    z-index: 2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 122, 255, 0.2);
    letter-spacing: 0.5px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.service-card {
    padding: 1.8rem 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 122, 255, 0.4);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: rgba(0,122,255,0.1);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}

/* Configurator */
.configurator-wrap {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.configurator-controls {
    flex: 1;
    min-width: 300px;
}

.configurator-result {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(0,122,255,0.15) 100%);
    position: sticky;
    top: 100px;
}

.config-group {
    margin-bottom: 2rem;
}

.config-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.toggle-opts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--surface-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1.15rem;
}

.toggle-btn:hover {
    border-color: var(--text-secondary);
}

.toggle-btn.active {
    background: rgba(0, 122, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0,122,255,0.1);
}

.result-card h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.5rem;
}

.timeline-est {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.checklist {
    list-style: none;
    margin-bottom: 2.5rem;
}

.checklist li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.checklist li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.checklist li.empty-state::before {
    content: '';
}

/* Compliance Clock */
.clock-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    border-left: 2px solid var(--glass-border);
    padding-left: 2.5rem;
    margin-left: 1rem;
}

.timeline-event {
    margin-bottom: 3rem;
    position: relative;
    padding-top: 5px;
}

.timeline-event:last-child {
    margin-bottom: 0;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -2.9rem;
    top: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px var(--accent);
}

.event-date {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-content p {
    margin-bottom: 0;
}

.timeline-event { cursor: pointer; padding-right: 2rem; position: relative; }
.timeline-event p { display: none; margin-top: 0.6rem; font-size: 0.95rem; }
.timeline-event.expanded p { display: block; }
.timeline-event::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
}
.timeline-event.expanded::after { content: '−'; }
.timeline-event .event-content h4 { margin-bottom: 0; }

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--surface-color);
    margin-top: 5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 1.1rem; }
    
    .header { padding: 0 1rem; align-items: center; padding-top: 1rem;}
    .desktop-logo-icon { display: none !important; }
    .desktop-logo-text { font-size: 1.4rem !important; }
    .logo { flex-direction: row; align-items: center; }
    
    section { padding: 50px 5%; }
    
    #contact form label { font-size: 0.95rem !important; margin-bottom: 0.4rem !important; }
    #contact form input, #contact form select { font-size: 0.95rem !important; padding: 0.8rem !important; }
    
    .mobile-header-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .mobile-login-icon { display: flex !important; }

    .hero-content { text-align: center; }
    .hero-badges { justify-content: center; flex-wrap: wrap; }
    
    .configurator-wrap { flex-direction: column; gap: 2rem; }
    .config-group label { font-size: 1.3rem; }
    .services-grid { grid-template-columns: 1fr; }
    .configurator-controls { max-height: none; overflow-y: auto; }
    .toggle-opts { flex-direction: column; gap: 0.5rem; }
    .toggle-btn { font-size: 1.05rem; padding: 1rem; width: 100%; margin-bottom: 0.5rem; }
    
    .nav { display: none; }
    
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 1rem;
        right: auto;
        min-width: 180px;
        background: #ffffff;
        backdrop-filter: none;
        padding: 0.8rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        z-index: 999;
        text-align: left;
    }
    .service-card {
        display: grid;
        grid-template-columns: 45px 1fr;
        gap: 0.2rem 1rem;
        align-items: center;
        padding: 1.5rem 1.2rem;
        cursor: default;
    }
    .service-icon {
        grid-row: 1 / 3;
        grid-column: 1;
        margin-bottom: 0;
        width: 45px; height: 45px;
        display: flex; align-items: center; justify-content: center;
    }
    .service-icon svg { width: 38px; height: 38px; }
    .service-card h3 { 
        grid-column: 2; margin-bottom: 0.1rem; 
        font-size: 1.15rem; 
        display: block; 
    }
    .service-card p { 
        grid-column: 2; 
        display: block; 
        margin-top: 0;
        margin-bottom: 0;
        font-size: 0.95rem;
    }
    .service-card.expanded p { display: block; margin-top: 0; }
    .service-card h3::after { display: none !important; }
    
    .nav.active a {
        color: #1A202C !important;
        padding: 0.6rem 0.5rem;
        font-size: 1.05rem;
        margin-bottom: 0;
        font-weight: 600;
        border-bottom: 1px solid #f1f5f9;
        text-decoration: none;
    }
    .nav.active a:last-child {
        border-bottom: none;
    }
    
    .nav.active .nav-portal-btn {
        display: none !important;
    }
    
    .nav.active .nav-cta-btn {
        display: none; /* Hide because mobile header already has one */
    }
    
    .mobile-menu-btn { display: block !important; margin-right: 0.2rem; }
    
    /* Reveal header CTA on mobile */
    .mobile-header-cta { display: inline-block !important; padding: 0.5rem 0.8rem; font-size: 0.9rem; }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1A202C;
    cursor: pointer;
}

.mobile-login-icon {
    display: none;
}
.mobile-nav-portal-link { display: none; }

.mobile-header-cta {
    display: none;
}
