/*
Theme Name: LexChain Intelligence
Theme URI: https://lexchain.ai
Author: LexChain Dev
Description: "The Citadel" - Tier 1 Enterprise Security Theme. Massive scale, deep space aesthetics, and architectural precision.
Version: 3.0.0
Text Domain: lexchain
*/

/**
 * 1. THE OBSIDIAN PALETTE
 */
:root {
    /* The Void */
    --lex-void: #050505;
    /* Pure Void Background */
    --lex-surface: #0A0A0A;
    /* Bento Card Surface */

    /* The Signal (Accent) - USED SPARINGLY */
    --lex-signal: #3B82F6;
    /* Royal Blue */
    --lex-signal-glow: rgba(59, 130, 246, 0.4);

    /* Typography Colors */
    --lex-txt-primary: #EDEDED;
    /* Off-white for reading */
    --lex-txt-heading: #FFFFFF;
    /* Pure white for impact */
    --lex-txt-dim: rgba(255, 255, 255, 0.4);

    /* Architecture */
    --lex-border: rgba(255, 255, 255, 0.08);
    --lex-glass: rgba(255, 255, 255, 0.02);

    /* Fonts */
    --lex-font-sans: 'Inter Tight', Helvetica, Arial, sans-serif;
    --lex-font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --lex-max-width: 1400px;
    /* Wider for "Big" feel */
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--lex-void);
    color: var(--lex-txt-primary);
    font-family: var(--lex-font-sans);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    letter-spacing: -0.02em;
    /* Tight editorial tracking */
    overflow-x: hidden;
}

/* 
 * 2. SWISS EDITORIAL TYPOGRAPHY 
 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    /* Medium weight, let size do the work */
    color: var(--lex-txt-heading);
    letter-spacing: -0.04em;
    /* Very tight for headings */
    margin-bottom: 1rem;
    line-height: 1.1;
}

.t-display {
    font-size: clamp(3rem, 8vw, 6rem);
    /* Massive responsive text */
}

.t-h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.t-label {
    font-family: var(--lex-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lex-txt-dim);
}

p {
    max-width: 60ch;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    /* Slightly larger body */
}

