/* Base Reset & Variables */
:root {
    --bg-dark: #121212;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Prevents the floating header from covering content */
}

body {
    background-color: #101114; 
    /* Updated to .jpg and aligned to the top */
    background-image: linear-gradient(rgba(16, 17, 20, 0.7), rgba(16, 17, 20, 0.7)), url('webback.jpg');
    background-size: cover; 
    background-position: center 0px; 
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f1f5f9;
    min-height: 100vh;
    zoom: 0.9; /* Forces the entire website to render at 90% scale */
}

/* Global background image removed */

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-logo {
    max-height: 60px; /* Increased logo size */
    display: block;
}

/* Ambient Engine Background */
.ambient-bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.08) 0%, rgba(16, 17, 20, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Global Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Accounts for the 80px navbar + 40px top spacing */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #101114; /* Deep ash to match the primary background */
    border-left: 1px solid rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3); /* Muted soft blue */
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6); /* Brighter blue on interaction */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; 
    background: transparent;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: #e2e8f0;
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    margin-bottom: 2rem;
}

#product {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 160px; /* Pushes content down past the fixed header */
    padding-bottom: 4rem; /* Gives breathing room below the platform */
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: transparent; /* Blends seamlessly with the page body */
    box-sizing: border-box;
}
.page-section {
    min-height: 80vh; 
    padding: 3rem 0; 
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Typography & Layout */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Technical Typography Refinements */
h1, h2, h3, .hero-title {
    letter-spacing: -0.5px;
    font-weight: 700;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Trust Banner */
.trust-banner {
    text-align: center;
    padding: 1rem 0 3rem 0;
}

.trust-banner p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.local-highlight {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.partner-logo-box {
    width: 220px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02); /* Clean, transparent base */
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    cursor: pointer;
}

.partner-logo-box:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}

/* CSS-Only Brand Logos */
.brand-text {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    opacity: 0.6;
    transition: all 0.4s ease;
    display: inline-block;
}

.partner-logo-box:hover .brand-text {
    opacity: 1;
    transform: scale(1.05);
}

/* ZKTeco Brand Styling */
.zkteco {
    color: #7CC242; /* Signature ZKTeco Green */
}

.zkteco .zk {
    color: var(--text-primary); /* Keeps 'ZK' stark white against the dark ash */
}

.partner-logo-box:hover .zkteco {
    text-shadow: 0 0 20px rgba(124, 194, 66, 0.3);
}

/* Amatura Brand Styling */
.amatura {
    color: #0072CE; /* High-tech Access Control Blue */
    letter-spacing: 1px;
}

.partner-logo-box:hover .amatura {
    text-shadow: 0 0 20px rgba(0, 114, 206, 0.4);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Dashboard Mockup Showcase */
.dashboard-mockup {
    width: 100%;
    height: 450px;
    background-color: #101114; /* A bit darker for maximum depth */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: inset 0 8px 32px rgba(0, 0, 0, 0.6), 0 15px 45px rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
    position: relative;
}

.mockup-sidebar {
    width: 80px;
    background: var(--glass-bg);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.mockup-content {
    flex: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
    gap: 1.5rem;
}

.mockup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.mockup-card.wide {
    grid-column: span 2;
}

/* Skeleton UI Elements */
.mockup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.skeleton-header {
    width: 40%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    animation: pulse 2s infinite ease-in-out;
}

.skeleton-line {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    animation: pulse 2s infinite ease-in-out;
    animation-delay: 0.2s; /* Slight delay for a cascading effect */
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

.skeleton-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 60px;
    margin-top: auto;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.skeleton-bar-chart .bar {
    flex: 1;
    background: var(--accent-color);
    border-radius: 4px 4px 0 0;
    opacity: 0.7;
    transform-origin: bottom;
    animation: barGrow 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Added slight animation delays for a staggered growth effect */
.skeleton-bar-chart .bar:nth-child(1) { animation-delay: 0.1s; }
.skeleton-bar-chart .bar:nth-child(2) { animation-delay: 0.3s; }
.skeleton-bar-chart .bar:nth-child(3) { animation-delay: 0.2s; }
.skeleton-bar-chart .bar:nth-child(4) { animation-delay: 0.4s; }

.h-70 { height: 70%; }
.h-40 { height: 40%; }
.h-90 { height: 90%; }
.h-60 { height: 60%; }

/* Live System iFrame Integration */
.live-system-container {
    padding: 0;
    display: block; 
    max-width: 1800px; /* Massively scaled up width */
    width: 95%; /* Takes up almost the entire screen edge-to-edge */
    height: 90vh; /* Takes up 90% of the screen height */
    min-height: 850px; /* Prevents it from getting squished */
    margin: 0 auto;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7); /* Deep, heavy shadow for depth */
    transition: all 0.3s ease;
}

.live-system-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px; 
    background: #131314; 
}

/* Mobile safety fallback */
@media (max-width: 768px) {
    .live-system-container {
        width: 100%;
        height: 80vh;
        min-height: 600px;
    }
}

/* Mobile safety fallback */
@media (max-width: 768px) {
    .live-system-container {
        width: 100%;
        height: 80vh;
        min-height: 600px;
    }
}

/* Dashboard Notification Drawer */
.notification-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: rgba(16, 17, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid var(--glass-border);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.dashboard-mockup:hover .notification-drawer {
    transform: translateX(0);
}

.drawer-header {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.alert-item {
    font-size: 0.85rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    cursor: default;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.alert-item.pinned {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.alert-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
}

.alert-dot.resolved {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Mobile App Showcase */
.mobile-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.mobile-device {
    width: 300px;
    height: 600px;
    background-color: #101114;
    border: 8px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 2px var(--glass-border);
    padding: 12px;
    position: relative;
}

.mobile-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background-color: #101114;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.1) 0%, #16181d 80%);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.5rem 2rem;
}

.mobile-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
}

.mobile-time {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.mobile-status {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.clock-in-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.9));
    border: 4px solid rgba(59, 130, 246, 0.3);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clock-in-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.mobile-notification {
    margin-top: auto;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Operational Screens Tabs */
.architecture-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    border-radius: 16px;
    overflow: hidden;
}

.tab-sidebar {
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1.5rem;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.tab-content-area {
    padding: 3rem;
    position: relative;
    min-height: 250px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tab-panel p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Technology Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.partner-card {
    flex: 1;
    min-width: 280px;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 16px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.4);
}

.partner-logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Security Architecture Section */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1050px;
    margin: 0 auto;
}

.security-card {
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.security-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.security-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-node::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.security-node.blue::after {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.security-node.green::after {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
}

.security-node.purple::after {
    background: #8b5cf6;
    box-shadow: 0 0 15px #8b5cf6;
}

.security-card h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.security-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile Responsiveness for Architecture Tabs */
@media (max-width: 768px) {
    .architecture-tabs-container {
        grid-template-columns: 1fr;
    }
    
    .tab-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: row;
        overflow-x: auto;
    }
    
    .tab-btn {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 1rem 1.5rem;
    }
    
    .tab-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-color);
    }
    
    .tab-content-area {
        padding: 2rem;
    }
}

/* Demo CTA Section */
.email-capture {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap; /* Ensures it stacks nicely on mobile */
}

.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.glass-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.contact-form textarea {
    resize: vertical;
    font-family: inherit;
}

/* Global Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual-stack {
        margin: 0 auto;
        transform: scale(0.9);
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Section */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .branding-col p {
        margin: 0 auto;
    }

    .footer-col ul {
        align-items: center;
    }

    /* Trust Banner Scale Down */
    .trust-logos {
        gap: 2rem;
    }
    
    .logo-placeholder {
        font-size: 1rem;
    }

    /* Touch Target Optimization */
    .primary-btn {
        padding: 1rem 2rem;
        width: 100%;
        font-size: 1.05rem;
    }

    .glass-input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .demo-action {
        flex-direction: column;
        width: 100%;
    }

    .demo-action .glass-input {
        max-width: 100%;
    }
}
.demo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    gap: 2rem;
}

.demo-text {
    flex: 1;
}

.demo-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.demo-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.demo-action {
    flex-shrink: 0;
}

.demo-action .primary-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer Section */
.site-footer {
    background-color: #101114;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 3rem;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-brand p, .footer-links p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer Architecture */
.site-footer {
    background: #0a0a0c; /* Slightly darker than the main background for separation */
    padding: 4rem 0 0 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--text-primary);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.branding-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 250px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(16, 17, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header Adjustments */
    .navbar {
        padding: 0 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px; /* Sits exactly below the navbar */
        left: 0;
        width: 100%;
        background: rgba(16, 17, 20, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Hero Section Stacking */
    .hero-split {
        flex-direction: column;
        text-align: center;
        margin-top: 4rem;
    }
    .hero-text-col, .image-placeholder {
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .cta-group {
        justify-content: center;
    }

    /* Dashboard Mockup Adjustments */
    .mockup-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .mockup-card.wide {
        grid-column: span 1;
    }

    /* Demo CTA Stacking */
    .demo-container {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    /* Footer Stacking */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff; /* Stark white to pop against the dark gradient */
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #a0a0a0; /* Soft gray */
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Hero Layout Utilities */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.hero-text-col {
    flex: 1;
    max-width: 50%;
}

.hero-image-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Hero Visual Stack */
.hero-visual-stack {
    position: relative;
    width: 100%;
    max-width: 700px; /* Scaled up for maximum impact */
    height: 480px; /* Height increased to maintain a proper dashboard aspect ratio */
}

.glass-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.bg-card {
    width: 85%;
    height: 85%;
    top: 0;
    right: 0;
    transform: translate(15px, -15px);
}

.fg-card {
    width: 85%;
    height: 85%;
    bottom: 0;
    left: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
}

/* Card comes to the front and scales slightly when hovered individually */
.bg-card:hover {
    transform: translate(25px, -25px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.fg-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 55px 0 rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.35);
    z-index: 10;
}

/* Trust Banner */
.primary-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.primary-btn:hover {
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--glass-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
}