/* ============================================================
   UNIFLOWX — THE 2030 INTELLIGENCE UTILITY (CSS CORE)
   Design Language: Obsidian / Kinetic / Monolith
   ============================================================ */

:root {
    --bg-core: #000000;
    --bg-soft: #050505;
    --bg-surface: #0a0a0a;
    --signal-hex: #8c78ff;
    --signal-glow: rgba(140, 120, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-dim: #444444;
    --grid-color: rgba(255, 255, 255, 0.03);
    --border-thin: rgba(255, 255, 255, 0.08);
    --expo: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background: var(--bg-core);
    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* THE GRID CANVAS */
.uf-canvas {
    position: relative;
    width: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 100px 100px;
}

.uf-canvas::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--signal-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* NAVIGATION */
.uf-navbar {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 25px 50px;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.4s var(--expo);
}

.uf-navbar.scrolled {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-thin);
    padding: 15px 50px;
}

.uf-brand { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: #fff; letter-spacing: -1px; }
.uf-brand span { color: var(--signal-hex); }

.uf-nav { display: flex; gap: 35px; }
.uf-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.uf-nav a:hover { color: var(--text-main); }

.uf-actions { display: flex; align-items: center; gap: 25px; }
.uf-login { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }

/* 2030 CTA */
.uf-cta {
    padding: 10px 22px;
    background: #fff; color: #000;
    border-radius: 2px; font-weight: 600; font-size: 0.85rem;
    text-decoration: none; text-transform: uppercase;
    transition: all 0.3s var(--expo);
}

.uf-cta:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--signal-glow); }

/* HERO SECTION */
.uf-hero {
    height: 100vh; padding: 0 50px;
    display: flex; align-items: center; position: relative;
}

.uf-hero-content { max-width: 900px; z-index: 2; }
.uf-eyebrow { color: var(--signal-hex); font-family: monospace; font-size: 0.8rem; margin-bottom: 20px; letter-spacing: 2px; }

.uf-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; margin: 0 0 30px; font-weight: 500; letter-spacing: -2px; }
.uf-hero p { color: var(--text-muted); font-size: 1.2rem; line-height: 1.6; max-width: 600px; margin-bottom: 40px; }

.uf-hero-actions { display: flex; gap: 20px; }
.uf-hero-primary { 
    padding: 15px 30px; background: var(--text-main); color: #000; 
    text-decoration: none; font-weight: 600; border-radius: 2px; text-transform: uppercase; font-size: 0.9rem;
}
.uf-hero-secondary { 
    padding: 15px 30px; border: 1px solid var(--border-thin); color: #fff; 
    text-decoration: none; border-radius: 2px; text-transform: uppercase; font-size: 0.9rem;
}

/* OFFERINGS GRID */
.uf-offerings { padding: 120px 50px; border-top: 1px solid var(--border-thin); }
.uf-section-title { font-size: 2.5rem; margin-bottom: 60px; font-weight: 400; }
.uf-offerings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-thin); }

.uf-offering { 
    background: var(--bg-core); padding: 50px 40px; 
    transition: 0.4s var(--expo); position: relative;
}

.uf-offering:hover { background: var(--bg-surface); }
.uf-tier-num { font-family: monospace; color: var(--signal-hex); font-size: 0.7rem; margin-bottom: 30px; }
.uf-offering h3 { font-size: 1.5rem; margin-bottom: 20px; }
.uf-offering p { color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; min-height: 80px; }
.uf-offering-meta { font-family: monospace; font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; }

/* SYSTEM BLOCK */
.uf-system { padding: 150px 50px; background: var(--bg-soft); border-top: 1px solid var(--border-thin); }
.uf-system-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.uf-os-tag { font-family: monospace; color: var(--signal-hex); border: 1px solid var(--signal-hex); padding: 5px 10px; display: inline-block; font-size: 0.7rem; margin-bottom: 20px; }

/* FOOTER */
.uf-footer { padding: 100px 50px 50px; border-top: 1px solid var(--border-thin); }
.uf-footer-links { display: flex; gap: 30px; margin: 40px 0; }
.uf-footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; }
.uf-footer-meta { color: var(--text-dim); font-size: 0.75rem; font-family: monospace; }

@media (max-width: 1024px) {
    .uf-nav, .uf-actions .uf-login { display: none; }
    .uf-offerings-grid, .uf-system-inner { grid-template-columns: 1fr; }
}

.uf-canvas {
 opacity: 0;
 animation: systemWake 1.2s var(--expo) forwards;
}