a {
    color: var(--lex-txt-heading);
    text-decoration: none;
    border-bottom: 1px solid var(--lex-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    border-color: var(--lex-signal);
    color: var(--lex-signal);
}

/* 
 * 3. ARCHITECTURE (Bento Grid) 
 */
.container {
    max-width: var(--lex-max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* The Bento Grid Utility */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    /* The borders are the gap */
    background: var(--lex-border);
    /* This creates the border lines */
    border: 1px solid var(--lex-border);
}

.bento-cell {
    background: var(--lex-void);
    /* Sit on top of the border background */
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-80 {
    margin-bottom: 80px;
}


/* 
 * 4. COMPONENT: BUTTONS 
 */
.btn-citadel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--lex-txt-heading);
    color: var(--lex-void);
    font-weight: 600;
    border-radius: 4px;
    /* Slight rounding, almost architectural */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-citadel:hover {
    transform: translateY(-2px);
    background: #E0E0E0;
    color: var(--lex-void);
    border: none;
}

/* 
 * 5. HEADER 
 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lex-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--lex-font-sans);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    border: none;
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--lex-font-sans);
    font-size: 0.9rem;
    color: var(--lex-txt-dim);
    border: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--lex-txt-heading);
}

.nav-link.active {
    color: var(--lex-signal);
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* 
 * 6. FOOTER 
 */
.site-footer {
    padding: 80px 0;
    background: var(--lex-void);
    border-top: 1px solid var(--lex-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .site-logo {
    display: block;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--lex-txt-dim);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-family: var(--lex-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lex-txt-dim);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--lex-txt-primary);
    margin-bottom: 8px;
    border: none;
}

.footer-col a:hover {
    color: var(--lex-txt-heading);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--lex-border);
    text-align: center;
}

.site-footer .footer-bottom p {
    font-family: var(--lex-font-mono);
    font-size: 0.8rem;
    color: var(--lex-txt-dim);
    margin: 0;
    max-width: 100%;
}

/* 
 * 7. PAGE TEMPLATES
 */
.page-hero {
    padding: 200px 0 120px;
    background: radial-gradient(circle at 50% 30%, #0d1117 0%, #050505 70%);
}

.page-hero .t-display {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

/* About Page */
.about-section {
    padding: 120px 0;
    background: var(--lex-void);
}

.about-section.dark {
    background: #080810;
}

.about-grid {
    max-width: 800px;
    margin: 0 auto;
}

.about-content .t-label {
    display: block;
    margin-bottom: 24px;
}

.about-content h2 {
    margin-bottom: 32px;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.7;
}

.approach-list {
    margin-top: 32px;
}

.approach-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--lex-border);
    font-size: 1.125rem;
    color: var(--lex-txt-dim);
}

.approach-item.check {
    color: var(--lex-txt-heading);
    border-bottom: none;
    margin-top: 16px;
}

.approach-x {
    color: #fb3e3e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-check {
    color: #27c93f;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Page */
.team-section {
    padding: 120px 0;
    background: var(--lex-void);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lex-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--lex-signal), #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.avatar-initials {
    font-family: var(--lex-font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.team-role {
    font-family: var(--lex-font-mono);
    font-size: 0.8rem;
    color: var(--lex-signal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.team-bio {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--lex-txt-dim);
}

.advisors-section {
    padding: 80px 0;
    background: #080810;
}

.advisor-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.advisor-item {
    text-align: center;
}

.advisor-name {
    display: block;
    font-size: 1rem;
    color: var(--lex-txt-primary);
    margin-bottom: 4px;
}

.advisor-role {
    font-family: var(--lex-font-mono);
    font-size: 0.75rem;
    color: var(--lex-txt-dim);
}

/* Contact Page */
.contact-section {
    padding: 120px 0;
    background: var(--lex-void);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lex-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--lex-txt-dim);
    margin-bottom: 16px;
    max-width: 100%;
}

.contact-link {
    font-family: var(--lex-font-mono);
    font-size: 0.9rem;
    color: var(--lex-signal);
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-color: var(--lex-signal);
}

.demo-section {
    padding: 80px 0 160px;
    background: linear-gradient(180deg, var(--lex-void) 0%, #0d1117 100%);
}

/* 
 * 8. FEATURES PAGE
 */
.feature-deep-dive {
    padding: 120px 0;
    background: var(--lex-void);
}

.feature-deep-dive.dark {
    background: #080810;
}

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

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-content .t-label {
    display: block;
    margin-bottom: 16px;
}

.feature-content h2 {
    margin-bottom: 24px;
}

.feature-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lex-border);
    color: var(--lex-txt-primary);
}

.feature-bullets li:last-child {
    border-bottom: none;
}

.bullet-icon {
    color: var(--lex-signal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-diagram {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/2;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lex-border);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-diagram.correlation {
    padding: 40px;
}

/* Correlation Diagram - New */
.feature-diagram.correlation-new {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.correlation-source {
    position: absolute;
    font-family: var(--lex-font-mono);
    font-size: 0.85rem;
    color: var(--lex-txt-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lex-border);
    border-radius: 8px;
}

.correlation-source.source-1 { top: 20px; left: 20px; }
.correlation-source.source-2 { top: 20px; right: 20px; }
.correlation-source.source-3 { bottom: 20px; left: 50%; transform: translateX(-50%); }

.correlation-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.correlation-arrows svg {
    width: 100%;
    height: 100%;
}

.correlation-center {
    font-family: var(--lex-font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lex-txt-heading);
    padding: 20px 32px;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid var(--lex-signal);
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

/* Timeline Diagram - New */
.feature-diagram.timeline-new {
    padding: 40px 20px;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-event {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-event .event-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--lex-void);
    border: 2px solid var(--lex-border);
    flex-shrink: 0;
}

.timeline-event.critical .event-dot {
    border-color: #fb3e3e;
    background: rgba(251, 62, 62, 0.2);
    box-shadow: 0 0 12px rgba(251, 62, 62, 0.4);
}

.event-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-time {
    font-family: var(--lex-font-mono);
    font-size: 0.7rem;
    color: var(--lex-txt-dim);
}

.event-label {
    font-size: 0.9rem;
    color: var(--lex-txt-primary);
}

.timeline-event.critical .event-label {
    color: #fb3e3e;
}

.timeline-connector {
    width: 2px;
    height: 24px;
    background: var(--lex-border);
    margin-left: 7px;
}

.timeline-connector.critical {
    background: linear-gradient(180deg, var(--lex-border) 0%, #fb3e3e 100%);
}

/* Timeline diagram */
.feature-diagram.timeline {
    padding: 40px 20px;
}

.timeline-visual {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--lex-border) 0%, #fb3e3e 100%);
}

.timeline-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.timeline-point::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--lex-void);
    border: 2px solid var(--lex-border);
    border-radius: 50%;
}

.timeline-point.critical::before {
    border-color: #fb3e3e;
    background: rgba(251, 62, 62, 0.2);
    box-shadow: 0 0 12px rgba(251, 62, 62, 0.4);
}

.point-time {
    font-family: var(--lex-font-mono);
    font-size: 0.65rem;
    color: var(--lex-txt-dim);
}

.point-label {
    font-size: 0.75rem;
    color: var(--lex-txt-primary);
    white-space: nowrap;
}

/* Baseline diagram */
.feature-diagram.baseline {
    padding: 30px;
}

.baseline-chart {
    width: 100%;
    height: auto;
}

/* Comparison Table */
.comparison-section {
    padding: 120px 0;
    background: #080810;
}

.comparison-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.comparison-header .t-label {
    display: block;
    margin-bottom: 16px;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--lex-border);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--lex-border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-row.header .comparison-cell {
    font-family: var(--lex-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lex-txt-dim);
}

.comparison-cell {
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--lex-txt-dim);
    border-right: 1px solid var(--lex-border);
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-cell.label {
    color: var(--lex-txt-primary);
    font-weight: 500;
}

.comparison-cell.highlight {
    color: var(--lex-signal);
    font-weight: 500;
    background: rgba(59, 130, 246, 0.05);
}

/* 
 * 9. INTEGRATIONS PAGE
 */
.integration-category {
    padding: 100px 0;
    background: var(--lex-void);
}

.integration-category.dark {
    background: #080810;
}

.category-header {
    margin-bottom: 48px;
}

.category-header .t-label {
    display: block;
    margin-bottom: 12px;
}

.category-header h2 {
    margin-bottom: 0;
}

.integration-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lex-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.integration-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.integration-logo-lg {
    width: 160px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--lex-txt-heading);
    opacity: 0.7;
    flex-shrink: 0;
}

.integration-logo-lg svg {
    height: 40px;
    width: auto;
}

.integration-info h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.integration-info p {
    font-size: 0.95rem;
    color: var(--lex-txt-dim);
    margin: 0;
    max-width: 100%;
}

.api-section {
    padding: 120px 0;
    background: var(--lex-void);
    text-align: center;
}

.api-content {
    max-width: 600px;
    margin: 0 auto;
}

.api-content .t-label {
    display: block;
    margin-bottom: 16px;
}

.api-content h2 {
    margin-bottom: 24px;
}

.api-content p {
    margin: 0 auto 40px;
}

.api-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lex-txt-primary);
    font-size: 0.95rem;
}

.api-feature svg {
    color: var(--lex-signal);
}

/* 
 * 10. CAREERS PAGE
 */
.careers-why {
    padding: 100px 0;
    background: var(--lex-void);
}

.why-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.why-header .t-label {
    display: block;
    margin-bottom: 16px;
}

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

.why-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lex-border);
    border-radius: 12px;
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lex-signal);
}

