/* ==========================================================================
   1. Design System Tokens (:root)
   ========================================================================== */
:root {
    --bg: #0a0a0b;
    --card-bg: #161618;
    --input-bg: #1e1e21;
    --accent: #007BFF;
    --accent-glow: rgba(0, 123, 255, 0.4);
    --text-main: #ffffff;
    --text-dim: #a0a0a5;
    --border: #2d2d30;
}

/* ==========================================================================
   2. Global Resets & Base Styles
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

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

/* ==========================================================================
   3. Navigation Component
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    letter-spacing: -1px; 
}

.logo a {
    text-decoration: none;
    color: white;
}

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

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

.nav-links a { 
    color: var(--text-dim); 
    text-decoration: none; 
    margin-left: 30px; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}

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

.menu-toggle { 
    display: none; 
    cursor: pointer;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--text-main);
    transition: 0.3s all ease-in-out;
}

.language-select:hover {
    cursor: pointer;
}

/* ==========================================================================
   4. Hero Section & Structural Components
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: radial-gradient(circle at center, #111827 0%, #0a0a0b 100%);
}

.hero h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    line-height: 1.1; 
}

.hero p { 
    color: var(--text-dim); 
    font-size: 1.2rem; 
    max-width: 700px; 
    margin-bottom: 40px; 
}

/* Biometric Card Element Visuals */
.bsc-card-visual {
    width: 400px;
    height: 250px;
    background: linear-gradient(135deg, #2d2d30 0%, #161618 100%);
    border-radius: 15px;
    border: 1px solid #444;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s;
}

.bsc-card-visual:hover { 
    transform: rotateY(10deg) rotateX(5deg); 
}

.sensor-glow {
    width: 60px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    box-shadow: inset 0 0 15px var(--accent);
    position: absolute;
    left: 40px;
}

/* ==========================================================================
   5. General Layout & Sections
   ========================================================================== */
.wrapper {
    max-width: 1200px;
    margin: 140px auto 60px auto;
    padding: 0 5%;
}

section { 
    padding: 100px 10%; 
}

.section-title { 
    font-size: 2.5rem; 
    margin-bottom: 50px; 
    text-align: center; 
}

.section-title span { 
    color: var(--accent); 
}

.header-block { 
    margin-bottom: 60px; 
}

.header-block h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.header-block h1 span { 
    color: var(--accent); 
}

.header-block p { 
    color: var(--text-dim); 
    font-size: 1.1rem; 
    max-width: 800px; 
}

/* ==========================================================================
   6. Grid & Feature Cards
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.feature-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-5px); 
}

.feature-card h3 { 
    margin-bottom: 15px; 
    color: var(--accent); 
    font-family: 'Roboto Mono', monospace; 
}

/* ==========================================================================
   7. Process Steps Component
   ========================================================================== */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    counter-reset: step;
}

.step {
    flex: 1;
    padding: 20px;
    position: relative;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    width: 40px;
    height: 40px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ==========================================================================
   8. Form Component
   ========================================================================== */
.form-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 45px;
    border-radius: 12px;
}

.form-container h2 { 
    font-size: 1.8rem; 
    margin-bottom: 30px; 
    font-weight: 600; 
}

.form-group { 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    color: var(--text-dim); 
    font-size: 0.85rem; 
    font-family: 'Roboto Mono', monospace; 
    text-transform: uppercase; 
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

select.form-control { 
    appearance: none; 
    cursor: pointer; 
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover { 
    opacity: 0.9; 
    box-shadow: 0 0 20px var(--accent-glow); 
}

/* ==========================================================================
   9. Information Sidebar Component
   ========================================================================== */
.info-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 40px; 
}

.info-card {
    border-left: 2px solid var(--border);
    padding-left: 25px;
}

.info-card h3 { 
    font-family: 'Roboto Mono', monospace; 
    color: var(--accent); 
    font-size: 1.1rem; 
    margin-bottom: 15px; 
}

.info-card p { 
    color: var(--text-dim); 
    font-size: 0.95rem; 
}

.info-card .highlight { 
    color: var(--text-main); 
    font-weight: 600; 
}

/* ==========================================================================
   10. Data Display & Interactive UI Elements
   ========================================================================== */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 30px; 
    background: var(--card-bg); 
}

th, td { 
    text-align: left; 
    padding: 20px; 
    border-bottom: 1px solid var(--border); 
}

th { 
    color: var(--accent); 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
}

.cta-btn {
    background: var(--accent);
    color: white !important;
    padding: 16px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.cta-btn:hover { 
    color: white; 
    opacity: 0.9; 
    box-shadow: 0 0 20px var(--accent-glow); 
}

/* ==========================================================================
   10b. Integrated Conversion Banner Component
   ========================================================================== */
.banner-section {
    padding: 60px 10%;
    background: var(--bg);
}

.cta-banner {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 45px 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    gap: 30px;
}

.banner-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.banner-content h2 span {
    color: var(--accent);
}

.banner-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin: 0;
}

.banner-btn {
    background: var(--accent);
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 600;
    padding: 16px 35px;
    border-radius: 6px; /* Matches the sharp styling of your form button/cta metrics */
    white-space: nowrap;
    transition: 0.3s;
}

.banner-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px var(--accent-glow);
}

.disabled {
    background-color: gray;
    cursor: auto;
}

.disabled:hover {
    box-shadow: none;
}

/* Responsive Adaptive Adjustments */
@media (max-width: 968px) {
    .cta-banner {
        padding: 40px;
    }
    .banner-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 25px;
        gap: 25px;
    }
    .banner-btn {
        width: 100%;
        text-align: center;
    }
}

footer { 
    text-align: center; 
    padding: 50px; 
    color: var(--text-dim); 
    border-top: 1px solid var(--border); 
    font-size: 0.8rem; 
}

/* ==========================================================================
   11. Animations & Dynamic Visuals
   ========================================================================== */
@keyframes laser-scan {
    0% { stop-color: #007BFF; stop-opacity: 0; }
    50% { stop-color: #66b0ff; stop-opacity: 1; }
    100% { stop-color: #007BFF; stop-opacity: 0; }
}

.sensor-glow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007BFF;
    box-shadow: 0 0 10px #007BFF;
    animation: move-line 3s infinite linear;
}

@keyframes move-line {
    0% { top: 10%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

/* ==========================================================================
   12. Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 968px) {
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .header-block h1 { 
        font-size: 2.5rem; 
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #mobile-menu.is-active .bar:nth-child(2) { 
        opacity: 0; 
    }
    #mobile-menu.is-active .bar:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
        background-color: var(--accent); 
    }
    #mobile-menu.is-active .bar:nth-child(3) { 
        transform: translateY(-8px) rotate(-45deg); 
        background-color: var(--accent); 
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 11, 0.98); 
        backdrop-filter: blur(15px);
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 20px 0;
        font-size: 1.2rem;
        font-family: 'Roboto Mono', monospace;
    }

    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .bsc-card-visual { 
        width: 300px; 
        height: 180px; 
    }
    
    .process-steps { 
        flex-direction: column; 
    }
}