/* --- Global Resets & Premium Typography --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* Enforce Monospace globally (Protects FontAwesome 'i' tags) */
*:not(i):not(.fa-solid):not(.fas) {
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
}

body, html {
    background-color: #05080f; /* Slightly richer dark base */
    color: #f8fafc;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
  font-family: 'Neue Machina'; 
  src: url('fonts/NeueMachina/NeueMachina-Regular.woff2') format('woff2'), 
       url('fonts/NeueMachina/NeueMachina-Regular.woff') format('woff'),   
       url('fonts/NeueMachina/NeueMachina-Regular.ttf') format('truetype'); 
  font-weight: normal;
  font-style: normal;
  font-display: swap; 
}

/* Apply Neue Machina to all major headers across the site */
.hero-typography,
.hero-typography span,
.fluent-clean-header h2,
.fluent-case-info h3,
.modal-panel h3 {
    font-family: 'Neue Machina', -apple-system, sans-serif !important;
    letter-spacing: -0.04em;
}

/* Redundant now, but kept for targeted safety */
.data-mono { font-family: 'JetBrains Mono', monospace !important; }

.text-gradient {
    background: linear-gradient(90deg, #10b981 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.highlight-text { color: #10b981 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* --- Volumetric Godrays --- */
.godray-container {
    position: fixed;
    top: -10%; left: 0; right: 0; height: 120vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
}

.godray {
    position: absolute;
    top: -20%;
    height: 150%;
    filter: blur(40px); /* Tighter blur for clearer light beams */
    transform-origin: top center;
    opacity: 0.4; /* Reduced opacity so it doesn't wash out text */
    animation: godrayDrift 15s ease-in-out infinite alternate;
}

.ray-1 { 
    left: 20%; width: 300px; --angle: -25deg;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.3) 0%, rgba(255,255,255,0.1) 40%, transparent 100%);
    transform: rotate(-25deg); 
}
.ray-2 { 
    left: 45%; width: 450px; --angle: 10deg;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(14, 165, 233, 0.1) 50%, transparent 100%);
    transform: rotate(10deg); animation-delay: -5s; 
}
.ray-3 { 
    left: 75%; width: 250px; --angle: 35deg;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.15) 0%, rgba(255,255,255,0.08) 60%, transparent 100%);
    transform: rotate(35deg); animation-delay: -10s;
}

@keyframes godrayDrift {
    0% { transform: rotate(var(--angle, 10deg)) scaleY(1); opacity: 0.3; }
    100% { transform: rotate(calc(var(--angle, 10deg) + 5deg)) scaleY(1.1); opacity: 0.5; }
}

/* Subtle edge darkening */
.vignette-overlay {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(circle at center, rgba(5,8,15,0) 0%, rgba(5,8,15,0.85) 100%);
}

/* --- App Layout Flow --- */
.app-container { position: relative; z-index: 10; padding-top: 80px; }

.hero-wrapper {
    min-height: calc(100vh - 80px);
    display: flex; flex-direction: column;
}

/* --- Master Fluent Glass Class (FIXED FOR CLARITY) --- */
.fluent-glass-panel {
    background: rgba(15, 23, 42, 0.5); /* Solidified background color for high text contrast */
    backdrop-filter: blur(16px); /* Removed extreme 40px blur and saturate */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Slightly more visible border */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* --- Fixed Top Navigation --- */
.fixed-nav-wrapper {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 8, 15, 0.65); /* Cleaner, darker nav bar */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
}
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 1400px; padding: 16px 40px;
}
/* --- Brand Logo Updates --- */
.brand-logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 500; 
    font-size: 1.05rem; 
}