@keyframes systemWake {
 from { opacity: 0; }
 to { opacity: 1; }
}



/* ============================================================
   TOOLS PAGE
   ============================================================ */
/* ============================================================
   MARKETPLACE & TOOLS STYLES (2030 UPDATED)
   ============================================================ */

/* HERO & TICKER */
.uf-tools-hero {
    padding: 160px 60px 80px;
    border-bottom: 1px solid var(--border-thin);
}
.uf-utility-ticker {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border-thin);
    padding-top: 20px;
    flex-wrap: wrap;
}
.uf-ticker-item {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MARKETPLACE CONTROLS (Filters & Search) */
.uf-marketplace-controls {
    padding: 40px 60px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-thin);
}
.uf-controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.uf-filter-label {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-right: 15px;
}
.uf-filter-tags { display: inline-flex; gap: 10px; }

.uf-filter-btn {
    background: transparent;
    border: 1px solid var(--border-thin);
    color: var(--text-muted);
    padding: 6px 15px;
    font-family: monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s var(--expo);
}
.uf-filter-btn:hover, .uf-filter-btn.active {
    border-color: var(--signal-hex);
    color: #fff;
    background: rgba(140, 120, 255, 0.1);
}

#toolSearch {
    background: transparent;
    border: 1px solid var(--border-thin);
    color: #fff;
    padding: 10px 15px;
    font-family: monospace;
    font-size: 0.8rem;
    width: 300px;
    outline: none;
}
#toolSearch:focus { border-color: var(--signal-hex); }

/* GRID LAYOUT */
.uf-marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding: 60px;
    min-height: 400px;
}

/* CARD ARCHITECTURE */
.uf-utility-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s var(--expo);
    position: relative;
}

.uf-utility-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 12px; height: 12px;
    border-top: 2px solid var(--signal-hex);
    border-left: 2px solid var(--signal-hex);
    opacity: 0;
    transition: 0.3s;
}

.uf-utility-card:hover {
    border-color: rgba(140, 120, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(140, 120, 255, 0.05);
}

.uf-utility-card:hover::before { opacity: 1; }

.uf-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 25px; 
}
.uf-card-id { font-family: monospace; color: var(--text-dim); font-size: 0.75rem; }
.uf-card-tag { 
    font-family: monospace; 
    font-size: 0.6rem; 
    color: var(--signal-hex); 
    border: 1px solid var(--signal-hex); 
    padding: 3px 8px; 
    letter-spacing: 1px;
}

.uf-card-content h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 500; color: #fff; }
.uf-card-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

.uf-card-specs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 25px; }
.uf-card-specs span { font-family: monospace; font-size: 0.65rem; color: var(--text-dim); }

.uf-card-footer { 
    margin-top: auto; 
    padding-top: 25px; 
    border-top: 1px solid var(--border-thin); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.uf-price-label { display: block; font-family: monospace; font-size: 0.6rem; color: var(--text-dim); }
.uf-price-value { font-family: monospace; font-weight: 700; font-size: 1.2rem; color: #fff; }

.uf-btn-init {
    /* Change background from solid white to a deep, semi-transparent tech-grey */
    background: rgba(255, 255, 255, 0.05); 
    color: #fff;
    padding: 10px 24px; 
    font-size: 0.75rem; 
    font-weight: 600;
    text-decoration: none; 
    border-radius: 2px;
    /* Add a subtle border using your brand color */
    border: 1px solid rgba(142, 134, 255, 0.3);
    font-family: monospace;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.uf-btn-init:hover { 
    /* The button "energizes" on hover rather than just swapping colors */
    background: var(--signal-hex); 
    color: #000; 
    border-color: var(--signal-hex);
    box-shadow: 0 0 15px rgba(142, 134, 255, 0.4);
    transform: translateY(-1px);
}
/* BRIDGE SECTION */
.uf-tools-bridge {
    padding: 120px 60px;
    background: var(--bg-soft);
    text-align: center;
    border-top: 1px solid var(--border-thin);
}

.uf-pipeline-card {
    border-style: dashed !important;
    opacity: 0.8;
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(140, 120, 255, 0.05) 100%);
}

.uf-pipeline-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uf-pipeline-item {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.uf-status-blink {
    color: var(--signal-hex);
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.uf-tools-bridge {
    position: relative;
    padding: 160px 60px;
    background: radial-gradient(circle at center, rgba(140, 120, 255, 0.05) 0%, transparent 70%);
    text-align: center;
    border-top: 1px solid var(--border-thin);
    overflow: hidden;
}

.uf-tools-bridge-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.uf-tools-bridge h2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.uf-tools-bridge p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Technical Bars for "Governance/Automation" vibe */
.uf-bridge-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.uf-b-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.uf-b-stat span {
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--signal-hex);
    letter-spacing: 2px;
}

.uf-bar {
    width: 60px;
    height: 2px;
    background: var(--border-thin);
    position: relative;
}

.uf-bar::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 70%; /* Random progress look */
    background: var(--signal-hex);
    box-shadow: 0 0 10px var(--signal-hex);
}

.uf-hero-secondary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--signal-hex);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.4s;
}

