/* =========================================
   ENTERPRISE DARK MODE AESTHETIC
   ========================================= */
:root {
    /* Shifted to 'Midnight Slate' - easier on the eyes, signals enterprise trust */
    --bg-base: #060913; 
    --bg-surface: #0d121c; 
    --bg-surface-elevated: #151b29; 
    --border-subtle: #1e293b; /* Subtle blue-gray for softer contrast */
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8; /* Shifted to a cooler slate-gray text */
    --text-muted: #475569;
    
    --brand-primary: #38bdf8;
    --brand-accent: #818cf8;
    --brand-primary-hover: #0284c7;
    
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* 1. NEW: The "SaaS Grain" Noise Texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3; 
    opacity: 0.04; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.grid-bg {
    position: fixed; inset: 0; z-index: -2; background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.glow-orb {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%);
    top: -200px; left: 50%; transform: translateX(-50%); z-index: -1; pointer-events: none;
}

/* 2. NEW: The Secondary Indigo Ambient Lighting */
.glow-orb-accent {
    position: fixed; 
    width: 800px; 
    height: 800px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
    bottom: -200px; 
    right: -100px; 
    z-index: -1; 
    pointer-events: none;
}

.container { 
    width: 100%;
    max-width: 1400px; /* Expanded for a premium, widescreen feel */
    margin: 0 auto; 
    padding: 0 48px; /* Fixed padding so it never squeezes the center */
}

/* =========================================
   NAVIGATION (Sticky Native App Feel)
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(6, 9, 19, 0.85); /* Matches your new Midnight theme */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.main-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: calc(10px + env(safe-area-inset-top)) 0 10px 0; 
    margin-bottom: 0; /* Removed the 80px margin from here */
}

/* Add the margin to the top of your hero/content sections instead so they don't hide under the bar */
.hero, .grievance-container {
    margin-top: 80px; 
}
.logo { font-size: 24px; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: -1px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
/* =========================================
   Company Dropdown Menu (Desktop)
   ========================================= */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Makes the Company text grey by default to match other links */
.nav-dropdown .nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Turns the text and arrow white only on hover */
.nav-dropdown:hover .nav-link {
    color: var(--text-primary);
}

.nav-dropdown .chevron {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px); 
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-content a:hover {
    background: rgba(59, 130, 246, 0.1); 
    color: #ffffff;
}
.nav-actions { display: flex; gap: 16px; align-items: center; }
.btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; border: none; }
.btn-primary { background: var(--brand-primary); color: var(--bg-base); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--brand-primary); }
.btn-outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--text-primary); }
.btn-full { width: 100%; }

.mobile-menu-btn { display: none; }
.mobile-menu-overlay { display: none; }

/* =========================================
   HERO & TERMINAL
   ========================================= */
.hero { 
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 100px; 
    align-items: flex-start; /* Changed from center */
    margin-bottom: 120px; 
}
.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
    color: var(--brand-primary); margin-bottom: 24px; font-family: var(--font-mono);
}
.status-dot { width: 6px; height: 6px; background: var(--brand-primary); border-radius: 50%; box-shadow: 0 0 10px var(--brand-primary); animation: pulse 2s infinite; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
.highlight-text { color: var(--brand-primary); }
.text-gradient {
    display: inline-block; /* Forces the span to hold the background properly */
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%); /* Hardcoded hex codes */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    padding-bottom: 12px; /* Pulls the bounding box down so the 'g' can render */
    margin-bottom: -12px; /* Pulls the surrounding layout back up so spacing stays perfect */
}
.hero p { 
    font-size: 18px; 
    color: var(--text-secondary); 
    margin-bottom: 40px; 
    max-width: 560px; /* Allows the paragraph to stretch naturally */
}
.hero-buttons { display: flex; gap: 16px; }

.trust-signals { margin-top: 40px; border-top: 1px solid var(--border-subtle); padding-top: 24px; }
.trust-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 16px; font-weight: 600; }
.badges { display: flex; gap: 16px; flex-wrap: wrap; }
.badge { font-size: 12px; font-family: var(--font-mono); color: var(--text-secondary); background: var(--bg-surface-elevated); padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border-subtle); }

