:root {
    /* Premium B2B Light Mode Palette (Stripe/Apple Inspired) */
    --primary: #0066FF; 
    --primary-dark: #0052CC;
    --accent: #6E56CF;
    --bg-main: #FFFFFF;
    --bg-soft: #F5F5F7; /* Apple off-white */
    --bg-card: #FFFFFF;
    --text-pri: #1D1D1F; /* High authority dark grey */
    --text-sec: #6E6E73;
    --text-dim: #86868B;
    --border: #E5E5E7;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 20px 40px rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    
    /* Animation & Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s var(--ease-out);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

/* Base Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sophisticated Mesh Background for Light Mode */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 102, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(110, 86, 207, 0.03) 0%, transparent 50%);
}

/* Typography Scale */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-pri);
}

/* Force Light Text in Dark Containers (Safety) */
[style*="background: #0B0F19"] h1, 
[style*="background: #0B0F19"] h2, 
[style*="background: #0B0F19"] h3, 
[style*="background: #0B0F19"] h4,
.dark-theme h1, .dark-theme h2, .dark-theme h3, .dark-theme h4 {
    color: white !important;
}

.h-xl { font-size: clamp(3rem, 8vw, 4.5rem); line-height: 1.05; }
.h-lg { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.h-md { font-size: 1.75rem; }

/* Buttons - Premium Elevated Look */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-pri); /* High-end dark button */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #000000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-pri);
}

.btn-outline:hover {
    background: var(--bg-soft);
    border-color: var(--text-dim);
}

/* Utility: Entrance Animations */
.reveal {
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* Initially invisible - will be revealed by IntersectionObserver in main.js */
.reveal:not(.active) {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Cards & Bento Grid for Light Mode */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 3rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.02), transparent 70%);
    pointer-events: none;
}

.card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: rgba(0, 102, 255, 0.15);
    transform: translateY(-6px);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.span-2 { grid-column: span 2; }
.span-h-2 { grid-row: span 2; }

/* Header & Shared Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

main {
    padding-top: 100px; /* Account for fixed header */
    min-height: 80vh;
}

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

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

.nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 0.5rem;
}

/* Mega Menu Styles */
.has-mega-menu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    gap: 4rem;
    min-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-column ul li a {
    transition: color 0.2s;
    font-weight: 500;
    padding-bottom: 0;
}

.mega-column ul li a:hover {
    color: var(--primary) !important;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--text-pri);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-pri);
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    list-style: none;
    text-align: center;
}

.mobile-links li {
    margin: 2rem 0;
}

.mobile-links li a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-pri);
    text-decoration: none;
}

/* Footer Redesign - Enterprise Dark Anchor */
footer, #shared-footer {
    background: #0B0F19 !important; /* Force Obsidian Blue */
    padding: 8rem 0 4rem;
    border-top: none;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    max-width: 320px;
}

.footer-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-sec);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.lang-btn:hover { background: var(--bg-soft); color: var(--text-pri); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 120px;
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1200;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

/* Mobile Overlay Header */
.mobile-overlay-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.mobile-lang-selector {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.mobile-lang-selector p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.mobile-lang-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.mobile-lang-row a {
    color: var(--text-sec);
    text-decoration: none;
    font-weight: 600;
}

.mobile-lang-row a.active { color: var(--primary); }

/* Responsive Overrides */
@media (max-width: 1024px) {
    .nav-main { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .btn-nav { display: none; }
    .nav-container { height: 70px; }
}

/* ===== Components Missing from Previous Sessions ===== */

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 102, 255, 0.06);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Hero section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-sec);
    max-width: 640px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* Split Layout (used in leads section) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}
thead tr {
    background: var(--bg-soft);
}
th {
    padding: 1.5rem 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-align: left;
}
td {
    padding: 1.5rem 2rem;
    font-size: 0.95rem;
    color: var(--text-sec);
    border-top: 1px solid var(--border);
}
tbody tr:hover { background: var(--bg-soft); }

/* Form Input Groups */
.input-group {
    margin-bottom: 1.2rem;
}
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-main);
    color: var(--text-pri);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: var(--transition);
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.08);
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll { overflow: hidden; }

/* Additional Mobile Responsiveness */
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .span-2, .span-h-2 { grid-column: auto; grid-row: auto; }
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero p { font-size: 1.1rem; }
    main { padding-top: 80px; }
}
/* Utility: Responsive Grid */
.responsive-grid {
    display: grid;
    grid-template-columns: var(--grid-cols, 1fr 1fr);
    gap: var(--grid-gap, 4rem);
    align-items: center;
}

@media (max-width: 900px) {
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
