/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #000000;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

/* Mobile Typography - consolidated below with main mobile rules */

p {
    margin-bottom: 1rem;
    color: #000000;
}

/* Consistent text colors */
.hero-subtitle,
.section-subtitle,
li,
td,
.bio,
.pilot-stats span,
.contact-item {
    color: #000000;
}

.section-title {
    color: #000000;
}

/* Dark background sections use white text */
.problem .section-title,
.problem h3,
.problem p,
.problem li,
.market .section-title,
.market h3,
.market p,
.market li,
.cta h2,
.cta p {
    color: #ffffff;
}

/* Footer comprehensive white text */
.footer,
.footer h4,
.footer p,
.footer a,
.footer li,
.footer .logo-text,
.footer-section h4,
.footer-section p,
.footer-section a,
.footer-section li,
.footer-bottom,
.footer-bottom p {
    color: #ffffff;
}

/* Legal pages text colors */
.legal-content,
.legal-container,
.legal-section h2,
.legal-section h3,
.legal-section p,
.legal-section li {
    color: #000000;
}

.legal-hero h1,
.legal-hero p {
    color: #ffffff;
}

/* Legal page specific styles */
.legal-content {
    background: #ffffff;
}

.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content li {
    color: #000000;
}

/* Compliance page specific fixes */
.cert-card h3,
.cert-card p,
.security-item h3,
.security-item li,
.audit-timeline h3,
.audit-timeline p,
.protection-item h3,
.protection-item p,
.timeline-date,
.timeline-content h3,
.timeline-content p {
    color: #000000;
}

/* Audit timeline styles */
.audit-timeline {
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
}

.timeline-date {
    width: 120px;
    padding: 10px 15px;
    background: #667eea;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    margin-left: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Investor relations page specific styles */
.projection-table {
    overflow-x: auto;
    margin-top: 40px;
}

.projection-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.projection-table th,
.projection-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #000000;
}

.projection-table th {
    background: #667eea;
    color: #ffffff;
    font-weight: 600;
}

.projection-table tr:hover {
    background: #f7fafc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #000000;
    opacity: 0.7;
}

.cta-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #667eea;
    min-width: 50px;
    min-height: 45px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: #667eea;
    transform: scale(1.05);
}

.hamburger:hover .bar {
    background: white;
}

.bar {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
}

.stat-label {
    font-size: 0.9rem;
    color: #000000;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    height: 100%;
}

.card {
    position: absolute;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20px;
    left: 0;
    width: 280px;
    animation-delay: 0s;
}