.terminal-window { 
    background: var(--bg-surface); 
    border: 1px solid var(--border-subtle); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
    margin-top: 48px; /* Aligns terminal perfectly with the H1 */
}.terminal-header { background: var(--bg-surface-elevated); padding: 12px 20px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }
.window-controls { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.code-tabs { display: flex; gap: 16px; }
.tab { color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); cursor: pointer; transition: color 0.2s; background: none; border: none; padding: 0; }
.tab.active { color: var(--brand-primary); }
.code-content { padding: 24px; font-family: var(--font-mono); font-size: 14px; overflow-x: auto; color: #d4d4d8; }
.keyword { color: #c678dd; } .string { color: #98c379; } .function { color: #61afef; } .comment { color: #5c6370; font-style: italic; }

/* =========================================
   FEATURES & CALCULATOR
   ========================================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 120px; }
.feature-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 40px 32px; border-radius: 16px; transition: all 0.3s; }
.feature-card:hover { border-color: var(--brand-primary); transform: translateY(-5px); }
.feature-icon { width: 48px; height: 48px; background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brand-primary); margin-bottom: 24px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.calculator-section { 
    background: radial-gradient(circle at top, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
    border: 1px solid var(--border-subtle); 
    border-radius: 16px; 
    padding: 60px; 
    margin-bottom: 120px; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4); /* Elevates the box off the page */
}
.calculator-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-primary), transparent); }
.calc-header h2 { font-size: 32px; margin-bottom: 16px; letter-spacing: -1px; }
.calc-header p { color: var(--text-secondary); margin-bottom: 48px; }
.slider-container { max-width: 600px; margin: 0 auto 48px; text-align: left; }
.slider-label { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 600; font-family: var(--font-mono); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--brand-primary); cursor: pointer; margin-top: -10px; box-shadow: 0 0 15px var(--brand-primary); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: var(--bg-surface-elevated); border-radius: 2px; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--border-subtle); padding-top: 48px; }
.result-card { padding: 24px; background: var(--bg-surface-elevated); border-radius: 12px; border: 1px solid var(--border-subtle); }
.result-card.highlight { border-color: var(--brand-primary); box-shadow: 0 0 30px rgba(56, 189, 248, 0.1); }
.success-card { background: rgba(39, 201, 63, 0.05); border-color: rgba(39, 201, 63, 0.2); }
.result-title { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.result-value { font-size: 32px; font-weight: 700; font-family: var(--font-mono); }
.highlight .result-value { color: var(--brand-primary); }
.success-text { color: #27c93f; }
.result-subtext { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* =========================================
   STANDALONE DPDP GRIEVANCE PAGE
   ========================================= */
.grievance-container { 
    max-width: 680px; 
    /* The first value (120px) adds massive clearance below the sticky header */
    margin: 50px auto 100px auto; 
}
.grievance-header { text-align: center; margin-bottom: 40px; }
.grievance-header h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.grievance-header p { color: var(--text-secondary); font-size: 16px; line-height: 1.6; }
.grievance-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 40px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.active-link { color: var(--brand-primary) !important; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.input-field { background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 12px; border-radius: 6px; font-family: var(--font-sans); font-size: 14px; width: 100%; outline: none; }
.input-field:focus { border-color: var(--brand-primary); }

/* =========================================
   FOOTER REDESIGN (Enterprise 4-Column)
   ========================================= */
/* =========================================
   PREMIUM SAAS FOOTER AESTHETICS
   ========================================= */
.site-footer { 
    background: linear-gradient(180deg, var(--bg-base) 0%, #030712 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 100px 0 40px; 
    margin-top: 100px; 
}

/* Newsletter Box Refinement */
.newsletter-section { text-align: center; max-width: 540px; margin: 0 auto 100px auto; }
.newsletter-badge { 
    font-size: 11px; color: var(--brand-primary); font-family: var(--font-mono); 
    letter-spacing: 2px; font-weight: 800; display: inline-block; margin-bottom: 16px; 
    background: rgba(56, 189, 248, 0.1); padding: 6px 16px; border-radius: 20px; 
}
.newsletter-section h2 { font-size: 36px; margin-bottom: 16px; font-weight: 800; letter-spacing: -1px; color: #ffffff; }
.newsletter-section p { color: #94a3b8; font-size: 16px; margin-bottom: 32px; line-height: 1.6; }

.newsletter-form { 
    display: flex; gap: 8px; justify-content: center; background: rgba(255,255,255,0.03); 
    padding: 8px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
}
.newsletter-input { background: transparent; border: none; padding: 12px 24px; color: #ffffff; font-size: 15px; width: 100%; outline: none; }
.newsletter-input::placeholder { color: #64748b; }
.newsletter-btn { 
    border-radius: 100px; padding: 12px 32px; background: var(--brand-primary); 
    color: #000000; font-weight: 700; font-size: 15px; border: none; cursor: pointer; 
    transition: all 0.3s ease; 
}
.newsletter-btn:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(56, 189, 248, 0.25); }

/* Grid Layout & Alignment */
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; /* Tightens the link columns */
    gap: 40px; 
    padding-bottom: 60px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Glassy subtle border */
}
.footer-col { display: flex; flex-direction: column; gap: 16px; }

/* Brand Column */
.brand-col .logo { font-size: 28px; color: #ffffff; margin-bottom: 8px; display: inline-block; text-decoration: none; font-weight: 800; letter-spacing: -1px; }
.brand-col .brand-tagline { font-size: 15px; color: #94a3b8; line-height: 1.7; margin-top: 0; max-width: 320px; }

/* Links & Typography */
.footer-col h4 { font-size: 12px; font-family: var(--font-sans); color: #ffffff; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 8px; }
.footer-col a, .footer-col p { color: #94a3b8; text-decoration: none; font-size: 15px; transition: all 0.2s ease; display: inline-block; }
.footer-col a:hover { color: #ffffff; transform: translateX(4px); } /* Micro-interaction right shift */
.dpiit-tag { color: var(--brand-primary) !important; font-family: var(--font-mono); font-size: 13px !important; margin-top: 8px; }

/* =========================================
   Refactored SVG Social Links
   ========================================= */
.social-links {
    display: flex;
    gap: 18px;
    margin-top: 24px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted); /* Standard gray */
    background: transparent !important; /* Removes the old circle */
    border: none !important;
    width: auto !important;
    height: auto !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #3b82f6; /* Lights up neon blue */
    transform: translateY(-2px); /* Slight lift on hover */
}

.social-links a svg {
    width: 22px;
    height: 22px;
}
/* Bottom Bar */
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 14px; color: #64748b; }
.footer-legal-links { display: flex; gap: 32px; }
.footer-legal-links a { color: #64748b; text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: #ffffff; }

.scroll-top-btn { 
    width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); color: #ffffff; font-weight: bold; 
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; 
    justify-content: center; font-size: 18px; 
}
.scroll-top-btn:hover { background: var(--brand-primary); color: #000000; border-color: var(--brand-primary); transform: translateY(-4px); }
/* =========================================
   MODALS
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-window { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 40px; max-width: 420px; width: 90%; transform: translateY(20px); transition: transform 0.3s ease; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; position: relative; }
.modal-overlay.active .modal-window { transform: translateY(0); }
.modal-window h3 { font-size: 24px; margin-bottom: 16px; color: var(--brand-primary); }
.modal-window p { color: var(--text-secondary); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }
.close-btn { position: absolute; top: 16px; right: 16px; background: transparent; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--text-primary); }

.checkout-window { max-width: 480px !important; padding: 0 !important; overflow: hidden; }
.checkout-header { background: var(--bg-surface-elevated); padding: 24px; border-bottom: 1px solid var(--border-subtle); }
.checkout-header h3 { font-size: 20px; margin: 12px 0 4px 0; color: var(--text-primary); }
.checkout-price { font-family: var(--font-mono); color: var(--brand-primary); font-weight: 600; font-size: 15px; }
.checkout-body { padding: 24px; }
.checkout-legal-footer { background: #09090b; border-top: 1px solid var(--border-subtle); padding: 12px 20px; font-size: 11px; color: var(--text-muted); line-height: 1.5; text-align: center; }

/* Animations */
@keyframes pulse { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); } 70% { opacity: 0.5; box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); } 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   MOBILE OPTIMIZATION & NAVIGATION DRAWER
   ========================================= */
@media (max-width: 900px) {
    .container { padding: 0 16px; }
/* Trimmed mobile header padding to match desktop */
    nav, .main-nav { padding: calc(10px + env(safe-area-inset-top)) 0 10px 0; }    
    input, select, textarea, .input-field, .newsletter-input { font-size: 16px !important; }
    .site-footer { padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); margin-top: 40px; }
    
    .md-flex { display: none !important; }
    
.hero { grid-template-columns: 1fr; text-align: center; gap: 40px; margin-bottom: 80px; }
    
    .terminal-window { margin-top: 0; } /* Add this line */
    .hero p { font-size: 16px; margin: 0 auto 24px auto; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; justify-content: center; }
    .hero-buttons .btn { width: 100%; }
    .badges { justify-content: center; }
    
    .terminal-header { padding: 10px 12px; }
    .code-tabs { gap: 8px; }
    .tab { font-size: 11px; }
    .code-content { padding: 16px; font-size: 12px; }
    
    .features { grid-template-columns: 1fr; gap: 16px; margin-bottom: 80px; }
    .feature-card { padding: 24px; }
    
    .calculator-section { padding: 32px 16px; margin-bottom: 80px; }
    .calc-header h2 { font-size: 24px; }
    .calc-header p { font-size: 14px; margin-bottom: 32px; }
    .results-grid { grid-template-columns: 1fr; }
    .result-card { padding: 16px; }
    .result-value { font-size: 24px; }
    input[type=range]::-webkit-slider-thumb { height: 32px; width: 32px; margin-top: -14px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .brand-col { grid-column: span 2; }
    .newsletter-form { flex-direction: column; border-radius: 12px; }
    .newsletter-btn { border-radius: 8px; }
    .footer-bottom-bar { flex-direction: column; gap: 16px; text-align: center; }
    .trust-tooltip { display: none !important; }
    /* The Hamburger Button */
    .mobile-menu-btn {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; background: var(--bg-surface-elevated);
        border: 1px solid var(--border-subtle); border-radius: 8px;
        color: var(--text-primary); cursor: pointer; padding: 0;
    }

    /* The Drawer Overlay */
    .mobile-menu-overlay {
        display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0;
        background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    }
    .mobile-menu-overlay.active { opacity: 1; visibility: visible; }

    /* The Sliding Eclipse Drawer */
    .mobile-menu-content {
        position: absolute; top: 0; right: 0; bottom: 0;
        width: 80%; max-width: 320px; background: var(--bg-surface);
        border-left: 1px solid var(--border-subtle);
        padding: calc(24px + env(safe-area-inset-top)) 24px 24px;
        display: flex; flex-direction: column;
        transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mobile-menu-overlay.active .mobile-menu-content { transform: translateX(0); }

    .mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
    .close-menu-btn { background: none; border: none; color: var(--text-secondary); font-size: 32px; cursor: pointer; line-height: 1; }
    .mobile-menu-links { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
    .mobile-link { color: var(--text-primary); text-decoration: none; font-size: 18px; font-weight: 500; }
    .menu-divider { border: none; border-top: 1px solid var(--border-subtle); margin: 0 0 24px 0; }
    .mobile-menu-actions { display: flex; flex-direction: column; gap: 12px; }
    .mobile-btn { width: 100%; justify-content: center; }
}

/* =========================================
   ABOUT PAGE SPECIFIC STYLES
   (Timeline, Trust Cards, Founder Terminal)
   ========================================= */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 2-Column Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 120px;
}
@media (max-width: 900px) {
    .mission-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* CSS Infographic: Friction vs Flow */
.css-infographic {
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    position: relative;
}
.info-node {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}
.route-split {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.route {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid;
    position: relative;
}
.route.messy {
    background: rgba(255, 95, 86, 0.05);
    border-color: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}
.route.clean {
    background: rgba(39, 201, 63, 0.05);
    border-color: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    box-shadow: 0 0 20px rgba(39, 201, 63, 0.1);
}
.route-step { margin-bottom: 12px; display: block; }
.route-step::before {
    content: '×'; margin-right: 8px; font-weight: bold;
}
.route.clean .route-step::before {
    content: '✓';
}

/* Interactive Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 120px auto;
    padding-left: 40px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), rgba(56, 189, 248, 0.1));
}
.timeline-item {
    position: relative;
    margin-bottom: 48px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-primary);
    border: 2px solid #060913;
}
.time-date {
    color: var(--brand-primary);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}
.time-title {
    font-size: 24px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 12px;
}
.time-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* -----------------------------------
   UPGRADED TRUST ENGINE CARDS 
   ----------------------------------- */
.trust-banner {
    position: relative;
    background: #02040a; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0;
    margin-bottom: 120px;
    text-align: center;
    overflow: hidden;
}
/* Radial Background Glow */
.trust-glow {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* Eyebrow Tag */
.trust-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.05);
    color: var(--brand-primary);
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}
.trust-eyebrow .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
    animation: pulse 2s infinite;
}
/* Gradient Heading */
.trust-heading {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}
/* Trust Cards Grid */
.trust-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 48px;
    text-align: left;
    position: relative;
    z-index: 2;
}
.trust-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    cursor: crosshair;
}
.trust-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    z-index: 50; /* Forces the tooltip to sit ABOVE all other cards */
}
.trust-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.trust-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* This locks the SVG size permanently */
.trust-icon svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

.trust-card:hover .trust-icon {
    color: #ffffff;
}
/* Emerald Status Dot */
.trust-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.trust-status .status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-emerald 2s infinite;
}
@keyframes pulse-emerald {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    70% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.trust-card-title {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.trust-card-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}
/* Custom Tooltips */
.trust-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    /* FIX: Updated variables for the solid dark mode bubble */
    background: var(--bg-surface-elevated); 
    border: 1px solid var(--border-subtle);
    
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-primary); /* Changed to primary white for better contrast */
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100; /* Forces it to the very top */
    box-shadow: 0 10px 20px rgba(0,0,0,0.8); /* Adds a heavy drop shadow so it pops off the screen */
    pointer-events: none;
}
.trust-card:hover .trust-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Founder Node */
.founder-node {
    display: flex;
    gap: 48px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 120px;
    align-items: center;
}
.founder-img-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-primary);
    font-family: 'Fira Code', monospace;
    text-align: center;
    font-size: 14px;
    overflow: hidden; /* Added: Keeps the image inside the circular border */
}

/* =========================================
   Founder Headshot Image Styling
   ========================================= */
.founder-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image perfectly into the circle */
    border-radius: 50%;
    display: block;
}

@media (max-width: 768px) {
    .founder-node { flex-direction: column; text-align: center; padding: 32px; }
    .founder-img-placeholder { margin: 0 auto; }
 /* =========================================
       Mobile Menu Aesthetics & Spacing Fix
       ========================================= */
    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 4px; /* Enforces uniform spacing between all items */
    }

    .mobile-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        margin: 0;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-secondary);
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
        box-sizing: border-box;
    }

    /* Premium touch highlight */
    .mobile-link:active, .nav-dropdown.mobile-open > .mobile-link {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    /* Dropdown container resets */
    .nav-dropdown {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-dropdown .mobile-link {
        justify-content: space-between !important; /* Pushes the chevron to the far right */
        padding: 14px 16px;
    }
    
    .nav-dropdown.mobile-open .chevron {
        transform: rotate(180deg);
    }

    /* Nested Dropdown Links (Sleek Indent) */
    .dropdown-content {
        position: static;
        transform: none !important;
        background: transparent; 
        border: none;
        border-left: 2px solid rgba(59, 130, 246, 0.3); /* Subtle blue edge line */
        box-shadow: none;
        width: calc(100% - 16px);
        margin: 4px 0 8px 16px; /* Indents the nested links */
        padding: 0;
        display: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown.mobile-open .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .dropdown-content a {
        text-align: left;
        padding: 12px 16px;
        font-size: 15px;
        color: rgba(255, 255, 255, 0.6);
        border-radius: 8px;
    }

    .dropdown-content a:active {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    .ui-pills-group {
        grid-template-columns: 1fr; /* Forces a single vertical column on mobile */
    }
}
/* =========================================
   CONTACT HUB (contact.html) - Enterprise Edition
   ========================================= */
.contact-hub {
    padding-top: 60px;
    padding-bottom: 10px;
}

/* =========================================
   Tab Switcher - Tactile Press & Glow
   ========================================= */
.hub-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.hub-tab:active {
    transform: scale(0.95);
}

.hub-tab.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: tabPulse 0.4s ease-out forwards;
}

@keyframes tabPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 15px 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
}

.hub-view {
    display: none;
}

.hub-view.active {
    display: block;
    animation: slideFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeUp {
    0% { opacity: 0; transform: translateY(15px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Calendly-Style Grid */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px; /* Widened slightly for a breathable, premium layout */
    margin-top: 48px;
    align-items: flex-start; /* Aligns items to the top so forms and text sit evenly */
}

/* =========================================
   Bottom Action Cards 
   ========================================= */
.bottom-action-cards .hub-card {
    cursor: pointer;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.bottom-action-cards .hub-card:hover,
.bottom-action-cards .hub-card:focus-within {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.6); 
    transform: translateY(-4px); 
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(59, 130, 246, 0.2); 
}

.bottom-action-cards .hub-card:active {
    transform: translateY(-1px);
}

/* =========================================
   Hub Forms & High-Contrast Inputs
   ========================================= */
.hub-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hub-form input[type="text"],
.hub-form input[type="email"],
.hub-form textarea {
    background: rgba(6, 9, 19, 0.6); /* Deep void background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); /* Creates 3D depth */
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.hub-form input::placeholder,
.hub-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.hub-form input:hover,
.hub-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.hub-form input:focus,
.hub-form textarea:focus {
    border-color: #3b82f6;
    background: rgba(6, 9, 19, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* High-Conversion Submit Button Override */
.hub-form .btn-primary {
    margin-top: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.hub-form .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}
/* Custom Dropdown Styling for Partner Page */
.hub-form select {
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "▼";
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; 
}

.hub-form select:invalid {
    color: rgba(255, 255, 255, 0.25);
}

.hub-form select option {
    background: #0f172a; 
    color: #ffffff;
    padding: 12px;
}

/* =========================================
   Interactive UI Pills 
   ========================================= */
.ui-pills-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ui-pill {
    cursor: pointer;
    text-align: center;
}

.ui-pill input[type="radio"] {
    display: none; 
}

.ui-pill span {
    display: block;
    padding: 14px 16px;
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-pill:hover span {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.ui-pill input[type="radio"]:checked + span {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: #3b82f6; 
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* =========================================
   Social Proof & FAQs Right Column
   ========================================= */
.hub-info-pane {
    padding: 16px 0;
}

.hub-info-pane h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.metric-block {
    margin-bottom: 24px;
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Structured FAQ Documentation Feel */
.faq-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.6;
}

/* =========================================
   Mobile Adjustments & Bug Fixes
   ========================================= */
@media (max-width: 900px) {
    .hub-grid { grid-template-columns: 1fr; gap: 48px; }
    .hub-tabs { flex-direction: column; width: 100%; }
    .hub-card { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .hub-form { padding: 24px 16px; }
    
.metric-number {
        font-size: 1.5rem !important; 
        font-weight: 600 !important; 
        background: none !important;
        -webkit-text-fill-color: #ffffff !important; /* Swapped to pure white */
        color: #ffffff !important;                   /* Swapped to pure white */
        letter-spacing: 0 !important; 
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 768px) {
    .ui-pills-group {
        grid-template-columns: 1fr !important; /* Added !important to force the single column */
    }
}