/* ===== CSS Variables ===== */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --text: #334155;
    --text-light: #64748b;
    --text-dark: #1e293b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --border: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-item.has-dropdown {
    position: relative;
}

.arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    color: var(--text-light);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 24px;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 10px;
    border: 1px solid var(--border);
}

.nav-item.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mega-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.mega-item:hover {
    background: var(--bg-alt);
}

.mega-item.coming-soon {
    opacity: 0.6;
}

.mega-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.mega-item strong {
    display: block;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
}

.mega-item p {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
}

.hero-bg-code {
    flex: 1;
    background: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.02) 50px, rgba(255,255,255,0.02) 51px);
}

.hero-bg-factory {
    flex: 1;
    background: 
        linear-gradient(-135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
}

.hero-tagline {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.hero-headline {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== Local Response ===== */
.local-response {
    background: var(--primary);
    padding: 24px;
}

.local-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.local-icon {
    font-size: 2rem;
}

.local-content h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.local-content p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.local-badge {
    background: rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: var(--radius);
    text-align: center;
    color: white;
}

.local-badge span {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ===== Heritage Section ===== */
.heritage {
    padding: 120px 24px;
    background: var(--bg-alt);
}

.heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.heritage h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.heritage-lead {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 16px;
}

.heritage-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.point {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.point-icon {
    font-size: 1.5rem;
}

.heritage-visual {
    position: relative;
}

.heritage-map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.abstract-map {
    width: 100%;
    border-radius: var(--radius-lg);
}

.abstract-map svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Engineering Section ===== */
.engineering {
    padding: 120px 24px;
    background: var(--bg-dark);
}

.engineering-header {
    text-align: center;
    margin-bottom: 60px;
}

.engineering-header h2 {
    color: white;
    font-size: 2.5rem;
}

.engineering-header .section-tag {
    color: var(--primary-light);
}

.engineering-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.eng-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.eng-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.eng-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    color: var(--primary);
}

.eng-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.eng-card p {
    color: rgba(255,255,255,0.7);
}

.engineering-founders {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.founder {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px 40px;
    border-radius: var(--radius);
    text-align: center;
}

.founder-company {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.founder-role {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== USA Vision ===== */
.usa-vision {
    padding: 120px 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.usa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.usa-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.usa-content p {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.usa-visual {
    display: flex;
    justify-content: center;
}

.usa-flag {
    width: 200px;
    height: 120px;
    background: linear-gradient(180deg, 
        #bf0a30 0%, #bf0a30 7.7%,
        white 7.7%, white 15.4%,
        #bf0a30 15.4%, #bf0a30 23.1%,
        white 23.1%, white 30.8%,
        #bf0a30 30.8%, #bf0a30 38.5%,
        white 38.5%, white 46.2%,
        #bf0a30 46.2%, #bf0a30 53.9%,
        white 53.9%, white 61.6%,
        #bf0a30 61.6%, #bf0a30 69.3%,
        white 69.3%, white 77%,
        #bf0a30 77%, #bf0a30 84.7%,
        white 84.7%, white 92.4%,
        #bf0a30 92.4%, #bf0a30 100%
    );
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.usa-flag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.9%;
    background: #002868;
}

/* ===== AI Assistant ===== */
.ai-assistant {
    padding: 120px 24px;
    background: var(--bg-alt);
}

.ai-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.ai-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.ai-chat-container {
    max-width: 700px;
    margin: 0 auto;
}

.ai-chat {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.chat-messages {
    padding: 24px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: var(--radius);
    border-top-left-radius: 4px;
    max-width: 80%;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.quick-reply {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chat-input-container {
    display: flex;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 20px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
}

.chat-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 20px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send:hover {
    background: var(--primary-dark);
}

/* ===== Solutions Overview ===== */
.solutions-overview {
    padding: 120px 24px;
}

.solutions-header {
    text-align: center;
    margin-bottom: 60px;
}

.solutions-header h2 {
    font-size: 2.5rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.solution-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.solution-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.solution-link {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 80px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: block;
    color: #10b981;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    padding: 6px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .heritage-grid,
    .usa-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .engineering-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .local-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .engineering-founders {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