.uf-hero-secondary:hover {
    background: var(--signal-hex);
    box-shadow: 0 0 30px rgba(140, 120, 255, 0.3);
}

/* Add this to your uf-bridge-visual-layer CSS */
.uf-bridge-visual-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--signal-hex) 1px, transparent 1px);
    background-size: 40px 40px; /* Adjust for density */
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    opacity: 0.2;
}

/* Example of making the schematic feel "Alive" */
.uf-bridge-visual-layer circle {
    animation: pulseNode 4s infinite ease-in-out;
}

@keyframes pulseNode {
    0%, 100% { opacity: 0.2; r: 2; }
    50% { opacity: 1; r: 3; }
}

.uf-bridge-visual-layer {
    pointer-events: none; /* This ensures the background isn't "clickable" */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.uf-tools-bridge-inner {
    position: relative;
    z-index: 2; /* Keeps text and buttons on top */
}

/* SYSTEM SECTION ENHANCEMENTS */
.uf-system-specs {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.uf-spec-item {
    display: flex;
    flex-direction: column;
}

.uf-spec-item span {
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.uf-spec-item strong {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--signal-hex);
}

/* TERMINAL VISUALIZER */
.uf-terminal-window {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-thin);
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 20px rgba(140, 120, 255, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.uf-terminal-header {
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-thin);
}

.uf-dots { display: flex; gap: 6px; }
.uf-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }

.uf-terminal-title {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.uf-terminal-body {
    padding: 25px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.uf-log-line { margin-bottom: 12px; }
.uf-status-ok { color: #00ffaa; float: right; }

.uf-visual-nodes {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(140, 120, 255, 0.03);
    border-radius: 4px;
    justify-content: center;
}

.uf-node {
    width: 40px; height: 40px;
    border: 1px solid var(--border-thin);
    position: relative;
}

.uf-node.active { border-color: var(--signal-hex); box-shadow: 0 0 15px var(--signal-glow); }
.uf-node.pulse { animation: nodePulse 2s infinite; }

@keyframes nodePulse {
    0% { border-color: var(--border-thin); }
    50% { border-color: var(--signal-hex); box-shadow: 0 0 20px var(--signal-glow); }
    100% { border-color: var(--border-thin); }
}

@media (max-width: 1024px) {
    .uf-system-visual { margin-top: 50px; }
}

.uf-glitch-text {
    color: var(--signal-hex);
    font-weight: bold;
    text-shadow: 0 0 10px var(--signal-glow);
    position: relative;
    animation: glitch-blink 3s infinite;
}

@keyframes glitch-blink {
    0%, 90%, 100% { opacity: 1; transform: skew(0deg); }
    92% { opacity: 0.8; transform: skew(5deg); }
    94% { opacity: 0.5; transform: skew(-5deg); }
    96% { opacity: 1; transform: skew(0deg); }
}






/* ARCHITECTURE STACK LAYOUT */
.uf-architecture-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.uf-stack-layer {
    background: var(--bg-surface);
    border: 1px solid var(--border-thin);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: 0.4s var(--expo);
}

.uf-stack-layer.active {
    border-color: var(--signal-hex);
    box-shadow: 0 0 30px rgba(140, 120, 255, 0.05);
}

.uf-layer-id {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: bold;
}

.uf-layer-info { flex: 1; }
.uf-layer-info h3 { margin: 0 0 8px 0; font-size: 1.2rem; }
.uf-layer-info p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.uf-layer-status {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* CAPABILITY LIST */
.uf-capability-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.uf-cap-item strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.uf-cap-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.uf-layer-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.uf-layer-tags span {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-dim);
    border: 1px solid var(--border-thin);
    padding: 2px 8px;
    letter-spacing: 1px;
} 


/* DASHBOARD REDESIGN */
    .uf-system-dashboard { padding: 100px 0; background: var(--bg-soft); border-top: 1px solid var(--border-thin); }
    
    /* Update this in your CSS */
.uf-dashboard-grid {
    display: grid;
    /* Forces 4 columns on desktop, shifts to 2 or 1 on mobile */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1px;
    background: var(--border-thin); 
    border: 1px solid var(--border-thin);
    max-width: 1200px; /* Prevents extreme stretching on wide monitors */
    margin: 0 auto;    /* Centers the dashboard */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .uf-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .uf-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

   .uf-dash-card {
    background: var(--bg-core);
    padding: 3rem 2rem; /* Increases vertical breathing room */
    min-height: 320px;   /* Ensures a solid "block" look */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .uf-dash-card.active {
        box-shadow: inset 0 0 40px rgba(140, 120, 255, 0.05);
    }

    .uf-dash-status { font-family: monospace; font-size: 0.65rem; color: var(--text-dim); }
    .uf-dash-card h3 { font-size: 1.2rem; margin: 20px 0 10px; letter-spacing: 1px; }
    .uf-dash-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 30px; }

    .uf-dash-indicator {
        font-family: monospace;
        font-size: 0.6rem;
        padding-top: 15px;
        border-top: 1px solid var(--border-thin);
        color: var(--text-dim);
    }

    .uf-dash-card.active .uf-dash-indicator { color: var(--signal-hex); }

    /* REFINED BRIDGE */
    .uf-tools-bridge { position: relative; padding: 120px 0; overflow: hidden; text-align: center; }
    .uf-bridge-visual-layer {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-image: radial-gradient(var(--signal-hex) 0.5px, transparent 0.5px);
        background-size: 30px 30px; opacity: 0.1; z-index: 1;
    }
    .uf-tools-bridge-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }


        /* NEW SCHEMATIC STYLES (Add to your CSS) */
    .uf-schematic-section { padding: 100px 5%; background: var(--bg-core); }
    
    .uf-schematic-container {
        max-width: 1000px; margin: 0 auto;
        border-left: 1px solid var(--border-thin);
        padding-left: 50px; position: relative;
    }

    .uf-schematic-header { margin-bottom: 60px; }
    .uf-schematic-title { font-family: monospace; color: var(--text-dim); font-size: 0.8rem; letter-spacing: 3px; }
    .uf-schematic-line { width: 100px; height: 1px; background: var(--signal-hex); margin-top: 10px; }

    .uf-schematic-node {
        margin-bottom: 80px; position: relative;
        opacity: 0.6; transition: 0.5s;
    }
    
    .uf-schematic-node.active { opacity: 1; }

    .uf-schematic-node::before {
        content: ""; position: absolute; left: -56px; top: 0;
        width: 11px; height: 11px; background: var(--bg-core);
        border: 1px solid var(--text-dim); border-radius: 50%;
    }

    .uf-schematic-node.active::before {
        background: var(--signal-hex); border-color: var(--signal-hex);
        box-shadow: 0 0 15px var(--signal-glow);
    }

    .uf-node-meta { font-family: monospace; font-size: 0.7rem; color: var(--signal-hex); margin-bottom: 10px; }
    .uf-node-content h3 { font-size: 1.8rem; margin: 0 0 15px 0; font-weight: 600; }
    .uf-node-content p { color: var(--text-muted); line-height: 1.6; max-width: 600px; margin-bottom: 20px; }

    .uf-node-specs { display: flex; gap: 20px; }
    .uf-node-specs span {
        font-family: monospace; font-size: 0.65rem;
        background: rgba(255,255,255,0.03); padding: 4px 10px;
        border: 1px solid var(--border-thin); color: var(--text-dim);
    }

    /* STATES GRID */
    .uf-state-grid {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1px; background: var(--border-thin); border: 1px solid var(--border-thin);
    }
    .uf-state-box { background: var(--bg-core); padding: 40px; }
    .uf-state-box strong { display: block; font-family: monospace; margin-bottom: 15px; color: var(--text-dim); }
    .uf-state-box.active strong { color: var(--signal-hex); }
    .uf-state-box p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }


/* ============================================================
   KINETIC_MOBILE_PATCH_V.01
   ONLY TARGETS MOBILE_BREAKPOINTS WITHOUT CHANGING DESKTOP LOGIC
   ============================================================ */

@media (max-width: 768px) {
    /* 1. Reset overflow behaviors for smaller viewports */
    body, html { width: 100vw; overflow-x: hidden; }

    /* 2. Fix Nav/Padding */
    .uf-navbar { padding: 15px 25px; }
    .uf-navbar.scrolled { padding: 10px 25px; }

    /* 3. Hero Responsive Reset */
    .uf-hero { padding: 120px 25px 60px; height: auto; min-height: 100vh; flex-direction: column; justify-content: center; text-align: center; }
    .uf-hero-content { width: 100%; }
    .uf-hero h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }
    .uf-hero p { font-size: 1rem; margin: 0 auto 30px; }
    .uf-hero-actions { flex-direction: column; width: 100%; gap: 10px; align-items: stretch; }
    .uf-hero-primary, .uf-hero-secondary { width: 100%; text-align: center; }

    /* 4. Offering/Dashboard Scaling */
    .uf-offerings { padding: 80px 25px; }
    .uf-section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .uf-offering { padding: 35px 25px; }
    
    .uf-dashboard-grid { grid-template-columns: 1fr; }
    .uf-dash-card { padding: 2rem 1.5rem; min-height: auto; }

    /* 5. Tools & Marketplace Layout */
    .uf-tools-hero { padding: 120px 25px 40px; text-align: center; }
    .uf-utility-ticker { justify-content: center; gap: 20px; }
    .uf-marketplace-controls { padding: 30px 25px; }
    .uf-controls-inner { flex-direction: column; align-items: stretch; gap: 20px; }
    #toolSearch { width: 100%; }
    
    .uf-marketplace-grid { grid-template-columns: 1fr; padding: 30px 25px; }
    .uf-utility-card { padding: 25px; }

    /* 6. Bridge & Schematic Logic */
    .uf-tools-bridge h2 { font-size: 2.2rem; }
    .uf-schematic-container { padding-left: 30px; border-left: 1px solid var(--border-thin); }
    .uf-schematic-node::before { left: -36px; }
    .uf-node-content h3 { font-size: 1.4rem; }

    /* 7. Architecture Stack Collapse */
    .uf-stack-layer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 25px; }
    .uf-layer-id { font-size: 1rem; }

    /* 8. System Logic Blocks */
    .uf-system { padding: 80px 25px; }
    .uf-system-inner { grid-template-columns: 1fr; gap: 40px; }
    
    /* 9. Footer */
    .uf-footer { padding: 60px 25px 30px; }
    .uf-footer-links { flex-direction: column; gap: 15px; }
}

/* Specific Tweak for tiny devices */
@media (max-width: 480px) {
    .uf-brand { font-size: 1.1rem; }
    .uf-cta { padding: 8px 16px; font-size: 0.75rem; }
}

/* MOBILE TOGGLE STYLES */
/* --- Hamburger Icon Design --- */
.uf-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Spacing between the two lines */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    width: 40px;
    height: 40px;
}