.card-2 {
    top: 180px;
    right: 0;
    width: 300px;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20px;
    left: 40px;
    width: 260px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Problem Section */
.problem {
    padding: 80px 0;
    background: #1a202c;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.problem-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.problem-item h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.problem-item p {
    color: #ffffff;
}

/* Solution Section */
.solution {
    padding: 80px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature {
    padding: 40px;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    color: #000000;
    margin-bottom: 15px;
}

.feature p {
    margin-bottom: 20px;
}

.feature ul {
    list-style: none;
}

.feature li {
    padding: 5px 0;
    color: #000000;
    position: relative;
    padding-left: 20px;
}

.feature li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* Market Section */
.market {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.market .section-title {
    color: white;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.market-stat {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.market-stat h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.market-stat p {
    color: rgba(255, 255, 255, 0.9);
}

.global-markets h3 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.market-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.market-item h4 {
    color: white;
    margin-bottom: 15px;
}

.market-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Traction Section */
.traction {
    padding: 80px 0;
    background: white;
}

.traction-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.metric {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.metric-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.metric-label {
    color: #000000;
    font-weight: 500;
}

.pilot-results h3 {
    text-align: center;
    margin-bottom: 40px;
}

.pilots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pilot {
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.pilot h4 {
    color: #000000;
    margin-bottom: 5px;
}

.location {
    color: #000000;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.pilot-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pilot-stats span {
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #000000;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #f7fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.pricing-card {
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin: 20px 0;
}

.price span {
    font-size: 1.2rem;
    color: #000000;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    color: #000000;
    position: relative;
    padding-left: 25px;
}

.pricing-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

.roi-calculator {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator {
    margin-top: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

.results {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-value {
    font-weight: bold;
    color: #000000;
    font-size: 1.1rem;
}

.calculator-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.input-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced ROI Calculator Styling */
.number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.number-btn {
    background: #f7fafc;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    background: #e2e8f0;
    color: #000000;
}

.number-btn:active {
    background: #cbd5e0;
}

.number-input-wrapper input {
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    flex: 1;
    height: 50px;
    margin: 0;
    padding: 0 15px;
}

.number-input-wrapper input:focus {
    outline: none;
    box-shadow: none;
}

.input-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.results-section {
    margin: 30px 0;
}

.result-item.highlight {
    background: #f0f9ff;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.result-item.highlight .result-value {
    color: #000000;
    font-size: 1.3rem;
    font-weight: 800;
}

.result-label {
    color: #000000;
    font-weight: 500;
}

/* Mobile responsiveness for ROI Calculator */
@media (max-width: 768px) {
    .number-input-wrapper {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .number-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .number-input-wrapper input {
        font-size: 16px;
        height: 45px;
    }
    
    .result-item.highlight .result-value {
        font-size: 1.2rem;
    }
    
    .roi-calculator {
        padding: 20px !important;
    }
    
    .results-section h4 {
        font-size: 1.1rem !important;
    }
}

/* Team Section */
.team {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.team-member {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.member-avatar {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto;
}

.role {
    color: #000000;
    font-weight: 500;
    margin-bottom: 15px;
}

.bio {
    color: #000000;
    font-size: 0.9rem;
}

.global-presence {
    text-align: center;
}

.global-presence h3 {
    margin-bottom: 30px;
}

.locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.location {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
    color: #000000;
}

.contact-form {
    padding: 40px;
    background: #f7fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #1a202c;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 0.7;
}

.footer-section p {
    color: #ffffff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.footer-bottom p {
    color: #ffffff;
}

.compliance-badges {
    display: flex;
    gap: 15px;
}

.badge {
    padding: 5px 12px;
    background: #667eea;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
}

/* BULLETPROOF Mobile Navigation - NO COLLAPSE POSSIBLE */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex !important;
        position: relative !important;
        z-index: 1002 !important;
    }
    
    /* FORCE MOBILE MENU LAYOUT - OVERRIDE EVERYTHING */
    .nav-menu {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        top: 70px !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 40px 20px !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
        z-index: 998 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        
        /* BULLETPROOF LAYOUT PROTECTION */
        min-height: calc(100vh - 70px) !important;
        max-height: calc(100vh - 70px) !important;
        contain: layout style !important;
        will-change: transform !important;
    }
    
    /* FORCE VISIBLE STATE - PREVENTS ALL COLLAPSE */
    .nav-menu.active, .nav-menu.mobile-active {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* EMERGENCY OVERRIDE - IF LAYOUT GETS DISRUPTED */
    .nav-menu.active *, .nav-menu.mobile-active * {
        visibility: visible !important;
        opacity: 1 !important;
        display: initial !important;
    }
    
    /* BULLETPROOF NAV ITEMS - CANNOT COLLAPSE */
    .nav-item {
        margin: 0 !important;
        width: 280px !important;
        max-width: 90% !important;
        text-align: center !important;
        flex: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        
        /* PREVENT ANY LAYOUT DISRUPTION */
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
    }
    
    /* BULLETPROOF ACTIVE STATE */
    .nav-menu.active .nav-item, 
    .nav-menu.mobile-active .nav-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        margin: 0 !important;
        width: 280px !important;
        max-width: 90% !important;
    }
    
    /* BULLETPROOF NAV LINKS - CANNOT SHIFT OR COLLAPSE */
    .nav-link {
        display: flex !important;
        padding: 14px 20px !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        color: #000000 !important;
        text-decoration: none !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        letter-spacing: 0.3px !important;
        min-height: 48px !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        position: relative !important;
        
        /* BULLETPROOF POSITIONING */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    /* BULLETPROOF INTERACTION STATES */
    .nav-link:active, .nav-link:focus, .nav-link:visited, 
    .nav-link:hover, .nav-link:target {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* EMERGENCY NAV LINK OVERRIDE */
    .nav-menu.active .nav-link,
    .nav-menu.mobile-active .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .nav-link:hover {
        background: #667eea !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2) !important;
    }
    
    .cta-nav {
        background: #667eea !important;
        color: white !important;
        border: 1px solid #667eea !important;
        font-weight: 600 !important;
    }
    
    .cta-nav:hover {
        background: #5a67d8 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3) !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        gap: 30px !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .hero {
        padding: 100px 0 60px !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #000000 !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 30px !important;
        max-width: 100% !important;
        color: #000000 !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .compliance-badges {
        justify-content: center;
    }
    
    /* Legal pages mobile styles */
    .legal-hero {
        padding: 80px 0 40px;
    }
    
    .legal-container {
        padding: 0 15px;
    }
    
    .toc {
        padding: 20px;
    }
    
    /* Grid layouts for mobile */
    .team-grid,
    .pilots-grid,
    .pricing-grid,
    .terms-grid,
    .advantage-grid,
    .risk-grid,
    .markets-grid {
        grid-template-columns: 1fr;
    }
    
    /* Global language section mobile styles */
    .solution div[style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Mobile Width Fixes */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Fix all containers */
    .container, .nav-container, .hero-container, 
    .section, .features-grid, .market-stats, 
    .traction-metrics, .pricing-grid, .team-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Fix grids to single column */
    .features-grid, .market-stats, .traction-metrics,
    .pricing-grid, .team-grid, .pilots-grid,
    .advantage-grid, .risk-grid, .markets-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
    }
    
    /* Fix hero stats */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix hero title */
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
    }
    
    /* Fix sections padding */
    section {
        padding: 40px 0 !important;
    }
    
    /* Fix any fixed widths */
    * {
        max-width: 100% !important;
    }
    
    /* Fix images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix tables */
    table {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .container {
        padding: 0 10px !important;
    }
    
    /* Even smaller font sizes for tiny screens */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1rem !important; }
}

/* Loading and Animation Optimizations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Phone Specific */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        padding: 0 10px !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }
    
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }
    
    .hero-container {
        padding: 0 15px !important;
        gap: 20px !important;
    }
    
    .nav-link {
        padding: 12px 18px !important;
        font-size: 15px !important;
        min-height: 42px !important;
    }
    
    .nav-item {
        margin: 3px 0 !important;
        width: 90% !important;
    }
}

/* Smooth scrolling for Safari */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .nav-link {
        color: #000000;
    }
}

/* Additional color fixes for consistency */
.role {
    color: #000000;
}

.location {
    color: #ffffff;
}

.pilot h4,
.feature h3,
.problem-item h3 {
    color: inherit;
}