.why-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--lex-txt-dim);
    margin: 0;
    max-width: 100%;
}

.positions-section {
    padding: 100px 0;
    background: #080810;
}

.positions-header {
    margin-bottom: 48px;
}

.positions-header .t-label {
    display: block;
    margin-bottom: 12px;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.position-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lex-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.position-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.position-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.position-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    font-family: var(--lex-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lex-txt-dim);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.position-info p {
    font-size: 0.95rem;
    color: var(--lex-txt-dim);
    margin: 0;
    max-width: 100%;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.general-section {
    padding: 120px 0;
    background: var(--lex-void);
    text-align: center;
}

.general-content {
    max-width: 500px;
    margin: 0 auto;
}

.general-content h2 {
    margin-bottom: 24px;
}

.general-content p {
    margin: 0 auto 32px;
}

/* CTA Section (shared) */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--lex-void) 0%, #0d1117 100%);
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.25rem;
    color: var(--lex-txt-dim);
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-table {
        overflow-x: auto;
    }
}

/* 
 * MOBILE MENU STYLES
 */

/* Hide mobile elements on desktop */
.mobile-header-actions {
    display: none;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Panel */
.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--lex-border);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--lex-border);
    margin-bottom: 32px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--lex-txt-primary);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: var(--lex-txt-heading);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mobile-nav-link {
    font-family: var(--lex-font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--lex-txt-dim);
    padding: 16px 0;
    border-bottom: 1px solid var(--lex-border);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--lex-txt-heading);
}

.mobile-menu-cta {
    padding-top: 32px;
}

.mobile-menu-cta .btn-citadel {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--lex-txt-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: 16px;
}

.mobile-menu-toggle:hover {
    color: var(--lex-txt-heading);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Hide desktop navigation, show mobile */
    .site-navigation {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0;
    }

    /* Hide Book a Demo button on mobile - only show hamburger */
    .mobile-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero .t-display {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .position-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .integration-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .integration-logo-lg {
        width: auto;
    }

    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        font-size: 0.85rem;
    }

    .comparison-cell {
        padding: 12px;
    }

    /* Feature page responsive */
    .feature-row {
        flex-direction: column !important;
        gap: 40px;
    }

    .feature-content,
    .feature-visual {
        width: 100%;
    }

    .feature-diagram {
        padding: 24px;
    }

    .correlation-new {
        padding: 20px;
    }

    .correlation-source {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .correlation-center {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .timeline-visual {
        padding: 20px 10px;
    }

    .timeline-point {
        font-size: 0.7rem;
    }
}