.brand-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    /* Optional: adds a subtle glow behind your transparent logo */
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}
.logo-icon { width: 16px; height: 16px; background: #10b981; border-radius: 50%; box-shadow: 0 0 12px rgba(16,185,129,0.5);}

/* --- Floating Fluent Navigation Pills --- */
.nav-pills { 
    display: flex; 
    gap: 8px; 
    background: rgba(15, 23, 42, 0.4); /* Adds a track behind the pills */
    padding: 6px; 
    border-radius: 50px; 
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.nav-pills a { 
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between icon and text */
    color: #94a3b8; 
    text-decoration: none; 
    font-size: 0.9rem; 
    padding: 10px 24px; 
    border-radius: 50px; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Fluent Apple-like easing */
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-pills a i {
    font-size: 1.05rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

/* Hover State - Soft lift and icon color pop */
.nav-pills a:hover { 
    background: rgba(255,255,255,0.06); 
    color: #f8fafc; 
}

.nav-pills a:hover i {
    transform: translateY(-2px); /* Gentle floating effect for the icon */
    color: #10b981;
}

/* Active State - Premium Emerald Glow */
.nav-pills a.active { 
    background: rgba(16, 185, 129, 0.1);
    font-weight: bold;
    color: #10b981; 
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.nav-pills a.active i {
    color: #10b981;
}

/* Tactile click effect */
.nav-pills a:active {
    transform: scale(0.95);
}
/* --- Nav Actions & Fluent Clock --- */
.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.fluent-clock {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fluent-clock i {
    color: #10b981;
    font-size: 0.95rem;
}

.fluent-clock span {
    color: #f8fafc;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.fluent-clock:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}
/* Elegant Buttons */
.glass-btn-primary { background: #f8fafc; color: #050505; border: none; padding: 14px 28px; border-radius: 12px; font-weight: 500; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(255,255,255,0.1); }
.glass-btn-primary:hover { background: #10b981; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(16,185,129,0.3); }
.glass-btn-secondary { background: rgba(255,255,255,0.08); color: #f8fafc; border: 1px solid rgba(255,255,255,0.15); padding: 10px 24px; border-radius: 100px; cursor: pointer; transition: 0.2s; font-weight: 500;}
.glass-btn-secondary:hover { background: rgba(255,255,255,0.15); }

/* Inputs (Filters completely removed for crispness) */
.glass-input { 
    flex-grow: 1; padding: 16px 24px; border-radius: 12px; 
    background: rgba(0,0,0,0.5); /* Solid transparent black for high contrast */
    border: 1px solid rgba(255,255,255,0.15); 
    color: #fff; font-size: 1rem; outline: none; transition: 0.3s; 
    width: 100%; box-sizing: border-box;
}
.glass-input:focus { background: rgba(0,0,0,0.7); border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }

/* --- Hero Section --- */
.hero-section {
    flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 0 20px; position: relative; z-index: 10;
}

.hero-typography { font-size: 4.5rem; font-weight: 500; line-height: 1.1; max-width: 900px; margin: 0 0 24px 0; letter-spacing: -0.03em; }
.hero-subtext { font-size: 1.1rem; color: #e2e8f0; max-width: 550px; margin: 0 0 40px 0; line-height: 1.6; font-weight: 400; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.fluent-badge { 
    display: inline-block; font-size: 0.75rem; color: #10b981; letter-spacing: 0.5px; 
    font-weight: 600; background: rgba(16,185,129,0.1); padding: 6px 16px; 
    border-radius: 50px; border: 1px solid rgba(16,185,129,0.25); 
}

/* --- Hero Bottom Shelf --- */
.bottom-shelf {
    padding: 0 40px 40px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    margin-top: auto; 
    max-width: 1400px; 
    margin-inline: auto; 
    width: 100%;
    position: relative; 
    z-index: 10;
}
.metric-card { width: 320px; padding: 24px; }
.card-header { display: flex; justify-content: space-between; font-size: 0.9rem; color: #cbd5e1; margin-bottom: 20px; font-weight: 500; }
.card-header .trend { color: #10b981; font-weight: 600;}
.stat-highlight { font-size: 1.1rem; color: #f8fafc; margin-bottom: 14px; font-weight: 500; }
.progress-track { height: 4px; background: rgba(0,0,0,0.4); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: #10b981; border-radius: 10px;}
.sub-desc { font-size: 0.9rem; color: #cbd5e1; line-height: 1.5; font-weight: 400;}

.scroll-indicator { 
    position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 12px; color: #94a3b8; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; animation: float 3s ease-in-out infinite; font-weight: 600;
}
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, #94a3b8, transparent); }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* --- Seamless Fluent Content Area --- */
.fluent-seamless-wrapper {
    position: relative; z-index: 20;
    background-color: #05080f;
    padding: 100px 40px 0 40px; 
}
.fluent-seamless-wrapper::before {
    content: ''; position: absolute;
    top: -200px; left: 0; right: 0; height: 200px;
    background: linear-gradient(180deg, rgba(5,8,15,0) 0%, rgba(5,8,15,0.9) 60%, #05080f 100%);
    pointer-events: none;
}

.fluent-ambient-light { position: absolute; border-radius: 50%; filter: blur(200px); opacity: 0.05; pointer-events: none; }
.light-1 { width: 700px; height: 700px; background: #10b981; top: 10%; left: -200px; }
.light-2 { width: 900px; height: 900px; background: #0ea5e9; bottom: 20%; right: -300px; }

.fluent-smooth-section { max-width: 1200px; margin: 0 auto 120px auto; width: 100%; position: relative; z-index: 10; }

.fluent-clean-header { margin-bottom: 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fluent-clean-header h2 { margin: 0; font-size: 2.5rem; font-weight: 500; color: #f8fafc; letter-spacing: -0.02em; }
.fluent-clean-header p { margin: 0; color: #cbd5e1; font-size: 1.1rem; font-weight: 400;}

.case-study-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; padding: 0;}
.fluent-case-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }

.fluent-live-indicator { display: inline-flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.3); color: #f8fafc; padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.1); width: max-content; font-weight: 500;}
.pulse-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 12px #10b981; animation: fluentPulse 2s infinite; }
@keyframes fluentPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }

.fluent-case-info h3 { font-size: 2.2rem; margin: 0 0 16px 0; color: #f8fafc; font-weight: 500; letter-spacing: -0.02em;}
.fluent-case-info p { color: #cbd5e1; line-height: 1.8; font-size: 1.05rem; margin-bottom: 40px; font-weight: 400;}

.fluent-metrics-clean { display: flex; gap: 40px; }
.clean-metric { display: flex; flex-direction: column; gap: 8px; }
.clean-metric span { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }
.clean-metric strong { font-size: 1.6rem; color: #f8fafc; font-weight: 500; }
.clean-metric strong.warn { color: #facc15; }
.clean-metric strong.opt { color: #10b981; }

/* Abstract Glass Node Visualizer */
.fluent-glass-visualizer {
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 80%);
    position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.glass-ripple-1, .glass-ripple-2 { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.glass-ripple-1 { width: 220px; height: 220px; animation: rippleOut 4s infinite linear; }
.glass-ripple-2 { width: 220px; height: 220px; animation: rippleOut 4s infinite linear 2s; }
.glass-node-core { position: relative; width: 16px; height: 16px; background: #10b981; border-radius: 50%; box-shadow: 0 0 30px #10b981; z-index: 2; }
.glass-node-label { position: absolute; bottom: 40px; color: #cbd5e1; font-size: 0.85rem; background: rgba(0,0,0,0.6); padding: 8px 20px; border-radius: 50px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); font-weight: 500;}
@keyframes rippleOut { 0% { width: 0; height: 0; opacity: 1; } 100% { width: 350px; height: 350px; opacity: 0; } }

/* Architecture Grid */
.fluent-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fluent-card-grid .arch-card { padding: 40px 32px; }
.clean-icon { font-size: 1.8rem; color: #fff; opacity: 0.2; font-weight: 400; margin-bottom: 24px; font-family: 'JetBrains Mono', monospace;}
.arch-card h4 { margin: 0 0 12px 0; color: #f8fafc; font-size: 1.2rem; font-weight: 500; }
.arch-card p { margin: 0; color: #cbd5e1; font-size: 0.95rem; line-height: 1.7; font-weight: 400;}

.interactive-glass-card { cursor: pointer; }
.interactive-glass-card:hover { background: rgba(30, 41, 59, 0.6); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.fluent-clean-footer {
    display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 0 60px 0; font-size: 0.9rem; color: #94a3b8; font-weight: 500;
}

/* --- Premium Auth Modal --- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: center;
    background: rgba(5, 8, 15, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-panel { width: 440px; padding: 40px; text-align: center; }
.modal-panel h3 { margin: 0 0 12px 0; font-weight: 500; font-size: 1.5rem;}
.modal-panel p { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.6; font-weight: 400;}
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 25px; }


/* --- Full-Width Master Fluent Footer --- */
.fluent-master-footer {
    position: relative;
    z-index: 20;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: rgba(5, 8, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 80px;
    padding-bottom: 0; /* Eliminates dead gap below */
}

.footer-inner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px; /* Tighter, balanced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Left Brand Column */
.footer-brand-column {
    max-width: 400px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 300;
}

.footer-version {
    font-size: 0.75rem;
    color: #10b981;
    letter-spacing: 1px;
}

/* Right Ecosystem Column */
.footer-ecosystem-column {
    display: flex;
    gap: 30px;
    align-items: center;
}

.ecosystem-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecosystem-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.logo-badge-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-badge {
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-badge:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.featured-badge {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

/* Image styling for logos with smooth fallback text if images load later */
.footer-logo-img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
}

.fallback-text {
    display: none; /* Hidden by default, shows only if image fails */
    font-size: 0.85rem;
    color: #f8fafc;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Footer Layout */
@media (max-width: 900px) {
    .footer-inner-content {
        flex-direction: column;
        gap: 30px;
        padding: 40px 24px;
        align-items: flex-start;
    }
}



/* --- Bottom Shelf Visibility & Contrast Fixes --- */
.metric-card {
    background: rgba(10, 15, 30, 0.85) !important; /* Richer, more opaque glass background */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-header span,
.stat-highlight {
    color: #f8fafc !important; /* Pure high-contrast white text */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    color: #f8fafc !important; /* Brighter scroll text */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.scroll-line {
    background: linear-gradient(to bottom, #10b981, transparent) !important; /* Emerald glowing indicator line */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}





/* --- Fluent Audit Modal Architecture --- */
.audit-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.metric-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.metric-glass.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.metric-glass i {
    font-size: 24px;
    color: var(--accent);
    padding: 10px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
}

.m-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.m-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Fluent Progress Track */
.fluent-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.fluent-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Scanning Animation Mode */
.metric-glass.scanning {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}







/* ==========================================
   MASTER RESPONSIVE MOBILE ENGINE (ALL RESOLUTIONS)
   ========================================== */

/* --- 1. Tablet Landscape & Small Laptops (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .ideas-container {
        padding: 130px 24px 0 24px;
    }
    .ideas-hero h1 {
        font-size: 3.5rem;
    }
    .framework-header {
        padding: 30px 40px;
    }
    .framework-body {
        padding: 40px;
    }
    .concept-details {
        padding: 40px;
    }
}

/* --- 2. Tablet Portrait & Large Smartphones (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Navigation & Top Bar */
    .top-nav {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
        height: auto;
    }
    .nav-pills {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        padding: 4px;
        scrollbar-width: none;
    }
    .nav-pills::-webkit-scrollbar {
        display: none;
    }
    .nav-pills a {
        padding: 8px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .nav-actions {
        display: none; /* Hides desktop-only clock on portrait mobile to preserve space */
    }

    /* Hero & Problem Statement */
    .ideas-container {
        padding-top: 160px;
    }
    .ideas-hero {
        margin-bottom: 60px;
    }
    .ideas-hero h1 {
        font-size: 2.6rem;
        line-height: 1.15;
    }
    .problem-statement-card {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
    .ps-image-container {
        min-height: 220px;
    }
    .ps-image-overlay {
        background: linear-gradient(180deg, transparent 0%, rgba(13, 22, 38, 0.6) 60%, rgba(13, 22, 38, 1) 100%);
    }
    .ps-content {
        padding: 30px 24px;
    }

    /* Solutions Grid */
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .solution-card {
        max-width: 100%;
    }

    /* Full-Screen Framework Modals */
    .fluent-framework-modal {
        top: 0; /* Full screen takeover on mobile for immersive reading */
    }
    .framework-glass-surface {
        border-radius: 0;
    }
    .framework-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .framework-header h2 {
        font-size: 1.6rem;
    }
    .framework-body {
        padding: 20px 20px max(40px, env(safe-area-inset-bottom)) 20px;
    }
    .concept-card, 
    .concept-card.reverse-layout {
        flex-direction: column;
    }
    .concept-media {
        width: 100%;
        height: 240px;
    }
    .concept-media-overlay, 
    .concept-card.reverse-layout .concept-media-overlay {
        background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 14, 0.9) 100%);
    }
    .concept-details {
        width: 100%;
        padding: 24px 20px;
    }
    .concept-details h3 {
        font-size: 1.5rem;
    }

    /* Mobile Sticky AI Audit Marquee */
    .ai-audit-container {
        position: sticky;
        top: 10px;
        margin: 10px 0 30px 0;
        padding: 14px 18px;
    }
    .ai-audit-container.compact {
        width: 100%;
        border-radius: 14px;
        padding: 10px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ai-audit-container.compact .audit-content {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .ai-audit-container.compact .audit-step:not(:last-child) {
        display: flex; /* Keeps context visible on portrait mobile */
        font-size: 0.75rem;
    }

    /* Attribution & Certificates */
    .attribution-card,
    .certificate-split-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 24px;
    }
    .cert-split-details {
        padding: 0;
    }
    .cert-split-media {
        min-height: 220px;
    }

    /* Footer */
    .footer-inner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    .footer-brand-column {
        align-items: center;
    }
    .logo-badge-grid {
        justify-content: center;
    }
}

/* --- 3. Standard Smartphones (max-width: 640px) --- */
@media (max-width: 640px) {
    .ideas-container {
        padding: 140px 16px 0 16px;
    }
    .ideas-hero h1 {
        font-size: 2.1rem;
    }
    .hero-subtext, 
    .framework-desc,
    .ps-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .fluent-clean-header h2 {
        font-size: 1.4rem;
    }
    .solution-content h3 {
        font-size: 1.2rem;
    }
    .concept-specs {
        padding: 16px;
    }
}

/* --- 4. Compact & Small Screen Mobile Devices (max-width: 475px) --- */
@media (max-width: 475px) {
    .brand-logo {
        font-size: 0.85rem;
    }
    .brand-logo-img {
        width: 24px;
        height: 24px;
    }
    .ideas-hero h1 {
        font-size: 1.8rem;
    }
    .fluent-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .solution-link {
        font-size: 0.75rem;
        padding: 12px 16px !important;
    }
    .framework-header h2 {
        font-size: 1.3rem;
    }
    .glass-btn-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* --- 5. Touch Target & Accessibility Enforcement for Mobile --- */
@media (hover: none) and (pointer: coarse) {
    /* Ensures all interactive buttons and links have optimal touch padding */
    button, 
    .solution-link, 
    .nav-pills a, 
    .glass-btn-secondary, 
    .glass-btn-primary {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable heavy hover transforms on touch devices to eliminate lag */
    .solution-card:hover {
        transform: none;
    }
}



