/* CSS3 Variables System & Structural Reset */
:root {
    --primary-red: #D32F2F;
    --dark-red: #9A0007;
    --light-red: #FF6659;
    --bg-dark: #121212;
    --bg-surface: #1E1E1E;
    --text-light: #FFFFFF;
    --text-muted: #B3B3B3;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Core Site Navigation Layout */
header {
    background-color: rgba(30, 30, 30, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.nav-item a:hover, 
.nav-item a.active {
    color: var(--primary-red);
}

/* Legal Dropdown Compliance Drawer */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-surface);
    border-top: 3px solid var(--primary-red);
    list-style: none;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    display: none;
    border-radius: 0 0 4px 4px;
    padding: 8px 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
}

.dropdown-menu li a:hover {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--text-light);
}

/* Interactive Navigation Action Control */
.btn-nav {
    background-color: var(--primary-red);
    color: var(--text-light) !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px !important;
    letter-spacing: 0.5px;
}

.btn-nav:hover {
    background-color: var(--dark-red);
    transform: translateY(-1px);
}

/* Mobile Navigation Drawer Trigger (Hamburger) */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(211, 47, 47, 0.15);
    color: var(--light-red);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary-red);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons Engine */
.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Interface Device Mockup System */
.hero-image-container {
    display: flex;
    justify-content: center;
}

.mockup-fallback {
    width: 320px;
    height: 640px;
    background: #252525;
    border: 12px solid var(--primary-red);
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
}

.mockup-element {
    background: #1a1a1a;
    height: 40px;
    border-radius: 8px;
    width: 100%;
    border-left: 4px solid var(--primary-red);
}

/* Ecosystem Grid Layout */
.features {
    padding: 100px 0;
    background-color: var(--bg-surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header h2 span {
    color: var(--primary-red);
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-dark);
    padding: 40px 32px;
    border-radius: 8px;
    border: 1px solid #2A2A2A;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.feature-icon {
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Lower Call-to-Action Strip Banner */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85));
    border-top: 1px solid #2A2A2A;
    border-bottom: 1px solid #2A2A2A;
}

.cta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

/* ==========================================================================
   Footer Element - Mobile Responsive Optimized
   ========================================================================== */
footer {
    background-color: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid #1E1E1E;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-wrapper p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 4px 0; /* Creates an easier-to-tap target on mobile */
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* ==========================================================================
   Responsive Architecture Viewport Breakdown Media Queries
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        margin-top: 40px;
    }
    
    .cta-wrapper {
        text-align: center;
        justify-content: center;
    }
	
	.footer-wrapper {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Responsive Mobile Navigation Drawer Logic override */
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-surface);
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        gap: 0;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        overflow-y: auto;
        padding-bottom: 40px;
    }

    /* Active Responsive Class assigned via jQuery */
    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #2A2A2A;
    }

    .nav-item a {
        display: block;
        padding: 24px;
        width: 100%;
        font-size: 18px;
    }

    .btn-nav {
        border-radius: 0;
        padding: 20px !important;
    }

    /* Embedded Mobile Dropdown Mechanics Override */
    .dropdown-menu {
        position: relative;
        width: 100%;
        background-color: var(--bg-dark);
        box-shadow: none;
        border-top: none;
        border-bottom: 2px solid var(--primary-red);
    }

    .dropdown-menu li a {
        padding: 16px;
    }

    /* Mobile Hamburger Transformation (into X icon shape) when panel is open */
    .mobile-nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Typography Scaledown */
    .hero h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }

    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
	
	.footer-links {
        justify-content: center;
        gap: 12px 16px; /* row-gap column-gap structure */
    }

    /* Automatically hides the inline bullet/pipe text characters 
       on mobile screens to let links wrap cleanly */
    .footer-links li:not(:has(a)) {
        display: none;
    }
    
    .footer-links li {
        padding: 0;
    }
    
    .footer-links a {
        font-size: 13.5px;
        background: rgba(255, 255, 255, 0.03);
        padding: 6px 12px;
        border-radius: 4px;
        border: 1px solid #1E1E1E;
    }
}