.uf-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* X Animation when active */
.uf-mobile-toggle.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
    background: #a29bfe; /* Purple from your 'X' logo */
}

.uf-mobile-toggle.active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
    background: #a29bfe;
}

/* --- Mobile Menu Overlay --- */
@media (max-width: 1024px) {
    .uf-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000; /* Solid black like your screenshot */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%); /* Start hidden on the right */
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1500;
    }

    .uf-nav.active {
        transform: translateX(0); /* Slide in */
    }

    .uf-nav a {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
        text-decoration: none;
        color: #888;
        transition: color 0.3s;
    }
    
    .uf-nav a:hover {
        color: #fff;
    }
}

/* 1. Hide the toggle button by default (Desktop view) */
.uf-mobile-toggle {
    display: none; 
}

/* 2. Show the toggle only on Mobile/Tablet */
@media screen and (max-width: 1024px) {
    .uf-mobile-toggle {
        display: flex; /* Or inline-flex */
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        /* Add your existing styling here */
    }

    /* 3. Hide the normal text links on Mobile */
    .uf-nav {
        display: none; /* This will be overridden by your .active class in JS */
    }
}

/* 4. Ensure the normal nav shows on Desktop */
@media screen and (min-width: 1025px) {
    .uf-nav {
        display: flex !important;
        gap: 30px;
    }
}

.uf-nav.active {
    background-color: #000;
    /* Drawing the grid with CSS gradients */
    background-image: 
        linear-gradient(rgba(162, 155, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(162, 155, 254, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; /* Adjust square size here */
    background-position: center;
    
    /* Adds a subtle "vignette" glow to the edges */
    box-shadow: inset 0 0 150px rgba(0,0,0,1); 
}